Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Old November 2nd, 2006   #1
Twiggy794
5 Cups of Ubuntu
 
Twiggy794's Avatar
 
Join Date: May 2005
Location: Chicago, IL
Beans: 28
Ubuntu 8.10 Intrepid Ibex
Send a message via ICQ to Twiggy794 Send a message via AIM to Twiggy794 Send a message via MSN to Twiggy794
Right alt and ctrl keys don't work in Edgy

I was running an Edgy upgrade before and recently did a fresh install, but now when I try to use my rightmost alt and ctrl keys on my laptop, they don't work at all. The left ones work just fine. Anybody know what could be up? I've tried fiddling with the keyboard layout settings in GNOME with no luck.
Twiggy794 is offline  
Old November 5th, 2006   #2
bstock
First Cup of Ubuntu
 
Join Date: Feb 2006
Beans: 7
Ubuntu 7.04 Feisty Fawn
Re: Right alt and ctrl keys don't work in Edgy

I have a similar issue. Control works fine on the right, but not the Alt key.

I did find a solution though. If you run 'xmodmap' from a terminal, you can see that it says 'mod5' is assigned to the Alt_R key. If you run this command:

xmodmap -e "remove mod5 = Alt_R"

That seemed to take care of it for me. Now all you need to do is set that up to run every time you run ubuntu.

Go to System -> Preferences -> Sessions
Go to the Startup Programs tab
Click 'Add'
Copy and paste the previous command into the text area and click OK.

That should take care of the alt key. If you go to terminal and just run 'xmodmap', you can copy and paste the results and I can see what I can do about your control key.

Just FYI, I have a Logitech G15 USB keyboard. I don't know if this is a problem specific to this keyboard or not.
bstock is offline  
Old November 6th, 2006   #3
Twiggy794
5 Cups of Ubuntu
 
Twiggy794's Avatar
 
Join Date: May 2005
Location: Chicago, IL
Beans: 28
Ubuntu 8.10 Intrepid Ibex
Send a message via ICQ to Twiggy794 Send a message via AIM to Twiggy794 Send a message via MSN to Twiggy794
Re: Right alt and ctrl keys don't work in Edgy

Thanks for the reply, I think I'm seeing what's up here but I'm unfamiliar with xmodmap so I'm not terribly sure how to go about adjusting this. I did a quick xmodmap to check the output, here's what I got:
Code:
shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x6d)
mod1        Alt_L (0x40),  Alt_L (0x7d)
mod2        Mode_switch (0x5d),  Mode_switch (0x71),  Mode_switch (0x74)
mod3      
mod4        Super_L (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  Mode_switch (0x71),  ISO_Level3_Shift (0x7c)
Seems that I have Alt_L specified twice, where I assume one should be an Alt_R?
Twiggy794 is offline  
Old November 6th, 2006   #4
bstock
First Cup of Ubuntu
 
Join Date: Feb 2006
Beans: 7
Ubuntu 7.04 Feisty Fawn
Re: Right alt and ctrl keys don't work in Edgy

Alright. After some more research and playing around, I think I found a solution. If you run 'xev' and look at the results when you push the right Alt key, it outputs:

Code:
KeyPress event, serial 32, synthetic NO, window 0x3e00001,
    root 0x186, subw 0x0, time 3193017024, (167,-14), root:(1234,563),
    state 0x10, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False
While the left Alt key gives:

Code:
KeyPress event, serial 32, synthetic NO, window 0x3e00001,
    root 0x186, subw 0x0, time 3193324833, (759,352), root:(767,421),
    state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False
Notice with the left alt key, it says keycode 64 = Alt_L. If you look at the right alt, it says keycode 113 = ISO_Level3_Shift. I don't know wtf that is, but it's wrong...

Now from terminal we can run 'xmodmap -pke' to get a list of what keys our keycodes are assigned to. You should see similar results. We only really want to look at keycodes 64 and 113, since those are what we're dealing with.

keycode 64 = Alt_L Meta_L
keycode 113 = ISO_Level3_Shift

So, all we should need to do is assign keycode 113 to Alt_R right? That's easy enough. Run the following:

Code:
xmodmap -e "keycode 113 = Alt_R"
Now lets make sure the changes took effect. Run 'xmodmap -pke' again and take a look at keycode 113. You should now see:

keycode 113 = Alt_R

Success. Go to your browser, navigate through a few pages and try Alt_R+left and Alt_R+right to see if it's working.

Now we want to set this so it works every time we reboot. Should just have to add it to our sessions.

Go to System -> Preferences -> Sessions
Go to the Startup Programs tab
Click 'Add'
Put in xmodmap -e "keycode 113 = Alt_R" and click OK. Reboot and try it out.

You can probably remove the last command I said to enter, since that didn't seem to work. Let me know how it goes.
bstock is offline  
Old November 14th, 2006   #5
kungfoofool
5 Cups of Ubuntu
 
kungfoofool's Avatar
 
Join Date: Sep 2005
Location: New York, NY
Beans: 24
Ubuntu 7.10 Gutsy Gibbon
Re: Right alt and ctrl keys don't work in Edgy

I'm working on a Dell Inspiron 6000 and I have the same problem. I tried your code and unfortunately it didn't fix it. When I run xev, it does show that I'm hitting Alt_R but it doesn't do anything.

Neither of my alt or ctrl buttons on the right side of the keyboard work. Has anyone else had any luck with this?
kungfoofool is offline  
Old November 27th, 2006   #6
bignate
First Cup of Ubuntu
 
Join Date: Nov 2005
Location: Harrisburg PA
Beans: 12
Ubuntu 6.10 Edgy
Re: Right alt and ctrl keys don't work in Edgy

I am having the same problem. Dell Inspiron 9400. Tried mapping the right alt key to no avail.
__________________
bignate
bignate is offline  
Old January 2nd, 2007   #7
hellmet
Dipped in Ubuntu
 
hellmet's Avatar
 
Join Date: Apr 2006
Location: TX, US or HYD,India
Beans: 562
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to hellmet Send a message via Skype™ to hellmet
Re: Right alt and ctrl keys don't work in Edgy

Same problem here..
Anyone filed a bug??
I am on Intel 915GAV
__________________
Sys Adm for HIRE
---
Report all bugs. Don't wait for someone else, or you might be waiting forever.
hellmet is offline  
Old January 2nd, 2007   #8
nsleiman
Gee! These Aren't Roasted!
 
nsleiman's Avatar
 
Join Date: Dec 2006
Location: Lebanon
Beans: 180
Gutsy Gibbon Testing
Send a message via ICQ to nsleiman Send a message via MSN to nsleiman Send a message via Yahoo to nsleiman
Re: Right alt and ctrl keys don't work in Edgy

same here
__________________
Ubuntu 7.10 Gutsy - Laptop: F-S Amilo M-1437 - Everything working (only the modem is not!)-
Linux registered user # 438061 | Ubuntu registered user # 10651
nsleiman is offline  
Old January 2nd, 2007   #9
bignate
First Cup of Ubuntu
 
Join Date: Nov 2005
Location: Harrisburg PA
Beans: 12
Ubuntu 6.10 Edgy
Re: Right alt and ctrl keys don't work in Edgy

Sorry forgot I posted this here...

I just came up with a workaround. Although there are many ways to accomplish this, I created a shell script to set up my environment when I log in...and one of the lines in it fixes this issue.

in ~/.startup.sh:

xmodmap -e "keycode 113 = Alt_R Meta_R"

Then I added that to my login session:

System->Preferences->Sessions: Choose the Startup Preferences tab and add the script.

Not elegant, but it works.
__________________
bignate
bignate is offline  
Old January 2nd, 2007   #10
jgubes
5 Cups of Ubuntu
 
Join Date: Dec 2006
Beans: 16
Re: Right alt and ctrl keys don't work in Edgy

I assume you're in Gnome. Have you tried this out in KDE? It doesn't seem to be working for me.
jgubes is offline  
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:22 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry