FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 12-28-2010, 09:21 AM
Robert Latest
 
Default X Keyboard layout trouble

Hello all,

recently I re-activated my wife's 8-year-old laptop using debian
stable. The installation went of course quickly and hitch-free as
usual. However, what doesn't work correctly is the keyboard under X.
More precisely, the symbols accessed using the "Alt Gr" key produce
all sorts of characters, but not the much-needed []{}|. This is a
German Medion MD6100 (Aldi) laptop. I tried out several X keyboard
configurations, but they either didn't work at all or just as lousy.
The console (non-X) keyboard works fine.

By the way, I'm delighted about the performance Debian gets out of
this old veteran, even with a fully encrypted harddisk. Of course all
I use as X environment is dwm, I don't want to even think about what
this would look like with a full-blown Gnome or KDE desktop.

Thanks,
robert


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTikk8kyOFHeHLmcy_u3LFNRO2u-Rw_5+3K=ywVJz@mail.gmail.com">http://lists.debian.org/AANLkTikk8kyOFHeHLmcy_u3LFNRO2u-Rw_5+3K=ywVJz@mail.gmail.com
 
Old 12-28-2010, 10:08 AM
Robert Cates
 
Default X Keyboard layout trouble

Hi,

question - when you started the installation, did you choose a German
keyboard layout? I'm somewhat new at this as well, and I don't know
dwm, but I've always chosen English as my language and German with no
dead-keys for my keyboard layout and I never had a problem. You can
configure X(-org) for various keyboard layouts, but it may be easier for
you to try a re-installation with de and no dead-keys.


If you do not want to re-install, then you may want to start here:
http://www.x.org/releases/X11R7.5/doc/input/XKB-Config.html
http://wiki.debian.org/Xorg

or do a Google search for 'x-org keyboard config debian' where you'll
find more info.


Enjoy,
Robert



On 12/28/2010 11:21 AM, Robert Latest wrote:

Hello all,

recently I re-activated my wife's 8-year-old laptop using debian
stable. The installation went of course quickly and hitch-free as
usual. However, what doesn't work correctly is the keyboard under X.
More precisely, the symbols accessed using the "Alt Gr" key produce
all sorts of characters, but not the much-needed []{}|. This is a
German Medion MD6100 (Aldi) laptop. I tried out several X keyboard
configurations, but they either didn't work at all or just as lousy.
The console (non-X) keyboard works fine.

By the way, I'm delighted about the performance Debian gets out of
this old veteran, even with a fully encrypted harddisk. Of course all
I use as X environment is dwm, I don't want to even think about what
this would look like with a full-blown Gnome or KDE desktop.

Thanks,
robert





--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4D19C519.9090605@kormar.net">http://lists.debian.org/4D19C519.9090605@kormar.net
 
Old 12-28-2010, 10:26 AM
Camaleón
 
Default X Keyboard layout trouble

On Tue, 28 Dec 2010 11:21:01 +0100, Robert Latest wrote:

> recently I re-activated my wife's 8-year-old laptop using debian stable.
> The installation went of course quickly and hitch-free as usual.
> However, what doesn't work correctly is the keyboard under X. More
> precisely, the symbols accessed using the "Alt Gr" key produce all sorts
> of characters, but not the much-needed []{}|. This is a German Medion
> MD6100 (Aldi) laptop. I tried out several X keyboard configurations, but
> they either didn't work at all or just as lousy. The console (non-X)
> keyboard works fine.

(...)

How does your "/etc/X11/xorg.conf" InputDevice section look like?

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2010.12.28.11.26.42@gmail.com">http://lists.debian.org/pan.2010.12.28.11.26.42@gmail.com
 
Old 01-01-2011, 08:13 PM
Camaleón
 
Default X Keyboard layout trouble

El 2011-01-01 a las 21:56 +0100, Robert Latest escribió:

(resending to the list)

> On Tue, Dec 28, 2010 at 12:26 PM, Camaleón wrote:
> >
> > How does your "/etc/X11/xorg.conf" InputDevice section look like?
>
> Like this:
>
> Section "InputDevice"
> Identifier "Generic Keyboard"
> Driver "kbd"
> Option "XkbRules" "xorg"
> Option "XkbModel" "pc102"
> Option "XkbLayout" "de"
> Option "XkbVariant" "nodeadkeys"
> EndSection

Mine (under lenny) is this:

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "es"
EndSection

So try by commenting ("#") the "XkbVariant" line (the full line,
starting in "#Option") and the restart the X server, relogin or reboot.

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110101211318.GA6094@stt008.linux.site">http://lists.debian.org/20110101211318.GA6094@stt008.linux.site
 
Old 01-02-2011, 03:01 PM
Robert Latest
 
Default X Keyboard layout trouble

On Tue, Dec 28, 2010 at 12:26 PM, Camaleón <noelamac@gmail.com> wrote:
>
> How does your "/etc/X11/xorg.conf" InputDevice section look like?

Like this:

Section "InputDevice"
* * * *Identifier * * *"Generic Keyboard"
* * * *Driver * * * * *"kbd"
* * * *Option * * * * *"XkbRules" * * *"xorg"
* * * *Option * * * * *"XkbModel" * * *"pc102"
* * * *Option * * * * *"XkbLayout" * * "de"
* * * *Option * * * * *"XkbVariant" * *"nodeadkeys"
EndSection

Thanks,
robert


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTi=AKkLmVkKnUthxNjUSAzqpPdNe2O+mDfAzAAjg@mail .gmail.com">http://lists.debian.org/AANLkTi=AKkLmVkKnUthxNjUSAzqpPdNe2O+mDfAzAAjg@mail .gmail.com
 
Old 01-02-2011, 03:03 PM
Robert Latest
 
Default X Keyboard layout trouble

On Sat, Jan 1, 2011 at 10:13 PM, Camaleón <noelamac@gmail.com> wrote:
> Mine (under lenny) is this:
>
> Section "InputDevice"
> * *Identifier *"Generic Keyboard"
> * *Driver * * * * * * *"kbd"
> * *Option * * * * * * *"XkbRules" * * *"xorg"
> * *Option * * * * * * *"XkbModel" * * *"pc105"
> * *Option * * * * * * *"XkbLayout" * * "es"
> EndSection
>
> So try by commenting ("#") the "XkbVariant" line (the full line,
> starting in "#Option") and the restart the X server, relogin or reboot.

Tried it all. It really isn't that simple in this case.

Best regards,
robert


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTi=qZUWtW9Zbwe6OnA8bJ=P4wsQLkwcav-XMAug5@mail.gmail.com">http://lists.debian.org/AANLkTi=qZUWtW9Zbwe6OnA8bJ=P4wsQLkwcav-XMAug5@mail.gmail.com
 
Old 01-02-2011, 03:37 PM
Camaleón
 
Default X Keyboard layout trouble

On Sun, 02 Jan 2011 17:03:22 +0100, Robert Latest wrote:

>> Mine (under lenny) is this:
>>
>> Section "InputDevice"
>> Identifier "Generic Keyboard"
>> Driver "kbd"
>> Option "XkbRules" "xorg"
>> Option "XkbModel" "pc105"
>> Option "XkbLayout" "es"
>> EndSection

> Tried it all. It really isn't that simple in this case.

Run "xev" and type the combo of one of the characters you are not
getting, like "[" to see what you get instead.

Also, review your "/var/log/Xorg.0.log" file.

BTW, how do you setup your keyboard/mouse settings in "dwm"?

Hum... There was a bug about this:

dwm: Almost unusable with a french keyboard.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=423026

But is hard to believe dwm cannot be setup easily to work with a non-US
keyboards :-?

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2011.01.02.16.37.25@gmail.com">http://lists.debian.org/pan.2011.01.02.16.37.25@gmail.com
 
Old 01-06-2011, 09:15 PM
Robert Latest
 
Default X Keyboard layout trouble

On Sun, Jan 2, 2011 at 5:37 PM, Camaleón <noelamac@gmail.com> wrote:

> Run "xev" and type the combo of one of the characters you are not
> getting, like "[" to see what you get instead.

Interesting: In xev, I seem to get exactly what I want -- see below
xev's dump of my first pressing AltGr, then a bunch of keys I would
like to have, then releasing AltGr.

What now? I'm stumped.
robert

KeyPress event, serial 27, synthetic NO, window 0xe00001,
root 0x66, subw 0x0, time 452787, (321,450), root322,466),
state 0x0, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 27, synthetic NO, window 0xe00001,
root 0x66, subw 0x0, time 453093, (321,450), root322,466),
state 0x88, keycode 94 (keysym 0x7c, bar), same_screen YES,
XLookupString gives 1 bytes: (7c) "|"
XmbLookupString gives 1 bytes: (7c) "|"
XFilterEvent returns: False

KeyRelease event, serial 27, synthetic NO, window 0xe00001,
root 0x66, subw 0x0, time 453169, (321,450), root322,466),
state 0x88, keycode 94 (keysym 0x7c, bar), same_screen YES,
XLookupString gives 1 bytes: (7c) "|"
XFilterEvent returns: False

KeyPress event, serial 27, synthetic NO, window 0xe00001,
root 0x66, subw 0x0, time 453441, (321,450), root322,466),
state 0x88, keycode 19 (keysym 0x7d, braceright), same_screen YES,
XLookupString gives 1 bytes: (7d) "}"
XmbLookupString gives 1 bytes: (7d) "}"
XFilterEvent returns: False

KeyRelease event, serial 27, synthetic NO, window 0xe00001,
root 0x66, subw 0x0, time 453535, (321,450), root322,466),
state 0x88, keycode 19 (keysym 0x7d, braceright), same_screen YES,
XLookupString gives 1 bytes: (7d) "}"
XFilterEvent returns: False

KeyPress event, serial 27, synthetic NO, window 0xe00001,
root 0x66, subw 0x0, time 453736, (321,450), root322,466),
state 0x88, keycode 18 (keysym 0x5d, bracketright), same_screen YES,
XLookupString gives 1 bytes: (5d) "]"
XmbLookupString gives 1 bytes: (5d) "]"
XFilterEvent returns: False

KeyRelease event, serial 27, synthetic NO, window 0xe00001,
root 0x66, subw 0x0, time 453839, (321,450), root322,466),
state 0x88, keycode 18 (keysym 0x5d, bracketright), same_screen YES,
XLookupString gives 1 bytes: (5d) "]"
XFilterEvent returns: False

KeyPress event, serial 27, synthetic NO, window 0xe00001,
root 0x66, subw 0x0, time 453995, (321,450), root322,466),
state 0x88, keycode 17 (keysym 0x5b, bracketleft), same_screen YES,
XLookupString gives 1 bytes: (5b) "["
XmbLookupString gives 1 bytes: (5b) "["
XFilterEvent returns: False

KeyRelease event, serial 27, synthetic NO, window 0xe00001,
root 0x66, subw 0x0, time 454103, (321,450), root322,466),
state 0x88, keycode 17 (keysym 0x5b, bracketleft), same_screen YES,
XLookupString gives 1 bytes: (5b) "["
XFilterEvent returns: False

KeyPress event, serial 27, synthetic NO, window 0xe00001,
root 0x66, subw 0x0, time 454260, (321,450), root322,466),
state 0x88, keycode 16 (keysym 0x7b, braceleft), same_screen YES,
XLookupString gives 1 bytes: (7b) "{"
XmbLookupString gives 1 bytes: (7b) "{"
XFilterEvent returns: False

KeyRelease event, serial 27, synthetic NO, window 0xe00001,
root 0x66, subw 0x0, time 454417, (321,450), root322,466),
state 0x88, keycode 16 (keysym 0x7b, braceleft), same_screen YES,
XLookupString gives 1 bytes: (7b) "{"
XFilterEvent returns: False

KeyRelease event, serial 27, synthetic NO, window 0xe00001,
root 0x66, subw 0x0, time 454719, (321,450), root322,466),
state 0x88, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTi=kdj=ie=rLvqPqwrHNu77+kam+nxUH2GXRRM54@mail .gmail.com">http://lists.debian.org/AANLkTi=kdj=ie=rLvqPqwrHNu77+kam+nxUH2GXRRM54@mail .gmail.com
 
Old 01-07-2011, 12:15 PM
Camaleón
 
Default X Keyboard layout trouble

On Thu, 06 Jan 2011 23:15:28 +0100, Robert Latest wrote:

> On Sun, Jan 2, 2011 at 5:37 PM, Camaleón wrote:
>
>> Run "xev" and type the combo of one of the characters you are not
>> getting, like "[" to see what you get instead.
>
> Interesting: In xev, I seem to get exactly what I want -- see below
> xev's dump of my first pressing AltGr, then a bunch of keys I would like
> to have, then releasing AltGr.

Yep, that's weird. I would have expected that xev showed the wrong
key :-?

> What now? I'm stumped.

Open a bug report? Xev is used for catching X events so I dunno who to
blame here (DWM, X server...?)

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2011.01.07.13.15.55@gmail.com">http://lists.debian.org/pan.2011.01.07.13.15.55@gmail.com
 
Old 01-07-2011, 04:27 PM
Chris Jones
 
Default X Keyboard layout trouble

On Thu, Jan 06, 2011 at 05:15:28PM EST, Robert Latest wrote:

[..]

> What now? I'm stumped.

Works here out of the box on Debian stable.

Since I do not run dwm, I did the following:

$ /bin/su -
# apt-get install dwm
# adduser dwm # password .. enter .. enter
# cd /home/dwm
# echo 'exec dwm' > .xinitrc
# chown dwm.dwm .xinitrc
# exit

CTRL+ALT+F2 # switch to console

login as dwm

$ startx
ALT+SHIFT+Enter # start an xterm
$ setxkbmap de # with dead keys
$ setxkbmap de -variant nodeadkeys # w/o dead keys

AltGr+7 -> {
AltGr+8 -> [ # etc..

Since I installed stable only a couple of weeks ago, I think that rather
than dwm, it's something in your setup that's causing the problem.

You could try the above and see what happens with a virgin test user.

Here's the keyboard stanza in my xorg.conf:

------------------------------------------------------------------------
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
Option "XkbOptions" "ctrl:swapcaps"
EndSection
------------------------------------------------------------------------

Basically similar to yours..

My (wild) guess is that your AltGr/AltGr key is mapped to Mod1 instead
of Mod3 but I could be wrong about that.

What does xmodmap (with no flags) output? Does it have both Alt_L and
Alt_R mapped to Mod1?

Just to eliminate any keyboard peculiarities, did you try to plug in
an external keyboard?

cj









--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110107172752.GA4227@pavo.local">http://lists.debian.org/20110107172752.GA4227@pavo.local
 

Thread Tools




All times are GMT. The time now is 04:43 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org