[LightDM] How to adjust display brightness using keyboard keys?

Jonathan dev at puppeq.com
Wed Jul 31 15:07:57 PDT 2013


Hi Andre,

Yes. I forgot to mention I tried display-setup-script, session-setup-script, greeter-setup-script but maybe I'm doing something wrong :(

For instance, I tried this display-setup-script=/usr/bin/xbindkeys
Also, display-setup-script=/usr/bin/xbindkeys -f /home/test/.xbindkeysrc

-- Jonathan

----- Original Message -----
From: "Andre Klärner" <kandre at ak-online.be>
To: "Jonathan" <dev at puppeq.com>, lightdm at lists.freedesktop.org
Sent: Thursday, August 1, 2013 12:01:42 AM
Subject: Re: [LightDM] How to adjust display brightness using keyboard keys?

Hi Jonathan,

Did you try the display setup script in /etc/lightdm/lightdm.conf to start a daemon listing for this hotkey in the background?

Regards, Andre

Jonathan <dev at puppeq.com> wrote:
>I have tried everything I can think of to adjust display brightness via
>the keyboard keys at the lightdm unity-greeter login screen.
>
>Once you login to an Ubuntu desktop session the keys work fine.
>However, at the login screen and when you are logged in to a non-Ubuntu
>desktop session, e.g. xfreerdp then the brightness keys do not work.
>
>I have verified that I can change the brightness by doing ctrl+alt+f1
>at the lightdm login screen and issuing either of these commands:
>
>sudo /usr/lib/gnome-settings-daemon/gsd-backlight-helper
>--set-brightness 150
>
>echo 150 | sudo tee /sys/class/backlight/radeon*/brightness
>
>The question is how to I execute these commands from the brightness
>keys or any other combination of keys if that makes it possible?
>
>I have tried to use xbindkeys and a .xbindkeyrc file with the following
>contents:
>
>/usr/bin/pkexec /usr/lib/gnome-settings-daemon/gsd-backlight-helper
>--set-brightness 150
>c:68
>
>/usr/bin/pkexec /usr/lib/gnome-settings-daemon/gsd-backlight-helper
>--set-brightness 255
>c:69
>
>This works, but again you have to be logged in to an Ubuntu desktop
>session!
>
>I have tried to use an upstart job to start xbindkeys.
>
>I have tried to place the .xbindkeysrc file in /var/lib/lightdm.
>
>Nothing works and I have no other options right now other than to tell
>my users...sorry but you can't change display brightness or if you need
>to I'll have to ssh into your machine and run the command above :(
>
>Something this simple must be possible I just don't know how.
>_______________________________________________
>LightDM mailing list
>LightDM at lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/lightdm

-- 
Andre Klärner

Telefon: 0351/79666546
Fax:	 0351/79688547
Mobil:   0172/9838653

Anschrift:
Prohliser Allee 43
01239 Dresden


More information about the LightDM mailing list