public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* /dev/psaux problem (2.6.5)
@ 2004-04-20  0:26 E.Rodichev
  2004-04-20 12:35 ` Dmitry Torokhov
  0 siblings, 1 reply; 5+ messages in thread
From: E.Rodichev @ 2004-04-20  0:26 UTC (permalink / raw)
  To: linux-kernel

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: er@sai.msu.su                              Moscow State University
Phone: 007 (095) 939 2383
Fax:   007 (095) 932 8841                       http://www.sai.msu.su/~er

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: /dev/psaux problem (2.6.5)
@ 2004-04-20  7:20 Sau Dan Lee
  0 siblings, 0 replies; 5+ messages in thread
From: Sau Dan Lee @ 2004-04-20  7:20 UTC (permalink / raw)
  To: E.Rodichev; +Cc: linux-kernel

>>>>> "Rodichev" == E Rodichev <er@sai.msu.su> 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                     李守敦(Big5)                    ~{@nJX6X~}(HZ) 

E-mail: danlee@informatik.uni-freiburg.de
Home page: http://www.informatik.uni-freiburg.de/~danlee


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: /dev/psaux problem (2.6.5)
  2004-04-20  0:26 /dev/psaux problem (2.6.5) E.Rodichev
@ 2004-04-20 12:35 ` Dmitry Torokhov
  2004-04-20 14:11   ` E.Rodichev
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Torokhov @ 2004-04-20 12:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: E.Rodichev

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: /dev/psaux problem (2.6.5)
  2004-04-20 12:35 ` Dmitry Torokhov
@ 2004-04-20 14:11   ` E.Rodichev
  2004-04-21  3:19     ` Dmitry Torokhov
  0 siblings, 1 reply; 5+ messages in thread
From: E.Rodichev @ 2004-04-20 14:11 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-kernel

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: er@sai.msu.su                              Moscow State University
Phone: 007 (095) 939 2383
Fax:   007 (095) 932 8841                       http://www.sai.msu.su/~er

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: /dev/psaux problem (2.6.5)
  2004-04-20 14:11   ` E.Rodichev
@ 2004-04-21  3:19     ` Dmitry Torokhov
  0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Torokhov @ 2004-04-21  3:19 UTC (permalink / raw)
  To: linux-kernel; +Cc: E.Rodichev

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"

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-04-21  3:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-20  0:26 /dev/psaux problem (2.6.5) E.Rodichev
2004-04-20 12:35 ` Dmitry Torokhov
2004-04-20 14:11   ` E.Rodichev
2004-04-21  3:19     ` Dmitry Torokhov
  -- strict thread matches above, loose matches on Subject: below --
2004-04-20  7:20 Sau Dan Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox