2004-04-20 00:26:37

by Evgeny Rodichev

[permalink] [raw]
Subject: /dev/psaux problem (2.6.5)

Hi,

as it was described already, the new 2.6.0 approach for handling some
input devices (mice!) lead to many troubles. As for me, the tp4d daemon
(which is for IBM ThinkPad trackpoint) is very useful and reliable with
2.0, 2.2 and 2.4 kernels, but it doesn't work with 2.6.x.

There is a good problem description at
http://www.informatik.uni-freiburg.de/~danlee/fun/psaux/ and a user space
driver which solves the problem. It works fine with 2.6.3, but not with
2.6.5.

The reason is that in 2.6.5 it looks impossible to disable the existing
mouse driver, which conflicts with driver from Tuukka Toivonen. My
temporary solution was as follows:


--- drivers/input/Kconfig.orig 2004-04-04 07:36:18.000000000 +0400
+++ drivers/input/Kconfig 2004-04-20 03:45:31.000000000 +0400
@@ -26,7 +26,6 @@ comment "Userland interfaces"

config INPUT_MOUSEDEV
tristate "Mouse interface" if EMBEDDED
- default y
depends on INPUT
---help---
Say Y here if you want your mouse to be accessible as char devices


I am not experienced with the modern config managment, but it looks like
a bug in 2.6.5 configuration system. I suggest also to include Tuukka Toivonen
driver in 2.6.x tree, as it is stable, clearly described, and it solves
many compatibility problems.

_________________________________________________________________________
Evgeny Rodichev Sternberg Astronomical Institute
email: [email protected] Moscow State University
Phone: 007 (095) 939 2383
Fax: 007 (095) 932 8841 http://www.sai.msu.su/~er


2004-04-20 07:21:00

by Sau Dan Lee

[permalink] [raw]
Subject: Re: /dev/psaux problem (2.6.5)

>>>>> "Rodichev" == E Rodichev <[email protected]> writes:

Rodichev> There is a good problem description at
Rodichev> http://www.informatik.uni-freiburg.de/~danlee/fun/psaux/
Rodichev> and a user space driver which solves the problem. It
Rodichev> works fine with 2.6.3, but not with 2.6.5.

Rodichev> The reason is that in 2.6.5 it looks impossible to
Rodichev> disable the existing mouse driver, which conflicts with
Rodichev> driver from Tuukka Toivonen. My temporary solution was
Rodichev> as follows:

--- drivers/input/Kconfig.orig 2004-04-04 07:36:18.000000000 +0400
+++ drivers/input/Kconfig 2004-04-20 03:45:31.000000000 +0400
@@ -26,7 +26,6 @@ comment "Userland interfaces"

config INPUT_MOUSEDEV
tristate "Mouse interface" if EMBEDDED
- default y
depends on INPUT
---help---
Say Y here if you want your mouse to be accessible as char devices



Well... that means you can disable that option if you have enabled
CONFIG_EMBEDDED, which is the top level option "Remove kernel features
(for embedded systems)". I don't understand why they make it like
that. It's quite unintuitive.

I have added this note to my latest Kconfig for psaux, which
unfortunately was not released. :P




--
Sau Dan LEE ???u??(Big5) ~{@nJX6X~}(HZ)

E-mail: [email protected]
Home page: http://www.informatik.uni-freiburg.de/~danlee

2004-04-20 12:36:47

by Dmitry Torokhov

[permalink] [raw]
Subject: Re: /dev/psaux problem (2.6.5)

On Monday 19 April 2004 07:26 pm, E.Rodichev wrote:

> The reason is that in 2.6.5 it looks impossible to disable the existing
> mouse driver, which conflicts with driver from Tuukka Toivonen. My
> temporary solution was as follows:
>
>
> --- drivers/input/Kconfig.orig ?2004-04-04 07:36:18.000000000 +0400
> +++ drivers/input/Kconfig ? ? ? 2004-04-20 03:45:31.000000000 +0400
> @@ -26,7 +26,6 @@ comment "Userland interfaces"
>
> ?config INPUT_MOUSEDEV
> ? ? ? ? tristate "Mouse interface" if EMBEDDED
> - ? ? ? default y
> ? ? ? ? depends on INPUT
> ? ? ? ? ---help---
> ? ? ? ? ? Say Y here if you want your mouse to be accessible as char devices
>

Ok, I am slow today, but how does mousedev affect his psaux implementation?
I can see that his module can conflict with psmouse (which is configurable),
but mousedev?

The reason it is always on because it is useful for any kind of mouse -
serial, USB, PS/2. You really want to keep it around...

--
Dmitry

2004-04-20 14:11:50

by Evgeny Rodichev

[permalink] [raw]
Subject: Re: /dev/psaux problem (2.6.5)

It's not a problem of mousedev, but the problem of make menuconfig.

The relevant part of .config is

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_TSDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set

Starting from original linux-2.6.5.tar.gz it seems impossible to
disable CONFIG_INPUT_MOUSEDEV_PSAUX without disabling CONFIG_INPUT_MOUSEDEV.

If I comment out the line CONFIG_INPUT_MOUSEDEV_PSAUX by hand, make
silently restore this line to yes.

Regards,
E.R.

On Tue, 20 Apr 2004, Dmitry Torokhov wrote:

> On Monday 19 April 2004 07:26 pm, E.Rodichev wrote:
>
> > The reason is that in 2.6.5 it looks impossible to disable the existing
> > mouse driver, which conflicts with driver from Tuukka Toivonen. My
> > temporary solution was as follows:
> >
> >
> > --- drivers/input/Kconfig.orig ?2004-04-04 07:36:18.000000000 +0400
> > +++ drivers/input/Kconfig ? ? ? 2004-04-20 03:45:31.000000000 +0400
> > @@ -26,7 +26,6 @@ comment "Userland interfaces"
> >
> > ?config INPUT_MOUSEDEV
> > ? ? ? ? tristate "Mouse interface" if EMBEDDED
> > - ? ? ? default y
> > ? ? ? ? depends on INPUT
> > ? ? ? ? ---help---
> > ? ? ? ? ? Say Y here if you want your mouse to be accessible as char devices
> >
>
> Ok, I am slow today, but how does mousedev affect his psaux implementation?
> I can see that his module can conflict with psmouse (which is configurable),
> but mousedev?
>
> The reason it is always on because it is useful for any kind of mouse -
> serial, USB, PS/2. You really want to keep it around...
>
> --
> Dmitry
>

_________________________________________________________________________
Evgeny Rodichev Sternberg Astronomical Institute
email: [email protected] Moscow State University
Phone: 007 (095) 939 2383
Fax: 007 (095) 932 8841 http://www.sai.msu.su/~er

2004-04-21 03:19:13

by Dmitry Torokhov

[permalink] [raw]
Subject: Re: /dev/psaux problem (2.6.5)

On Tuesday 20 April 2004 09:11 am, E.Rodichev wrote:
> It's not a problem of mousedev, but the problem of make menuconfig.
>
> The relevant part of .config is
>
> #
> # Userland interfaces
> #
> CONFIG_INPUT_MOUSEDEV=y
> CONFIG_INPUT_MOUSEDEV_PSAUX=y
> CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
> CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
> # CONFIG_INPUT_JOYDEV is not set
> # CONFIG_INPUT_TSDEV is not set
> # CONFIG_INPUT_EVDEV is not set
> # CONFIG_INPUT_EVBUG is not set
>
> Starting from original linux-2.6.5.tar.gz it seems impossible to
> disable CONFIG_INPUT_MOUSEDEV_PSAUX without disabling CONFIG_INPUT_MOUSEDEV.
>
> If I comment out the line CONFIG_INPUT_MOUSEDEV_PSAUX by hand, make
> silently restore this line to yes.
>

Ok, in that case why mess with MOUSEDEV and not MOUSEDEV_PSAUX, like this:

===== drivers/input/Kconfig 1.6 vs edited =====
--- 1.6/drivers/input/Kconfig Thu Sep 11 22:19:35 2003
+++ edited/drivers/input/Kconfig Tue Apr 20 22:11:43 2004
@@ -41,9 +41,16 @@
module will be called mousedev.

config INPUT_MOUSEDEV_PSAUX
- bool "Provide legacy /dev/psaux device" if EMBEDDED
+ bool "Provide legacy /dev/psaux device"
default y
depends on INPUT_MOUSEDEV
+ ---help---
+ Say Y here if you want your mouse also be accessible as char device
+ 10:1 - /dev/psaux. The data available through /dev/psaux is exactly
+ the same as the data from /dev/input/mice.
+
+ If unsure, say Y.
+

config INPUT_MOUSEDEV_SCREEN_X
int "Horizontal screen resolution"