50

My mouse pointer became invisible after some updates after I upgraded to 15.04 from 14.10. In all standard settings the mouse pointer is activated (system settings, dconf...) I also tried different cursor icons with no success.

The pointer is sometimes visible after I shut down and reboot the system. But only sometimes and I couldn't figure out a patterns why it sometimes shows up.

I found the following solution which did not work

gsettings set org.gnome.settings-daemon.plugins.cursor active false

Any help appreciated! thanks!

weelux
  • 669

26 Answers26

47

This bug is still around for a Xubuntu 16.04 system using lightdm. A fix for Xubuntu, and possibly other DE's, as described on the Xubuntu 16.04 Release Post is to bring the cursor back with Ctrl+Alt+F1 followed by Ctrl+Alt+F7 .

This worked for me, where none of the other solutions had without reloading everything and closing every page.

Ulad Kasach
  • 1,866
30

I have the same problem after upgrading to 15.04 from 14.10. Sometimes the mouse pointer will appear, this happens approx 1 in 5 computer switch on times. I found a way to get round this as suggested above.

(note: this will hard-kill any running processes).

sudo service lightdm restart

This does have to be issued after every start up . Does anybody know of a more long-term fix?

I have now found a long-term fix. Switch to gdm instead.

sudo apt-get install gdm

after trying several reboots this fix seems to work every time.

I don't know if lightdm gives any advantages over gdm, but to me seeing the cursor is a big advantage of GDM over lightdm.

s3bw
  • 103
13

A dirty hack I do (which surprisingly works for me) is to open terminal by pressing Ctrl+Alt+T and then type ls then the mouse shows in 1-2 seconds.

That said, the normal way that works is to restart the mouse driver. This solution also works when the mouse pointer is misbehaving (like flickering randomly out of control). You restart the mouse driver like:

sudo modprobe -r psmouse  # disable the driver
sudo modprobe psmouse # enable the mouse driver
dopstar
  • 231
7

I have similar problem. Mouse pointer is invisible after system boot, even on LightDM screen. To bring cursor back I'm switching to virtual console (ctrl+alt+f1) and run command:

sudo service lightdm restart

After LightDM restart mouse pointer back to normal. I reported this bug to Launchpad.

QkiZ
  • 1,248
  • 2
  • 19
  • 35
5

Open a terminal ctrl+alt+t and type sudo apt-get install lightdm --reinstall then sudo shutdown -r now to reboot. This worked for me and I've tested it by rebooting several times.

Mad Man
  • 396
3

There can be some problems of this kind if you have got nvidia optimus technology in your computer. Try to use different driver (e.g. Noveau display driver) from Additional Drivers tab in Software & Updates.

apex39
  • 186
3

I fixed it by going to displays setting (write dis in search bar) and than turned off the "unknown display". U see in displays setting two displays in the middle of picture in settings. One is built-in-display another is unknown. Choose unknown by clicking on it on the picture and take the button next to the "Unknown Display" from on to off. Tada

2

From this post on Ubuntu forums, running this command in a terminal fixed this issue

gsettings set org.gnome.settings-daemon.plugins.cursor active false

This works intermittently for me... and I don't know yet why it works at times and not others, but. may help you too.

Mark Kirby
  • 18,949
  • 19
  • 79
  • 116
Robbie Capps
  • 129
  • 3
2

Issuing the following command will restart compiz (the window manager and decorator), without loosing your desktop and loging out (like restarting lightdm would):

sudo killall -i -HUP compiz

That brought my cursor back when it disappeared, while keeping all my windows and my currently working programs.

chronos00
  • 771
1

I had this problem as well, it seems like replacing gnome-setings-daemon with unity-settings-daemon seems to fix this problem.

1

Have you tried this:

 gsettings set org.settings.daemon-plugins.cursor -KEY=s.cursor -VALUE=false

and it might work fine this way.

Michael
  • 2,597
1

This is a very old Unity bug to which that are references that date back to 13.04. Given that Unity version 7 is reaching its end of life, probably it will never be fixed. For a while, logging out and logging back in would temporarily revive the mouse pointer, but this workaround no longer does it on Ubuntu 14.04. The gsettings set command is not functional on 14.04 either.

However, this problem can be fixed on 14.04 by issuing this command:

setsid unity

This will reset all your Unity options, number of workspaces, launcher size, etc. But better that than not having the mouse pointer.

1

Ubuntu 16.04 and Gnome Flashback here. The mouse cursor would disappear during login. Similar fix as mentioned above. I used "dconf Editor" and searched for "cursor". I found the value that fixed the issue in the location:

org,gnome,desktop,settings-daemon,plugins,cursor,active

I unticked active and my mouse come back instantly and is surviving restarts.

stvee
  • 11
0

I fixed this issue by deleting my .config folder from my home dir (~) after noticing the issue only appeared on one user. While not ideal it is a possible fix.

royalaid
  • 101
0

I had a similar problem on 15.04. At one point the mouse cursor suddenly disappeared, but when I moved to another workspace (Ctrl+Alt+Arrow) it reappeared.

Pulsar
  • 101
0

Doing this solved the problem for some of the users: install dconf-editor

sudo apt-get install dconf-editor

and change the icon size to smaller in settings. That seems to solve the issues

Ravan
  • 9,567
5ud0
  • 24
0

Here is how I solved the problem:

Create a shell script (yourscript.sh) with this code:

#!/bin/bash
service lightdm restart 

As root, move it to the /etc/init.d folder Then, open the folder in the terminal and run:

chmod 755 yourscript.sh 

Then, while in terminal, enter this command:

ln -s /etc/init.d/yourscript.sh /etc/rc2.d/S99yourscript.sh 

Now, your mouse pointer will appear at every boot and the problem of the invisible mouse pointer should be gone.

References:

https://askubuntu.com/a/290107

https://askubuntu.com/a/629965/462410

0

I had the same issue after upgrading to 16.04. I tried to install gdm as suggested by @user417467 but this didn't solve the problem so I reverted back to lightdm. I found that after logging back I can make the pointer reappear simply by pressing crtl+F7.

Abdd
  • 75
0

Setup: Ubuntu 14.04 with default installation. I have automatic login enabled as well.

For me, I simply log off and log in again. At the login screen the mouse cursor returns and remains till next restart. Works every time for over 50 times now.

0

Same problem upgrading Lubuntu 14.04 to Lubuntu 16.04. Cursor disappear after resume. Ctr-Alt-F1 , Ctr-Alt-F7 solve the issue.

0

I solved it by plugging an unused wireless mouse dongle in to keep the driver happy.

0

Well, On Ubuntustudio 16.04, I found out that if I get the mouse to hover the button for the app menu, and start to browse, it comes right back no problem!!

0

I had the same issue on XUbuntu 15.10.

The only working way I found to get back the cursor is:

  1. Ctrl+Shift+T (open the terminal)
  2. sudo apt-get install gnome-screensaver
  3. Ctrl+Shift+L (lock screen)
  4. got the cursor back...
Paolo
  • 1,798
0

I came here from google because I have been experiencing the same problem in ubuntu 16.04 . The last several times it has happened, i was reliably able to get the mouse back by simply opening a terminal using ctrl + alt + t .

better than having to reboot every time.

r3wt
  • 101
  • 6
0

The top few answers did not work for me, however I managed to solve my problem by unplugging and re-plugging my USB mouse.

Imran
  • 374
-1

I had to create a file called:

20-intel.conf // I'm using intel graphics

place the file on:

/etc/X11/xorg.conf.d/

Using these lines:

Section "Device"
        Identifier  "card0"
        Driver      "intel"
        Option      "Backlight"  "intel_backlight"
        Option      "AccelMethod" "uxa"
        Option      "SWCursor" "on"
        BusID       "PCI:0:2:0"
EndSection
Adrian
  • 1