You are not logged in.

#1 2015-01-13 07:10:10

Hacksign
Member
Registered: 2012-07-30
Posts: 137

[SOLVED]Xorg.conf, mouse config problem

The Rapoo M765 mouse can not work properly under normal mouse configuration.
The mouse goes beyond controll when config as below:

hacksign@XSign [14:13:13] : ~                                                                                                                                                                                                            
>> cat /etc/X11/xorg.conf.d/50-mouse-acceleration.conf 
#Section "InputClass"
#	Identifier "Mouse2"
#	MatchProduct "RAPOO RAPOO 2.4G Remote Mouse"
#	MatchIsPointer "yes"
#	MatchDevicePath "/dev/input/event*"
#	Driver "mouse"
#	Option "Protocol" "auto"
#	Option "Emulate3Buttons" "no"
#	Option "Buttons" "7"
#     Option "ButtonMapping" "1 2 3 6 7"
#EndSection

When there is no any configuration, the mouse can work abnormally. Movement and right/left click work fine, but I can not use scroll wheel,and the "go forward"&"go backward" mouse key can not work too.
(I know Option "ZAxisMapping" "4 5" is the configuration of scroll wheel emulation.)
The real problem is 'mouse beyond controll',the cursor goes crazyly on screen ....
I guess it is something wrong of ButtonMapping option. But when I tried to get button number from command xev,when scroll wheel scrolles, I get something below(the scroll wheel movement is identified as a key event~):

//left click
ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
    root 0x264, subw 0x0, time 3766452, (135,143), root:(2287,595),
    state 0x0, button 1, same_screen YES

ButtonRelease event, serial 34, synthetic NO, window 0x4a00001,
    root 0x264, subw 0x0, time 3766588, (135,143), root:(2287,595),
    state 0x100, button 1, same_screen YES

//right click
ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
    root 0x264, subw 0x0, time 3767716, (135,143), root:(2287,595),
    state 0x0, button 3, same_screen YES

ButtonRelease event, serial 34, synthetic NO, window 0x4a00001,
    root 0x264, subw 0x0, time 3767852, (135,143), root:(2287,595),
    state 0x400, button 3, same_screen YES

//mouse scroll, identified as keyboard event(?)
KeyRelease event, serial 34, synthetic NO, window 0x4a00001,
    root 0x264, subw 0x0, time 3769332, (135,143), root:(2287,595),
    state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x4a00001,
    root 0x264, subw 0x0, time 3769332, (135,143), root:(2287,595),
    state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

here is some Information(I dont know why the mouse is identified as 'type:KEYBOARD'):

hacksign@XSign [14:55:03] : ~                                                                                                                                                                                                            
>> xinput
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ RAPOO RAPOO 2.4G Remote Mouse           	id=13	[slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad              	id=15	[slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                   	id=16	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=8	[slave  keyboard (3)]
    ↳ Heng Yu Technology Poker Pro S          	id=9	[slave  keyboard (3)]
    ↳ Heng Yu Technology Poker Pro S          	id=10	[slave  keyboard (3)]
    ↳ Integrated Camera                       	id=11	[slave  keyboard (3)]
    ↳ RAPOO RAPOO 2.4G Remote Mouse           	id=12	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=14	[slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                  	id=17	[slave  keyboard (3)]
hacksign@XSign [14:55:06] : ~                                                                                                                                                                                                            
>> xinput list-props 13
Device 'RAPOO RAPOO 2.4G Remote Mouse':
	Device Enabled (142):	1
	Coordinate Transformation Matrix (144):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	Device Accel Profile (270):	0
	Device Accel Constant Deceleration (271):	1.000000
	Device Accel Adaptive Deceleration (272):	1.000000
	Device Accel Velocity Scaling (273):	10.000000
	Device Product ID (260):	9390, 8192
	Device Node (261):	"/dev/input/event8"
	Evdev Axis Inversion (274):	0, 0
	Evdev Axes Swap (276):	0
	Axis Labels (277):	"Rel X" (152), "Rel Y" (153), "Rel Horiz Wheel" (267), "Rel Dial" (268), "Rel Vert Wheel" (269)
	Button Labels (278):	"Button Left" (145), "Button Middle" (146), "Button Right" (147), "Button Wheel Up" (148), "Button Wheel Down" (149), "Button Horiz Wheel Left" (150), "Button Horiz Wheel Right" (151), "Button Side" (265), "Button Extra" (266), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263)
	Evdev Scrolling Distance (279):	1, 1, 1
	Evdev Middle Button Emulation (280):	0
	Evdev Middle Button Timeout (281):	50
	Evdev Third Button Emulation (282):	0
	Evdev Third Button Emulation Timeout (283):	1000
	Evdev Third Button Emulation Button (284):	3
	Evdev Third Button Emulation Threshold (285):	20
	Evdev Wheel Emulation (286):	0
	Evdev Wheel Emulation Axes (287):	0, 0, 4, 5
	Evdev Wheel Emulation Inertia (288):	10
	Evdev Wheel Emulation Timeout (289):	200
	Evdev Wheel Emulation Button (290):	4
	Evdev Drag Lock Buttons (291):	0
hacksign@XSign [14:55:14] : ~                                                                                                                                                                                                            
>> grep -i rapoo /var/log/Xorg.0.log
[    29.102] (II) config/udev: Adding input device RAPOO RAPOO 2.4G Remote Mouse (/dev/input/event7)
[    29.102] (**) RAPOO RAPOO 2.4G Remote Mouse: Applying InputClass "evdev keyboard catchall"
[    29.102] (II) Using input driver 'evdev' for 'RAPOO RAPOO 2.4G Remote Mouse'
[    29.102] (**) RAPOO RAPOO 2.4G Remote Mouse: always reports core events
[    29.102] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: Device: "/dev/input/event7"
[    29.102] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Vendor 0x24ae Product 0x2000
[    29.102] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found keys
[    29.102] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Configuring as keyboard
[    29.102] (II) XINPUT: Adding extended input device "RAPOO RAPOO 2.4G Remote Mouse" (type: KEYBOARD, id 12)
[    29.103] (II) config/udev: Adding input device RAPOO RAPOO 2.4G Remote Mouse (/dev/input/event8)
[    29.103] (**) RAPOO RAPOO 2.4G Remote Mouse: Applying InputClass "evdev pointer catchall"
[    29.103] (**) RAPOO RAPOO 2.4G Remote Mouse: Applying InputClass "evdev keyboard catchall"
[    29.103] (II) Using input driver 'evdev' for 'RAPOO RAPOO 2.4G Remote Mouse'
[    29.103] (**) RAPOO RAPOO 2.4G Remote Mouse: always reports core events
[    29.103] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: Device: "/dev/input/event8"
[    29.103] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Vendor 0x24ae Product 0x2000
[    29.103] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found 9 mouse buttons
[    29.103] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found scroll wheel(s)
[    29.103] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found relative axes
[    29.103] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found x and y relative axes
[    29.103] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found absolute axes
[    29.103] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Forcing absolute x/y axes to exist.
[    29.103] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found keys
[    29.103] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Configuring as mouse
[    29.103] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Configuring as keyboard
[    29.103] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Adding scrollwheel support
[    29.103] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: YAxisMapping: buttons 4 and 5
[    29.103] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    29.103] (II) XINPUT: Adding extended input device "RAPOO RAPOO 2.4G Remote Mouse" (type: KEYBOARD, id 13)
[    29.104] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: initialized for relative axes.
[    29.104] (WW) evdev: RAPOO RAPOO 2.4G Remote Mouse: ignoring absolute axes.
[    29.104] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) keeping acceleration scheme 1
[    29.104] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) acceleration profile 0
[    29.104] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) acceleration factor: 2.000
[    29.104] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) acceleration threshold: 4
[    29.104] (II) config/udev: Adding input device RAPOO RAPOO 2.4G Remote Mouse (/dev/input/mouse0)
hacksign@XSign [14:59:47] : ~                                                                                                                                                                                                            
>> yaourt -Q|grep -i 'input-'
local/xf86-input-evdev-trackpoint 2.9.1-1
extra/xf86-input-keyboard 1.8.0-3 (xorg-drivers xorg)
extra/xf86-input-mouse 1.9.1-1 (xorg-drivers xorg)
extra/xf86-input-synaptics 1.8.1-1 (xorg-drivers xorg)

Last edited by Hacksign (2015-01-14 02:22:51)

Offline

#2 2015-01-13 08:41:15

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [SOLVED]Xorg.conf, mouse config problem

In the config file you mentioned, all is commented; do you mean that you have problems when you have uncommented it? You should not use the mouse driver (old deprecated driver) but evdev. Try to remove xf86-input-mouse and xf86-input-keyboard (same as before, this is deprecated and handled by evdev) and remove also a "joystick" driver if you have it (I have had problem with it conflicting with the evdev driver).

Last edited by olive (2015-01-13 08:48:26)

Offline

#3 2015-01-13 09:23:54

Hacksign
Member
Registered: 2012-07-30
Posts: 137

Re: [SOLVED]Xorg.conf, mouse config problem

Thanks for reply !
change Driver 'mouse' to Driver 'evdev',solved cursor goes beyond controll problem.
but I still can not use scroll button and 'go forward'&'go backward' button.
(BTW:evdev_drv.so is from local/xf86-input-evdev-trackpoint, and local/xf86-input-evdev-trackpoint package is from AUR)
I think, maybe something wrong with my button number mapping, but I still can not get scroll button number with 'xev' command....
below is my configuration:

hacksign@XSign [17:15:19] : /var/log                                                                                                                                                                                                     
>> cat /etc/X11/xorg.conf.d/50-mouse-acceleration.conf 
Section "InputClass"
	Identifier "Mouse2"
	MatchProduct "RAPOO RAPOO 2.4G Remote Mouse"
	MatchIsPointer "yes"
	MatchDevicePath "/dev/input/event*"
	Driver "evdev"
	Option "Protocol" "auto"
	Option "Emulate3Buttons" "no"
	Option "ZAxisMapping" "4 5"
	Option "Buttons" "9"
	Option "ButtonMapping" "1 2 3 6 7 8 9 4 5"
EndSection

and here is Xorg.0.log

[ 11357.287] (**) RAPOO RAPOO 2.4G Remote Mouse: Applying InputClass "evdev keyboard catchall"
[ 11357.287] (II) Using input driver 'evdev' for 'RAPOO RAPOO 2.4G Remote Mouse'
[ 11357.287] (**) RAPOO RAPOO 2.4G Remote Mouse: always reports core events
[ 11357.287] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: Device: "/dev/input/event7"
[ 11357.287] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Vendor 0x24ae Product 0x2000
[ 11357.287] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found keys
[ 11357.287] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Configuring as keyboard
[ 11357.287] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:24AE:2000.0003/input/input8/event7"
[ 11357.288] (II) XINPUT: Adding extended input device "RAPOO RAPOO 2.4G Remote Mouse" (type: KEYBOARD, id 12)
[ 11357.288] (**) Option "xkb_rules" "evdev"
[ 11357.288] (**) Option "xkb_model" "pc104"
[ 11357.288] (**) Option "xkb_layout" "us"
[ 11357.288] (II) config/udev: Adding input device RAPOO RAPOO 2.4G Remote Mouse (/dev/input/event8)
[ 11357.288] (**) RAPOO RAPOO 2.4G Remote Mouse: Applying InputClass "evdev pointer catchall"
[ 11357.288] (**) RAPOO RAPOO 2.4G Remote Mouse: Applying InputClass "evdev keyboard catchall"
[ 11357.288] (**) RAPOO RAPOO 2.4G Remote Mouse: Applying InputClass "Mouse2"
[ 11357.288] (II) Using input driver 'evdev' for 'RAPOO RAPOO 2.4G Remote Mouse'
[ 11357.288] (**) RAPOO RAPOO 2.4G Remote Mouse: always reports core events
[ 11357.288] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: Device: "/dev/input/event8"
[ 11357.288] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: ButtonMapping '1 2 3 6 7 8 9 4 5'
[ 11357.288] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Vendor 0x24ae Product 0x2000
[ 11357.288] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found 9 mouse buttons
[ 11357.288] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found scroll wheel(s)
[ 11357.288] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found relative axes
[ 11357.288] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found x and y relative axes
[ 11357.288] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found absolute axes
[ 11357.288] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Forcing absolute x/y axes to exist.
[ 11357.288] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found keys
[ 11357.288] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Configuring as mouse
[ 11357.288] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Configuring as keyboard
[ 11357.288] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Adding scrollwheel support
[ 11357.288] (**) Option "Emulate3Buttons" "no"
[ 11357.288] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: YAxisMapping: buttons 4 and 5
[ 11357.288] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 11357.288] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.1/0003:24AE:2000.0004/input/input9/event8"
[ 11357.288] (II) XINPUT: Adding extended input device "RAPOO RAPOO 2.4G Remote Mouse" (type: KEYBOARD, id 13)
[ 11357.288] (**) Option "xkb_rules" "evdev"
[ 11357.288] (**) Option "xkb_model" "pc104"
[ 11357.288] (**) Option "xkb_layout" "us"
[ 11357.288] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: initialized for relative axes.
[ 11357.288] (WW) evdev: RAPOO RAPOO 2.4G Remote Mouse: ignoring absolute axes.
[ 11357.289] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) keeping acceleration scheme 1
[ 11357.289] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) acceleration profile 0
[ 11357.289] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) acceleration factor: 2.000
[ 11357.289] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) acceleration threshold: 4
[ 11357.289] (II) config/udev: Adding input device RAPOO RAPOO 2.4G Remote Mouse (/dev/input/mouse0)
[ 11357.289] (II) No input driver specified, ignoring this device.
[ 11357.289] (II) This device may have been added with another device file.
olive wrote:

In the config file you mentioned, all is commented; do you mean that you have problems when you have uncommented it? You should not use the mouse driver (old deprecated driver) but evdev. Try to remove xf86-input-mouse and xf86-input-keyboard (same as before, this is deprecated and handled by evdev) and remove also a "joystick" driver if you have it (I have had problem with it conflicting with the evdev driver).

Last edited by Hacksign (2015-01-13 09:27:06)

Offline

#4 2015-01-13 11:30:08

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [SOLVED]Xorg.conf, mouse config problem

What happens if you try the standard evdev driver (not the one from AUR) with no configuration? The configuration file you point shouldn't be necessary. Have you other Xorg AUR package? To be sure remove the deprecated xf86-{mouse,keyboard,joystick} to be sure they don't interfere with the evdev driver.

Last edited by olive (2015-01-13 11:31:42)

Offline

#5 2015-01-14 02:22:30

Hacksign
Member
Registered: 2012-07-30
Posts: 137

Re: [SOLVED]Xorg.conf, mouse config problem

It turned out to be that, this mouse has an mode, mapping 'go forward/backward' button to 'next/pre song',and in this mode the scroll button controlls voice volumn.so ... that's why xev give me an key press event,not button press event ...
-0-

olive wrote:

What happens if you try the standard evdev driver (not the one from AUR) with no configuration? The configuration file you point shouldn't be necessary. Have you other Xorg AUR package? To be sure remove the deprecated xf86-{mouse,keyboard,joystick} to be sure they don't interfere with the evdev driver.

Offline

Board footer

Powered by FluxBB