Bug#666946: eeepc-acpi-scripts: Please use xinput instead of synclient to handle touchpad

2012-04-02 Thread recovery...@gmail.com
Package: eeepc-acpi-scripts
Version: 1.1.10
Severity: wishlist


At least when using ASUS x101h eeepc, synclient doesn't actually do anything
as it fails with:

$ synclient -l
Couldn't find synaptics properties. No synaptics driver loaded?

At the same time, it looks like that using xinput is actually the way of
handling input devices in current stable xserver-xorg, and using it allows
toggling touchpad and camera of x101h.

Patch attached to this bug report works for me, but obviously introduces an
extra dependency to eeepc-acpi-scripts.

-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-0.bpo.2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages eeepc-acpi-scripts depends on:
ii  acpi-support-base  0.137-5   scripts for handling base ACPI eve
ii  acpid  1:2.0.7-1squeeze3 Advanced Configuration and Power I
ii  pm-utils   1.3.0-3   utilities and scripts for power ma
ii  rfkill 0.4-1 tool for enabling and disabling wi

Versions of packages eeepc-acpi-scripts recommends:
ii  alsa-utils1.0.23-3   Utilities for configuring and usin

Versions of packages eeepc-acpi-scripts suggests:
pn  aosd-cat   (no description available)
pn  gnome-osd  (no description available)
ii  ttf-dejavu 2.31-1Metapackage to pull in ttf-dejavu-
ii  ttf-liberation 1.05.2.20091019-4squeeze1 Fonts with the same metrics as Tim

-- Configuration Files:

-- no debconf information

--- a/etc/acpi/lib/touchpad.sh	2012-04-02 23:23:50.824472826 +0400
+++ b/etc/acpi/lib/touchpad.sh	2012-04-02 23:15:40.718042504 +0400
@@ -6,8 +6,13 @@
 
 toggle_touchpad()
 {
-local STATE
-STATE="$(synclient -l 2>/dev/null | sed -e '/TouchpadOff/! d; s/[^0-9]\+//g')"
-synclient TouchpadOff=$((1-STATE)) 2>/dev/null || return 2
+	local DEV=`xinput list | grep Pad | cut -d= -f2 | cut -c1,2`
+	[ -z "$DEV" ] && exit 2
+
+	local STATE=`xinput list-props $DEV | grep "Device Enabled" | sed -nr 's/.*([0-9])$/\1/p'`
+	[ -z "$STATE" ] && exit 2
+
+	xinput set-prop $DEV "Device Enabled" $((1-$STATE))
+
 return $((1-STATE))
 }


Bug#666946: [Debian-eeepc-devel] Bug#666946: eeepc-acpi-scripts: Please use xinput instead of synclient to handle touchpad

2012-04-03 Thread recovery...@gmail.com
On Tue, Apr 03, 2012 at 06:33:33AM -0300, Ben Armstrong wrote:
> Could you also please provide any kernel messages relating to your device?

Sure. An interesting thing, though: according to /var/log/Xorg.0.log, the
touchpad reports itself as 'FSPPS/2 Sentelic FingerSensingPad'.
According to /var/log/messages, udev finds this touchpad as

Mar 27 00:28:50 x101h kernel: [6.324293] input: FSPPS/2 Sentelic 
FingerSensingPad as /devices/platform/i8042/serio1/input/input9

I've attached a relevant part of /var/log/messages and Xorg.0.log to this
letter, just in case.

>
> 
> The counter-argument is "well, I don't run GNOME and therefore my WM
> or desktop environment doesn't handle this". Well, in that case I
> would say you should file a bug on your WM to have it do the right
> thing.

Well, I don't use GNOME DE indeed, although I have nothing against it.
As long as DE provides me a way to run a good terminal emulator - it is
a good DE in my book. If default configuration of such DE provides me
letters of sensible size - it is excellent DE. Both GNOME2 and GNOME3
behave OK on first part, and fail badly on second. Nothing that a bit of
configuration couldn't fix, though.

I agree with you that current approach of detecting an X display is
fragile at best. Still, it is unknown to me whenever GNOME (or some other
DE or WM) have means to enable or disable input devices. If this fine
package takes 'offload this and that to DE' approach - then it probably
needs to be documented somehow what exact keypresses DE needs to react for.




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#666946: [Debian-eeepc-devel] Bug#666946: eeepc-acpi-scripts: Please use xinput instead of synclient to handle touchpad

2012-04-03 Thread recovery...@gmail.com
PS OOPS. Forgot to attach files.


Xorg.0.log.gz
Description: Binary data


messages.gz
Description: Binary data