8

I had Ubuntu 16.04 and suddenly I couldn't log in anymore. Each time I would try to log in, the screen went black and ask again for my password. I was stuck in a login loop. I updated to Ubuntu 18.04 and it fixed my problem, but now the mouse cursor is invisible. I can still click things, except I can't see the cursor.

I use Ubuntu with Parallels in my MacOs High Sierra.

tinlyx
  • 3,132
  • 6
  • 34
  • 53
Gustavo Anaya
  • 81
  • 1
  • 1
  • 3

3 Answers3

1

On my system it was due to a broken upgrade,

Open the terminal with crtl-alt-t and run sudo dpkg --configure -a let it run until it stops; and then update with sudo apt update && sudo apt upgrade and reboot (sudo reboot if you can't use the gui to do that).

My cursor was back again.

dpkg with the --configure -a flags set will tell dkpg to configure any packages that have been unpacked but not configured.

apt update checks available repositories for any available upgrades, and apt upgrade tells apt to upgrade any packages that need it.

Amanda
  • 9,051
  • 17
  • 53
  • 98
Bart
  • 11
  • 2
  • Care to elaborate what version upgrade, and why this command came to the rescue? – matanster Jun 24 '20 at 11:23
  • Added an explanation of what each command does. In general, we probably shouldn't encourage readers to run arbitrary sudo commands. I always try to expand on the function of each command, so that people don't get used to the idea that it's safe or reasonable to "just run this" without understanding it. – Amanda Feb 16 '21 at 17:20
1

This worked for me. I changed "intel" to "amd" because I'm running threadripper cpu. In my case I also had to run:

sudo mkdir /etc/X11/xorg.conf.d before creating the file.

  1. Create the file /etc/X11/xorg.conf.d/90-cursoron.conf

  2. Put in it the following content

#--makes mouse cursor re-appear
Section "Device"
    Identifier  "Device0"
    Driver      "intel"
    Option      "AccelMethod" "uxa"
    Option      "SWCursor"    "on"
EndSection
#--

The keyword is uxa accekeration method here. Logout-login

Manu Mathur
  • 1,000
  • 8
  • 15
jvans
  • 111
  • 2
  • This worked for me mid-2023 on Linux Mint 21.2 "victoria", except I used the "amd" driver to match my video card. – scott8035 Aug 05 '23 at 15:57
1

This worked for me (apparently default mode is "touchscreen mode"):

gsettings set org.gnome.settings-daemon.plugins.cursor active false
Swift
  • 111
  • 4
  • This works for me but my situation is a little different: the cursor disappears after I install a new desktop environment (still 16.04). – Henry Sep 28 '20 at 16:08
  • This also worked for me. I upgraded my Thinkpad X1 from 18.04 (mouse was fine) to 20.04 and my trackpad/mouse disappeared but the touchscreen was still working. I did have to restart to see this change however. – Amanda Feb 15 '21 at 02:06