geekhack

geekhack Community => Other Geeky Stuff => Topic started by: Xuan on Tue, 22 December 2009, 10:40:20

Title: [linux] turn on/off caps lock status
Post by: Xuan on Tue, 22 December 2009, 10:40:20
Hi, I have disabled caps lock on mi keyboards.
Today I've connected through vnc to a virtual machine I've at work, but somehow it has caps lock on, so it's writing all UPPERCASE and I can't disable it without remaping the local keyboard.

Is there any way to do it manually?
Title: [linux] turn on/off caps lock status
Post by: Mnemonix on Tue, 22 December 2009, 11:13:10
Quote from: Xuan;144453
Is there any way to do it manually?


Just tried it on the console (didn't work in an xterm):
Code: [Select]
setleds -caps
This does not only affect the LED, but really changes the terminal state to non-caps mode.
Title: [linux] turn on/off caps lock status
Post by: Xuan on Tue, 22 December 2009, 11:48:38
Strange, I tested it but it's changing only the LED state, at least in my local PC.
Title: [linux] turn on/off caps lock status
Post by: Mr.6502 on Tue, 22 December 2009, 12:10:24
Does the target OS have any kind of on-screen keyboard software?  When I VNC into windows comps that have caps turned on that is how I usually turn it off.  But for Linux I only ever ssh in and I usually have caps disabled on there anyway.
Title: [linux] turn on/off caps lock status
Post by: Xuan on Tue, 22 December 2009, 16:37:35
Ha! I've installed one but it wasn't changing caps, so I assume It was a weird vnc problem.