New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to add device/event to watch list of systemd-logind #32590
Comments
hmm, this is a joystick? we generally only watch for keyboards that have a poweroff/suspend/… key. Does your device even have that? |
No the device does not have those keys. I was following rule you mentioned in one of your post. Also would like to know what is ListenSpecial as per your comment?
|
hmm, so why do you care about the power-switch then? i don't follow? What are you trying to do? |
I want to make the host pc wake up from sleep using a button on the controller. I am in talk with the vendor of the controller to see if they can add POWER_KEY on long press for 5s of the home button on the controller. That is the reason I asked if we can get Power_key mapped to the firmware of the controller then will that be enough to get this added to the watch list where we can wake up the host from sleep, or does it need Power_key and Suspend both ? Without this approach the wake up method would be to use usb wakeup where it detected device activity and wakes up the host but it is not very smooth and not very precise. Example Video here |
systemd version the issue has been seen with
255.4-1
Used distribution
Manjaro Linux
Linux kernel version used
6.8.5-1-MANJARO
CPU architectures issue was seen on
x86_64
Component
systemd-logind
Expected behaviour you didn't see
Watching system buttons on /dev/input/event16 8BitDo 8BitDo Ultimate wireless Controller for PC
Unexpected behaviour you saw
This device and event does not get added to the watch list.
I have added the required ENV and TAG to the device which can be seen in the udev log below.
Steps to reproduce the problem
Added
ENV{ID_INPUT_KEY}=="1", TAG+="power-switch"
to the device Product and Vendor ID.Additional program output to the terminal or log subsystem illustrating the issue
The text was updated successfully, but these errors were encountered: