Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: lich on 11 June 2020, 10:47:36

Title: Unable to access input devices in Xorg - eudev [issue?]
Post by: lich on 11 June 2020, 10:47:36
I have installed Artix with runit (also tried openrc, the issue is still there) and I am unable to access devices that were plugged (i.e. keyboard, mouse) in on boot in Xorg. They work fine if the USB device is reconnected after boot, but in case of inbuilt laptop keyboard such is impossible. Interestingly, the trackpoint sometimes works fine. If the device is plugged in after boot, no matter whether in framebuffer or X, it then works fine and is register in Xorg.0.log. I tried to search logs, dmesg for any proof of anything that could be wrong, and except of lack of registering this laptop keyboard (which is a constant (/dev/input/event3)) it seems there are no errors. I only use startx for starting X or startxfce4 where I want xfce.

Here is the quick list of things, I've tried (to no effect):
Title: Re: Unable to access input devices in Xorg - eudev (?)
Post by: lich on 11 June 2020, 13:24:11
Running
Code: [Select]
udevadm test /dev/input/*
seems to solve the issue. It seems init scripts here skip
Code: [Select]
udevadm trigger
and, thus, are unable to notice 'coldplugged' devices.
Title: Re: Unable to access input devices in Xorg - eudev [issue?]
Post by: alium on 11 June 2020, 15:00:48
which drivers have you installed?
Code: [Select]
pacman -Qs xf86
Title: Re: Unable to access input devices in Xorg - eudev [issue?]
Post by: Dudemanguy on 11 June 2020, 15:27:21
This is weird. runit does run udevadm trigger on startup. It's part of runit-rc (https://gitea.artixlinux.org/artix/runit-rc/src/branch/master/sv.d/udev-trigger.in).
Title: Re: Unable to access input devices in Xorg - eudev [issue?]
Post by: lich on 11 June 2020, 16:02:51
which drivers have you installed?
Code: [Select]
pacman -Qs xf86
I have installed them all (after noticing the issues), but currently use evdev, but the results were exactly the same with libinput and in Wayland. I have installed them all just to make sure that nothing is missing
This is weird. runit does run udevadm trigger on startup. It's part of runit-rc (https://gitea.artixlinux.org/artix/runit-rc/src/branch/master/sv.d/udev-trigger.in).
Huh, is there any log for runit I could supply so we could gather better information? If it matters I'll also state it is a LUKS/LVM setup, but I dont know whether this related. I have attached the output of
Code: [Select]
find /etc/runit
.
Title: Re: Unable to access input devices in Xorg - eudev [issue?]
Post by: phoenix_king_rus on 11 June 2020, 17:40:40
Maybe you should define input class in /etc/X11/xorg.conf.d. See xf86-input-evdev sources for sample config
Title: Re: Unable to access input devices in Xorg - eudev [issue?]
Post by: lich on 11 June 2020, 17:47:49
Maybe you should define input class in /etc/X11/xorg.conf.d. See xf86-input-evdev sources for sample config
Also tried this with inclusion of libinput and evdev. Both did not change the issue, it seems it is fully eudev related. It is also not dependent on runit as it also existed for me on OpenRC
Title: Re: Unable to access input devices in Xorg - eudev [issue?]
Post by: lich on 11 June 2020, 23:28:49
Adding
Code: [Select]
udevadm trigger
to the runit service fixes the issue. Shouldn't we then run this command on boot, as there are setups in which it causes issues? I am aware it is redundant, but It is not a heavy command by any means and solves this very annoying and difficult to research issue.