Author Topic: [linux] turn on/off caps lock status  (Read 4346 times)

0 Members and 1 Guest are viewing this topic.

Offline Xuan

  • Thread Starter
  • Posts: 189
[linux] turn on/off caps lock status
« 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?

Offline Mnemonix

  • Posts: 163
[linux] turn on/off caps lock status
« Reply #1 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.

Offline Xuan

  • Thread Starter
  • Posts: 189
[linux] turn on/off caps lock status
« Reply #2 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.

Offline Mr.6502

  • Posts: 77
[linux] turn on/off caps lock status
« Reply #3 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.
« Last Edit: Tue, 22 December 2009, 12:10:57 by Mr.6502 »
"Engineers are really good at labeling and branding things ...  If we had named Kentucky Fried Chicken, it would have been Hot Dead Birds."

-Vint Cerf

Offline Xuan

  • Thread Starter
  • Posts: 189
[linux] turn on/off caps lock status
« Reply #4 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.