Recently, I noticed a strange bug: sometimes mouse wheel scrolling is not working on Linux. Some interfaces are even worse, it can’t scroll at all. But if scrolling slowly, it would work, just still tend to be stuck.
I tried many solutions, and finally I decided to change system-wide wheel scrolling speed. Unfortunately, most of Linux desktop environment doesn’t have any settings to adjust mouse wheel scrolling speed. So we need a tinny tool to solve the problem. That is imwheel.
*** This solution is tested fine on Debian 11. ***
Make sure you allocate enough CPU and RAM. If you’re running Desktop Environment, you should allocate at least 2G RAM. 4G RAM recommended.
If you meet any graphic problems, turn off 3D Acceleration. It will solve most graphic problems.
If you find disk I/O is very slow, go to Storage setting page, click “Controller: SATA”, then check “Use Host I/O Cache”. You will find your Virtual Machine run fast beyond your imagination, even thought the disk is on HDD, not SSD. So you should enable this before installing Operating System, it will speed up your installation. (VirtualBox disable this by default)
Set sound hardware as AC 97, not Intel HD, to get best compatibility. Otherwise, you will meet some strange problems while playing sound, especially laggy or stuck.
Try to turn off 3D Acceleration in VirtualBox or VMware.
When you turn off 3D Acceleration, CPU will load much heavier instead of GPU so that you should increase your CPU power (increase your Virtual Machine CPU number, or upgrade your physical machine CPU). Though CPU will load heavier than before, that’s worthy because it only takes heavy load while running Pygame. While using other applications, CPU behaves as usual.
The system will pop this warning notification, just ignore it.
For VirtualBox users, maybe you find after switching VMSVGA to VBoxVGA or VBoxSVGA, it works more normally. That is because VBoxVGA and VBoxSVGA won’t enable 3D Acceleration. I recommend using VMSVGA by default.
So when you face the graphic problem, don’t waste your time like me, just turn off 3D Acceleration.
Recently I found a problem: while apt upgrade, it’s always being stuck at “Processing triggers for man-db”. In fact, the process is still running, just too slowly.
I guess triggering man-db will take too much CPU time to finish so that it looks like being stuck. I didn’t monitor the disk I/O status, I guess it needs a number of disk I/O actions. If you’re using HDD, that would be slow.
Maybe there’s a bug. As far as I know, man-db problem exists in every Debian based Linux distribution, including Debian and Ubuntu. The earliest report I see is in 2012, and Debian 11, the latest stable Debian version, also has this problem.
Because triggering man-db is nearly the last step of upgrade, it seems like organizing and concluding something. It doesn’t upgrade man-db package itself, so using apt-mark hold man-db command is useless.
Some tutorials say that remove the man-db package or delete the cache folder of man-db, it may cause other problems.
So my suggestion is that make sure your machine has high enough CPU calculating power and disk I/O amount.
Higher Frequence requires higher Voltage, or you will find the PC cannot boot or the applications will close automatically, especially games.
But higher Voltage will cause higher Temperature. If the Temperature is too high, it will cause errors in RAM, and applications will crash, games will freeze. Sometimes the PC will shutdown.
In summer, the indoor Temperature is higher, we must watch out.
If you don’t install extras fans to ventilate the air from the rear to the front, you should not set Frequency and Voltage too high.
So you should make sure the balance between Frequency and Voltage. You can look for some guides about your RAM models online. But you must set and test by yourself.
While playing games, almost every parts of PC works at best and the Temperature is up to its highest. So don’t trust those posts which only works as normal conditions, unless you don’t play any 3A games. The best way to test RAM is playing games, especially 3A or MMO, like Dota2 and CSGO.
CAS is positive correlation to Frequence, so don’t set CAS too low. But the lower CAS, the lower latency. It’s up to you, but most DDR4 RAMs can only get 16 as CAS at best.