IITDU Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Help: modfy keyboard layout in ubuntu

2 posters

Go down

Help: modfy keyboard layout in ubuntu Empty Help: modfy keyboard layout in ubuntu

Post by BIT0102-Mohaimin Sun Oct 24, 2010 11:37 pm

Some of you may have seen that the left-shift button of my laptop keyboard has been broken. So I wanted to change the chaps lock button to left-shift. I googled a lot but there is no output.
Can you help me?
BIT0102-Mohaimin
BIT0102-Mohaimin
Programmer
Programmer

Course(s) :
  • BIT

Blood Group : B+
Posts : 415
Points : 715

Back to top Go down

Help: modfy keyboard layout in ubuntu Empty Re: Help: modfy keyboard layout in ubuntu

Post by BIT0122-Amit Mon Oct 25, 2010 12:11 am

I went through the manuals and found the way.
but I messed up my own keyboard and I can't reverse it Help: modfy keyboard layout in ubuntu 221617
You mean you want to use the caps lock as the left shift button right?
I know a way. its xmodmap. but as I can not reverse the affect for now, maybe you should study it yourself first before trying it Wink

Edit:
Found it.
To reset it, use
Code:
setxkbmap


Last edited by LordAmit on Mon Oct 25, 2010 12:30 am; edited 1 time in total
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

Help: modfy keyboard layout in ubuntu Empty Re: Help: modfy keyboard layout in ubuntu

Post by BIT0122-Amit Mon Oct 25, 2010 12:26 am

Forget the first command.
Mohaimin, we need to find the keycode of the caps lock and left shift on your laptop.

http://www.ryancooper.com/resources/keycode.asp

Go there.
Let it load totally.
After it loads,
press the left shift key.
it will show a keycode.
press caps lock.
It will show another keycode.

give them here.
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

Help: modfy keyboard layout in ubuntu Empty Re: Help: modfy keyboard layout in ubuntu

Post by BIT0102-Mohaimin Tue Oct 26, 2010 12:36 am

I am sorry, did you post everything I need?
BIT0102-Mohaimin
BIT0102-Mohaimin
Programmer
Programmer

Course(s) :
  • BIT

Blood Group : B+
Posts : 415
Points : 715

Back to top Go down

Help: modfy keyboard layout in ubuntu Empty Re: Help: modfy keyboard layout in ubuntu

Post by BIT0122-Amit Tue Oct 26, 2010 1:26 am

Umm, no actually. that's why I said we should do this together.

Hmm.. the thing we need is xmodmap.
it can assign the keycode of one key to another key.

To do that, we need to information, keysym and keycode.

open terminal, type xev, and press enter. it will show lots of things and a small window.

When it stops, press caps lock key once and release it. it will generate some lines.
Do the same for Left Shift.

Then close that small window. Find the lines generated by caps and shift key. post them here.
They will look like this:
Code:

KeyRelease event, serial 36, synthetic NO, window 0x9400001,
    root 0xae, subw 0x0, time 12753926, (182,-37), root:(185,460),
    state 0x2, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 36, synthetic NO, window 0x9400001,
    root 0xae, subw 0x0, time 12756289, (182,-37), root:(185,460),
    state 0x2, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 36, synthetic NO, window 0x9400001,
    root 0xae, subw 0x0, time 12756456, (182,-37), root:(185,460),
    state 0x3, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

Help: modfy keyboard layout in ubuntu Empty Re: Help: modfy keyboard layout in ubuntu

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum