Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Keyboard and mouse no longer working in Xserver after update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
bboudreaux28
n00b
n00b


Joined: 11 Jan 2021
Posts: 3

PostPosted: Mon Jan 11, 2021 4:27 am    Post subject: Keyboard and mouse no longer working in Xserver after update Reply with quote

Hi all,

I'm having a problem, hopefully you can help.

Earlier today, I did an emerge --update --deep --newuse @world, and after I rebooted my pc my mouse and keyboard no longer are working in the Xserver. I can't even switch ttys; the only way I can exit is by pressing the power button on my computer and rebooting. However my keyboard and mouse work just fine in the tty before I start the xserver. I'm quite sure it's just an input device issue and not a freeze because the time on my status bar still changes like it's supposed to. The numlock key on my keyboard and light on my mouse light up as well, so the USB devices are at least being supplied power.

One of the packages re-emerged (there were 40 total) during the update was dev-libs/libinput, so I suspect it has something to do with that, but I'm not entirely sure. I tried quite a few things to fix it:

-The INPUT_DEVICES in my make.conf was set to "synaptics libinput", so I tried switching it to "evdev" and doing a depclean (to get rid of any other input drivers that might cause confusion), but that didn't help. I also tried switching it to just "libinput" as I realized I didn't really need synaptics, but that didn't help either.

-There happened to be a linux kernel update that I pulled in the update, so I went ahead and installed that, thinking it may help (a long shot I know) but it didn't.

-I also tried re-emerging Xorg, thinking it needed to incorporate some new dependencies or something, but obviously that didn't help.

Here's my Xorg.0.log:

https://pastebin.com/W83QBXH6

I would suppose it has to do with the line

Quote:

[ 28196.347] (EE) event9 - Unicomp Inc Unicomp 10x Kbrd R7_2_w_PS_R7_38: client bug: event processing lagging behind by 27ms, your system is too slow


But there's no real indication on how I would go about fixing this unfortunately. Also, there may be some errors about fbdev in there. You probably shouldn't pay attention to those. I tried rebooting with "nomodeset" in my boot config out of desperation, but it just crashed trying to start my Xserver.

I'm new to gentoo (I've been using it for about a month or so) and fairly new to linux in general (about 6-7 months), so my apologies if I did something silly. Let me know if there's any more logs you may need. I'm on the verge of just reinstalling gentoo, so any help is greatly appreciated.
_________________
Blake
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Mon Jan 11, 2021 4:48 am    Post subject: Reply with quote

Welcome to Gentoo, bboudreaux28

Please use the magic of
Code:
emerge @x11-module-rebuild
This is a special set to rebuild all present Xorg drivers in your system. You are supposed to do it after Xorg upgrade.
Back to top
View user's profile Send private message
bboudreaux28
n00b
n00b


Joined: 11 Jan 2021
Posts: 3

PostPosted: Mon Jan 11, 2021 5:08 am    Post subject: Reply with quote

Thanks!

I followed your advice and ran

Quote:

emerge @x11-module-rebuild


However it didn't seem to help. I wouldnt be surprised if that was originally the issue, but I may have broke something trying to "fix" it before. Do you have any ideas on how I can repair this?
_________________
Blake
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2671

PostPosted: Mon Jan 11, 2021 7:12 am    Post subject: Reply with quote

The precision approach would be to rebuild the affected package and dive into some logs and such. This would probably be emerge -1av x11-drivers/xf86-input-evdev with the -1 being short for --oneshot so you don't pollute the world file. @x11-module-rebuild should have done that already.

The sledge hammer of "I just need this to work NOW" is to do an empty tree. emerge -e xorg-server That will rebuild everything xorg depends on at all. That includes gcc. This takes time. A lot of time. You also will not learn what broke. Obviously this is not the preferred solution and might not work at all.

Also, for your testing purposes I recommend you use the learn the kill command. Off the top of my head if you run startx &; sleep 60; killall X it should start x and kill it after 60 seconds so you don't have to use the power button. The nox option on boot is good and usually respected.

I think based on the information provided that this might be a configuration. Have you been good about documenting use flags in make.conf and package.use? Did you possibly ever do a USE="foo" emerge bar? Or have you been using portage's auto unmask feature that modifies your package.<stuff> files? I would check to makes sure they are sane.

And call me paranoid, but is your new kernel enabling CONFIG_INPUT_EVDEV? Realistically you should never switch kernels when you have a problem and always keep a known working kernel around as a rescue.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
bboudreaux28
n00b
n00b


Joined: 11 Jan 2021
Posts: 3

PostPosted: Sun Jan 17, 2021 1:08 am    Post subject: Reply with quote

I feel I should give a brief update:

Thanks for taking the time to help me out. I've tried the aformentioned solutions, but none of them worked (not even the nuclear bomb option). I ended up reinstalling gentoo; fortunately my home directory is on a separate partition and my computer fairly fast so this isn't as bad as it seems. This fixed the problem. I won't marked this as "solved" since I didn't really figure out what was wrong.

Thanks again for all your help
_________________
Blake
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 48180
Location: 56N 3W

PostPosted: Sun Jan 17, 2021 10:13 am    Post subject: Reply with quote

bboudreaux28,

Code:
[ 30244.036] (II) Server terminated successfully (0). Closing log file.

There is nothing wrong with Xorg. It did its thing and exited cleanly.
That points the finger at your Window Manager or Desktop Environment.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum