You are not logged in.

#1 2013-08-17 13:42:08

azurit3
Member
Registered: 2013-08-17
Posts: 4

Help: Systemd NumLock/ScrollLock lights active while xorg is running

Hi,
I have a illuminated keyboard that is triggered on/off by the scroll lock.
I will like to have the keys illuminated while xorg is running so that the leds will be on before I logging(gdm), and turned off when I shutdown the computer.

I made a systemd service, but isn't working:

[Unit]
Description=led keyboard
After=graphical.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/xset led 3 -d :0 
ExecStop=/usr/bin/xset -led 3 -d :0 

[Install]
WantedBy=graphical.target

Error:

Ago 17 15:39:16 box xset[1789]: No protocol specified
Ago 17 15:39:16 box xset[1789]: /usr/bin/xset:  unable to open display ":0"
Ago 17 15:39:16 box systemd[1]: ledkeyboard.service: main process exited, code=exited, status=1/FAILURE
Ago 17 15:39:16 box systemd[1]: Failed to start led keyboard.

I can't get passe this, any help would be appreciated.

regards

Last edited by azurit3 (2013-08-17 13:43:26)

Offline

Board footer

Powered by FluxBB