From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner+willy=40w.ods.org-S261979AbUDTA0h@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S261979AbUDTA0h (ORCPT <rfc822;willy@w.ods.org>);
	Mon, 19 Apr 2004 20:26:37 -0400
Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261981AbUDTA0h
	(ORCPT <rfc822;linux-kernel-outgoing>);
	Mon, 19 Apr 2004 20:26:37 -0400
Received: from ra.sai.msu.su ([158.250.29.2]:4481 "EHLO ra.sai.msu.su")
	by vger.kernel.org with ESMTP id S261979AbUDTA02 (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 19 Apr 2004 20:26:28 -0400
Date: Tue, 20 Apr 2004 04:26:20 +0400 (MSD)
From: "E.Rodichev" <er@sai.msu.su>
To: linux-kernel@vger.kernel.org
Subject: /dev/psaux problem (2.6.5)
Message-ID: <Pine.GSO.4.58.0404200404360.22353@ra.sai.msu.su>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: linux-kernel-owner@vger.kernel.org
X-Mailing-List: linux-kernel@vger.kernel.org

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

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner+willy=40w.ods.org-S262286AbUDTHVA@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S262286AbUDTHVA (ORCPT <rfc822;willy@w.ods.org>);
	Tue, 20 Apr 2004 03:21:00 -0400
Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262279AbUDTHVA
	(ORCPT <rfc822;linux-kernel-outgoing>);
	Tue, 20 Apr 2004 03:21:00 -0400
Received: from atlas.informatik.uni-freiburg.de ([132.230.150.3]:35745 "EHLO
	atlas.informatik.uni-freiburg.de") by vger.kernel.org with ESMTP
	id S262286AbUDTHU6 convert rfc822-to-8bit (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Tue, 20 Apr 2004 03:20:58 -0400
To: "E.Rodichev" <er@sai.msu.su>
Cc: linux-kernel@vger.kernel.org
Subject: Re: /dev/psaux problem (2.6.5)
From: Sau Dan Lee <danlee@informatik.uni-freiburg.de>
Date: 20 Apr 2004 09:20:50 +0200
Message-ID: <xb7ekqjglnx.fsf@savona.informatik.uni-freiburg.de>
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=big5
Content-Transfer-Encoding: 8BIT
Organization: Universitaet Freiburg, Institut fuer Informatik
Sender: linux-kernel-owner@vger.kernel.org
X-Mailing-List: linux-kernel@vger.kernel.org

>>>>> "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                     §õ¦u´°(Big5)                    ~{@nJX6X~}(HZ) 

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


From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner+willy=40w.ods.org-S262882AbUDTMgr@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S262882AbUDTMgr (ORCPT <rfc822;willy@w.ods.org>);
	Tue, 20 Apr 2004 08:36:47 -0400
Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262906AbUDTMgr
	(ORCPT <rfc822;linux-kernel-outgoing>);
	Tue, 20 Apr 2004 08:36:47 -0400
Received: from smtp813.mail.sc5.yahoo.com ([66.163.170.83]:20147 "HELO
	smtp813.mail.sc5.yahoo.com") by vger.kernel.org with SMTP
	id S262882AbUDTMgp (ORCPT <rfc822;linux-kernel@vger.kernel.org>);
	Tue, 20 Apr 2004 08:36:45 -0400
From: Dmitry Torokhov <dtor_core@ameritech.net>
To: linux-kernel@vger.kernel.org
Subject: Re: /dev/psaux problem (2.6.5)
Date: Tue, 20 Apr 2004 07:35:44 -0500
User-Agent: KMail/1.6.1
Cc: "E.Rodichev" <er@sai.msu.su>
References: <Pine.GSO.4.58.0404200404360.22353@ra.sai.msu.su>
In-Reply-To: <Pine.GSO.4.58.0404200404360.22353@ra.sai.msu.su>
MIME-Version: 1.0
Content-Disposition: inline
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-Id: <200404200736.38616.dtor_core@ameritech.net>
Sender: linux-kernel-owner@vger.kernel.org
X-Mailing-List: linux-kernel@vger.kernel.org

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

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner+willy=40w.ods.org-S262388AbUDTOLu@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S262388AbUDTOLu (ORCPT <rfc822;willy@w.ods.org>);
	Tue, 20 Apr 2004 10:11:50 -0400
Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262990AbUDTOLu
	(ORCPT <rfc822;linux-kernel-outgoing>);
	Tue, 20 Apr 2004 10:11:50 -0400
Received: from ra.sai.msu.su ([158.250.29.2]:56493 "EHLO ra.sai.msu.su")
	by vger.kernel.org with ESMTP id S262388AbUDTOLp (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Tue, 20 Apr 2004 10:11:45 -0400
Date: Tue, 20 Apr 2004 18:11:12 +0400 (MSD)
From: "E.Rodichev" <er@sai.msu.su>
To: Dmitry Torokhov <dtor_core@ameritech.net>
cc: linux-kernel@vger.kernel.org
Subject: Re: /dev/psaux problem (2.6.5)
In-Reply-To: <200404200736.38616.dtor_core@ameritech.net>
Message-ID: <Pine.GSO.4.58.0404201718220.4975@ra.sai.msu.su>
References: <Pine.GSO.4.58.0404200404360.22353@ra.sai.msu.su>
 <200404200736.38616.dtor_core@ameritech.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: linux-kernel-owner@vger.kernel.org
X-Mailing-List: linux-kernel@vger.kernel.org

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

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner+willy=40w.ods.org-S264651AbUDUDTN@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S264651AbUDUDTN (ORCPT <rfc822;willy@w.ods.org>);
	Tue, 20 Apr 2004 23:19:13 -0400
Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264652AbUDUDTN
	(ORCPT <rfc822;linux-kernel-outgoing>);
	Tue, 20 Apr 2004 23:19:13 -0400
Received: from smtp808.mail.sc5.yahoo.com ([66.163.168.187]:56462 "HELO
	smtp808.mail.sc5.yahoo.com") by vger.kernel.org with SMTP
	id S264651AbUDUDTL (ORCPT <rfc822;linux-kernel@vger.kernel.org>);
	Tue, 20 Apr 2004 23:19:11 -0400
From: Dmitry Torokhov <dtor_core@ameritech.net>
To: linux-kernel@vger.kernel.org
Subject: Re: /dev/psaux problem (2.6.5)
Date: Tue, 20 Apr 2004 22:19:06 -0500
User-Agent: KMail/1.6.1
Cc: "E.Rodichev" <er@sai.msu.su>
References: <Pine.GSO.4.58.0404200404360.22353@ra.sai.msu.su> <200404200736.38616.dtor_core@ameritech.net> <Pine.GSO.4.58.0404201718220.4975@ra.sai.msu.su>
In-Reply-To: <Pine.GSO.4.58.0404201718220.4975@ra.sai.msu.su>
MIME-Version: 1.0
Content-Disposition: inline
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-Id: <200404202219.08935.dtor_core@ameritech.net>
Sender: linux-kernel-owner@vger.kernel.org
X-Mailing-List: linux-kernel@vger.kernel.org

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"

