You are not logged in.
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