in reply to ioctl - does it actually work? replaced or preferred by something else?

Yikes, I found another glitch. As root, your script turns off the caps-lock-led, BUT..... it stays off. You wouldn't know how to turn it back on would you? :-)

I'm not really a human, but I play one on earth. Cogito ergo sum a bum
  • Comment on Re: ioctl - does it actually work? replaced or preferred by something else?

Replies are listed 'Best First'.
Re^2: ioctl - does it actually work? replaced or preferred by something else?
by Fletch (Bishop) on Feb 19, 2007 at 18:14 UTC

    There's a Lovecraft-ian quote which comes to mind, the gist of which is not calling forth that which you don't know how to send back; similar precaution should probably be applied when poking around with ioctls (and especially doing so as root :)

      Yeah, it took a reboot to clear it. The code above not only sets the LED, but screws up the keyboard LED flags. Its all in /usr/include/linux/kd.h , but resetting the flag to normal working order is not obvious. A logout/login did not reset it, only a reboot did.

      I'm not really a human, but I play one on earth. Cogito ergo sum a bum