You are not logged in.

#1 2024-02-12 15:35:49

petit_pain
Member
Registered: 2023-12-21
Posts: 1

Changing brightness with Fn keys

Hello everyone,

I'm trying to setup the Fn keys on my thinkpad T470 with ACPI, everything works well except for the brightness keys.

For example, this is the part of my /etc/acpi/handler.sh that handles my volume down key:

button/volumedown)
    case "$2" in
        VOLDN) echo amixer set Master 5- ;;
	 *)    logger "ACPI action undefined: $2" ;;
    esac
    ;;

it works perfectly, but the part used for my brightness down key doesn't do anything:

video/brightnessdown)
    case "$2" in
        BRTDN) echo xbacklight -dec 5 ;;
	 *)    logger "ACPI action undefined: $2" ;;
    esac
    ;;

does anyone knows why ?

Offline

#2 2024-02-12 16:17:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,231

Re: Changing brightness with Fn keys

Is that xbacklight from the xbacklight package or xbacklight from acpilight? If the former, replace it with the latter

Offline

#3 2024-02-12 16:30:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,034

Re: Changing brightness with Fn keys

Regardless of that you'll have to export the DISPLAY and possibly XAUTHORITY variables for X11 clients to work in this context.
If you've been using the xbacklight package and that works in your X11 session it also means you're likely using the xf86-video-intel
If that performs better w/ your IGP than the modesetting driver, make sure to install mesa-amber instead of mesa.

Offline

Board footer

Powered by FluxBB