Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange mouse problem (kernel problem?) [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
MiRoSa
n00b
n00b


Joined: 24 Mar 2014
Posts: 22

PostPosted: Thu Dec 28, 2017 7:36 am    Post subject: Strange mouse problem (kernel problem?) [Solved] Reply with quote

After a system update my mousepointer only moves vertically when i move the mouse horizontal, all other directions does nothing also the mouse buttons.

I have tried it with two diffrent mice.

This behavier appears in X11 and in gpm.

So I suspect it is not a xorg.conf problem. I think the PS2-mouse-protokoll is broken in some way.
Is there a kernel-module which could cause that problem?


Last edited by MiRoSa on Mon Jan 08, 2018 5:10 pm; edited 2 times in total
Back to top
View user's profile Send private message
mimosinnet
l33t
l33t


Joined: 10 Aug 2006
Posts: 660
Location: Barcelona, Spain

PostPosted: Fri Dec 29, 2017 7:30 am    Post subject: Re: Strange mouse problem Reply with quote

MiRoSa wrote:
So I suspect it is not a xorg.conf problem. I think the PS2-mouse-protokoll is broken in some way.
Is there a kernel-module which could cause that problem?


Do you see any relevant information in /var/log/Xorg.0.log. This is an example of the information I get about my mouse:

Code:
[    63.185] (II) config/udev: Adding input device ImPS/2 Logitech Wheel Mouse (/dev/input/event5)
[    63.185] (**) ImPS/2 Logitech Wheel Mouse: Applying InputClass "evdev pointer catchall"
[    63.185] (**) ImPS/2 Logitech Wheel Mouse: Applying InputClass "Ratoli"
[    63.185] (II) Using input driver 'evdev' for 'ImPS/2 Logitech Wheel Mouse'
[    63.185] (**) ImPS/2 Logitech Wheel Mouse: always reports core events
[    63.185] (**) evdev: ImPS/2 Logitech Wheel Mouse: Device: "/dev/input/event5"
[    63.185] (**) evdev: ImPS/2 Logitech Wheel Mouse: ButtonMapping '3 2 1 4 5'
[    63.185] (--) evdev: ImPS/2 Logitech Wheel Mouse: Vendor 0x2 Product 0x5
[    63.185] (--) evdev: ImPS/2 Logitech Wheel Mouse: Found 3 mouse buttons
[    63.185] (--) evdev: ImPS/2 Logitech Wheel Mouse: Found scroll wheel(s)
[    63.185] (--) evdev: ImPS/2 Logitech Wheel Mouse: Found relative axes
[    63.185] (--) evdev: ImPS/2 Logitech Wheel Mouse: Found x and y relative axes
[    63.186] (II) evdev: ImPS/2 Logitech Wheel Mouse: Configuring as mouse
[    63.186] (II) evdev: ImPS/2 Logitech Wheel Mouse: Adding scrollwheel support
[    63.186] (**) evdev: ImPS/2 Logitech Wheel Mouse: YAxisMapping: buttons 4 and 5
[    63.186] (**) evdev: ImPS/2 Logitech Wheel Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200

_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Take care of the community answering unanswered posts.
Back to top
View user's profile Send private message
MiRoSa
n00b
n00b


Joined: 24 Mar 2014
Posts: 22

PostPosted: Fri Dec 29, 2017 10:37 am    Post subject: Reply with quote

Here a some logfile extracts:

/var/log/Xorg.0.log
Code:

[  3895.576] (**) Option "CorePointer"
[  3895.576] (**) Mouse0: always reports core events
[  3895.576] (**) evdev: Mouse0: Device: "/dev/input/event1"
[  3895.576] (--) evdev: Mouse0: Vendor 0x22d4 Product 0x1316
[  3895.576] (--) evdev: Mouse0: Found 9 mouse buttons
[  3895.576] (--) evdev: Mouse0: Found scroll wheel(s)
[  3895.576] (--) evdev: Mouse0: Found relative axes
[  3895.576] (--) evdev: Mouse0: Found x and y relative axes
[  3895.576] (II) evdev: Mouse0: Configuring as mouse
[  3895.576] (II) evdev: Mouse0: Adding scrollwheel support
[  3895.576] (**) evdev: Mouse0: YAxisMapping: buttons 4 and 5
[  3895.576] (**) evdev: Mouse0: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[  3895.576] (II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE, id 6)
[  3895.576] (II) evdev: Mouse0: initialized for relative axes.
[  3895.576] (**) Mouse0: (accel) keeping acceleration scheme 1
[  3895.576] (**) Mouse0: (accel) acceleration profile 0
[  3895.576] (**) Mouse0: (accel) acceleration factor: 2.000
[  3895.576] (**) Mouse0: (accel) acceleration threshold: 4
...
[  3895.665] (II) config/udev: Adding input device Laview Technology Mionix Castor (/dev/input/event1)
[  3895.665] (**) Laview Technology Mionix Castor: Applying InputClass "evdev pointer catchall"
[  3895.665] (**) Laview Technology Mionix Castor: Applying InputClass "libinput pointer catchall"
[  3895.665] (II) Using input driver 'libinput' for 'Laview Technology Mionix Castor'
[  3895.665] (**) Laview Technology Mionix Castor: always reports core events
[  3895.665] (**) Option "Device" "/dev/input/event1"
[  3895.665] (**) Option "_source" "server/udev"
[  3895.665] (**) Option "Device" "/dev/input/event1"
[  3895.665] (II) event1  - (II) Laview Technology Mionix Castor: (II) is tagged by udev as: Mouse
[  3895.665] (II) event1  - (II) Laview Technology Mionix Castor: (II) device is a pointer
[  3895.665] (II) event1  - (II) Laview Technology Mionix Castor: (II) device removed
[  3895.704] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-12/3-12:1.0/input/input3/event1"
[  3895.704] (II) XINPUT: Adding extended input device "Laview Technology Mionix Castor" (type: MOUSE, id 10)
[  3895.704] (**) Option "AccelerationScheme" "none"

[  3895.704] (**) Laview Technology Mionix Castor: (accel) selected scheme none/0
[  3895.704] (**) Laview Technology Mionix Castor: (accel) acceleration factor: 2.000
[  3895.704] (**) Laview Technology Mionix Castor: (accel) acceleration threshold: 4
[  3895.704] (II) event1  - (II) Laview Technology Mionix Castor: (II) is tagged by udev as: Mouse
[  3895.704] (II) event1  - (II) Laview Technology Mionix Castor: (II) device is a pointer
[  3895.704] (II) config/udev: Adding input device Laview Technology Mionix Castor (/dev/input/mouse0)
[  3895.704] (II) No input driver specified, ignoring this device.
[  3895.704] (II) This device may have been added with another device file.


dmesg
Code:

...
Dez 29 08:19:37 vivianit kernel: usb 3-12: new full-speed USB device number 6 using xhci_hcd
Dez 29 08:19:37 vivianit kernel: usb 3-12: New USB device found, idVendor=22d4, idProduct=1316
Dez 29 08:19:37 vivianit kernel: usb 3-12: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dez 29 08:19:37 vivianit kernel: usb 3-12: Product: Mionix Castor
Dez 29 08:19:37 vivianit kernel: usb 3-12: Manufacturer: Laview Technology
Dez 29 08:19:37 vivianit kernel: usb 3-12: SerialNumber: STM32
Dez 29 08:19:37 vivianit kernel: input: Laview Technology Mionix Castor as /devices/pci0000:00/0000:00:14.0/usb3/3-12/3-12:1.0/input/input3


Mouse Test:
I push twice the left mousebutton and then the right mousebutton (no mouse movement)

evemu-record
Code:

# EVEMU 1.3
# Kernel: 4.12.12-gentoo
# DMI: dmi:bvnAmericanMegatrendsInc.:bvrF8bMX:bd10/09/2014:
svnGigabyteTechnologyCo.,Ltd.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E
.M.:rvnGigabyteTechnologyCo.,Ltd.:rnX99-UD5WIFI-CF:rvrx.x:
cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
# Input device name: "Laview Technology Mionix Castor"
# Input device ID: bus 0x03 vendor 0x22d4 product 0x1316 version 0x189
# Supported events:
#   Event type 0 (EV_SYN)
#     Event code 0 (SYN_REPORT)
#     Event code 1 (SYN_CONFIG)
#     Event code 2 (SYN_MT_REPORT)
#     Event code 3 (SYN_DROPPED)
#     Event code 4 ((null))
#     Event code 5 ((null))
#     Event code 6 ((null))
#     Event code 7 ((null))
#     Event code 8 ((null))
#     Event code 9 ((null))
#     Event code 10 ((null))
#     Event code 11 ((null))
#     Event code 12 ((null))
#     Event code 13 ((null))
#     Event code 14 ((null))
#     Event code 15 (SYN_MAX)
#   Event type 1 (EV_KEY)
#     Event code 272 (BTN_LEFT)
#     Event code 273 (BTN_RIGHT)
#     Event code 274 (BTN_MIDDLE)
#     Event code 275 (BTN_SIDE)
#     Event code 276 (BTN_EXTRA)
#   Event type 2 (EV_REL)
#     Event code 0 (REL_X)
#     Event code 1 (REL_Y)
#     Event code 8 (REL_WHEEL)
# Properties:
N: Laview Technology Mionix Castor
I: 0003 22d4 1316 0189
P: 00 00 00 00 00 00 00 00
B: 00 0b 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 1f 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 02 03 01 00 00 00 00 00 00
B: 03 00 00 00 00 00 00 00 00
B: 04 00 00 00 00 00 00 00 00
B: 05 00 00 00 00 00 00 00 00
B: 11 00 00 00 00 00 00 00 00
B: 12 00 00 00 00 00 00 00 00
B: 14 00 00 00 00 00 00 00 00
B: 15 00 00 00 00 00 00 00 00
B: 15 00 00 00 00 00 00 00 00
################################
#      Waiting for events      #
################################
E: 0.000001 0002 0000 0001      # EV_REL / REL_X                1
E: 0.000001 0000 0000 0000      # ------------ SYN_REPORT (0) ---------- +0ms
E: 0.115976 0002 0000 0001      # EV_REL / REL_X                1
E: 0.115976 0000 0000 0000      # ------------ SYN_REPORT (0) ---------- +115ms
E: 3.980760 0002 0000 0002      # EV_REL / REL_X                2
E: 3.980760 0000 0000 0000      # ------------ SYN_REPORT (0) ---------- +3865ms

libinput-debug-events
Code:

-event3   DEVICE_ADDED     Power Button                      seat0 default group1  cap:k
-event2   DEVICE_ADDED     Power Button                      seat0 default group2  cap:k
-event13  DEVICE_ADDED     HDA NVidia HDMI/DP,pcm=3          seat0 default group3  cap:
-event14  DEVICE_ADDED     HDA NVidia HDMI/DP,pcm=7          seat0 default group3  cap:
-event15  DEVICE_ADDED     HDA NVidia HDMI/DP,pcm=8          seat0 default group3  cap:
-event16  DEVICE_ADDED     HDA NVidia HDMI/DP,pcm=9          seat0 default group3  cap:
-event1   DEVICE_ADDED     Laview Technology Mionix Castor   seat0 default group4  cap:p left scroll-nat scroll-button
-event8   DEVICE_ADDED     HDA Intel PCH Line                seat0 default group3  cap:
-event9   DEVICE_ADDED     HDA Intel PCH Line Out Front      seat0 default group3  cap:
-event10  DEVICE_ADDED     HDA Intel PCH Line Out Surround   seat0 default group3  cap:
-event11  DEVICE_ADDED     HDA Intel PCH Line Out CLFE       seat0 default group3  cap:
-event12  DEVICE_ADDED     HDA Intel PCH Front Headphone     seat0 default group3  cap:
-event6   DEVICE_ADDED     HDA Intel PCH Front Mic           seat0 default group3  cap:
-event7   DEVICE_ADDED     HDA Intel PCH Rear Mic            seat0 default group3  cap:
-event0   DEVICE_ADDED     AT Translated Set 2 keyboard      seat0 default group5  cap:k
-event1   POINTER_MOTION    +8.07s        0.30/  0.00
 event1   POINTER_MOTION    +8.19s        0.35/  0.00
 event1   POINTER_MOTION   +12.05s        0.71/  0.00
-event0   KEYBOARD_KEY     +13.45s      *** (-1) pressed
 event0   KEYBOARD_KEY     +20.03s      *** (-1) pressed


I think a mouse-button-event becomes a mouse-motion-event.
But why? Which kernel module (libinput?) could be the problem?


What else could be useful to to test?

Wrapped a long line to make the forum layout behave.Chiitoo
Back to top
View user's profile Send private message
mimosinnet
l33t
l33t


Joined: 10 Aug 2006
Posts: 660
Location: Barcelona, Spain

PostPosted: Tue Jan 02, 2018 4:04 am    Post subject: Reply with quote

I see from the logs that your mouse have many buttons and it might be possible that these buttons/movements are not correctly configured. You can use x11-apps/xev to check what is detected.

For example, my mouse configuration in /etc/X11/xorg.conf.d/30-mouse.conf is:

Code:
Section "InputClass"
   Identifier "Ratoli"
   Driver   "evdev"
   Option   "ButtonMapping" "3 2 1 4 5"

   MatchisPointer "on"
EndSection


From your logs, it seems that your mouse is first loaded by evdev and later by udev. At the end of the log, udev seems to complain that the device has already been loaded.

Code:
[  3895.704] (II) config/udev: Adding input device Laview Technology Mionix Castor (/dev/input/mouse0)
[  3895.704] (II) No input driver specified, ignoring this device.
[  3895.704] (II) This device may have been added with another device file.


Is there any configuration for this mouse in xorg.conf?

Cheers!
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Take care of the community answering unanswered posts.
Back to top
View user's profile Send private message
MiRoSa
n00b
n00b


Joined: 24 Mar 2014
Posts: 22

PostPosted: Tue Jan 02, 2018 6:35 pm    Post subject: Reply with quote

mimosinnet wrote:

For example, my mouse configuration in /etc/X11/xorg.conf.d/30-mouse.conf is:

Code:
Section "InputClass"
   Identifier "Ratoli"
   Driver   "evdev"
   Option   "ButtonMapping" "3 2 1 4 5"

   MatchisPointer "on"
EndSection




my /etc/X11/xorg.conf
Code:

...
Section "InputDevice"

        #Driver      "mouse"
    Identifier     "Mouse0"
    Driver         "evdev"
    #Option         "Protocol" "auto"
    Option         "Device" "/dev/input/event1"
    #Option         "Device" "/dev/mice"
    #Option         "ZAxisMapping" "4 5 6 7"
EndSection
...



But I think its a Kernel-Module-Problem...
because I compared evemu-record output with an other computer output and I get BTN-LEFT events for pushing the left Button.
AFAIK collect evemu-record the events before X or everything else process them.

Here a part of my kenel-config (HID)
Code:

#
# HID support
#
CONFIG_HID=y
# CONFIG_HID_BATTERY_STRENGTH is not set
CONFIG_HIDRAW=y
CONFIG_UHID=y
CONFIG_HID_GENERIC=y

#
# Special HID drivers
#
CONFIG_HID_A4TECH=m
# CONFIG_HID_ACCUTOUCH is not set
# CONFIG_HID_ACRUX is not set
CONFIG_HID_APPLE=m
# CONFIG_HID_APPLEIR is not set
# CONFIG_HID_ASUS is not set
# CONFIG_HID_AUREAL is not set
CONFIG_HID_BELKIN=m
# CONFIG_HID_BETOP_FF is not set
CONFIG_HID_CHERRY=m
CONFIG_HID_CHICONY=m
# CONFIG_HID_CORSAIR is not set
# CONFIG_HID_PRODIKEYS is not set
# CONFIG_HID_CMEDIA is not set
CONFIG_HID_CYPRESS=m
# CONFIG_HID_DRAGONRISE is not set
# CONFIG_HID_EMS_FF is not set
# CONFIG_HID_ELECOM is not set
# CONFIG_HID_ELO is not set
CONFIG_HID_EZKEY=m
# CONFIG_HID_GEMBIRD is not set
# CONFIG_HID_GFRM is not set
# CONFIG_HID_HOLTEK is not set
# CONFIG_HID_GT683R is not set
# CONFIG_HID_KEYTOUCH is not set
# CONFIG_HID_KYE is not set
# CONFIG_HID_UCLOGIC is not set
# CONFIG_HID_WALTOP is not set
CONFIG_HID_GYRATION=m
# CONFIG_HID_ICADE is not set
# CONFIG_HID_TWINHAN is not set
# CONFIG_HID_KENSINGTON is not set
# CONFIG_HID_LCPOWER is not set
# CONFIG_HID_LED is not set
# CONFIG_HID_LENOVO is not set
CONFIG_HID_LOGITECH=m
# CONFIG_HID_LOGITECH_DJ is not set
# CONFIG_HID_LOGITECH_HIDPP is not set
# CONFIG_LOGITECH_FF is not set
# CONFIG_LOGIRUMBLEPAD2_FF is not set
# CONFIG_LOGIG940_FF is not set
CONFIG_LOGIWHEELS_FF=y
# CONFIG_HID_MAGICMOUSE is not set
# CONFIG_HID_MAYFLASH is not set
CONFIG_HID_MICROSOFT=m
CONFIG_HID_MONTEREY=m
# CONFIG_HID_MULTITOUCH is not set
# CONFIG_HID_NTI is not set
# CONFIG_HID_NTRIG is not set
# CONFIG_HID_ORTEK is not set
CONFIG_HID_PANTHERLORD=m
# CONFIG_PANTHERLORD_FF is not set
# CONFIG_HID_PENMOUNT is not set
CONFIG_HID_PETALYNX=m
# CONFIG_HID_PICOLCD is not set
# CONFIG_HID_PLANTRONICS is not set
# CONFIG_HID_PRIMAX is not set
# CONFIG_HID_ROCCAT is not set
# CONFIG_HID_SAITEK is not set
CONFIG_HID_SAMSUNG=m
# CONFIG_HID_SONY is not set
# CONFIG_HID_SPEEDLINK is not set
# CONFIG_HID_STEELSERIES is not set
CONFIG_HID_SUNPLUS=m
# CONFIG_HID_RMI is not set
# CONFIG_HID_GREENASIA is not set
# CONFIG_HID_SMARTJOYPLUS is not set
# CONFIG_HID_TIVO is not set
# CONFIG_HID_TOPSEED is not set
# CONFIG_HID_THINGM is not set
# CONFIG_HID_THRUSTMASTER is not set
# CONFIG_HID_UDRAW_PS3 is not set
# CONFIG_HID_WACOM is not set
# CONFIG_HID_WIIMOTE is not set
# CONFIG_HID_XINMO is not set
# CONFIG_HID_ZEROPLUS is not set
# CONFIG_HID_ZYDACRON is not set
# CONFIG_HID_SENSOR_HUB is not set
# CONFIG_HID_ALPS is not set
#
# USB HID support
#
CONFIG_USB_HID=y
CONFIG_HID_PID=y
CONFIG_USB_HIDDEV=y

#
# I2C HID support
#
# CONFIG_I2C_HID is not set

#
# Intel ISH HID support
#
CONFIG_INTEL_ISH_HID=m
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=y
CONFIG_USB_PCI=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y


Back to top
View user's profile Send private message
MiRoSa
n00b
n00b


Joined: 24 Mar 2014
Posts: 22

PostPosted: Mon Jan 08, 2018 5:10 pm    Post subject: Reply with quote

It was a kernel-problem...

I dont know what I really did to fix it. I took a .config file of an older kernel and then it worked again ...

There is a kernel bug some where but i dont know how to track him down.

==> Solved
Back to top
View user's profile Send private message
mimosinnet
l33t
l33t


Joined: 10 Aug 2006
Posts: 660
Location: Barcelona, Spain

PostPosted: Tue Jan 09, 2018 10:06 am    Post subject: Reply with quote

Waw! I am sorry, I did not think it was a kernel issue :roll:

You may compare the new and the old .config file with 'vimdiff' (or diff), and check what the differences are. I do not have enough knowledge of the kernel options :? .

Just in case, from /var/log/Xorg.0.log, check that there is not a conflict between evdev and libinput.

Cheers!
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Take care of the community answering unanswered posts.
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