Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
evdev & microsoft wireless mouse
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
be9
n00b
n00b


Joined: 06 Apr 2008
Posts: 1

PostPosted: Sun Apr 06, 2008 12:45 pm    Post subject: evdev & microsoft wireless mouse Reply with quote

Recently I bought a wireless mouse + keyboard set from Microsoft (Wireless Optical Desktop 3000).

Keyboard works perfectly, but not the mouse. Currently it's handled in the X by mouse driver with the following configuration:

Code:

Section "InputDevice"
       Identifier  "Mouse0"
       Driver      "mouse"
       Option "CorePointer"
       Option "Device" "/dev/input/mice"
       Option "Protocol" "ExplorerPS/2"
       Option "ZAxisMapping" "4 5"
       Option "Emulate3Buttons" "no"
#EndSection


The problem with the mouse is that it doesn't respond to button clicks all the time. It may react to a click or no react, randomly. Sometimes I have to click ten times to get a reaction. It's a wireless mouse, yes, but I got fresh batteries in and the pointer moves perfectly. so it's not a hardware problem.

Currently I'm trying to switch to the newer evdev driver, but there are problems with that too. Here's the relevant output from "cat /proc/bus/input/devices":
Code:

I: Bus=0003 Vendor=045e Product=00f9 Version=0111
N: Name="Microsft Microsoft Wireless Desktop Receiver 3.1"
P: Phys=usb-0000:00:02.0-3/input0
S: Sysfs=/class/input/input0
U: Uniq=
H: Handlers=kbd event0
B: EV=120013
B: KEY=1000000000007 ff800000000007ff febeffdff3cfffff fffffffffffffffe
B: MSC=10
B: LED=107

I: Bus=0003 Vendor=045e Product=00f9 Version=0111
N: Name="Microsft Microsoft Wireless Desktop Receiver 3.1"
P: Phys=usb-0000:00:02.0-3/input1
S: Sysfs=/class/input/input1
U: Uniq=
H: Handlers=kbd mouse0 event1
B: EV=10001f
B: KEY=37fff00ac3027 bf00444400000000 c000000001f0001 10f848b37c407 ff7f7bfad971dfff febeffdfffefffff fffffffffffffffe
B: REL=fc3
B: ABS=ffffff01000701ff
B: MSC=10


So, the mouse is at /dev/input/event1. "cat /dev/input/event1" also proves that, outputting stuff when mouse moves or buttons are clicked. I'm trying to use the following snippet for xorg.conf:
Code:

Section "InputDevice"
        Identifier "Mouse1"
        Driver "evdev"
        Option "Device" "/dev/input/event1"

        Option "evBits"  "+1-2"
        Option "keyBits" "~272-287"
        Option "relBits" "~0-2 ~6 ~8"
        Option "Pass"    "3"
EndSection


Mouse doesn't work. Here's "grep Mouse1 /var/log/Xorg.0.log":
Code:

(**) |-->Input Device "Mouse1"
(**) Mouse1: always reports core events
(II) Mouse1: Found 36 absolute axes.
(II) Mouse1: Configuring as pointer.
(II) Mouse1: Found 8 relative axes.
(II) Mouse1: Configuring as pointer.
(EE) Mouse1: Unable to parse 'RelAxis 0' as a map specifier.
(EE) Mouse1: Unable to parse 'RelAxis 1' as a map specifier.
(EE) Mouse1: Unable to parse 'RelAxis 3' as a map specifier.
(EE) Mouse1: Unable to parse 'RelAxis 5' as a map specifier.
(EE) Mouse1: Unable to parse 'RelAxis 6' as a map specifier.
(EE) Mouse1: Unable to parse 'RelAxis 7' as a map specifier.
(**) Mouse1: Configuring 36 absolute axes.
(II) Mouse1: Checking button DIGI_STYLUS (74)
(II) Mouse1: Checking bit 330
(EE) Mouse1: AbsoluteTouch: 'DIGI_Touch' does not exist.
(II) Mouse1: Found 8 mouse buttons
(II) Mouse1: Configured 61 mouse buttons.
(II) evaluating device (Mouse1)
(II) XINPUT: Adding extended input device "Mouse1" (type: KEYBOARD)
(**) Mouse1: 36 valuators.
(**) Mouse1: Configuring in Absolute mode.
(**) Mouse1: Registering 61 buttons.
(II) Mouse1: Init
(II) Mouse1: On
(II) Mouse1: Off


So, why the mouse is being treated as a 61-button keyboard, is beyond me.

Code:

~% uname -a
Linux be9-home 2.6.24-gentoo-r3 #1 SMP Fri Mar 21 11:12:28 NOVT 2008 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ AuthenticAMD GNU/Linux
~% equery l xorg     
[ Searching for package 'xorg' in all categories among: ]
 * installed packages
[I--] [  ] app-doc/xorg-docs-1.4-r1 (0)
[I--] [ ~] x11-base/xorg-server-1.4.0.90-r3 (0)
[I--] [ ~] x11-base/xorg-x11-7.3 (0)
[I--] [  ] x11-misc/xorg-cf-files-1.0.2 (0)
~% equery l xf86     
[ Searching for package 'xf86' in all categories among: ]
 * installed packages
[I--] [ ~] x11-drivers/xf86-input-evdev-1.2.0 (0)
[I--] [ ~] x11-drivers/xf86-input-keyboard-1.3.0 (0)
[I--] [ ~] x11-drivers/xf86-input-mouse-1.3.0 (0)
[I--] [ ~] x11-drivers/xf86-video-nv-2.1.8 (0)
[I--] [ ~] x11-libs/libXxf86dga-1.0.2 (0)
[I--] [  ] x11-libs/libXxf86misc-1.0.1 (0)
[I--] [  ] x11-libs/libXxf86vm-1.0.1 (0)
[I--] [  ] x11-proto/xf86bigfontproto-1.1.2 (0)
[I--] [ ~] x11-proto/xf86dgaproto-2.0.3 (0)
[I--] [  ] x11-proto/xf86driproto-2.0.3 (0)
[I--] [  ] x11-proto/xf86miscproto-0.9.2 (0)
[I--] [  ] x11-proto/xf86rushproto-1.1.2 (0)
[I--] [  ] x11-proto/xf86vidmodeproto-2.2.2 (0)
Back to top
View user's profile Send private message
alexzhangs
n00b
n00b


Joined: 23 Mar 2008
Posts: 3
Location: China

PostPosted: Wed Apr 09, 2008 6:02 am    Post subject: Reply with quote

You could also try the HOTPLUG feature if you use hal-0.5.10.

With HOTPLUG, you no longer need to configure your keyboard and mouse manually. Just remove all InputDevice section and related from /etc/X11/xorg.conf, then restart X.

My Logistec wireless mouse works perfectly with this method.

Here's a reference post:
https://forums.gentoo.org/viewtopic-t-641870-postdays-0-postorder-asc-start-50.html?sid=6a3dfd503c879abc707c0ab41190d803#4790294
_________________
Gentoo 2007.0 /Thinkpad T43 2668
Call me Yang, your friend in China!
Back to top
View user's profile Send private message
aPoX
n00b
n00b


Joined: 28 Jan 2003
Posts: 10

PostPosted: Sun Apr 13, 2008 12:07 am    Post subject: Reply with quote

How do you remap keys in a hal configuration file?

xmodmap seems to mess up the keymap.
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1507
Location: Earth

PostPosted: Sun Apr 13, 2008 12:37 am    Post subject: Reply with quote

ad this to your mouse options and try again :!:

Option "CorePointer"
Option "SendCoreEvents" "true"

here's my xorg.conf part:

Section "InputDevice"
Identifier "Logitech 2.4GHz Cordless Desktop Mouse"
Driver "evdev"
Option "CorePointer"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/event3"
EndSection

CooSee ' Ya
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
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