You are not logged in.
I use the sxhkdrc file to establish keybindings. I have brightnessctl installed.
In my sxhkdrc i have the following commands
XF86MonBrightnessDown
brightnessctl set 10%-
XF86MonBrightnessUp
brightnessctl set 10%+
The increase works but the decrease does not. can someone tell me why?
Last edited by techforay (2023-08-02 22:12:46)
Offline
What model ThinkPad do you have? There are many ThinkPad models listed in the Arch Wiki, if you find your model it may have clues about this.
Off the top of my head, though, most times the postive ('+') and negative ('-') modifiers typically come before, not after the percentage. I.e.:
brightnessctl set +10%
brightnessctl set -10%But then again I'm not sure about sxhkdrc, and I'm not sure if brightnessctl works with your model ThinkPad (since you didn't specify it).
Offline
Can you manually set the brightness in '/sys/class/backlight'?
And take a look at https://wiki.archlinux.org/title/Backlight
Else, use xorg-xev or web to check if the key works.
Last edited by jl2 (2023-08-05 07:58:23)
Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...
Offline
Off the top of my head, though, most times the postive ('+') and negative ('-') modifiers typically come before, not after the percentage. I.e.:
brightnessctl -h specifies that decrement should come after (10%-) and increment before (+10%)
Valid values:
percentage delta Example: 50%- or +10%However, by experimentation, it's actually more permissive than that since increment (+) works either before or after and only decrement before (-20%) throws an error.
Offline
brightnessctl -h specifies that decrement should come after (10%-) and increment before (+10%)
Valid values: percentage delta Example: 50%- or +10%
That actually makes sense, whatever options library they're using isn't configured to accept -10%, because either the developer was lazy or doesn't know how to treat that as a valid parameter value (it thinks it's an option flag). It may work if you put -- -10% as the last item of the command, but not really sure.
You still haven't said what model ThinkPad you have, there are likely clues to this on the particluar model page on the Wiki.
Offline