I would use the sxhkdrc file to bind that to some key combo then. It’s possible that the F2 I had you use before wasn’t correct. I’m not on a bspwm machine at the moment to check. Try something like:
alt + shift + b
xbacklight -dec 5
To test that the keybinding works and then we can work to update the alt + shift + b part to use the F2/F3 key like you really want.
Not sure if at this point I’m digging up an old thread or taking forever to respond, but…
If you can get that key combo to do something else (open your normal terminal, for example) and the xbacklight -dec 5 command in the terminal does the backlight change you want it to, then we know the keybinding works and the command works, so I have no idea why they wouldn’t work when put together.
for what it worth…
on an HP laptop, i had to force a power reset: https://support.hp.com/ph-en/document/c01684768
i.e. computer off, remove all cables, press and hold power button for 15 seconds. Turn the computer on and reconnect the cables. The brightness buttons then were working.
Before that, the brightness buttons (specials keys F3 F4 + Fn) were both returning the same keycode as mute (Fn+F8)
Of course before stepping on that I tried all the acpi_backlight= possible and couldn’t remap those exact keys as theirs keycodes were all the sames
Might worth a try… (each time i booted in Zindozs, i had to repeat the forced reset…)
Edit: as you could guess it was dual booting w/ windows
Have you tried binding it to a different key combo? If you can get it to work on another key combo, then we know the issue is the naming of the key you are using.
have you tried brightnessctl package?
you can read the manual here
just a quick example
brightnessctl set +10
brightnessctl set 10-
edit (explanation added): for some reasons i had your problem and the only workaround for me was brightnessctl, i tried other methods light xbacklight etc but didn’t with binding idk why
marko@marko-hpenvyx360convertible13ar0xxx ~]$ brightnessctl set 10-
Updated device 'amdgpu_bl0':
Device 'amdgpu_bl0' of class 'backlight':
Current brightness: 235 (92%)
Max brightness: 255