How to modify /usr/libexec/weston-keyboard?

asked 2017-03-17 10:50:49 -0500

giovdellap gravatar image

updated 2017-03-20 06:55:39 -0500

Hi guys, I am a new Fedora user and i'm already loving it, everything works fine just after installation. I have just one problem: my keyboard LEDs don't start (Cooler Master Devastator 2). I used xset led 3, but i saw that it doesn't work on Wayland, so i found the file that i should modify to switch them on (weston-keyboard). Opening it with vi (with SU access of course) outputs lots of casual characters. How can i modify it? The file type is "application/x-sharedlib"

Edit: i tried to do this:

giovanni@localhost ~ $ xset q | grep LED auto repeat: on key click percent: 0 LED mask: 00000004 giovanni@localhost ~ $ xinput --list ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ xwayland-keyboard:13 id=8 [slave keyboard (3)] giovanni@localhost ~ $ xinput --list-props 8 Device 'xwayland-keyboard:13': Device Enabled (117): 1 Coordinate Transformation Matrix (119): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 giovanni@localhost ~ :( $ xinput get-button-map xwayland-keyboard:13 device has no buttons giovanni@localhost ~ $ xinput list xwayland-keyboard:13 xwayland-keyboard:13 id=8 [slave keyboard (3)] Reporting 1 classes: Class originated from: 8. Type: XIKeyClass Keycodes supported: 248

My assumption is that xset "sees" the led ON and the problem is with wayland. Am i right?

Edit 2: i found this file and i think is the right one. Can you give me an advice about it?

edit retag flag offensive close merge delete


That's a shared object (also known as dll on windows), a library file containing compiled binary code. You probably have to modify the source code for wayland-keyboard and recompile. If you know/found how to do it and it actually works it would be nice sending a patch upstream.

fcomida gravatar imagefcomida ( 2017-03-19 06:02:13 -0500 )edit