Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
setting up a usb mouse on a laptop w/ X11
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
oracleofmist
Apprentice
Apprentice


Joined: 19 Jun 2004
Posts: 235

PostPosted: Sun May 29, 2005 5:21 pm    Post subject: setting up a usb mouse on a laptop w/ X11 Reply with quote

/etc/X11/xorg.conf:
Code:

Section "InputDevice"
Identifier "PS2Mouse"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mouse0"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "USBMouse"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "false"
"Option "ZAxisMapping" "4 5"[/b]
EndSection

Section "ServerLayout"
Identifier "SimpleLayout"
InputDevice "PS2Mouse" "CorePointer"
InputDevice "USBMouse" "SendCoreEvents"
InputDevice "Keyboard1" "CoreKeyboard"


/etc/conf.d/usb
Code:

X11_USBMICE_HACK=true


when i setup a secondary mouse aside from the touchpad..the touchpad gets really jittery and jumps a lot as well as the usb mouse not working. any suggestions?
_________________
Segmentation Fault
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sun May 29, 2005 6:33 pm    Post subject: Reply with quote

Does "cat /dev/input/mice" output anything when moving the mouse?

I'm not sure "X11_USBMICE_HACK=true" is needed, I've always had it commented.

Are you using the synaptics or similar touchpad drivers?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
oracleofmist
Apprentice
Apprentice


Joined: 19 Jun 2004
Posts: 235

PostPosted: Sun May 29, 2005 7:39 pm    Post subject: Reply with quote

Hopeless wrote:
Does "cat /dev/input/mice" output anything when moving the mouse?

I'm not sure "X11_USBMICE_HACK=true" is needed, I've always had it commented.

Are you using the synaptics or similar touchpad drivers?


cat /dev/input/mice does not produce any output when i move the mouse.

i do not know how to install the synaptics driver...please link me or explain how to do that.

*edit*
i emerge synaptics..now what?
_________________
Segmentation Fault
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sun May 29, 2005 8:00 pm    Post subject: Reply with quote

To use the synaptics driver, you need to add 'Load "synaptics"' to the 'Modules' section of xorg.conf, and use 'synaptics' as the driver for your touchpad.
Do you know wether or not your touchpad is actually a synaptic touchpad (most are)?

Could you post the output of "dmesg | grep PS/2", or anything in dmesg which represents either your touchpad or mouse?
Also, could you post the output of "grep -i USB_HID /usr/src/linux/.config"?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
oracleofmist
Apprentice
Apprentice


Joined: 19 Jun 2004
Posts: 235

PostPosted: Mon May 30, 2005 3:49 am    Post subject: Reply with quote

yes it is actually synaptics touchpad...here is your output
Code:

dmesg | grep PS/2
mice: PS/2 mouse device common for all mice
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
Code:

grep -i USB_HID /usr/src/linux/.config
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
# CONFIG_USB_HIDDEV is not set

_________________
Segmentation Fault
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Mon May 30, 2005 10:09 am    Post subject: Reply with quote

oracleofmist wrote:
yes it is actually synaptics touchpad...here is your output
Code:
dmesg | grep PS/2
mice: PS/2 mouse device common for all mice
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1

Strange. my dmesg | grep PS/2 is;
Code:
mice: PS/2 mouse device common for all mice
input: SynPS/2 Synaptics TouchPad on isa0060/serio1
input: USB HID v1.10 Mouse [Acrox USB & PS/2 Mouse] on usb-0000:00:07.2-1

But if you're sure it's a touchpad, that probably doesn't matter.

Other than that, my CONFIG_USB_HID is configured as a module, but that shouldn't make a difference.

Anyway, my relevant xorg.conf sections to get both the touchpad and the usb mouse to play nice together is;
Code:
Section "InputDevice"
        Identifier      "Touchpad"
        Driver  "synaptics"
        Option  "Protocol"      "auto-dev"
        Option  "Device"        "/dev/mouse0"
        Option  "SHMConfig"     "on"
        Option  "EdgeMotionMaxSpeed"    "0"
        Option  "EdgeMotionMinSpeed"    "0"
        Option  "Emulate3Buttons"       "true"
EndSection

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

Section "ServerLayout"
        Identifier      "Simple Layout"
        Screen          "Screen 1"
        InputDevice     "Touchpad"      "CorePointer"
        InputDevice     "Keyboard"      "CoreKeyboard"
        InputDevice     "USBMouse"      "SendCoreEvents"
EndSection

Obviously you should modify this to your own needs but hopefully it'll get you started. You also need to add what I mentioned in my last post to get it too work.

Something I forget to mention that you need (oops) is CONFIG_SHMEM=y in your kernel,
Code:
grep -i CONFIG_SHMEM /usr/src/linux/.config

should tell you wether or not you already have it.

As for the usb mouse not working, I'd say you need either the ohci or the uhci driver in order to get it working, whereas most people only include the ehci driver (in english; The ehci driver is used for all usb 2.0 devices, however any usb 1.1 only device, which most usb mice are, need the usb 1.1 driver to work).

Check "grep -i HCI /usr/src/linux/.config", you should have either CONFIG_USB_OHCI_HCD or CONFIG_USB_UHCI_HCD support enabled. Which one depends on your hardware, but uhci is your best bet.

Hope all this stuff actually helps.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
oracleofmist
Apprentice
Apprentice


Joined: 19 Jun 2004
Posts: 235

PostPosted: Tue May 31, 2005 12:16 pm    Post subject: Reply with quote

Code:

Touchpad no synaptics event device found (checked 14 notes)
Touchpad The evdev kernel module seems to be missing
Query no Synaptics: 6003C8
(EE) Touchpad no synaptics touchpad detected and no repeater device
(EE) Touchpad unable to query/initialize Synaptics hardware
(EE) PreInit failed for input device "Touchpad"


when i boot it plainly says that i have a synaptics touchpad device when i watch it probe on boot

Code:

grep - i HCI /usr/src/linux/.config
CONFIG_IEEE1394_OHCI1394=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_EHCI_HCD=y
# CONFIG_USB_EHCI_SPLIT_ISO is not set
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_UHCI_HCD=y

_________________
Segmentation Fault
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Tue May 31, 2005 2:27 pm    Post subject: Reply with quote

Code:
Touchpad The evdev kernel module seems to be missing

Oops. My bad. :oops:

You need the Event Interface enabled (CONFIG_INPUT_EVDEV=y) in your kernel.

Hopefully that'll get the synaptics driver working.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
jp_math54
n00b
n00b


Joined: 07 Sep 2004
Posts: 12
Location: France - Metz

PostPosted: Mon Jul 25, 2005 11:27 am    Post subject: Reply with quote

I got the same problem (synaptics working, but my USB cordless mouse not responding)...

Code:
cat /dev/input/mice
didn't show any response when moving usb mouse...

In fact, I just ended to understand I forgot to enable all UHCI and OHCI stuff in kernel's config... It's now working fine...

Let's continue with ALSA....:lol:
_________________
I said don't throw me any stones...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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