How to restart only missing/invisible mouse pointer/cursor?

this may fix the problem.

If you are stuck with no mouse movement on your laptop (touchpad) then press the key combinations Alt+F2 and type in

gksudo modprobe -r psmouse

Type in the password, press enter, and then press Alt+F2 again for entering the following

gksudo modprobe psmouse

Thats it. Your mouse pointer will start working again.

If you like to do it through the terminal, then type in gnome-terminal after pressing Alt+F2 When the terminal open up type the following

sudo modprobe -r psmouse

or

sudo modprobe psmouse

If your usb mouse is getting stuck, then use the following command after pressing Alt+F2

gksudo /etc/init.d/hotplug restart

I am using Xubuntu 16.04. The suggestion posted in this answer by Ulad Kasach worked for me.

Bring the cursor back with Ctrl+Alt+F1 followed by Ctrl+Alt+F7


Finally, found a solution for this:

From #696855 - How do you hide the mouse pointer under Linux/X11? - Stack Overflow; I heard about unclutter, so just ran

sudo apt-get install unclutter

And then put the following in a script on the desktop, called, say unclutter.sh:

unclutter -idle 1 -root -grab -visible

... and make sure you've done chmod +x unclutter.sh.

Then, after the mouse pointer disappears after suspend, use mouseover of icons to target the script and run it; this will start unclutter, which will simply hide (the already invisible) mouse pointer after 1 second of mouse inactivity; but then when you move the mouse after that, finally the mouse pointer will show :) ... however note that to stop unclutter after that, you'd have to do from terminal:

sudo killall unclutter

... as unclutter would be, at that point, running in the background.


Note: also tried, via #15 / Bug #337926 “vino: mouse cursor stays in upper left corner” : Bugs : “vino” package : Ubuntu, to use:

xdotool mousemove 100 100

but this does not make the mouse pointer show again.

Btw, one can look in the synergy source, WebSVN - synergy - /trunk/, and the "reset" of the mouse pointer seems to be coded in ./lib/platform/CXWindowsScreen.cpp.

Tags:

Mouse

10.04

Gdm