For some reason, the mouse pointer on my Ubuntu 10.04 PC disappears after the computer is woken up from suspend. That PC is missing a keyboard, so I can fix this by logging via ssh, and issuing:
sudo service gdm restart
... however, this basically restarts gnome, and will close any applications that may have been running.
Another way to solve this is to set up that PC as a synergy
slave - and then move the mouse from the synergy
master to the slave desktop; this brings the mouse pointer back.
Is it possible to run some command, such that I don't need to restart X (or gdm) but I'll effectively restart the mouse pointer code? Then I could put this into a script on the desktop, and be able to recover the mouse pointer after suspend without needing a second machine (even with the mouse pointer invisible, mouseovers on icons are still rendered, so I could target this icon).
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
Type in the password, press enter, and then press Alt+F2 again for entering the following
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
or
If your usb mouse is getting stuck, then use the following command after pressing Alt+F2
I am using Xubuntu 16.04. The suggestion posted in this answer by Ulad Kasach worked for me.
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 ranAnd then put the following in a script on the desktop, called, say
unclutter.sh
:... 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 stopunclutter
after that, you'd have to do from terminal:... 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:
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
.This answer from It's F.O.S.S. worked for me once.
The second time, it did not work, and neither did any of the above suggestions. So after these, I just closed the lid of my laptop to suspend it, reopened it, and the pointer was back.
Had that problem the other day. I switched to another terminal (Ctrl+Alt+F1) and then came back to the current window (Ctrl+Alt+F7). It did the trick for me.
Had this issue with my laptop's touchpad mouse missing. Using your keyboard for navigation, open launcher (windows key) and type "mouse". In the modal that pops up, check if Touchpad section is in the "ON" position.
I've tried many things, including restarting the GNOME shell, suspending, and executing
What finally helped me was to restart the gsd via
gnome-settings-daemon --replace
.It is also worth to check battery of your mouse if it is a wireless one, the battery may just went flat with such effect of unmoving cursor.
Restart the touchpad. One way using
xinput
.xinput --list
xinput disable id_found_in_step_1
xinput enable id_found_in_step_1
This just worked for me now on Ubuntu 18.04!
If you are using gnome, this worked for me. Run the command below and note your touch pad id. For example, mine is 12 labelled
id=12
Run
To disable your touchpad.
Then run
To enable it again.
Refresh xorg by holding down
command + r
. Typer
and click enter key.