From: tabris@tabris.net
To: Sau Dan Lee <danlee@informatik.uni-freiburg.de>
Cc: Jamie Lokier <jamie@shareable.org>,
Arjan van de Ven <arjanv@redhat.com>,
Andrew Morton <akpm@osdl.org>,
Tuukka Toivonen <tuukkat@ee.oulu.fi>,
b-gruber@gmx.de, linux-kernel@vger.kernel.org
Subject: Re: /dev/psaux-Interface
Date: 19 Apr 2004 13:50:18 -0000 [thread overview]
Message-ID: <20040419135018.4987.qmail@mercury.domedata.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4514 bytes --]
Sau Dan Lee <danlee@informatik.uni-freiburg.de> wrote ..
> >>>>> "Jamie" == Jamie Lokier <jamie@shareable.org> writes:
>
> >> The input layer tries to do the same wrt HID devices and imo it
> >> makes sense. Why should userspace care if a mouse is attached
> >> to the USB port or via the USB->PS/2 connector thingy to the
> >> PS/2 port.
>
I'd jump in here at a better point in the thread, but I'm at work right now and this is the only message I can reply to atm...
I personally have the following problem. I have two mice, one a MS PS/2 Intellimouse. the second, a Logitech optomechanical cordless mouse (and keyboard too) attached via USB (both mouse and keyboard use same receiver as well as USB connection)
The PS/2 mouse, which requires me to either have the driver built-in, or to manually modprobe, works more or less fine, in both X and console (using GPM). But, my USB mouse, which works fine in X, screws up in console mode. I'm using GPM's repeater function for X.
Basically what happens is that the USB mouse can move around, but I can't use the buttons. It echoes some of the control codes to my console, and hence makes it useless for cutting and pasting.
Admittedly, I could just hook up the mouse and keyboard to the PS/2 ports using some adapters, bypassing the USB. and it would probably work. But, why? Why is this broken in 2.6, but not in 2.4?
> Isn't it possible to use the PS/2 AUX port for purposes other than
> HID? In 2.4, /dev/psaux looks like /dev/ttyS1 to the userspace. Is
> there a good reason to make them different in 2.6?
>
>
<snip discussion of Modems>
> SEPARATION of POLICY and MECHANISM is an important concept in the
> design of unix.
>
>
<snip discussion of graphics cards>
>
>
> >> Requiring different configuration for both cases, and
> >> potentially even requiring different userspace applications for
> >> each type make it sound like abstracting this away from
> >> userspace does have merit.
>
> You still need to configure your kernel by means of boot parameters or
> module options. Are users already complaining about surprising mouse
> sensitivity? Don't they need to tune some parameters to obtain the
> desired behaviours? I can't see how you can do fewer configurations,
> or avoid them at all.
>
>
> Jamie> I agree in this case: the touchpad should be handled by the
> Jamie> input layer, for uniformity if nothing else.
>
> But why not do it in a user-space daemon? GPM has been doing that for
> 10 years already, and it has been doing it quite well. I even
> demonstrated to many people how I configure both a RS232 mouse and a
> PS/2 mouse to work in X at the same time, and those people were
> surprised that this was even possible. Thanks to GPM.
I agree here. Admittedly GPM isn't perfect, and should perhaps be rewritten, but it belongs in userspace.
>
> My philosophy is: if something can be done in userspace, then do it in
> userspace. Only leave the essential things in kernel space. So, we
> don't have XFree86 in kernel space. It's not a good idea.
>
> Of course, if performance is an issue, we may consider moving
> something from userspace into kernel: kernel NFS daemon, firewall.
> Isn't khttpd now removed? Why?
Because khttpd wasn't that useful, was a bit ugly. Also Tux superseded it. And last of all, most of the stuff that Tux patched to make things faster... were merged into mainline and made available to userspace. So that Apache could do most/all of what Tux could, in userspace, w/ little overhead/cost.
> (But even with knfsd, you still have
> the CHOICE to use a userland nfsd instead.) I don't believe 'gpm' has
> performance problems -- the mouse port is usally 1200 baud only.
>
>
> Jamie> However, what happens when the thing connected to the PS/2
> Jamie> port isn't a mouse or keyboard, just a strange device
> Jamie> talking bytes? With 2.4 kernels you could talk to it.
>
> And now... it's not possible anymore. Assuming that everything
> attached to the PS/2 AUX port must be a mouse is a design mistake. It
> is like assuming that the RS232 port must be attached to a fax-modem.
>
>
>
>
> --
> Sau Dan LEE §õ¦u´°(Big5) ~{@nJX6X~}(HZ)
>
> E-mail: danlee@informatik.uni-freiburg.de
> Home page: http://www.informatik.uni-freiburg.de/~danlee
>
next reply other threads:[~2004-04-19 13:53 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-19 13:50 tabris [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-04-21 7:18 /dev/psaux-Interface Sau Dan Lee
2004-04-21 7:21 ` /dev/psaux-Interface Kim Holviala
2004-04-21 8:13 ` /dev/psaux-Interface Sau Dan Lee
[not found] <Pine.GSO.4.58.0402271451420.11281@stekt37>
2004-04-19 8:35 ` /dev/psaux-Interface Tuukka Toivonen
2004-04-19 8:52 ` /dev/psaux-Interface Andrew Morton
2004-04-19 9:53 ` /dev/psaux-Interface Kim Holviala
2004-04-19 10:16 ` /dev/psaux-Interface Sau Dan Lee
2004-04-19 10:53 ` /dev/psaux-Interface Arjan van de Ven
2004-04-19 11:18 ` /dev/psaux-Interface Jamie Lokier
2004-04-19 11:47 ` /dev/psaux-Interface Sau Dan Lee
2004-04-21 10:48 ` /dev/psaux-Interface Neil Brown
2004-04-21 11:24 ` /dev/psaux-Interface Sau Dan Lee
2004-04-21 11:52 ` /dev/psaux-Interface Tuukka Toivonen
2004-04-21 14:14 ` /dev/psaux-Interface Sau Dan Lee
2004-04-21 12:38 ` /dev/psaux-Interface Neil Brown
2004-04-21 14:21 ` /dev/psaux-Interface Sau Dan Lee
2004-04-20 12:56 ` /dev/psaux-Interface Dmitry Torokhov
2004-04-20 20:41 ` /dev/psaux-Interface Kim Holviala
[not found] ` <xb71xmhhmej.fsf@savona.informatik.uni-freiburg.de>
2004-04-21 6:51 ` /dev/psaux-Interface Dmitry Torokhov
2004-04-21 7:15 ` /dev/psaux-Interface Sau Dan Lee
2004-04-22 6:39 ` /dev/psaux-Interface Dmitry Torokhov
2004-04-22 7:06 ` /dev/psaux-Interface Sau Dan Lee
2004-04-22 7:23 ` /dev/psaux-Interface Dmitry Torokhov
2004-02-27 11:45 /dev/psaux-Interface Bernhard Gruber
2004-02-27 20:19 ` /dev/psaux-Interface Bernhard Gruber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040419135018.4987.qmail@mercury.domedata.com \
--to=tabris@tabris.net \
--cc=akpm@osdl.org \
--cc=arjanv@redhat.com \
--cc=b-gruber@gmx.de \
--cc=danlee@informatik.uni-freiburg.de \
--cc=jamie@shareable.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tuukkat@ee.oulu.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®