Bug#583864: #583864 - gnome-settings-daemon: XF86TouchpadToggle gets out of sync on hibernation
Kalle Olavi Niemitalo
kon at iki.fi
Mon Jul 7 04:04:58 UTC 2014
Kalle Olavi Niemitalo <kon at iki.fi> writes:
> Support for XF86TouchpadOff or XF86TouchpadOn was first included
> in GNOME_SETTINGS_DAEMON_2_91_4. The experimental Debian package
> of gnome-settings-daemon 2.91.5.1-1 includes that change.
> However, I'm not sure it'd be right to mark the bug as having
> been fixed in that version, because the fix required changes in
> Linux and in the X server too. All of them are in Wheezy though.
On further review, it seems the change was in udev, not in Linux.
/lib/udev/keymaps/acer maps the scancodes of the touchpad toggle
key to distinct keycodes:
| 0xF1 f22 # Fn+F7 Touchpad toggle (off-to-on)
| 0xF2 f23 # Fn+F7 Touchpad toggle (on-to-off)
This was done in upstream udev 165 but the Debian udev 164-2
sources also carry this change as debian/patches/backport9.
Squeeze includes udev 164-3 so the fix is there already.
Although <linux/input.h> defines KEY_TOUCHPAD_TOGGLE,
KEY_TOUCHPAD_ON, and KEY_TOUCHPAD_OFF, those keycodes are
not used because the X11 protocol does not support so many keys.¹
KEY_F21, KEY_F22, and KEY_F23 are used instead.
In xkb-data 2.5.1-3 of Wheezy, /usr/share/X11/xkb/symbols/inet includes:
| key <FK21> { [ XF86TouchpadToggle ] };
| key <FK22> { [ XF86TouchpadOn ] };
| key <FK23> { [ XF86TouchpadOff ] };
These FK22 and FK23 mappings were added before the upstream
xkeyboard-config 2.1.² The first fixed Debian package was
xkeyboard-config 2.1-1 (experimental). Squeeze has xkb-data
1.8-2, which instead maps <FK22> to XF86TouchpadToggle.
Summary of fixed versions:
* udev 164-2; the fix is already in Squeeze.
* xkb-data 2.1-1
* gnome-settings-daemon 2.91.5.1-1
When I reported this bug in May 2010, Squeeze had not yet been
frozen. The current versions in Squeeze seem unlikely to handle
the touchpad toggle key properly: udev now maps the on-to-off
transition to F23 but xkb-data 1.8-2 does not map that to
anything, as far as I can tell. I can't test Squeeze now that
I've upgraded the laptop to Wheezy. Anyway, Squeeze is already
oldstable so I don't expect it will be fixed.
¹ http://www.x.org/wiki/Development/X12/#resourcelimits
² https://bugs.freedesktop.org/show_bug.cgi?id=31333
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20140707/03d7b307/attachment.sig>
More information about the pkg-gnome-maintainers
mailing list