Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
keyboard map[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Sun Jun 18, 2006 11:26 am    Post subject: keyboard map[SOLVED] Reply with quote

HI all,

is there any way to change the keyboard layout on a sun machine?? Like the interchanging of the caps and ctrl key. The escape key etc.

thanks
Saurabh
_________________
Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!


Last edited by sobers_2002 on Sun Jun 18, 2006 5:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Sun Jun 18, 2006 4:37 pm    Post subject: Reply with quote

Yes. If you are talking about running under X, make sure you have x11-apps/xev and x11-apps/xmodmap (if you are using xorg-x11-7). Then, for X, look at the man pages for xev and xmodmap. You can see what the keys are called using xev, and then use xmodmap to redefine them. For example, here's one I use (under X) on a kernel-2.6 SB1000:
xmodmap -e 'keycode 113 = Alt_R'

Now, if you are not under X, you can still do it, in a similar fashion:
Look at the documentation for showkey, getkeycodes, and setkeycodes. I can't be more explicit, I'm afraid, because I don't have any examples lying around.
Back to top
View user's profile Send private message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Sun Jun 18, 2006 5:32 pm    Post subject: Reply with quote

thanks a lot! that does it :)

Also, for anyone who needs it, I found a graphical frontend to this application called xkeycaps.

it's in portage, so enjoy!
_________________
Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!
Back to top
View user's profile Send private message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Mon Jun 19, 2006 9:03 am    Post subject: Reply with quote

now even though the problem is solved, i sort of got stuck :oops: :oops:

everything except the interchange of caps and control is working. so if som1 could guide me with that, it'd be great. I have put the things in .Xmodmaps file. The new escape key, backspace etc are working. Even xev is recognizing the change. But the working result hasn't changed. So if some1 could help??

thanks
Saurabh
_________________
Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Mon Jun 19, 2006 4:19 pm    Post subject: Reply with quote

I just tried to remap Shift lock onto Control (Type 6 Kbd, kernel 2.6.15-gentoo-r4-U60-2x450, on U60) and saw exactly what you are reporting. My guess is that a few keys (like CAPS/Shift_Lock) are hardwired into the keyboard itself. But as I say, this is just a guess.
Back to top
View user's profile Send private message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Tue Jun 20, 2006 4:36 am    Post subject: Reply with quote

got it solved!!!!!!!

Code:
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L


Remove the keymapping in the .Xmodmap file for the keys, and add the above thing to the file. And bingo!! Things work!

yay!
_________________
Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Tue Jun 20, 2006 4:05 pm    Post subject: Reply with quote

Interesting; you've taught me something. Thanks for posting that. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum