Description
I am using sway compiled from git master on Debian and I noticed that my Fn+Brightness keys were not reporting any events when Sway is started by LightDM (via a custom desktop file in /usr/share/wayland-sessions/ ). Everything works fine when I manually start Sway from a VT.
I eventually figured out that Sway started via LigthDM is only showing 5 of the 8 input devices that my laptop is normally providing. However, those missing input devices exist in the system and can be tested using evtest or libinput. I also noticed that the missing input devices (and the brightness key events) become visible after switching back and forth to another VT.
The issue is not limited to Sway. I also tested Weston. It does not provide a list of its input devices but I noticed that weston-eventdemo is not reporting any event for the Fn+Brightness keys until I switch VT manually.
So I suspect a race condition between LightDM and the Wayland compositor using libinput (because of ibus? systemd? VT switch?).
For me, a temporary workaround was to add a sleep 1
command before starting sway.
System information:
- debian buster
- ligthdm 1.26.0-3
- weston 5.0.0-1
- libinput 1.12.6-1
- sway version 1.0-rc1-145-g19df2e59 (Mar 6 2019, branch 'master')
Activity