AltGr key not working outside GNOME

Bug #349487 reported by Jens Grassel
4
Affects Status Importance Assigned to Milestone
xkeyboard-config (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Description: Ubuntu 8.04.2
Release: 8.04

xorg:
  Installiert:1:7.3+10ubuntu10.2
  Mögliche Pakete:1:7.3+10ubuntu10.2
  Versions-Tabelle:
 *** 1:7.3+10ubuntu10.2 0
        500 http://de.archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     1:7.3+10ubuntu10 0
        500 http://de.archive.ubuntu.com hardy/main Packages

I just switched to console login and starting X via startx using ion as window manager.

The AltGr key on my keyboard stopped working since then. If I start the gnome-keyboard-properties tool, it works but only within the gnome-keyboard-properties window.

I get the following messages on console when starting X:

expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
> Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server

The keyboard section of my xorg.conf looks like this:

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

If I run xev and press AltGr+q for example I get the following output on console:

KeyPress event, serial 25, synthetic NO, window 0x1600001,
    root 0x8a, subw 0x0, time 9196321, (350,-10), root:(350,36),
    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 25, synthetic NO, window 0x1600001,
    root 0x8a, subw 0x0, time 9196553, (350,-10), root:(350,36),
    state 0x88, keycode 24 (keysym 0x40, at), same_screen YES,
    XLookupString gives 1 bytes: (40) "@"
    XmbLookupString gives 1 bytes: (40) "@"
    XFilterEvent returns: False

KeyRelease event, serial 25, synthetic NO, window 0x1600001,
    root 0x8a, subw 0x0, time 9196689, (350,-10), root:(350,36),
    state 0x88, keycode 24 (keysym 0x40, at), same_screen YES,
    XLookupString gives 1 bytes: (40) "@"
    XFilterEvent returns: False

KeyRelease event, serial 25, synthetic NO, window 0x1600001,
    root 0x8a, subw 0x0, time 9196801, (350,-10), root:(350,36),
    state 0x88, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

If I press AltGr+q within an xterm nothing happens. So it seems to me that the key is recognized but not printed?!?

My .xsession :

if [ -e ~/.Xmodmap ]; then
  /usr/bin/xmodmap ~/.Xmodmap
fi
/usr/bin/urxvtd -q -o -f
/usr/bin/docker >/dev/null &
/usr/bin/xscreensaver -nosplash >/dev/null &
ion3

My .Xmodmap :

! ~/.Xmodmap

! rechte win-menu taste:
add Mod3 = Menu

! Microsoft Ergonomic Keyboard 4000
! Zoom should work like mouse wheel already
! Homepage, Search, E-Mail
!keycode 130 = XF86HomePage
keycode 178 = XF86WWW
keycode 229 = XF86Search
!keycode 120 = XF86Mail
keycode 236 = XF86Mail
! 1 - 5 special keys
keycode 183 = XF86Launch1
keycode 184 = XF86Launch2
keycode 93 = XF86Launch3
keycode 131 = XF86Launch4
keycode 247 = XF86Launch5
! Audio Mute, Volume Lower, Volume Raise, Play
keycode 160 = XF86AudioMute
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
keycode 162 = XF86AudioPlay
! Calc
keycode 161 = XF86Calculator
! Favourites
keycode 230 = XF86Favorites
! Back/Forward
keycode 234 = XF86Back
keycode 233 = XF86Forward
! F1 - F12 second row without F-Caps-Key (right side of F12)
keycode 245 = osfHelp
keycode 135 = osfUndo
keycode 138 = osfRestore
keycode 137 = XF86New
keycode 191 = XF86Open
keycode 175 = XF86Close
keycode 228 = XF86Reply
keycode 142 = XF86MailForward
keycode 218 = XF86Send
keycode 240 = XF86Spell
keycode 213 = XF86Save
keycode 185 = XF86Launch6
! the three keys top left in number block
! the backspace key right has code 22 already and works like backspace
keycode 157 = XF86Launch7
keycode 246 = XF86Launch8
keycode 251 = XF86Launch9

On virtual console (text mode) everything works just fine.

Revision history for this message
Jens Grassel (jan0sch) wrote :

I just got the AltGr key working again. The following entry in my .Xmodmap did the trick:

keycode 113 = Mode_switch Multi_key

Although the warning message when starting X stays the same:

expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
> Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server

Revision history for this message
Bryce Harrington (bryce) wrote :

Hi jan0sch,

Please attach the output of `lspci -vvnn`, and attach your /var/log/Xorg.0.log (and maybe Xorg.0.log.old) file from after reproducing this issue. If you've made any customizations to your /etc/X11/xorg.conf please attach that as well.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-xorglog
tags: added: needs-lspci-vvnn
Changed in xorg (Ubuntu):
status: New → Incomplete
Bryce Harrington (bryce)
affects: xorg (Ubuntu) → xkeyboard-config (Ubuntu)
Revision history for this message
Jens Grassel (jan0sch) wrote : Re: [Bug 349487] Re: AltGr key not working outside GNOME
  • lspci.log Edit (25.4 KiB, application/octet-stream; name="lspci.log")

On Mon, 30 Mar 2009 23:29:33 -0000
Bryce Harrington <email address hidden> wrote:

BH> Hi jan0sch,
BH>
BH>
BH> Please attach the output of `lspci -vvnn`, and attach your /var/log/Xorg.0.log (and maybe Xorg.0.log.old) file from after reproducing this issue. If you've made any customizations to your /etc/X11/xorg.conf please attach that as well.
BH>
BH> [This is an automated message. Apologies if it has reached you
BH> inappropriately; please just reply to this message indicating so.]
BH>
BH>
BH> ** Tags added: needs-xorglog
BH>
BH> ** Tags added: needs-lspci-vvnn
BH>
BH> ** Changed in: xorg (Ubuntu)
BH> Status: New => Incomplete
BH>

--
03. Ostermond 2009, 23:16
Homepage : http://www.jan0sch.de

Tomorrow will be cancelled due to lack of interest.

Bryce Harrington (bryce)
tags: added: hardy
Bryce Harrington (bryce)
tags: removed: needs-lspci-vvnn
Revision history for this message
Bryce Harrington (bryce) wrote :

I'm unfamiliar with the ion window manager (it's not one we regularly support), however I spoke with Arne about this and he said it looked like this was an improperly set up .Xmodmap. If you can reproduce a bug on a stock Lucid installation, please feel free to re-file the bug, but this appears to be more a personal configuration issue than a real bug so I'm closing it at this time.

Changed in xkeyboard-config (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.