Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
howto hotplug a USB Mouse and get it automagically work in X
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
faz
n00b
n00b


Joined: 02 Nov 2002
Posts: 73
Location: the Netherlands

PostPosted: Mon Jan 27, 2003 10:04 am    Post subject: howto hotplug a USB Mouse and get it automagically work in X Reply with quote

We'll, the subject says it all, i guess. My USB Mouse works great in Xfree86 4.2.1-r2 on my Inspiron 8000 notebook... but only when I startup with the USB Mouse allready plugged in or after I do a CTRL-ALT-Backspace. What I really want is to plug in the mouse en have it work immediately in X. I've been searching the forums and the Net for hours, but I can't find it.

I do get the following in my log after I plug in:

Code:

hub.c: USB new device connect on bus1/1, assigned device number 2
input0,hiddev0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb1:2.0




Any help is very, very welcome!!
Back to top
View user's profile Send private message
xr31Daisy
Guru
Guru


Joined: 19 Jul 2002
Posts: 326
Location: Paris, France

PostPosted: Mon Jan 27, 2003 2:25 pm    Post subject: Reply with quote

I've got the same kind of config ( i8200 + ms optical USB mouse ), and it works fine. Sometimes, the USB autodetection doesn't work on the first try? All I have to do is unplug it, and plug it in again.

Here's my XF86Config :
http://www.franchini.info/XF86Config

These are the 'interesting' sections :
Code:

Section "InputDevice"
    Identifier   "USBMouse"
    Driver   "mouse"
    Option "Protocol"    "IMPS/2"
    Option "Device"      "/dev/input/mice"
    Option "Emulate3Buttons" "off"
    Option "ZAxisMapping" "4 5"
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"

# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used.  Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".

    InputDevice "Mouse1" "CorePointer"
    InputDevice  "USBMouse" "AlwaysCore"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection

_________________
#include "pictures.h"
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Mon Jan 27, 2003 2:33 pm    Post subject: Reply with quote

Do you have hotplug installed in your notebook?
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
faz
n00b
n00b


Joined: 02 Nov 2002
Posts: 73
Location: the Netherlands

PostPosted: Mon Jan 27, 2003 2:37 pm    Post subject: Reply with quote

Thanks xr31Daisy!!

I found the problem. I was using /dev/input/mouse0 instead of /dev/input/mice. It's working like a charm now. :D :D
Back to top
View user's profile Send private message
Inf7
n00b
n00b


Joined: 12 Feb 2003
Posts: 16

PostPosted: Wed Feb 12, 2003 7:54 am    Post subject: Reply with quote

I have the same mouse as Faz had above but that fix didn't help me out. My mouse doen't work in X at all and I am starting to run out of ideas on how to get this thing working.

I have had one hell of a time getting USB to run on my Sony Vaio and once I get it running X is saying that it can't find my mouse protocol. I tried the config that xr31Daisy posted and many other configs and still to no avail my mouse wont work in X.

I have cat'ed /dev/input/mice and I got the screen full of junk so the mouse is working. I must be missing one small thing for this puzzle to be solved.

What protocol should I use for the same kind of mouse as Fez?

Thanks in advance!


Ps I have abused the search on the forum and I had to give in and post. <3 u mods ^^
Back to top
View user's profile Send private message
faz
n00b
n00b


Joined: 02 Nov 2002
Posts: 73
Location: the Netherlands

PostPosted: Wed Feb 12, 2003 8:24 am    Post subject: Reply with quote

Could you list you're USB modules (lsmod) or, if compiled into the kernel, the relevant .config entries.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum