After all these years, my Acer 5740 laptop is still running linux, specifically Xubuntu, the xfce based Ubuntu derivative. For the most part it remains serviceable, but some annoying bugs have come to light from time to time. I suspect these are at least in part due to the old hardware combined with a new(ish) kernel and drivers.
Case in point: log into Xubuntu 16.04 after the screen has been locked (by suspend or logout) and the mouse pointer becomes invisible. The mouse still works though, and if you manage to position the invisible pointer just right you can point and click as usual. This bug seems to be related to the combination of lightdm, light-locker and the xorg-video-intel driver configured to use sna acceleration. The sad fact is that this bug has been around for a long time (at least since 15.04, probably longer). It seems I am not alone with this bug on my old hardware: reports suggest it affects more recent hardware as well.
The good news is that there are several potential workarounds. The best one, found here involves switching to a new VT and then back by pressing ctrl-alt-F1 immediately followed by ctrl-alt-F7 or by placing commands to do the same in a bash script and assigning it a keyboard shortcut. But how do we automate this so that no keypresses are needed?
First, create the script VTswitch with these contents:
#!/bin/sh /bin/chvt 1 /bin/chvt 7 sleep 1
Save it in the location of your choice and make it executable.
Next, if it doesn’t already exist, create the file 50-myconfig.conf in the directory /etc/lightdm/lightdm.conf.d with these contents:
Finally, restart lightdm:
sudo systemctl restart lightdm
That’s it! Next time you unlock the screen, your mouse cursor will be visible with no extra keystrokes. Please let me know if you see any weird side effects or if you come across a patch that resolves this bug.
UPDATE: Even better than the workaround above, at least with my hardware, you can just avoid the bug entirely by removing the xorg-video-intel driver and using the modesetting driver built into Xorg instead:
sudo apt-get remove xserver-xorg-video-intel
If you were using the workaround, remove the file 50-myconfig.conf in /etc/lightdm/lightdm.conf.d