Unbound brightness up and down keys

You have a problem with Slackel? Post here and we'll do what we can to help.
dadim
Posts: 22
Joined: 06 Dec 2021 08:31

Unbound brightness up and down keys

Post by dadim »

My hp netbook (with amdgpu) has marked f3/f4 keys as related to brightness down & up respectively. I have managed to trim the brightness with either xbacklight commad, or the powerkit slider. However, even when I enable XF86MonBrightnessUp/Down keys via obkey, I can't find the actual keys bound. fn+f11 is volume max and fn+f3/f4 seem to be unbound. The acpi_listen command displays nothing to these key combinations, as well as the xev command.

The xev output to the single pressing of f3/f4 (without the combined fn), is the following:

Code: Select all

KeyRelease event, serial 28, synthetic NO, window 0x2800001,
    root 0x6a7, subw 0x2800002, time 5225626, (42,23), root:(59,309),
    state 0x0, keycode 70 (keysym 0xffc1, F4), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x2800001,
    root 0x6a7, subw 0x2800002, time 5229395, (42,23), root:(59,309),
    state 0x0, keycode 69 (keysym 0xffc0, F3), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False
I would be grateful for any suggestions.
dadim
Posts: 22
Joined: 06 Dec 2021 08:31

Re: Unbound brightness up and down keys

Post by dadim »

Thanks, I've already seen that and helped my to install acpilight. My current problem is no more the powerkit brightness slider, or the xbacklight command. It is that the up/down keys seem to relate to no actual key combinations from the keyboard. I don't know if it actually a BIOS problem, I'll try to find it out.
djemos
Site Admin
Posts: 696
Joined: 15 Apr 2016 06:03

Re: Unbound brightness up and down keys

Post by djemos »

The arrows (up, down, right,left) keys has no action here also in lenovo g510 intel i3.
Papasot
Posts: 233
Joined: 13 May 2016 22:32
Location: Patras, Greece

Re: Unbound brightness up and down keys

Post by Papasot »

HP laptops used to bind all function keys to multimedia, brightness, etc by default (and they probably still do so). This caused all shorts of problems. There should a BIOS setting to turn this off and make function keys behave normally, with multimedia functions bound to Fn+F<number> instead of F<number>. But I guess you tried that already; I mention it just in case.
dadim
Posts: 22
Joined: 06 Dec 2021 08:31

Re: Unbound brightness up and down keys

Post by dadim »

djemos wrote:The arrows (up, down, right,left) keys has no action here also in lenovo g510 intel i3.
Actually I was not talking about the up/down keys but about the XF86MonBrightnessUp and XF86MonBrightnessDown keys, but I was too lazy to write the full name. :roll: Concerning the BIOS settings, they're very primitive and I didn't find anything related there...
djemos
Site Admin
Posts: 696
Joined: 15 Apr 2016 06:03

Re: Unbound brightness up and down keys

Post by djemos »

dadim wrote:
djemos wrote:The arrows (up, down, right,left) keys has no action here also in lenovo g510 intel i3.
Actually I was not talking about the up/down keys but about the XF86MonBrightnessUp and XF86MonBrightnessDown keys, but I was too lazy to write the full name. :roll: Concerning the BIOS settings, they're very primitive and I didn't find anything related there...
Did you remove xbacklight first?
After installing the acpilight package
did you run this ?

Code: Select all

sudo cp /etc/udev/rules.d/90-backlight.rules.new /etc/udev/rules.d/90-backlight.rules
Then reboot.
After login typing xbacklight -50 in the lxterminal is there any respond in brightness ?

Also did you touch the obkey utility?
there the settings are for XF86MonBrightnessDown command xbacklight -10 , enabled: checked, Actions Execute
for XF86MonBrightnessUp command xbacklight +10 , enabled: checked, Actions Execute
dadim
Posts: 22
Joined: 06 Dec 2021 08:31

Re: Unbound brightness up and down keys

Post by dadim »

Apart from removing the xbacklight package, I had already done these, following your advice in the previous post. Both the xbacklight command and the PowerKit brightness slider are effective. The only problem is that the XF86MonBrightness[Down|Up] keys although they're enabled in obkey seem to be unbounded from the actual keyboard combinations. I've provided some details in my first post above.

Today I removed the xbacklight package as well and rebooted. Nothing changed. My kernel version is 5.15.8 (x86_64). I don't know if it has something to do with the problem.
djemos
Site Admin
Posts: 696
Joined: 15 Apr 2016 06:03

Re: Unbound brightness up and down keys

Post by djemos »

copy /usr/share/X11/xorg.conf.d/10-amdgpu.conf to /etc/X11/xorg.conf.d/ and then rebooted
I have read that a kernel upgrade may fix the problem.
what is the output of
inxi -G
and
neofetch

what is exactly your HP model laptop ?
dadim
Posts: 22
Joined: 06 Dec 2021 08:31

Re: Unbound brightness up and down keys

Post by dadim »

I copied it, no changes.

Code: Select all

damian[~]$ inxi -G
Graphics:
  Device-1: AMD RS880M [Mobility Radeon HD 4225/4250] driver: radeon
    v: kernel
  Device-2: Quanta HP Webcam-50 type: USB driver: uvcvideo
  Display: server: X.Org v: 1.20.14 driver: X: loaded: radeon
    unloaded: modesetting,vesa gpu: radeon resolution: 1366x768~60Hz
  OpenGL: renderer: AMD RS880 (DRM 2.50.0 / 5.15.8 LLVM 13.0.1)
    v: 3.3 Mesa 21.3.8

Code: Select all

damian[~]$ neofetch
        #####           damian@cherubino.local 
       #######          ---------------------- 
       ##O#O##          OS: Slackel Linux 5.15.8 x86_64 
       #######          Host: Hewlett-Packard 148B 
     ###########        Kernel: 5.15.8 
    #############       Uptime: 7 mins 
   ###############      Packages: 882 (pkgtool) 
   ################     Shell: bash 5.1.16 
  #################     Resolution: 1366x768 
#####################   WM: Openbox 
#####################   WM Theme: Clearlooks-Olive 
  #################     Theme: Adwaita [GTK2/3] 
                        Icons: matefaenza [GTK2/3] 
                        Terminal: lxterminal 
                        Terminal Font: Terminus 12 
                        CPU: AMD Athlon II Neo K125 (1) @ 1.700GHz 
                        GPU: AMD ATI Mobility Radeon HD 4225/4250 
                        Memory: 832MiB / 1716MiB                                        
The model is hp pavilion dm1-1200sv
Post Reply