l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
October 20: Web Application Hacking: How to Make and Break Security on the Web
Next Installfest:
Latest News:
Oct. 10: LUGOD Installfests coming again soon
Page last updated:
2007 Apr 05 07:28

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] Shutting off tap-to-click on a Sony Vaio VGN-N270Elaptop running Ubuntu Edgy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] Shutting off tap-to-click on a Sony Vaio VGN-N270Elaptop running Ubuntu Edgy

Ubuntu mostly works great on this laptop, except that wireless access required writing a script and by default the tap-to-click misfeature is enabled.  Wireless is working fine now, but I haven't yet figured how to remove tap-to-click. 

The touchpad is an ALPS GlidePoint (http://www.alps.co.jp/index_e.htm), or at least that's what I gather from inserting some printk's into the mouse driver and running dmesg.  This is confirmed by cat /proc/bus/input/devices, which says among other things

I: Bus=0011 Vendor=0002 Product=0001 Version=7321
N: Name="PS/2 ALPS GlidePoint"
P: Phys=isa0060/serio4/input0
S: Sysfs=/class/input/input4
H: Handlers=mouse0 event1 ts0
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

Here are the things I have tried so far:
- sudo tpconfig -t 0.  This has no effect at all.  I'm using tpconfig version 3.1.3, which I guess is supposed to work with ALPS.

- Various things people recommended about Section "InputDevice", Identifier "Synaptics Touchpad" etc. in xorg.conf.  None if it did any good.  Eventually I removed that Section "InputDevice" and the touchpad still works, since I still have another InputDevice Section with Driver "mouse" and apparently the touchpad is being detected as a mouse.

- Ripping out all the code for tap-to-click in the synaptics_drv driver and installing it.  Of course this had no effect because the touchpad is an ALPS, though I didn't know it yet.

- Modifying /usr/src/linux- source-2.6.17/drivers/input/mouse/alps.c, specifically changing alps_tap_mode(psmouse, 1) to alps_tap_mode(psmouse, 0) in the places where it occurs.  I then recompiled the kernel using make-kpkg, installed it, rebooted, and still had the same problem. 

- There is a comment above the function alps_tap_mode() that suggests it won't work with stickpointer / GlidePoint pads like mine and gives some advice on how to change it.  My attempt to follow the advice led to the following new version of that function, which DOES NOT WORK, fyi:

 * Turn touchpad tapping on or off. The sequences are:
 * 0xE9 0xF5 0xF5 0xF3 0x0A to enable,
 * 0xE9 0xF5 0xF5 0xE8 0x00 to disable.
 * My guess that 0xE9 (GetInfo) is here as a sync point.
 * For models that also have stickpointer (DualPoints) its tapping
 * is controlled separately (0xE6 0xE6 0xE6 0xF3 0x14|0x0A) but
 * we don't fiddle with it.
static int alps_tap_mode(struct psmouse *psmouse, int enable)
        struct ps2dev *ps2dev = &psmouse->ps2dev;
        /* I'm not sure if the comment above is accurate. 
         * If it is then we should just use setrate in both cases
         * for stickpointer (whatever that is).
         * I'm not sure how to check for stickpointer in code, but
         * I'm guessing that's what I have, so I'm just hardcoding it for now.
         * -ijt 2:37am april 4 '07 */
        int cmd = enable ? PSMOUSE_CMD_SETRATE : PSMOUSE_CMD_SETRES;
        int stickpoint = 1; /* FIXME: set this from a test of some kind */
        unsigned char tap_arg = stickpoint
                                    ?(enable ? 0x14 : 0x0A)
                                    :(enable ? 0x0A : 0x00);
        int middle_stuff =
        unsigned char param[4];

        printk("Setting ALPS tap mode to %i\n",enable);

        if (ps2_command(ps2dev, param, PSMOUSE_CMD_GETINFO) ||
            ps2_command(ps2dev, NULL, middle_stuff) ||
            ps2_command(ps2dev, NULL, middle_stuff) ||
            ps2_command(ps2dev, &tap_arg, cmd))
                return -1;

        if (alps_get_status(psmouse, param))
                return -1;

        return 0;

I guess now I'm going to see if there's a new version of the mouse driver in the latest kernel sources. 

Tap-to-click is a cruel joke, so please help if you can.


vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.