Ubuntu 18.04 keyboard and mouse not working at login screen
this is now i solved my issue.
- reached the root shell and logged in by pressing
shift
key then selectingadvanced
option. - pressed
ctrl + alt + f2/f3/f4/f5
.it asked for login details but nothing worked. gave me this error:ERROR : ****** incorrect details. pam_nologin(8)
ctrl + d
to closeroot
shell and then clickclean
thendpkg
thennetwork
and back toroot
. this time it workedctrl + alt + f3
.- asked for login details and this time it did not give me this error:
ERROR : pam_nologin(8)
kind of error. i was able to login to user terminal. - as i had purged my nvidia drivers. i did these things :
6.
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
#this installed nvidia-418
for me on its own.
sudo apt-get update --fix-missing
sudo apt-get install xserver-xorg-input-all
sudo apt-get update && sudo apt-get upgrade -y
sudo shutdown -r now
this is to shutdown and restart.
IT WORKED. i was able to login to my system and then still the keyboard and mouse was working and i checked the graphics card info. it was the latest driver. dont know what had happened before. but this small weird error took my three days and good two nights.
maybe it is just because of Xserver module lost,I fix it by this: Ctrl + Alt + F1 into the tty mode and
sudo apt install xserver-xorg-input-all