SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-02-06 10:41:33

mrR00t
Member
From: Greece
Registered: 2014-01-23
Posts: 11

[SOLVED] How to make both 'alt' keys Work!

I know you can't understand what i want to say from the title but i can't describe it in a single line   big_smile

I 'm new to #! and i have a small problem my "alt" and "ctrl" keys don 't work both left and right.
For example if i press left alt + f4 it close the window But if i press right alt + f4 it does nothing.
Is there a way to make this?

Last edited by mrR00t (2014-02-06 17:53:56)


In a world without walls and fenches
     who needs Windows and Gates?

Offline

Help fund CrunchBang, donate to the project!

#2 2014-02-06 11:13:08

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,263

Re: [SOLVED] How to make both 'alt' keys Work!

I may be mistaken (American with limited knowledge/experience with the rest of the world), but I seem to remember something about the right alt key having a different designation in European keymaps?  (EDIT:  Typically mapped to the AltGr key?)

Last edited by pvsage (2014-02-06 11:17:24)

Online

#3 2014-02-06 12:09:39

mrR00t
Member
From: Greece
Registered: 2014-01-23
Posts: 11

Re: [SOLVED] How to make both 'alt' keys Work!

Hi pvsage thanks for the answer.
What do you mean "typically mapped to the AltGr key"? yes my keyboard writes "altgr" on the rigtht altkey
In other distro i had no problem


In a world without walls and fenches
     who needs Windows and Gates?

Offline

#4 2014-02-06 12:48:57

wuxmedia
wookiee madclaw
From: Back in Blighty
Registered: 2012-03-09
Posts: 1,474
Website

Re: [SOLVED] How to make both 'alt' keys Work!

you could try

sudo dpkg-reconfigure keyboard-configuration

a couple of pages in, you get a choice, try a couple, otherwise it's a keymapping issue

altGr gives me łþđßŋħ¶← funny chars.

Offline

#5 2014-02-06 13:09:10

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 4,440

Re: [SOLVED] How to make both 'alt' keys Work!

On a GB keyboard right Alt is mapped as AltGr.

Get the keycode/keysym with xev to check if you have AltGr

To remap it as left Alt, add this to your autostart:

# Re-set Alt-Gr key to Alt 
xmodmap -e "clear mod5"
xmodmap -e "keycode 108 = Alt_L"

Artwork at deviantArt;  Iceweasel Personas;  SLiM #! Themes;  Openbox themes

Online

#6 2014-02-06 13:12:21

mrR00t
Member
From: Greece
Registered: 2014-01-23
Posts: 11

Re: [SOLVED] How to make both 'alt' keys Work!

Thanks wuxmedia i think the solution is sowhere in keyboard-config.
I will try some choices.
By the way altgr gives nothing to me   smile


In a world without walls and fenches
     who needs Windows and Gates?

Offline

#7 2014-02-06 13:43:53

mrR00t
Member
From: Greece
Registered: 2014-01-23
Posts: 11

Re: [SOLVED] How to make both 'alt' keys Work!

Sorry Damo i got a litle confused.

xev gives me this when i press left alt:

KeyPress event, serial 43, synthetic NO, window 0x3200001,
    root 0x50, subw 0x0, time 5413668, (665,60), root:(890,356),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 46, synthetic NO, window 0x3200001,
    root 0x50, subw 0x0, time 5413740, (665,60), root:(890,356),
    state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

and this when i press right alt

KeyPress event, serial 46, synthetic NO, window 0x3200001,
    root 0x50, subw 0x0, time 5421236, (665,60), root:(890,356),
    state 0x0, keycode 108 (keysym 0xff7e, Mode_switch), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 46, synthetic NO, window 0x3200001,
    root 0x50, subw 0x0, time 5421291, (665,60), root:(890,356),
    state 0x2000, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XKeysymToKeycode returns keycode: 92
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Should i edit the autostrt as you said?


In a world without walls and fenches
     who needs Windows and Gates?

Offline

#8 2014-02-06 15:03:53

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 4,440

Re: [SOLVED] How to make both 'alt' keys Work!

keycode 108 (keysym 0xfe03, ISO_Level3_Shift)

That's what my keyboard shows as well. I suggest you try those xmodmap commands in a terminal first - if it works OK then add them to autostart.


Artwork at deviantArt;  Iceweasel Personas;  SLiM #! Themes;  Openbox themes

Online

#9 2014-02-06 17:52:50

mrR00t
Member
From: Greece
Registered: 2014-01-23
Posts: 11

Re: [SOLVED] How to make both 'alt' keys Work!

That worked thank you damo!!!


In a world without walls and fenches
     who needs Windows and Gates?

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo