2003-07-22 04:24:48

by David Benfell

[permalink] [raw]
Subject: touchpad doesn't work under 2.6.0-test1-ac2

Hello all,

Finally decided to give a development kernel a try on an HP zt1180
laptop. The kernel build went smoothly and I thought all was well
(well except I guess I've gotta figure out frame buffer support again)
until I started X and discovered that the mouse wasn't working.

I'm guessing this list doesn't allow attachments, and I don't really
want to splat all over everybody with the output I thought relevant,
so I've posted it on my website:

http://www.parts-unknown.org/hp-zt1180-dmesg.gz
http://www.parts-unknown.org/hp-zt1180-lspci.gz
http://www.parts-unknown.org/hp-zt1180.config.gz

wget should work.

Did I miss a configuration option or do some other stupid thing?

--
David Benfell
[email protected]


Attachments:
(No filename) (732.00 B)
(No filename) (478.00 B)
Download all attachments

2003-07-23 13:53:04

by Josh Crawley

[permalink] [raw]
Subject: Re: touchpad doesn't work under 2.6.0-test1-ac2

David Benfell wrote:

>Hello all,
>
>
Hello.

>Finally decided to give a development kernel a try on an HP zt1180
>laptop. The kernel build went smoothly and I thought all was well
>(well except I guess I've gotta figure out frame buffer support again)
>until I started X and discovered that the mouse wasn't working.
>
>
Just a few points. First, is your input pointed at /dev/input/mouse ?
Second, you need the userspace synaptics for touchpads, which
unfortunately needs to be done.

>I'm guessing this list doesn't allow attachments, and I don't really
>want to splat all over everybody with the output I thought relevant,
>so I've posted it on my website:
>
>
As long as the attachments arent big, I think it's ok. I sent here a few
problems just like what you're talking about.

Good day,
Josh

2003-07-24 20:13:19

by Michael Schierl

[permalink] [raw]
Subject: Re: touchpad doesn't work under 2.6.0-test1-ac2

David Benfell <[email protected]> wrote:

>Hello all,
>
>Finally decided to give a development kernel a try on an HP zt1180
>laptop. The kernel build went smoothly and I thought all was well
>(well except I guess I've gotta figure out frame buffer support again)
>until I started X and discovered that the mouse wasn't working.

same for me under 'vanilla' 2.6.0-test1.

However, giving 'psmouse_noext' as kernel param helped for me to make
the touchpad work (using /dev/input/mice (protocol autops2) as source
for gpm and gpm repeater as source for x, as I did in 2.4.x kernels).

Setting "#define DEBUG" in drivers/input/serio/i8042.c caused lots of
lines of text on my console whenever i touched either the touchpad or
one of the (four) buttons.

with 'psmouse_noext' it creates less lines on my console, and only for
two buttons, not for the other two.

HTH,

Michael
--
"New" PGP Key! User ID: Michael Schierl <[email protected]>
Key ID: 0x58B48CDD Size: 2048 Created: 26.03.2002
Fingerprint: 68CE B807 E315 D14B 7461 5539 C90F 7CC8
http://home.arcor.de/mschierlm/mschierlm.asc

2003-07-24 21:09:12

by Petr Vandrovec

[permalink] [raw]
Subject: Re: touchpad doesn't work under 2.6.0-test1-ac2

On Thu, Jul 24, 2003 at 10:27:51PM +0200, Michael Schierl wrote:
> David Benfell <[email protected]> wrote:
>
> However, giving 'psmouse_noext' as kernel param helped for me to make
> the touchpad work (using /dev/input/mice (protocol autops2) as source
> for gpm and gpm repeater as source for x, as I did in 2.4.x kernels).
>
> Setting "#define DEBUG" in drivers/input/serio/i8042.c caused lots of
> lines of text on my console whenever i touched either the touchpad or
> one of the (four) buttons.

In the drivers/input/mousedev.c there is (beside other entries) only
one entry for absolute devices:

{
.flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_ABSBIT,
.evbit = { BIT(EV_KEY) | BIT(EV_ABS) },
.keybit = { [LONG(BTN_TOUCH)] = BIT(BTN_TOUCH) },
.absbit = { BIT(ABS_X) | BIT(ABS_Y) },
}, /* A tablet like device, at least touch detection, two absolute axes */

This entry requires that device reports BTN_TOUCH - but Synaptics tablet
does not have any BTN_TOUCH, it has only "normal" LEFT, RIGHT buttons.
So I created additional entry, which listed "[LONG(BTN_LEFT)] = BIT(BTN_LEFT)"
for .keybit instead.

After this change gpm sees some events, but vertical movement is reversed
(although synaptics does not report that...) and whenever I take finger
up from touchpad mouse randomly jumps over screen.

And worse - after booting with Synaptics protocol enabled touching flatpannel
with finger stops working as left button until machine is powered off.

This all happens on Compaq EVO N800C. I strongly believe that we need a
build time option for disabling Synaptics detection, or at least input_synaptics=0
runtime option, until it can work at least as well as it works like ps/2
device.

Needless to say that small joystick on the keyboard does not work in synaptics
mode, and it does not create separate input device.

Best regards,
Petr Vandrovec
[email protected]


2003-07-24 22:42:51

by Pavel Machek

[permalink] [raw]
Subject: Re: touchpad doesn't work under 2.6.0-test1-ac2

Hi!

> This all happens on Compaq EVO N800C. I strongly believe that we need a
> build time option for disabling Synaptics detection, or at least input_synaptics=0
> runtime option, until it can work at least as well as it works like ps/2
> device.

Agreed, I even send a patch to vojtech, he said he is going to apply
it and I have not heard about that patch after that...
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

2003-07-24 23:56:14

by Vojtech Pavlik

[permalink] [raw]
Subject: Re: touchpad doesn't work under 2.6.0-test1-ac2

On Fri, Jul 25, 2003 at 12:57:45AM +0200, Pavel Machek wrote:

> Hi!
>
> > This all happens on Compaq EVO N800C. I strongly believe that we need a
> > build time option for disabling Synaptics detection, or at least input_synaptics=0
> > runtime option, until it can work at least as well as it works like ps/2
> > device.
>
> Agreed, I even send a patch to vojtech, he said he is going to apply
> it and I have not heard about that patch after that...

For proper Synaptics support an XFree86 driver is available (get it at
http://w1.894.telia.com/~u89404340/touchpad/index.html). This will allow
for full support, including gesture recongition. Passthrough support for
enabling the touchpoint or external mice chained to the Synaptics pad is
pending in my patch queue and will be merged as soon as I return from
Ottawa.

Support for touchpads is nonexistent in mousedev.c, it only supports
mice, digitizers and touchscreens. Just adding an entry to the device
tableis futile, you'd need much much more than that.

--
Vojtech Pavlik
SuSE Labs, SuSE CR

2003-07-25 00:01:34

by Petr Vandrovec

[permalink] [raw]
Subject: Re: touchpad doesn't work under 2.6.0-test1-ac2

On 25 Jul 03 at 2:11, Vojtech Pavlik wrote:
> On Fri, Jul 25, 2003 at 12:57:45AM +0200, Pavel Machek wrote:
> >
> > > This all happens on Compaq EVO N800C. I strongly believe that we need a
> > > build time option for disabling Synaptics detection, or at least input_synaptics=0
> > > runtime option, until it can work at least as well as it works like ps/2
> > > device.
> >
> > Agreed, I even send a patch to vojtech, he said he is going to apply
> > it and I have not heard about that patch after that...
>
> For proper Synaptics support an XFree86 driver is available (get it at
> http://w1.894.telia.com/~u89404340/touchpad/index.html). This will allow
> for full support, including gesture recongition. Passthrough support for

I do not use XFree. I'm using 1600x1200 radeonfb consoles.

> enabling the touchpoint or external mice chained to the Synaptics pad is
> pending in my patch queue and will be merged as soon as I return from
> Ottawa.
>
> Support for touchpads is nonexistent in mousedev.c, it only supports
> mice, digitizers and touchscreens. Just adding an entry to the device
> table is futile, you'd need much much more than that.

What's difference between touchscreen and touchpad? Both use absolute
directions, and rest are just buttons... As I need working gpm, without
mousedev support Synaptics mode is of no use for me.
Petr


2003-07-25 06:53:19

by David Benfell

[permalink] [raw]
Subject: Re: touchpad doesn't work under 2.6.0-test1-ac2

Hello all,

First someone pointed me at the driver available through

http://w1.894.telia.com/~u89404340/touchpad/index.html

I hadn't known about this, but I implemented it. It does not work
for me under either the 2.6.0-test1-ac2 kernel or the kernel I was
using before (2.4.21-pre6).

Output from the startx is:

XFree86 Version 4.3.0
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.6.0-test1-ac1 i686 [ELF]
Build Date: 23 July 2003
Before reporting problems, check http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Wed Jul 23 08:01:03 2003
(==) Using config file: "/etc/X11/XF86Config"

[10e] 320 x 200, 70Hz
[111] 640 x 480, 60Hz, 72Hz, 75Hz, 85Hz
[114] 800 x 600, 60Hz, 72Hz, 75Hz, 85Hz
[117] 1024 x 768, 60Hz, 70Hz, 75Hz, 85Hz
[11a] 1280 x 1024, 60Hz, 75Hz
[11d] 640 x 400, 70Hz
[122] 1600 x 1200, 60Hz
[133] 320 x 240, 72Hz
[13c] 1400 x 1050, 60Hz, 75Hz
[143] 400 x 300, 72Hz
[153] 512 x 384, 70Hz
[173] 720 x 480, 75Hz
[17e] 720 x 576, 75Hz
auto-dev: Found Synaptics in /proc/bus/input/devices
auto-dev: Found its handler entry
auto-dev: cannot find the event-device in the handlers-entry for the Synaptics touchpad hardware. Falling back to psaux protocol and the Device Option from XF86Config.
Query no Synaptics: 6003C8
(EE) Mouse[1] no synaptics touchpad detected and no repeater device
(EE) Mouse[1] Unable to query/initialize Synaptics hardware.
(EE) PreInit failed for input device "Mouse[1]"
No core pointer

Fatal server error:
failed to initialize core devices

When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to [email protected].

XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.

On Thu, 24 Jul 2003 23:24:16 +0200, Petr Vandrovec wrote:
> On Thu, Jul 24, 2003 at 10:27:51PM +0200, Michael Schierl wrote:
> > David Benfell <[email protected]> wrote:
> >
> > However, giving 'psmouse_noext' as kernel param helped for me to make
> > the touchpad work (using /dev/input/mice (protocol autops2) as source
> > for gpm and gpm repeater as source for x, as I did in 2.4.x kernels).
> >
No joy here, either:

[Using /dev/input/mouse as the input device]

XFree86 Version 4.3.0
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.6.0-test1-ac1 i686 [ELF]
Build Date: 23 July 2003
Before reporting problems, check http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Wed Jul 23 09:25:40 2003
(==) Using config file: "/etc/X11/XF86Config"

[10e] 320 x 200, 70Hz
[111] 640 x 480, 60Hz, 72Hz, 75Hz, 85Hz
[114] 800 x 600, 60Hz, 72Hz, 75Hz, 85Hz
[117] 1024 x 768, 60Hz, 70Hz, 75Hz, 85Hz
[11a] 1280 x 1024, 60Hz, 75Hz
[11d] 640 x 400, 70Hz
[122] 1600 x 1200, 60Hz
[133] 320 x 240, 72Hz
[13c] 1400 x 1050, 60Hz, 75Hz
[143] 400 x 300, 72Hz
[153] 512 x 384, 70Hz
[173] 720 x 480, 75Hz
[17e] 720 x 576, 75Hz
auto-dev: Could not find N: Name="Synaptics Synaptics TouchPad" and its handler entry H: Handlers= in /proc/bus/input/devices. So we are unable to auto-determine the synaptics touchpad device, falling back to psaux protocol and the Device Option.
(EE) xf86OpenSerial: Cannot open device /dev/input/mouse
No such file or directory.
Synaptics driver unable to open device
(EE) PreInit failed for input device "Mouse[1]"
No core pointer

Fatal server error:
failed to initialize core devices

When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to [email protected].

XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.

[Using /dev/psaux as the input device]

XFree86 Version 4.3.0
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.6.0-test1-ac1 i686 [ELF]
Build Date: 23 July 2003
Before reporting problems, check http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Wed Jul 23 09:22:03 2003
(==) Using config file: "/etc/X11/XF86Config"
[10e] 320 x 200, 70Hz
[111] 640 x 480, 60Hz, 72Hz, 75Hz, 85Hz
[114] 800 x 600, 60Hz, 72Hz, 75Hz, 85Hz
[117] 1024 x 768, 60Hz, 70Hz, 75Hz, 85Hz
[11a] 1280 x 1024, 60Hz, 75Hz
[11d] 640 x 400, 70Hz
[122] 1600 x 1200, 60Hz
[133] 320 x 240, 72Hz
[13c] 1400 x 1050, 60Hz, 75Hz
[143] 400 x 300, 72Hz
[153] 512 x 384, 70Hz
[173] 720 x 480, 75Hz
[17e] 720 x 576, 75Hz
auto-dev: Could not find N: Name="Synaptics Synaptics TouchPad" and its handler entry H: Handlers= in /proc/bus/input/devices. So we are unable to auto-determine the synaptics touchpad device, falling back to psaux protocol and the Device Option.
Query no Synaptics: 6003C8
(EE) Mouse[1] no synaptics touchpad detected and no repeater device
(EE) Mouse[1] Unable to query/initialize Synaptics hardware.
(EE) PreInit failed for input device "Mouse[1]"
No core pointer

Fatal server error:
failed to initialize core devices

When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to [email protected].

XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.

I've attached my XF86Config, which includes commented out remnants of
things I've tried.

Thanks!
--
David Benfell
[email protected]


Attachments:
(No filename) (0.00 B)
(No filename) (478.00 B)
Download all attachments

2003-07-25 21:21:41

by Peter Osterlund

[permalink] [raw]
Subject: Re: touchpad doesn't work under 2.6.0-test1-ac2

David Benfell <[email protected]> writes:

> First someone pointed me at the driver available through
>
> http://w1.894.telia.com/~u89404340/touchpad/index.html
>
> I hadn't known about this, but I implemented it. It does not work
> for me under either the 2.6.0-test1-ac2 kernel or the kernel I was
> using before (2.4.21-pre6).
>
> Output from the startx is:
>
> auto-dev: Found Synaptics in /proc/bus/input/devices
> auto-dev: Found its handler entry
> auto-dev: cannot find the event-device in the handlers-entry for the Synaptics touchpad hardware. Falling back to psaux protocol and the Device Option from XF86Config.
> Query no Synaptics: 6003C8

It looks like the problem is that the evdev module is not loaded.

--
Peter Osterlund - [email protected]
http://w1.894.telia.com/~u89404340

2003-07-25 23:38:17

by Vojtech Pavlik

[permalink] [raw]
Subject: Re: touchpad doesn't work under 2.6.0-test1-ac2

On Fri, Jul 25, 2003 at 02:16:25AM +0200, Petr Vandrovec wrote:

> > For proper Synaptics support an XFree86 driver is available (get it at
> > http://w1.894.telia.com/~u89404340/touchpad/index.html). This will allow
> > for full support, including gesture recongition. Passthrough support for
>
> I do not use XFree. I'm using 1600x1200 radeonfb consoles.

gpm support is on the way. Until it's available, you can use
'psmouse_noext=1' on the kernel or module command line to bring the
synaptics touchpad to standard PS/2 mouse mode. Then it'll work with gpm
without any changes. Don't expect advanced
multitap/scrolling/palmdetection, then, though.

> > Support for touchpads is nonexistent in mousedev.c, it only supports
> > mice, digitizers and touchscreens. Just adding an entry to the device
> > table is futile, you'd need much much more than that.
>
> What's difference between touchscreen and touchpad? Both use absolute
> directions, and rest are just buttons... As I need working gpm, without
> mousedev support Synaptics mode is of no use for me.

Touchscreen is overlaid over a screen. The cursor follows the finger
position exactly. This is the sale for digitizers, except a cursor is
replaced by a pen. Touchpads are completely different - the finger
motion is relativized and then summed up again, so instead of the cursor
following the finger position, it moves in the direction the finger
moves.

As an example, imagine touching the touchscreen in the lower left corner and
moving it to the upper right. You end up with the cursor in the upper
right corner. Now tap the lower left corner again, and the cursor moves
there immediately. This is the behavior mousedev supports.

While with a touchpad, you'll first see the cursor moving towards the
upper right corner, but not reaching it. Now after tapping the lower
left corner again, the cursor stays in position and can be moved further
...

See the difference?

--
Vojtech Pavlik
SuSE Labs, SuSE CR

2003-07-27 03:50:32

by David Benfell

[permalink] [raw]
Subject: SOLVED: touchpad doesn't work under 2.6.0-test1-ac2

On Fri, 25 Jul 2003 00:08:06 -0700, David Benfell wrote:
> Hello all,
>
> First someone pointed me at the driver available through
>
> http://w1.894.telia.com/~u89404340/touchpad/index.html
>
This driver does not work on the HP ZT1180.

What does work is enabling CONFIG_INPUT_EVDEV in the kernel
configuration. The trick then is to NOT combine this with the
Synaptics driver mentioned above.

Full details are available at:

http://www.greybeard95a.com/hp/zt1180/

Thanks to everyone for their help!

--
David Benfell
[email protected]


Attachments:
(No filename) (551.00 B)
(No filename) (478.00 B)
Download all attachments

2003-07-27 07:21:42

by Peter Osterlund

[permalink] [raw]
Subject: Re: SOLVED: touchpad doesn't work under 2.6.0-test1-ac2

David Benfell <[email protected]> writes:

> On Fri, 25 Jul 2003 00:08:06 -0700, David Benfell wrote:
> > Hello all,
> >
> > First someone pointed me at the driver available through
> >
> > http://w1.894.telia.com/~u89404340/touchpad/index.html
> >
> This driver does not work on the HP ZT1180.
>
> What does work is enabling CONFIG_INPUT_EVDEV in the kernel
> configuration. The trick then is to NOT combine this with the
> Synaptics driver mentioned above.

I want the driver to work on as many computers as possible. Can you
please send me the XFree86 log file you get when you try to use the
XFree driver and CONFIG_INPUT_EVDEV at the same time.

--
Peter Osterlund - [email protected]
http://w1.894.telia.com/~u89404340