Debian :: Deactivating Caps Lock Via Command Line?
May 27, 2011
is there a way to deactivate Caps Lock via command line? I mean: no matter whether Caps Lock is either active or not, issuing such a command would deactivate it. I'm not talking about disabling the key.
Can I change the Caps Lock key to Control and still keep the on/off nature of Caps Lock? I've checked into using xmodmap and seem to have hit a dead end. Many people want to swap them, but they also want to swap the way they work. I'd rather keep my new Control key as an on/off switch for Control.
How can i enable caps lock by using echo command. I know that by using syntax echo -e "33[3q" this only turns the capslock led to glow. but the capslock is not working i.e. the words are typed in small case only.
Then by using xmodmap command i.e. syntax xmodmap -e "remove lock = Caps_Lock" or xmodmap -e "add lock =Caps_Lock" doesn't work. On running this it shows unable to display.
For a good while I used the following code to swap caps lock and escape, which is very beneficial to me as I have vim-like keybindings in most of the apps that I use:remove Lock = Caps_Lock
add Lock = Escape keysym Caps_Lock = Escape keysym Escape = Caps_Lock followed by xmodmap ~/.Xmodmap, which I got from http://vim.wikia.com
/wiki/Map_caps_lock_to_escape_in_XWindows. However, after a recent Debian upgrade with aptitude, this stopped working - or, it does work poorly, in that caps lock toggles caps lock and acts as escape, so I have to press it twice all the time. Is there a better way to do this with X, since my solution stopped working?
I have a HP Pavilion dv4 that is 4 months old. Yesterday it suddenly seemed to restart then once I logged in it turned off. When I tried to turn it on some of the lights came on and the caps lock and num lock started flashing. Since then I have not been able to get it to work correctly.It once seemed to turn on but died again after the login window.I tried to use my live cd but the same thing happened. It started loading once, but then shut down again. Every other time it stayed dead minus the lights
There is a very strange problem I've been having. When I enable either Caps Lock or Num Lock the media controls on my keyboard cease to work. I have Googled this one to death but found nothing. This problem existed in Xubuntu 9.10 and now still exists in Xubuntu 10.04. The keyboard I use is a Logitech Elite Keyboard. I would love to be able to use the Caps Lock and Num Lock without the worry that I am disabling the media controls
I have just burned the latest CD using infraRecorder, as per the instructions on this site, however when I boot from this CD, it spends about 5 minutes moving the red balls across my screen, then all of the sudden it just freezes, and my caps and scroll lock lights start to blink. I've had a look in the forums already but there's nothing about this happening on Boot of the live CD.
I am having a very annoying problem with my laptop.I am experiencing many freezes.When my laptop freezes, it shows the caps lock and scroll lock lights blinking.At first I thought it was a problem with flash (here is original thread: URL... )In the original thread, I thought the freeze's were being caused by the flashplayer, but it apparently isn't the case.The last time I experienced the freeze, I was playing around with the compiz desktop effects.
i tried to install java jdk, and vlc, but to my surprise everytime i wanted to install a single application, a massive 500MB update appeared along with the 2 applications i wanted to install, then i tried the command line to just install one program, and got rep. errors, and several .lock errors at the command line. after hours of googling i gave up , this distro was recommended because of great laptop support, but it's a hell of trying to install a single program, with fedora i just did su -c 'yum install vim' , or ubuntu sudo apt-get install vim or slackware: installpkg vim.tgz , but opensuse was so bloated whenever i wanted to install a program or two. it is a royal pain to install anything in opensuse how do you guys deal with dependency hell in opensuse?
I wanted to remap my Caps Lock key to ESC, both because I don't need the Caps Lock key and because it will make it easier to use vi. I know how to do this in X, but is there a solution that will work in command line mode too?
I know this doesn't matter to most people because most people hold shift to capitalize letters. I tap the caps lock with my pinky whenever I need something capitalized. I'm a pretty fast typer, I just don't type correctly. How do I get it so that when I'm typing and I hit Caps Lock for it to be an instant effect? For example this is what I'm getting annoyed with, here is an example of what I am having to recorrect everytime I type.
I want to remap the Capslock key to a Shift key. The reason being is the UK keyboard has a very large Caps Lock and a alpha size shift. I have been looking everywhere and there is a lot about turning it into a CTRL key but I don't understand. Can you give me simple instuctions I don't know what keycodes to use and what file to edit.
I recently decided to replace Lenny on my laptop with Squeeze. All went fine, but now with both GDM and GDM3, the Caps and Num locks come on when GDM starts, and behave erratically. I have to hit the caps/num lock key several times to disable the lock, and sometimes it will come on again after a random time. This behavior persists into my GNOME session. I'll be working on code and *&%#! -- on comes the caps/num locks.
Initially I thought this was an X issue. I uninstalled GDM3 (which is the version installed by squeeze) and logged in at the console then started X via startx. The caps and num locks remained off and behaved in the normal manner. I then tried SLiM, and again the keys behaved normally. Then I tried GDM (2.20 in the squeeze repos), and it behaved the same as GDM3. Even though I purged GDM3 and GDM, I'm wondering if there's some residual configuration data in my home directory, but I can't seem to find anything related. Using SLiM isn't so bad, but once I log in I get asked to unlock the keyring, so typing my password twice to log gets annoying.
I upgraded from 9.10 to 10.04. The Caps lock indicator on my keyboard is not working (always off). The Num lock indicator works fine. I have the same problem with other keyboards. The other keyboards work with Windows & DOS. This isn't a show-stopper, but I'd like to get it corrected as it's problematic when typing in passwords, etc. that have hidden fields.
I just upgraded machine to natty, after which the xmodmap configuration remapping capslock stopped working (as in not doing anything at all). Running xmodmap manually (-e "clear Lock") doesn't have any visible effect either. I haven't tried doing this on another machine (I'm only close to one machine running ubuntu and reinstalling seems rather overkill), but the same config worked before the upgrade, and is working on another machine running arch.
Is anyone else having these issues and, if so, has anybody found a solution? The line of interest is, simply, "clear Lock".
I want the CapsLock to lock the letters in capital, and never to change them back to small letters.To go from capitals letters down to small letter, I use the shift key.In other word, I want my key board to behave like an old typewritter:I don't want to have to look at my keyboard to know how capslock will bewave next time I use it.I tryed all kind of set-up, but still could not remove the toggle effect of capslock...
In Fedora 10 they decided to change to "evdev", so if you used xmodmap in F9, these mapping have changed in F10 and F11 for that matter. In order to find the new key values start
xev and press a button you would like to know the keycode for. Write this value down. When done, make a file ".xmodmap" and put in the values. "man xmodmap" explains the format. Not easy to understand! So here is how mine looks like.
This layout is MUCH more logical than the original. Now Delete is the key just to the right of the Backspace key. Back spaces deletes to the left, and Delete deletes to the right, so these keys shoudl of course be next to each other Page Up, Page Down, Home, and End now have the same structure as the arrow keys below. This layout makes it much easier to navigate without looking at the keys, because now the layout makes sense And why shouldn't 0 be to the left of 1? of course it should. 0 is lower than 1.
I just upgraded to 10.04 (and a new machine) from 8.04 and I can't seem to find a way to have the middle button on my mouse act as a double click like I had it on my old machine. I tried putting the input stanza from my old xorg.conf but then X would not come up. The new tab thing it does in Nautilus is driving me nuts. I see the xorg.conf isn't really used anymore, and there is something about making rules in udev but I can't seem to find the exact wording that I need to make that one rule. I would also like to disable the CAPS LOCK key if anyone knows how to do that without xorg.conf. Maybe someone can point me to a udev tutorial?