Lagging box around mouse cursor on Ubuntu 17.04 and nvidia driver
I also had this annoying problem, and I was able to solve it by running:
sudo service lightdm restart
(This was suggested in a comment by m00am. At first I had tried to restart sddm
, but it displayed a message saying I did not have that service. Installing the sddm
package didn't help, but finally chosing the lightdm
service worked.)
I clicked OK, and my computer restarted. Finally the lagging and cursor not updating problems were solved.
I had this problem with an AOC portable monitor in Linux Mint 19.1. The solution to restart lightdm worked for me but it was annoying to restart on after every fresh boot. Hence I figured that lightdm is starting too early in the boot sequence, so I modified systemd service config files for a less annoying solution.
In /lib/systemd/system/displaylink-driver.service
:
Changed the line After=display-manager.service
to Before=display-manager.service
In /etc/systemd/system/display-manager.service
:
Modified ExecStartPre
to
ExecStartPre=/bin/sh -c '/bin/sleep 10 && [ "$(basename $(cat /etc/X11/default-display-manager 2>/dev/null))" = "lightdm" ]'
For Ubuntu 18.04 you can do the same edit, except to /lib/systemd/system/lightdm.service
Environment: Ubuntu 18.04 GTX1650 nvidia-430-driver(installed from ubuntu software)
Fixed the square around mouse problem by:
sudo apt install lightdm
Configure lightdm as default and reboot
sudo dpkg-reconfigure lightdm
sudo reboot
After rebooting, you will still see the square around mouse, then
sudo apt remove lightdm
sudo reboot
After rebooting, you will be in commandline.
sudo service gdm start
it will bring you into graphical mode again, and you will find that the square around mouse disappear
sudo dpkg-reconfigure gdm3
Then you do not need to type sudo service gdm start
every time.
Hope it can help.