Bug 31605 - compose:rwin uses menu key instead of right windows key
Summary: compose:rwin uses menu key instead of right windows key
Status: RESOLVED NOTABUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Input/XKB (show other bugs)
Version: 7.5 (2009.10)
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Daniel Stone
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2010-11-13 09:15 UTC by Chris King
Modified: 2011-12-20 15:52 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
xkbcomp :0 -xkb out.xkb (44.24 KB, text/plain)
2010-11-21 07:42 UTC, Chris King
no flags Details
xev output, rwin, then menu (1.11 KB, text/plain)
2010-11-21 07:42 UTC, Chris King
no flags Details
xorg.conf showing compose:rwin in use (1.41 KB, text/plain)
2010-11-21 08:28 UTC, Chris King
no flags Details
Xorg log showing compose:menu (15.31 KB, text/plain)
2010-11-21 08:28 UTC, Chris King
no flags Details

Description Chris King 2010-11-13 09:15:08 UTC
Title says it all: compose:rwin uses menu key instead of right windows key, as it should.  compose:menu works as expected.  I'm pretty sure this used to work correctly, but it is broken on a fresh Debian X.org 7.5 setup.
Comment 1 Sergey V. Udaltsov 2010-11-20 13:16:54 UTC
Can you attach the result of xkbcomp :0 -xkb out.xkb?

Also, what is output in xev utility when you press rwin and menu?
Comment 2 Chris King 2010-11-20 19:45:34 UTC
I received this error when running xkbcomp:

$ xkbcomp :0 -xkb out.xkb
Warning:          Could not load keyboard geometry for :0
                  BadAlloc (insufficient resources for operation)
                  Resulting keymap file will not describe geometry

The resulting out.xkb is attached.

Also attached is out.xev, the output of xev when rwin and menu are
pressed (in that order).

This is BTW a fresh install.  I had initially set compose:menu in
xorg.conf, and changed it after one session to compose:rwin.  Not sure
if that could affect anything.
Comment 3 Sergey V. Udaltsov 2010-11-21 02:15:35 UTC
> $ xkbcomp :0 -xkb out.xkb
> Warning:          Could not load keyboard geometry for :0
>                   BadAlloc (insufficient resources for operation)
>                   Resulting keymap file will not describe geometry
From my experience, that message indicates there was problem initializing XKB internal structures. If so, it is really problem in XKB code.
Comment 4 Julien Cristau 2010-11-21 03:57:01 UTC
> --- Comment #2 from Chris King <colanderman@gmail.com> 2010-11-20 19:45:34 PST ---
> The resulting out.xkb is attached.
> 
Did you forget the attachment?
Comment 5 Chris King 2010-11-21 07:42:04 UTC
Created attachment 40450 [details]
xkbcomp :0 -xkb out.xkb
Comment 6 Chris King 2010-11-21 07:42:51 UTC
Created attachment 40451 [details]
xev output, rwin, then menu
Comment 7 Chris King 2010-11-21 07:43:38 UTC
(In reply to comment #4)
> Did you forget the attachment?

My fault, I thought attaching them in an e-mail reply would work.  They are attached to the bug report now.
Comment 8 Julien Cristau 2010-11-21 08:18:41 UTC
(In reply to comment #5)
> Created an attachment (id=40450) [details]
> xkbcomp :0 -xkb out.xkb

That says you're using compose:menu.  Care to attach the X log?
Comment 9 Chris King 2010-11-21 08:28:05 UTC
Created attachment 40453 [details]
xorg.conf showing compose:rwin in use

I have rebooted several times since switching to compose:rwin (kernel recompiles etc.).
Comment 10 Chris King 2010-11-21 08:28:44 UTC
Created attachment 40454 [details]
Xorg log showing compose:menu
Comment 11 Chris King 2011-12-19 16:11:45 UTC
This bug still exists in the xorg 7.5+7 package.  Any word on this
since last year?
Comment 12 Sergey V. Udaltsov 2011-12-20 15:09:35 UTC
I do not understand! From your logs

(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc104"
(**) Option "xkb_layout" "us"
(**) Option "xkb_options" "ctrl:nocaps,compose:menu"

it is clear you are using compose:menu in your config. Why are you complaining about compose:rwin?

Sorry for delay with the bug.
Comment 13 Chris King 2011-12-20 15:23:56 UTC
On Tue, Dec 20, 2011 at 6:09 PM,  <bugzilla-daemon@freedesktop.org> wrote:
> I do not understand! From your logs
>
> (**) Option "xkb_rules" "evdev"
> (**) Option "xkb_model" "pc104"
> (**) Option "xkb_layout" "us"
> (**) Option "xkb_options" "ctrl:nocaps,compose:menu"
>
> it is clear you are using compose:menu in your config. Why are you complaining
> about compose:rwin?

Because in my /etc/X11/xorg.conf, I have written:

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "us"
        Option          "XkbOptions"    "ctrl:nocaps,compose:rwin"
EndSection

Is there something amiss here, that causes ctrl:nocaps to work but
compose:rwin not to?
Comment 14 Alan Coopersmith 2011-12-20 15:29:49 UTC
(In reply to comment #13)
> Because in my /etc/X11/xorg.conf, I have written:
> 
> Section "InputDevice"
>         Identifier      "Generic Keyboard"
>         Driver          "kbd"
>         Option          "XkbRules"      "xorg"
>         Option          "XkbModel"      "pc104"
>         Option          "XkbLayout"     "us"
>         Option          "XkbOptions"    "ctrl:nocaps,compose:rwin"
> EndSection
> 
> Is there something amiss here, that causes ctrl:nocaps to work but
> compose:rwin not to?

Your log says:
(II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.

and:
(II) config/udev: Adding input device HID 04d9:1203 (/dev/input/event8)
(**) HID 04d9:1203: Applying InputClass "evdev keyboard catchall"
(**) HID 04d9:1203: always reports core events
(**) HID 04d9:1203: Device: "/dev/input/event8"
(II) HID 04d9:1203: Found keys
(II) HID 04d9:1203: Configuring as keyboard
(II) XINPUT: Adding extended input device "HID 04d9:1203" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc104"
(**) Option "xkb_layout" "us"
(**) Option "xkb_options" "ctrl:nocaps,compose:menu"

which means that xorg.conf entries for the obsolete kbd driver are
ignored as your server is using the modern evdev driver as configured
by udev & xorg.conf snippets.   See documentation for example at:

https://fedoraproject.org/wiki/Input_device_configuration
http://wiki.debian.org/XStrikeForce/InputHotplugGuide
Comment 15 Chris King 2011-12-20 15:52:14 UTC
On Tue, Dec 20, 2011 at 6:29 PM,  <bugzilla-daemon@freedesktop.org> wrote:
> which means that xorg.conf entries for the obsolete kbd driver are
> ignored as your server is using the modern evdev driver as configured
> by udev & xorg.conf snippets.   See documentation for example at:
>
> https://fedoraproject.org/wiki/Input_device_configuration
> http://wiki.debian.org/XStrikeForce/InputHotplugGuide

Ah thanks, those helped.  It was strange that kbd partially worked.
There's no indication in kbd(4) that it is obsolete; hence I felt I
could continue using it from my old configuration.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.