Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fresh install: Xorg missing usb hotplug
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lormaccone
n00b
n00b


Joined: 22 May 2020
Posts: 3

PostPosted: Fri May 22, 2020 8:25 pm    Post subject: Fresh install: Xorg missing usb hotplug Reply with quote

Fresh install, usb mouse and keyboard work when xorg is started, but if I disconnect and reconnect the keyboard or mouse in Xorg, they do not resume. Also, if I connect it AFTER Xorg starts, they don't work. (They work fine in the console even after disconnecting/reconnecting).

I used startx to make sure that only Xorg is running (no gnome or anything else).

xinput shows the usb mouse if it is plugged in when X is started and it doesn't show it if it is plugged in AFTER Xorg started.

udevadm monitor shows the mouse being correctly plugged and unplugged (i.e. udev works).

Xorg.0.log does NOT say "config/udev: removing device PIXART USB OPTICAL MOUSE" when I unplug the mouse (this is what SHOULD happen, and it happened in my old setup. It doesn't happen in this new install).

Under Xorg if I disable and enable it manually (after unplugging it and replugging it), it still doesn't work (the cursor doesn't move), but xinput shows events happening.

Both evdev and libinput have the EXACT same behaviour.

Somehow the Xorg drivers (both evdev and libinput) do not see the udev disconnect event or a connect event AFTER Xorg has already started.

I tried kernels 5.4.38, 4.1.15, 5.6.13 and xorg-server 1.20.8 and 1.20.7. No changes across versions.

I don't understand what I'm doing wrong. Thanks!
Lorenzo
Back to top
View user's profile Send private message
untitled-software
n00b
n00b


Joined: 23 May 2020
Posts: 2

PostPosted: Sat May 23, 2020 3:57 pm    Post subject: Reply with quote

Is the user in the input group?
Back to top
View user's profile Send private message
lormaccone
n00b
n00b


Joined: 22 May 2020
Posts: 3

PostPosted: Sat May 23, 2020 5:24 pm    Post subject: Reply with quote

Good try, but unfortunately, yes, the user is already in the "input" group, but that doesn't help.
Back to top
View user's profile Send private message
lormaccone
n00b
n00b


Joined: 22 May 2020
Posts: 3

PostPosted: Sun May 24, 2020 12:45 pm    Post subject: Reply with quote

SOLVED!

I reinstalled eudev and it told me that a few kernel options were missing:

* Messages for package sys-fs/eudev-3.2.9:

* CONFIG_BLK_DEV_BSG: is not set when it should be.
* CONFIG_FHANDLE: is not set when it should be.

Recompiled the kernel, now hotplug works.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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