51

So I just updated to 16.10 (just got 16.04 a few weeks ago, still new to Linux). The keyboard still works when I need to enter my password to unencrypt the lvm drive, but stops working (along with the mouse) when I get to the login screen. Is this a known problem? How do I fix this? By the way this is installed on a lenovo think pad.

Thanks

Edit: got home and tried connecting a usb keyboard. Does not work (again only after reaching the login screen) . What on earth is going on?

Bowdens
  • 511

6 Answers6

81

I had the same issue today and found this bug report.

The problem seems to be, that during update process they forget to install/update the package xserver-xorg-input-all!

So these instructions worked for me on my thinkpad p51s notebook with a little modification:

  1. Press a Shift key during boot to get the GRUB menu.
  2. In GRUB, select Advanced Options, then the first kernel with the recovery mode.
  3. Select "Network" to get network access (needed for package installation)
  4. Select "Drop to root shell"
  5. Press Enter to confirm.
  6. On my system not needed because, the filesystem was mounted rw, but if needed then mount -o rw,remount /.
  7. Install the needed package: apt install xserver-xorg-input-all (and the message that they need to uninstall 16.04 packages!)
  8. Press Ctrl+D to leave the root shell.
  9. Select resume boot from the menu.
  10. Now I could only log into console.
  11. sudo reboot

After reboot my ThinkPad's mouse and keyboard and the external mouse and keyboard worked fine!

Eliah Kagan
  • 119,640
Arties
  • 910
25

I had the same problem. I fixed it using only my trackpad. I had to enable the onscreen keyboard from System Settings > Universal Access > Typing, then opened a terminal and ran sudo apt install xserver-xorg-input-all. After a restart, everything was fine. A little tedious but it's the simplest solution I've seen.

Eliah Kagan
  • 119,640
benjxg
  • 351
8

To fix this you can use the Live CD or as @Arties suggested using recovery mode to run apt-get to get the new files to fix your system.

--

sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
apt update
apt upgrade
apt full-upgrade -y
apt install -y ubuntu-desktop
apt install xserver-xorg-input-all

If you have trouble accessing your network after chroot, you probably use DHCP and can work around this by adding OpenDNS name servers to your /etc/resolv.conf after you use chroot:

nameserver 208.67.222.222
nameserver 208.67.220.220
Waqleh
  • 911
3

I went from 16.04 to 17.04. Instead of going through the recovery mode I went a different route. (For some reason, I cannot connect to the internet in recovery mode)

I have ssh enabled on my Ubuntu desktop so I just connected to it remotely and installed xserver-xorg-input-all package and rebooted. My mouse and keyboard are working again.

0

Here's a way that I managed, though it is a bit unorthodox. I had no keyboard function on my laptop, but did have use of the trackpad. I think I had fixed trackpad functionality previously. I tried the 11-step plan from @Arties above, but got stuck on step 7, possibly because of an internet connection problem. So, on my WIN10 machine I created a text file in Notepad++ with Unix line endings (Edit>EOL Conversion...) and typed:

sudo apt install xserver-xorg-input-all
<blank line with Unix line ending>
<my password>
<blank line with Unix line ending>
y
<blank line with Unix line ending>

I transferred this text file to the Ubuntu laptop via USB stick. Then using the trackpad I opened the text file, and used the right click button to copy and paste the various lines (and the subsequent blank lines to avoid using the ENTER button on the keyboard) into the terminal window at the appropriate times. Not sure if the Unix line endings (versus Windows line endings) were critical. Keyboard functionality was restored after one or two restarts. Hopefully this will help someone.

ptenax
  • 29
0

My issue was that after switching to Gnome3 (cinnamon?) on an Intel 64bit NUC running Ubuntu 16.04.3 LTS, the USB mouse would randomly stop working completely. Usually it would be in this state after the PC (NUC) had been idle and gone into lock mode; but a few times it also occurred while I was typing and mousing.

Simply unplugging and re-plugging the mouse always got it working again, instantly.

I followed the advice to kill fwupd, but found the issue still recurring - but also saw the daemon had restarted. So I "apt remove"d fwupd and killed it, and since then the issue has not recurred. There's no man page for fwupd, and I'm not sure how important a component it is, nor even whether it would be advisable to let it make firmware changes to a NUC.

Updated: I spoke to soon. The problem still occurs, so fwupd is probably not the culprit.

LukeJKendall
  • 201
  • 2
  • 7