LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 01-27-2011, 10:46 PM   #1
dewdrop_world
LQ Newbie
 
Registered: Jan 2011
Distribution: Ubuntu 10.04, 2.6.33-29-realtime
Posts: 26

Rep: Reputation: 1
Resetting xmodmap from the commandline?


I'm looking for a way to remove all xmodmap tweaks temporarily, preferably from the commandline. I have a couple of non-commandline workarounds:

- Log out, log back in.

- Unplug the USB keyboard and plug it back in.

- Go to keyboard preferences > layouts > options, change one of the options and close, then change the option back to what it was and close again. (I hoped that cnee would be able to reproduce the sequence of actions, but no dice -- apparently when the keyboard gets reset, cnee gets confused and stops playing. Or maybe it stopped recording, not sure.)

Reason (important, since this might rule out some solutions):

I'm using xmodmap to move the control keys next to the space bar. I have a RSI and it's painful to stretch all the way to the edge of the keyboard frequently.

I also use virtualbox to run NaturallySpeaking (tried wine, not stable enough). Virtualbox does not get along with xmodmap. Apparently xmodmap causes the OS to report a different keyboard identifier. Virtualbox doesn't recognize that ID and as a result, key codes sent into the guest are all wrong. (But, if I run xmodmap after the virtual machine is up, no problem.)

So what I need to do, probably 3-5 times a day, is to reset the keyboard just so I can start the virtual machine, then rerun my xmodmap script.

I'm not sure if it will help to run a different xmodmap script that returns the modifiers to their original position. That might not reset the ID that virtualbox reads from the OS.

Any ideas? (This forum seems like my last, best hope. I've asked a few times about xmodmap over at Ubuntuforums -- nobody has a clue about it over there.)

Thanks,
James
 
Old 01-28-2011, 12:53 AM   #2
dewdrop_world
LQ Newbie
 
Registered: Jan 2011
Distribution: Ubuntu 10.04, 2.6.33-29-realtime
Posts: 26

Original Poster
Rep: Reputation: 1
Never mind... I decided to do a little more Web searching and found that the limitation in virtualbox has been removed in the recently available vbox 4.0.

http://www.virtualbox.org/ticket/1891

So now, I can start the virtual machine without having to monkey around with the keyboard at all!

A real fix is always better than a workaround... props to the vbox team for addressing it properly.

James
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xmodmap help monkiidansu Linux - Software 1 08-13-2007 02:31 PM
xmodmap chrismiceli Linux - Software 2 06-29-2006 04:18 AM
xmodmap help pitt30 Slackware 11 01-14-2005 05:54 AM
xmodmap snt Linux - Software 0 11-15-2004 09:59 AM
xmodmap ntilde Mandriva 0 07-27-2004 02:28 PM


All times are GMT -5. The time now is 02:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration