public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Brandon Stewart <rbrandonstewart@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Hot swapping USB mouse in X window system
Date: Sun, 17 Aug 2003 12:38:17 -0400	[thread overview]
Message-ID: <3F3FAF79.1060303@yahoo.com> (raw)

My ohci adapter doesn't work on 2.4, so I can't tell if this is the 2.6 
kernel, devfsd, or configuration related. There are two facts that make 
hot swapping a USB mouse in X windows fail:

1) If a mouse is not detected at the start of X windows, that mouse will 
not be checked for during the operation of X windows.
2) If a mouse is detected at the start of X windows, then the device 
corresponding to that mouse cannot be released until X windows is stopped.

So when I start X windows without the mouse plugged in, and then try to 
plug the mouse in, X windows will not even look at it, because it threw 
away it's InputDevice section at startup. I can verify that it is 
recognized by Linux proper because a /dev/input/mouse1 device will be 
created and catting this device while moving the mouse will result in 
junk on the screen.

But when I start X windows with the mouse, unplug it, and replug it in, 
I get a different problem. What happens is that upon unplugging the 
mouse, the /dev/input/mouse1 device will stay there, whereas unplugging 
it outside of X windows results in its disappearance. So X windows is 
still listening for input from /dev/input/mouse1. But when I replug in 
the USB mouse, it doesn't attach to /dev/input/mouse1. Rather, it 
creates a new device called /dev/input/mouse2. And X windows is not 
looking at this.

I tried creating a third InputDevice section for X windows that points 
to mouse2, but it discards the configuration at startup, and so won't 
use it when it is plugged in.

I'd appreciate hearing from anyone who has experienced similar, or knows 
if there is a way to work around this.

-Brandon


             reply	other threads:[~2003-08-17 16:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-17 16:38 Brandon Stewart [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-08-17 16:48 Hot swapping USB mouse in X window system Andrey Borzenkov
2003-08-17 17:40 ` Brandon Stewart
2003-08-17 18:17 John Bradford

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=3F3FAF79.1060303@yahoo.com \
    --to=rbrandonstewart@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /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