Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 2 [3] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Keyboard Keys Broke!, Looking for a way to remap broken keys< Next Oldest | Next Newest >
mi007kes Offline





Group: Members
Posts: 4
Joined: Mar. 2006
Posted: Mar. 22 2006,21:42 QUOTE

Ok here is the deal now....

these commands remap my keys when i enter them into a terminal...

xmodmap -e "keycode 108 = k"
xmodmap -e "keycode 62 = i"
xmodmap -e "keycode 105 = comma"
xmodmap -e "keycode 74 = 8"

now how do i exec these commands when my computer starts....can i put these in
bootlocal.sh , or where is the correct location??
Back to top
Profile PM 
doobit Offline





Group: Members
Posts: 912
Joined: July 2005
Posted: Mar. 22 2006,21:55 QUOTE

I think you could put them in /opt/bootlocal.sh right after the keymap configuration entry.

--------------
"Help stop internet piracy...use Linux!"
Back to top
Profile PM WEB MSN 
spock Offline





Group: Members
Posts: 53
Joined: Nov. 2005
Posted: Mar. 22 2006,22:31 QUOTE

Thanks Mikshaw for the idea. So to be clear an .xmodmap file doesn't work with Xvesa (or at leat I think I tried everything), but the command itself does. I didn't try to put the whole content of the file in .xinitrc...

--------------
Computers are useless, they can only give you answers.  Pablo Picasso
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Mar. 23 2006,01:39 QUOTE

As far as my experience has been xmodmap works the same in Xvesa as it does in Xfree86, with or without a config file:

xmodmap $HOME/.Xmodmap (or whatever the name of your config file is).

The config file is just a way to do multiple actions without running xmodmap multiple times.
If you have the following lines in ~/.whatever_you_want_to_name_it, you can run it with the command "xmodmap $HOME/.whatever_you_want_to_name_it":
keycode 108 = k
keycode 62 = i
keycode 105 = comma
keycode 74 = 8

Doobit: xmodmap won't work from bootlocal.  It's an X program that adjusts your keymap only for the current X session.  If you want the commands done automatically they should be in .xinitrc, prior to starting the window manager.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
spock Offline





Group: Members
Posts: 53
Joined: Nov. 2005
Posted: Mar. 23 2006,02:25 QUOTE

Well this is strange. When I was trying to get the French keyboard working in a previous version of DSL I really tried everything, including the xmodmap command in .xserverrc like advised in this old post :

http://damnsmalllinux.org/cgi-bin....06;st=0

After testing and googling wild I came to the conclusion that xmodmap had been removed from Xvesa in DSL for size reasons. Also the xmodmap command for the German keyboard in .xinitrc doesn't seem to change anything on my keyboard in any of the KDrive X server (I tried with a German keymap...)

Anyway I can do with XFree. I guess mi007kes is happy, so are we !


--------------
Computers are useless, they can only give you answers.  Pablo Picasso
Back to top
Profile PM 
14 replies since Mar. 20 2006,05:58 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 2 [3] >/
reply to topic new topic new poll
Quick Reply: Keyboard Keys Broke!

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code