You are not logged in.

#1 2005-03-15 16:38:38

kirkl_uk
Member
Registered: 2003-11-22
Posts: 41

Wireless Mouse and XOrg

Hi guys,

I have a wireless logitech mouse connected to my laptop via the PS2 port. Whenever I start Arch/XOrg, the mouse doesn't work at all. However, if I unplug the mouse and plug it straight back in it then works. I have tried with and without hotplug, but I still have the same problem. Please help. Thanks.

kirkl_uk

Offline

#2 2005-03-15 17:06:36

jerem
Member
From: France
Registered: 2005-01-15
Posts: 310

Re: Wireless Mouse and XOrg

Is the PS/2 port correctly enabled in the BIOS ?
Is the cable ok ?
The connector ?
Is the wireless mouse fully charged ?

What kernel are you using ? (uname -r
Is ps/2 loaded as a module ? (lsmod)
If it is not loaded when you boot, then add it to the end of the MODULES=() section of /etc/rc.conf.

I think the problem is that your mouse needs to be set up when all the other things are already set up. I also think it is hotplug which loads the appropriate module when you unplug and plug it again.

Last thing : is your xorg.conf correctly set to use the PS2 protocol ?

If you cant figure out how to solve the problem after what I said, then post your config files :

/boot/kconfig26 ( if using Arch kernel)
/boot/.config (if self-compiled kernel)
xorg.conf
dmesg > filetopost

Offline

#3 2005-03-15 17:16:00

kirkl_uk
Member
Registered: 2003-11-22
Posts: 41

Re: Wireless Mouse and XOrg

Hey, thanks for the input so far. My wireless mouse works perfectly under Windows, so I know it's not a hardware problem, and my system is currently set up for dual-boot as well. I will look into the software side of things as soon as I can and report back. Thanks again.

kirkl_uk

Offline

#4 2005-03-15 18:42:51

kirkl_uk
Member
Registered: 2003-11-22
Posts: 41

Re: Wireless Mouse and XOrg

Ok, even without hotplug running, the mouse works when I unplug and plug back in. Also, looking at lsmod, I don't seem to have any extra modules load up after this is done. The kernel is 2.6.10 stock. Xorg is set up to use ExplorerPS/2, but I have tried this with other protocols as well.

kirkl_uk

Offline

#5 2005-03-15 18:50:25

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Wireless Mouse and XOrg

is there any difference in /dev/input before and after it works?
how is your mouse device defined in xorg.conf?

Offline

#6 2005-03-15 19:28:51

kirkl_uk
Member
Registered: 2003-11-22
Posts: 41

Re: Wireless Mouse and XOrg

Ok, here we go...

Before the "unplug", /dev/input/:

mice

After:

event0 event1 mice mouse0 ts0

Xorg mouse section:

Section "InputDevice"

# Identifier and driver

    Identifier    "Mouse1"
    Driver    "mouse"
    Option "Protocol"    "ExplorerPS/2"
    Option "Device"      "/dev/input/mice"
    Option "ZAxisMapping" "4 5"

# Mouse-speed setting for PS/2 mouse.

#    Option "Resolution"    "256"

# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.

#    Option "Protocol"    "Xqueue"

# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.

#    Option "BaudRate"    "9600"
#    Option "SampleRate"    "150"

# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)

    Option "Emulate3Buttons"
#    Option "Emulate3Timeout"    "50"

# ChordMiddle is an option for some 3-button Logitech mice

#    Option "ChordMiddle"

EndSection

Thanks,
kirkl_uk

Offline

#7 2005-03-15 19:49:00

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Wireless Mouse and XOrg

ok, the problem is in the first part... /dev/input/mice is just a multiplexer (combination) for all over mouseX devices...

in the first case you do not have mouse0, so mice is inept... afterwards mouse0 exists, so it's all fine.

these events (plugging/unplugging) are handled by udev... so there's something happening "on boot" that's not telling udev there is a device there... hmmm

on another path altogether... do you have a /dev/psaux device? before and after?

Offline

#8 2005-03-15 20:49:47

kirkl_uk
Member
Registered: 2003-11-22
Posts: 41

Re: Wireless Mouse and XOrg

/dev/psaux exists in both situations.

Offline

#9 2005-03-15 23:17:24

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Wireless Mouse and XOrg

use that instead of /dev/input/mice.... psaux is for the ps2 port... it seems on boot, udev recognizes there's something there, but doesn't recognize it as a mouse until you replug it in...

usb mice work much nicer, but for now just use /dev/psaux in xorg.conf

Offline

#10 2005-03-16 12:48:29

kirkl_uk
Member
Registered: 2003-11-22
Posts: 41

Re: Wireless Mouse and XOrg

I was using /dev/psaux first of all, and switched to /dev/input/mice after reading some articles on the Internet.

Offline

Board footer

Powered by FluxBB