You are not logged in.
Hi,
I'm on a ThinkPad T490 and trying to control monitor brightness using brightnessctl (I would actually like to do this using xbacklight but when I try the command `xbacklit -set 50` I get the error "No outputs have backlit property", hence I installed brightnessctl). I can adjust brightness from console using commands like `brightnessctl s +100`. However, when I try to use the F5 and F6 keys to adjust brightness, they are not working.
I have already created a .xbindkeysrc file in my home directory with
```
"brightnessctl s +100"
XF86MonBrightnessUp
"brightnessctl s 100-"
XF86MonBrightnessDown
```
When I check the key codes in .Xmodmap, I see the following:
```
keycode 232 = XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown
keycode 233 = XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp
```
When I check the scan codes with `showkey --scancodes` I see the message
```
kb model was ?UNKNOWN?
[if you are trying this under X, it might now work
since the X server is also reading /dev/console]
```
Then when I press the brightness down btn (without FnLock), I see the codes)
0xe0 0x4c 0xe0 0xcc
And with brightness up btn:
0xe0 0x54 0xe0 0xd4
Last edited by kovac (2021-04-04 11:16:58)
Offline
[if you are trying this under X, it might now work
since the X server is also reading /dev/console]
Do the keys produce output on
xev -event keyboardAlso, sanity check: you are running the xbindkeys daemon and restarted it after the adjustment and did not just create some random file that won't do anything by itself?
Offline
Thanks for your suggestion. It turned out that I hadn't installed the drivers. It's sorted now.
Offline