Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940911 - sys-apps/systemd requesting custom udev rule for joysticks
Summary: sys-apps/systemd requesting custom udev rule for joysticks
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-05 17:26 UTC by damage
Modified: 2024-10-06 20:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description damage 2024-10-05 17:26:11 UTC
Hi,
due to an udev patch [1] some joysticks don't get recognized as joysticks anymore (e.g. Saitek PLC Pro Flight Rudder Pedals) as they don't match udevs minimum "requirements" for joysticks. This results in a not "out-of-the-box"-usable joystick as an additional permission of the joystick dev (e.g. /dev/input/js0) is not getting set and thus the user is unable to use the device.

To workaround this issue, I added following udev rule in "/etc/udev/rules.d/70-joysticks.rules" which sets ID_INPUT_JOYSTICK to 1 and thus udev is handling this device as joystick again:

KERNEL=="*", ATTRS{idVendor}=="06a3", ATTRS{idProduct}=="0763", ENV{ID_INPUT_JOYSTICK}="1"

As this can only be done for every single product which is misinterpreted as keyboard instead joystick, I suggest to put an additional udev rule in the udev package. Content of this rule would be the line above and additional lines like the one above for other products.

Where does this file needs to go? Should it go into /etc/udev/rules.d or should the udev package install a custom udev rule into another place like /usr/lib/udev/rules.d/?

Thanks and regards
Daniel

[1] https://github.com/systemd/systemd/commit/bc85f8b51d962597360e982811e674c126850f56
Comment 1 damage 2024-10-05 17:43:52 UTC
opened upstream issue https://github.com/systemd/systemd/issues/34642
Comment 2 Mike Gilbert gentoo-dev 2024-10-06 20:44:00 UTC
I don't think it makes sense for us to ship custom udev rules for this. Please address the issue upstream.