Bug 93046 - DirectFB sets any ALPS touchpad to absolute mode
Bug#: 93046 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: predatory.kangaroo@gmail.com
Component: Library
URL: 
Summary: DirectFB sets any ALPS touchpad to absolute mode
Keywords:  
Status Whiteboard: 
Opened: 2005-05-18 03:01 0000
Description:   Opened: 2005-05-18 03:01 0000
As of the recent change in the way the kernel handles ALPS touchpads (I believe
from the 2.6 branch), any DirectFB program that tries to access the mouse will
access it in absolute mode.

To fix this, you can remove the linuxinput driver for DirectFB.  Attached is a
patch to DirectFB-0.9.22's ebuild to enable configuring which input drivers to
compile through a variable - INPUT_DRIVERS.
This patch also adds a warning for ALPS users to the situation.

Reproducible: Always
Steps to Reproduce:
1. emerge DirectFB on a system with an ALPS touchpad
2. emerge qingy
3. Start qingy
4. Press the pad in the top right corner
5. Press the pad in the bottom left corner
6. Remove /usr/lib/directfb-0.9.22/inputdrivers/libdirectfb_linuxinput*
7. Repeat steps 3 to 5

Actual Results:  
In the first case, the mouse will be set absolutely to the top right corner,
then the bottom left.
In the second case, the mouse will not move.

Expected Results:  
In both cases, the mouse should not move at all, unless you drag your finger.

------- Comment #1 From Lachlan Pease 2005-05-18 03:04:19 0000 -------
Created an attachment (id=59203) [details]
Patch to the directfb ebuild

Patch to add the INPUT_DRIVERS variable for the DirectFB ebuild (works the same
as the VIDEO_CARDS variable) and warn of the problem with ALPS problem.

------- Comment #2 From SpanKY 2005-05-18 20:42:26 0000 -------
wow, it's not every day that a user posts a patch you can just download, apply,
and commit without touching a thing ! :)

added to portage, thanks for the clean patch