#(Solved) brightness controls not working on mint 22.3/Cinnamon
61 messages · Page 1 of 1 (latest)
for more context, the brightness slider in the battery/power applet works but the brightness controls in my laptop F2 and F3 keys (lower/increase brightness respectively) doesnt work
I'm guessing other Fn combinations work, like volume?
And the brightness slider actually changes the brightness properly?
yep
Let's see the system info. In the terminal type
inxi -SMGxxx
show the results
here it is
And you're sure F2 and F3 keys work by themselves?
yep
In the terminal run
xev | grep keycode
then press Fn+F2 and Fn+F3 once, then close the white wondow that appeared after the command and show the output.
nesper8@mint:~$ xev | grep keycode
state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
when not using the fnkey
nesper8@mint:~$ xev | grep keycode
state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
state 0x10, keycode 68 (keysym 0xffbf, F2), same_screen YES,
state 0x10, keycode 68 (keysym 0xffbf, F2), same_screen YES,
state 0x10, keycode 69 (keysym 0xffc0, F3), same_screen YES,
state 0x10, keycode 69 (keysym 0xffc0, F3), same_screen YES,
And when using combination for volume?
nesper8@mint:~$ xev | grep keycode
state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
pressed mute, volume down, vulume up twice respectively
but those do change volume
And the output from these keys?
xev output without grep for the volume keys
ocusOut event, serial 37, synthetic NO, window 0x5800001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x5800001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusOut event, serial 37, synthetic NO, window 0x5800001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x5800001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 100 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusOut event, serial 37, synthetic NO, window 0x5800001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x5800001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ClientMessage event, serial 37, synthetic YES, window 0x5800001,
message_type 0x156 (WM_PROTOCOLS), format 32, message 0x154 (WM_DELETE_WINDOW)
the brightness keys dont register at all in xev
while F2 and F3 does without holding the Fn Key
What's the key combo for volume? Fn+F5 / F6 ?
Let's try
sudo evtest
from the list, select your keyboard, then press Fn+f2 / f3, see if there is any (new) output when you press them. Press ctrl+c to exit the command.
1 sec
have to install it first
Event: time 1774445043.798316, type 4 (EV_MSC), code 4 (MSC_SCAN), value ab
Event: time 1774445043.798316, -------------- SYN_REPORT ------------
Event: time 1774445043.807799, type 4 (EV_MSC), code 4 (MSC_SCAN), value ab
Event: time 1774445043.807799, -------------- SYN_REPORT ------------
Event: time 1774445044.416839, type 4 (EV_MSC), code 4 (MSC_SCAN), value ab
Event: time 1774445044.416839, -------------- SYN_REPORT ------------
Event: time 1774445044.426060, type 4 (EV_MSC), code 4 (MSC_SCAN), value ab
Event: time 1774445044.426060, -------------- SYN_REPORT ------------
this is for fn+f2 / f3 ?
yep
ok.. does
lsmod | grep hp_wmi
show anything?
nesper8@mint:~$ lsmod | grep hp_wmi
hp_wmi 36864 0
sparse_keymap 12288 1 hp_wmi
platform_profile 20480 1 hp_wmi
wmi 28672 3 hp_wmi,video,wmi_bmof
Does it say "value ab" for both fn+f2 and fn+f3? What about fn+f5?
Properties:
Testing ... (interrupt to exit)
Event: time 1774445500.399965, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1c
Event: time 1774445500.399965, type 1 (EV_KEY), code 28 (KEY_ENTER), value 0
Event: time 1774445500.399965, -------------- SYN_REPORT ------------
Event: time 1774445504.347731, type 4 (EV_MSC), code 4 (MSC_SCAN), value ab
Event: time 1774445504.347731, -------------- SYN_REPORT ------------
Event: time 1774445504.357254, type 4 (EV_MSC), code 4 (MSC_SCAN), value ab
Event: time 1774445504.357254, -------------- SYN_REPORT ------------
Event: time 1774445505.088409, type 4 (EV_MSC), code 4 (MSC_SCAN), value ab
Event: time 1774445505.088409, -------------- SYN_REPORT ------------
Event: time 1774445505.099060, type 4 (EV_MSC), code 4 (MSC_SCAN), value ab
Event: time 1774445505.099060, -------------- SYN_REPORT ------------
Event: time 1774445510.760652, type 4 (EV_MSC), code 4 (MSC_SCAN), value a0
Event: time 1774445510.760652, type 1 (EV_KEY), code 113 (KEY_MUTE), value 1
Event: time 1774445510.760652, -------------- SYN_REPORT ------------
Event: time 1774445510.770528, type 4 (EV_MSC), code 4 (MSC_SCAN), value a0
Event: time 1774445510.770528, type 1 (EV_KEY), code 113 (KEY_MUTE), value 0
Event: time 1774445510.770528, -------------- SYN_REPORT ------------
first 2 for Fn+F2, then for Fn+F3 and final 2 for Fn+F6
Fn+F5 is blank
What's on fn+f5?
Oh, i thought it was volume related, my bad
So the problem is that Fn+f2 and fn+f3 send the same code, so the system is confused what to do with it. Looking for workarounds
Ok, let's test a few things.
sudo brightnessctl set 20%-
sudo brightnessctl set +20%
should change brightness, yes?
Yep I tried it before opening the issue
Both works
I'm planning to bind different key combos to brightness as a workaround, is this acceptable?
It's a little bit pita cuz I've been using this button combo since 2016 on my first laptop which was also an hp
Alright..... do you know how to set kernel parameters?
Yes
Ok, let's try a few (one at a time) see if they change anything.
acpi_backlight=vendor
acpi_backlight=native
acpi_backlight=video
Ok, both keys work?
Yes
Cool. Have a nice day then.
Thank you so much again mate
(Solved) brightness controls not working on mint 22.3/Cinnamon
@fluid citrus sorry for pinging but it stopped working after a reboot
brightness controls not working on mint 22.3/Cinnamon
What does
cat /proc/cmdline
say right now?