Bug 477608 - KCM Mouse shows other devices that are not mouses
Summary: KCM Mouse shows other devices that are not mouses
Status: RESOLVED UPSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_mouse (show other bugs)
Version: 5.27.80
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-27 11:40 UTC by Guo Yunhe
Modified: 2024-03-25 02:05 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot (144.13 KB, image/png)
2023-11-27 11:40 UTC, Guo Yunhe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guo Yunhe 2023-11-27 11:40:30 UTC
Created attachment 163538 [details]
screenshot

SUMMARY

I connect a keyboard and a mouse to my computer, KDE Wayland System Settings' mouse configuration module shows not only my mouse but also my keyboard, and my mouse as a keyboard.

STEPS TO REPRODUCE
1. Connect PC with a keyboard (wired) and a mouse (wireless)
2. Open System Settings -> Mouse
3. Check the device list

OBSERVED RESULT
It list three devices:
1. USB Keyboard -> that is my keyboard, shouldn't be listed
2. Rapoo Gaming Device -> that is my mouse, good
3. Rapoo Gaming Device Keyboard -> my mouse was recognized as a keyboard? that is wrong.

EXPECTED RESULT
It should only list one mouse device.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 David Redondo 2023-11-28 10:26:49 UTC
Please attach output of 

 libinput  list-devices
Comment 2 Doug 2023-12-04 04:25:27 UTC
I am having the same issue.  My mouse (Logitech MX3) is showing up (good).  It's also showing me as having a Dell Mouse, which I don't (not good).  In fact, it is showing three Dell devices with the same identifier, except for "Mouse/Touchpad/Unknown".  Here is my libinput list-devices for the relevant devices:

Device:           DELL0926:00 044E:1220 Mouse
Kernel:           /dev/input/event8
Group:            7
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           DELL0926:00 044E:1220 Touchpad
Kernel:           /dev/input/event11
Group:            7
Seat:             seat0, default
Size:             100x53mm
Capabilities:     pointer gesture
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   *two-finger edge 
Click methods:    none
Disable-w-typing: enabled
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           DELL0926:00 044E:1220 UNKNOWN
Kernel:           /dev/input/event12
Group:            7
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a
Comment 3 Bug Janitor Service 2023-12-19 03:45:48 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Jakob Petsovits 2024-03-05 19:51:08 UTC
(In reply to Doug from comment #2)
> I am having the same issue.  My mouse (Logitech MX3) is showing up (good). 
> It's also showing me as having a Dell Mouse, which I don't (not good).  In
> fact, it is showing three Dell devices with the same identifier, except for
> "Mouse/Touchpad/Unknown".  Here is my libinput list-devices for the relevant
> devices:
> 
> Device:           DELL0926:00 044E:1220 Mouse
> Kernel:           /dev/input/event8
> Group:            7
> Seat:             seat0, default
> Capabilities:     pointer 

(...)

An internet search for your device ID shows a selection of Dell laptops with trackpoint. I figure that's what this "mouse" is. On my system, libinput even provides two separate devices for my laptop's trackpad: one called "TPPS/2 Elan TrackPoint" and the other one "SYNA8004:00 06CB:CD8B Mouse".
Comment 5 Jakob Petsovits 2024-03-05 20:01:07 UTC
In addition to the two trackpoint "mice" advertised by my laptop, I've also got an external Razer mouse and Keychron keyboard. This gets me an extra four pointer devices, only one of which is the "main" mouse:

Device:           Razer ProClickM
Kernel:           /dev/input/event7
Group:            5
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   flat *adaptive custom
Rotation:         0.0

Device:           Razer ProClickM Keyboard
Kernel:           /dev/input/event8
Group:            5
Seat:             seat0, default
Capabilities:     keyboard pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           Razer ProClickM Mouse
Kernel:           /dev/input/event9
Group:            5
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   flat *adaptive custom
Rotation:         0.0

Device:           Keychron Keychron K1 SE
Kernel:           /dev/input/event5
Group:            6
Seat:             seat0, default
Capabilities:     keyboard pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

That's in addition to other devices which are also exposed when plugging these in (those are not listed in the Mouse KCM):

Device:           Razer ProClickM
Kernel:           /dev/input/event11
Group:            5
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           Razer ProClickM Consumer Control
Kernel:           /dev/input/event12
Group:            5
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           Keychron Keychron K1 SE
Kernel:           /dev/input/event4
Group:            6
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Conclusion: Some devices like to expose additional USB interfaces on top of their main purpose. Perhaps to emulate some mouse features. Not sure how to demote those in the KCM - one idea would be to list them, but order them by the number of pointer-related features they provide (like extra mouse buttons, left-handed mode, etc.).
Comment 6 Doug 2024-03-06 04:47:24 UTC
(In reply to Jakob Petsovits from comment #4)
> (In reply to Doug from comment #2)
> > I am having the same issue.  My mouse (Logitech MX3) is showing up (good). 
> > It's also showing me as having a Dell Mouse, which I don't (not good).  In
> > fact, it is showing three Dell devices with the same identifier, except for
> > "Mouse/Touchpad/Unknown".  Here is my libinput list-devices for the relevant
> > devices:
> > 
> > Device:           DELL0926:00 044E:1220 Mouse
> > Kernel:           /dev/input/event8
> > Group:            7
> > Seat:             seat0, default
> > Capabilities:     pointer 
> 
> (...)
> 
> An internet search for your device ID shows a selection of Dell laptops with
> trackpoint. I figure that's what this "mouse" is. On my system, libinput
> even provides two separate devices for my laptop's trackpad: one called
> "TPPS/2 Elan TrackPoint" and the other one "SYNA8004:00 06CB:CD8B Mouse".

Good catch.  I've had this laptop, with the trackpoint, for 3 years now and never used it once.  Forgot it was even there.
Comment 7 Nate Graham 2024-03-25 02:05:28 UTC
What's happening is that your non-mouse devices are inappropriately reporting themselves as multiple mice. This might be a bug in the devices themselves, and it might be a bug in Libinput, but it's not the problem of our KCM. I'd recommend reporting it to Libinput, along with the output of `libinput list-devices` that shows the issue.