Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I light up the Caps Lock light with xset?
    primarykey
    data
    text
    <p>I wrote a little fetchmail script that checks the remote server and plays an audio file when I have new mail. I also wanted to also light up one of my keyboard lights when the mail was available but I ran into a problem. I am able to light up the scroll lock light with this:</p> <pre><code>/usr/bin/xset led named "Scroll Lock" </code></pre> <p>But I can't light up the Caps Lock in the same way:</p> <pre><code>/usr/bin/xset led named "Caps Lock" </code></pre> <p>I tried specifying the key with a number (1-6) but despite changing the mysterious 'LED mask' (visible with 'xset q') I saw no change to the lights.</p> <p>Is this broken because I've mapped my Caps Lock key as another Ctrl?</p> <p>In ~/.Xmodmap I've got:</p> <pre><code>keycode 66 = Control_L clear Lock add Control = Control_L </code></pre> <p>I don't want to toggle caps lock, just the light. Is there a way to do this?</p> <h2>Further Explanation</h2> <p>This is on a x86 kubuntu lucid machine but I will migrate to debian later. I'm running the script as a unprivileged user in a python daemon. Running the same script as root won't work because fetchmail is configured for myself as a user. And finally, this is all run in a tmux session.</p> <p>When I began this process I read about setleds but it seems to be restricted to terminals in non x sessions. </p> <p>Logging in as root and running 'setleds -D +caps &lt; /dev/tty7' works but running 'sudo setleds -D +caps &lt; /dev/tty7' gives me a permission denied error.</p> <p>The xset command seems perfect for my application, it just refuses to change the Caps Lock light.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload