Bug#437273: xserver-xorg-input-synaptics: Synaptics touchpad doesn't work on 'switch user'
Package: xserver-xorg-input-synaptics
Version: 0.14.6-0ubuntu7
Severity: normal
Tags: patch
-- System Information:
Debian Release: 4.0
APT prefers feisty-updates
APT policy: (500, 'feisty-updates'), (500, 'feisty-security'), (500, 'feisty-backports'), (500, 'feisty')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.20-16-generic
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Versions of packages xserver-xorg-input-synaptics depends on:
ii libc6 2.5-0ubuntu14 GNU C Library: Shared libraries
ii libx11-6 2:1.1.1-1ubuntu3 X11 client-side library
ii libxext6 2:1.0.3-1build1 X11 miscellaneous extension librar
ii libxi6 2:1.1.0-1build1 X11 Input extension library
ii xserver-xorg-core 2:1.2.0-3ubuntu8 X.Org X server -- core server
xserver-xorg-input-synaptics recommends no packages.
-- no debconf information
Running Ubuntu - fault in versions for Feisty and Gutsy. Fault also
exists in current Debian release.
After a 'switch user' on the console, the mouse locks for the second
user. This is because the software does not release the console mouse on
switch.
patch attached.
Ubuntu bug is https://bugs.launchpad.net/bugs/68370
diff -ur xserver-xorg-input-synaptics-0.14.6/eventcomm.c xserver-xorg-input-synaptics-0.14.6-ds/eventcomm.c
--- xserver-xorg-input-synaptics-0.14.6/eventcomm.c 2007-07-09 19:42:55.000000000 -0700
+++ xserver-xorg-input-synaptics-0.14.6-ds/eventcomm.c 2007-07-09 19:11:03.000000000 -0700
@@ -56,6 +56,12 @@
static void
EventDeviceOffHook(LocalDevicePtr local)
{
+ int ret;
+ SYSCALL(ret = ioctl(local->fd, EVIOCGRAB, (pointer)1));
+ if (ret < 0) {
+ xf86Msg(X_WARNING, "%s can't ungrab event device, errno=%d\n",
+ local->name, errno);
+ }
}
static void
Reply to: