Conflict to Logitech G304 mouse
Closed this issue · 13 comments
Hi there,
I am using Logitech G304 wireless mouse as my mouse and a common wired keyboard
/dev/input/by-id$ ls
usb-0c45_USB_Keyboard-event-if01
usb-0c45_USB_Keyboard-event-kbd
usb-0c45_USB_Keyboard-if01-event-kbd
usb-Logitech_USB_Receiver-if02-event-mouse
usb-Logitech_USB_Receiver-if02-mouse
When I boot to the system, as the dvorak
runs, my mouse can't move the cursor anymore.
All the buttons failed to function as normal, except the right click. The right click can only fire once, and then it doesn't trigger anymore.
After systemctl stop 'dvorak@*.service'
, my mouse worked as normal again.
It seems that the program considers device with Logitech
is a keyboard.
I can't find the setting to ignore my mouse on either 80-dvorak.rules
or dvorak@.service
.
Is there any method I can still use my Logitech mouse?
Or do I need to provide more logs for you to locate this issue?
Thanks.
Interesting, I added a "auto-detect" feature, and I enable the service based on which keys are present:
//check if X, C, or V are present, if no, then its not a keyboard, exit
if (!(array_bit[KEY_X / 32] & (1 << (KEY_X % 32))) ||
!(array_bit[KEY_C / 32] & (1 << (KEY_C % 32))) ||
!(array_bit[KEY_V / 32] & (1 << (KEY_V % 32)))) {
fprintf(stdout, "Not a keyboard: [%s].\n", device);
return EXIT_SUCCESS;
}
Can you check your journal if you see if your mouse is detected as keyboard?
As a workaround, you can use the -m option in the dvorak@.service file:
ExecStart=/usr/local/bin/dvorak -d /dev/input/%i -m keyboard
And this will match your entries (lowercase), where the name contains the character keyboard.
To test the parameters you can call dvorak direcly (without using the serivce).
/usr/local/bin/dvorak -d /dev/input/by-id/usb-0c45_USB_Keyboard-event-kbd -m keyboard
Thanks for the quick response.
I wonder
- In what path can I find the journal? I'm not quite familiar with debug service.
- As it showed, my keyboard is detected as
usb-0c45_USB_Keyboard-event-if01
, should I use-m keyboard
as the example, or-m Keyboard
with capital K?
- If run from the service, then I typically run journalctl -f, and the logs appear, if you run directly, it will be shown in the console.
- The match is case insensitive, so keyboard, Keyboard should not matter
Hello again,
I've tested it on 3 different mouses.
It affects all wireless mouses, and slightly affects my wired keyboard too.
Here are the journals: (mcv
is the PC name, you may ignore it)
Logitech G304 wireless mouse
Nov 20 21:04:12 mcv kernel: usb 1-5: new full-speed USB device number 6 using xhci_hcd
Nov 20 21:04:13 mcv kernel: usb 1-5: New USB device found, idVendor=046d, idProduct=c53f, bcdDevice=44.01
Nov 20 21:04:13 mcv kernel: usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 20 21:04:13 mcv kernel: usb 1-5: Product: USB Receiver
Nov 20 21:04:13 mcv kernel: usb 1-5: Manufacturer: Logitech
Nov 20 21:04:13 mcv kernel: logitech-djreceiver 0003:046D:C53F.000A: hidraw2: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:02:00.0-5/input0
Nov 20 21:04:13 mcv kernel: logitech-djreceiver 0003:046D:C53F.000B: hiddev1,hidraw3: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:02:00.0-5/input1
Nov 20 21:04:13 mcv kernel: logitech-djreceiver 0003:046D:C53F.000C: hiddev2,hidraw4: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:02:00.0-5/input2
Nov 20 21:04:13 mcv kernel: logitech-djreceiver 0003:046D:C53F.000C: device of type eQUAD Lightspeed 1.1 (0x0d) connected on slot 1
Nov 20 21:04:13 mcv mtp-probe[2615]: checking bus 1, device 6: "/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5"
Nov 20 21:04:13 mcv mtp-probe[2615]: bus: 1, device: 6 was not an MTP device
Nov 20 21:04:13 mcv kernel: input: Logitech G304 as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5/1-5:1.2/0003:046D:C53F.000C/0003:046D:4074.000D/input/input38
Nov 20 21:04:13 mcv kernel: logitech-hidpp-device 0003:046D:4074.000D: input,hidraw6: USB HID v1.11 Keyboard [Logitech G304] on usb-0000:02:00.0-5/input2:1
Nov 20 21:04:13 mcv mtp-probe[2630]: checking bus 1, device 6: "/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5"
Nov 20 21:04:13 mcv mtp-probe[2630]: bus: 1, device: 6 was not an MTP device
Nov 20 21:04:13 mcv systemd[1]: Started dvorak@input38.service - Dvorak Virtual Keyboard.
Nov 20 21:04:13 mcv dvorak[2633]: Cannot open any of the devices [/dev/input/input38]: No such file or directory.
Nov 20 21:04:13 mcv systemd[1]: dvorak@input38.service: Main process exited, code=exited, status=1/FAILURE
Nov 20 21:04:13 mcv systemd[1]: dvorak@input38.service: Failed with result 'exit-code'.
Nov 20 21:04:13 mcv systemd[1]: Started dvorak@mouse0.service - Dvorak Virtual Keyboard.
Nov 20 21:04:13 mcv dvorak[2637]: Cannot EVIOCGBIT for device [/dev/input/mouse0]: Inappropriate ioctl for device.
Nov 20 21:04:13 mcv systemd[1]: Started dvorak@event6.service - Dvorak Virtual Keyboard.
Nov 20 21:04:13 mcv systemd[1]: dvorak@mouse0.service: Main process exited, code=exited, status=1/FAILURE
Nov 20 21:04:13 mcv systemd[1]: dvorak@mouse0.service: Failed with result 'exit-code'.
Nov 20 21:04:13 mcv systemd-logind[1123]: Watching system buttons on /dev/input/event6 (Logitech G304)
Nov 20 21:04:13 mcv kernel: input: Virtual Dvorak Keyboard as /devices/virtual/input/input39
Nov 20 21:04:13 mcv systemd[1]: Started dvorak@input39.service - Dvorak Virtual Keyboard.
Nov 20 21:04:13 mcv dvorak[2643]: Cannot open any of the devices [/dev/input/input39]: No such file or directory.
Nov 20 21:04:13 mcv systemd[1]: dvorak@input39.service: Main process exited, code=exited, status=1/FAILURE
Nov 20 21:04:13 mcv systemd[1]: dvorak@input39.service: Failed with result 'exit-code'.
Nov 20 21:04:13 mcv systemd[1]: Started dvorak@event22.service - Dvorak Virtual Keyboard.
Nov 20 21:04:13 mcv dvorak[2647]: Do not map the device we just created here: Virtual Dvorak Keyboard.
Nov 20 21:04:13 mcv systemd-logind[1123]: Watching system buttons on /dev/input/event22 (Virtual Dvorak Keyboard)
Nov 20 21:04:13 mcv systemd[1]: dvorak@event22.service: Deactivated successfully.
Nov 20 21:04:14 mcv kernel: logitech-hidpp-device 0003:046D:4074.000D: HID++ 4.2 device connected.
Nov 20 21:04:40 mcv kernel: usb 1-5: USB disconnect, device number 6
Nov 20 21:04:40 mcv dvorak[2640]: No such device.
Nov 20 21:04:40 mcv systemd[1]: dvorak@event6.service: Main process exited, code=exited, status=1/FAILURE
Nov 20 21:04:40 mcv systemd[1]: dvorak@event6.service: Failed with result 'exit-code'.
Rapoo M10 wireless mouse
Nov 20 21:09:04 mcv kernel: usb 1-5: new full-speed USB device number 8 using xhci_hcd
Nov 20 21:09:04 mcv kernel: usb 1-5: New USB device found, idVendor=24ae, idProduct=1100, bcdDevice= 1.10
Nov 20 21:09:04 mcv kernel: usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 20 21:09:04 mcv kernel: usb 1-5: Product: Rapoo 2.4G Wireless Device
Nov 20 21:09:04 mcv kernel: usb 1-5: Manufacturer: RAPOO
Nov 20 21:09:04 mcv kernel: input: RAPOO Rapoo 2.4G Wireless Device as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5/1-5:1.0/0003:24AE:1100.0010/input/input44
Nov 20 21:09:04 mcv kernel: hid-generic 0003:24AE:1100.0010: input,hidraw2: USB HID v1.10 Mouse [RAPOO Rapoo 2.4G Wireless Device] on usb-0000:02:00.0-5/input0
Nov 20 21:09:04 mcv kernel: hid-generic 0003:24AE:1100.0011: hiddev1,hidraw3: USB HID v1.10 Device [RAPOO Rapoo 2.4G Wireless Device] on usb-0000:02:00.0-5/input1
Nov 20 21:09:04 mcv mtp-probe[2764]: checking bus 1, device 8: "/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5"
Nov 20 21:09:04 mcv mtp-probe[2764]: bus: 1, device: 8 was not an MTP device
Nov 20 21:09:04 mcv systemd[1]: Started dvorak@input44.service - Dvorak Virtual Keyboard.
Nov 20 21:09:04 mcv dvorak[2778]: Cannot open any of the devices [/dev/input/input44]: No such file or directory.
Nov 20 21:09:04 mcv systemd[1]: dvorak@input44.service: Main process exited, code=exited, status=1/FAILURE
Nov 20 21:09:04 mcv systemd[1]: dvorak@input44.service: Failed with result 'exit-code'.
Nov 20 21:09:04 mcv systemd[1]: Started dvorak@mouse0.service - Dvorak Virtual Keyboard.
Nov 20 21:09:04 mcv dvorak[2781]: Cannot EVIOCGBIT for device [/dev/input/mouse0]: Inappropriate ioctl for device.
Nov 20 21:09:04 mcv systemd[1]: dvorak@mouse0.service: Main process exited, code=exited, status=1/FAILURE
Nov 20 21:09:04 mcv systemd[1]: dvorak@mouse0.service: Failed with result 'exit-code'.
Nov 20 21:09:04 mcv systemd[1]: Started dvorak@event6.service - Dvorak Virtual Keyboard.
Nov 20 21:09:04 mcv mtp-probe[2786]: checking bus 1, device 8: "/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5"
Nov 20 21:09:04 mcv mtp-probe[2786]: bus: 1, device: 8 was not an MTP device
Nov 20 21:09:04 mcv dvorak[2785]: Not a keyboard: [/dev/input/event6].
Nov 20 21:09:04 mcv systemd[1]: dvorak@event6.service: Deactivated successfully.
Nov 20 21:09:54 mcv kernel: usb 1-5: USB disconnect, device number 8
Some cheap off-brand wired mouse
This one is not affected and working normally.
Nov 20 21:27:33 mcv kernel: usb 1-5: new low-speed USB device number 7 using xhci_hcd
Nov 20 21:27:33 mcv kernel: usb 1-5: New USB device found, idVendor=30fa, idProduct=1701, bcdDevice= 1.00
Nov 20 21:27:33 mcv kernel: usb 1-5: New USB device strings: Mfr=2, Product=1, SerialNumber=0
Nov 20 21:27:33 mcv kernel: usb 1-5: Product: USB GAMING MOUSE
Nov 20 21:27:33 mcv kernel: usb 1-5: Manufacturer: INSTANT
Nov 20 21:27:33 mcv kernel: input: INSTANT USB GAMING MOUSE as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5/1-5:1.0/0003:30FA:1701.0010/input/input44
Nov 20 21:27:33 mcv kernel: hid-generic 0003:30FA:1701.0010: input,hidraw0: USB HID v1.10 Mouse [INSTANT USB GAMING MOUSE ] on usb-0000:02:00.0-5/input0
Nov 20 21:27:33 mcv kernel: input: INSTANT USB GAMING MOUSE Keyboard as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5/1-5:1.1/0003:30FA:1701.0011/input/input45
Nov 20 21:27:33 mcv kernel: hid-generic 0003:30FA:1701.0011: input,hiddev0,hidraw1: USB HID v1.10 Keyboard [INSTANT USB GAMING MOUSE ] on usb-0000:02:00.0-5/input1
Nov 20 21:27:33 mcv mtp-probe[2738]: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5"
Nov 20 21:27:33 mcv mtp-probe[2738]: bus: 1, device: 7 was not an MTP device
Nov 20 21:27:33 mcv systemd[1]: Started dvorak@input44.service - Dvorak Virtual Keyboard.
Nov 20 21:27:33 mcv dvorak[2753]: Cannot open any of the devices [/dev/input/input44]: No such file or directory.
Nov 20 21:27:33 mcv systemd[1]: dvorak@input44.service: Main process exited, code=exited, status=1/FAILURE
Nov 20 21:27:33 mcv systemd[1]: dvorak@input44.service: Failed with result 'exit-code'.
Nov 20 21:27:33 mcv systemd[1]: Started dvorak@input45.service - Dvorak Virtual Keyboard.
Nov 20 21:27:33 mcv dvorak[2756]: Cannot open any of the devices [/dev/input/input45]: No such file or directory.
Nov 20 21:27:33 mcv systemd[1]: Started dvorak@mouse0.service - Dvorak Virtual Keyboard.
Nov 20 21:27:33 mcv systemd[1]: dvorak@input45.service: Main process exited, code=exited, status=1/FAILURE
Nov 20 21:27:33 mcv systemd[1]: dvorak@input45.service: Failed with result 'exit-code'.
Nov 20 21:27:33 mcv dvorak[2757]: Cannot EVIOCGBIT for device [/dev/input/mouse0]: Inappropriate ioctl for device.
Nov 20 21:27:33 mcv systemd[1]: Started dvorak@event20.service - Dvorak Virtual Keyboard.
Nov 20 21:27:33 mcv systemd-logind[1097]: Watching system buttons on /dev/input/event20 (INSTANT USB GAMING MOUSE Keyboard)
Nov 20 21:27:33 mcv kernel: input: Virtual Dvorak Keyboard as /devices/virtual/input/input47
Nov 20 21:27:33 mcv systemd[1]: Started dvorak@input47.service - Dvorak Virtual Keyboard.
Nov 20 21:27:33 mcv dvorak[2763]: Cannot open any of the devices [/dev/input/input47]: No such file or directory.
Nov 20 21:27:33 mcv systemd[1]: dvorak@input47.service: Main process exited, code=exited, status=1/FAILURE
Nov 20 21:27:33 mcv systemd[1]: dvorak@input47.service: Failed with result 'exit-code'.
Nov 20 21:27:33 mcv systemd[1]: dvorak@mouse0.service: Main process exited, code=exited, status=1/FAILURE
Nov 20 21:27:33 mcv systemd[1]: dvorak@mouse0.service: Failed with result 'exit-code'.
Nov 20 21:27:33 mcv systemd[1]: Started dvorak@event21.service - Dvorak Virtual Keyboard.
Nov 20 21:27:33 mcv dvorak[2769]: Do not map the device we just created here: Virtual Dvorak Keyboard.
Nov 20 21:27:33 mcv systemd-logind[1097]: Watching system buttons on /dev/input/event21 (Virtual Dvorak Keyboard)
Nov 20 21:27:33 mcv systemd[1]: Started dvorak@event2.service - Dvorak Virtual Keyboard.
Nov 20 21:27:33 mcv mtp-probe[2772]: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5"
Nov 20 21:27:33 mcv mtp-probe[2772]: bus: 1, device: 7 was not an MTP device
Nov 20 21:27:33 mcv systemd[1]: dvorak@event21.service: Deactivated successfully.
Nov 20 21:27:33 mcv dvorak[2771]: Not a keyboard: [/dev/input/event2].
Nov 20 21:27:33 mcv systemd[1]: dvorak@event2.service: Deactivated successfully.
Also, I found I can't fire ctrl+c
with keyboard in journalctl
. It just printed 4 spaces (just like Tab
) in terminal.
After systemctl stop 'dvorak@*.service'
, my keyboard can stop journalctl
with ctrl+c
normally.
I tested these on newly installed Linux Mint 22.
Hope the info can help you to locate the issue.
I just added more output to see what keyboard is detect. If you checkout the latest master, you should see a string: "Staring event loop with keyboard:". Can you tell me how this line looks in your log?
I just found a mouse, where I can reproduce it: M720. Investigating...
I used this program on Ubuntu about two years ago (can't remember the exact date). It didn't conflict with any hardware.
I have recently changed to Linux Mint on my new PC.
The systemctl mask systemd-udev-settle.service
in the README
makes no video output after boot. I'll be busy with that now.
Since it's not caused by your program, you don't have to solve that here.
Before further testing, I'll wait for your report on the M720 mouse.
quick update: the mouse advertises that it has all keyboard buttons. I guess this is due to being a gaming mouse, where mouse buttons can be configured as keyboard events, which makes sense.
When implementing this library, I was wondering if I ever need to implement REL or MSC, as stated here in this line:
Line 348 in d1d1f68
I have no clue if you are right.
Please check the photo below first:
From the top to bottom are:
Off-brand wired mouse, with two side buttons act as back
and forward
in web browser and file explorer.
Logitech G304 mouse, with two side buttons act as back
and forward
like the upper one.
Rapoo M10 mouse, with no side buttons but only left
, right
, middle click
and scroll wheel
.
If it's blamed on the keyboard events, it should be caused by side buttons.
But the off-brand one got side buttons can still perform normally.
If you want me to take further tests on one or any mouses, please let me know. I can scrape the logs for you.
I now changed that ABS/REL is also mapped, as well as the ABS setup (but I have not tested it with any absolute device / tablet). My mouse now works as it advertises that it has all the keyboard buttons, and now the positions are properly propagated.
I also cleaned up lots of stuff. I have not tested extensively, but will do so, as this is my daily driver.
Just swap back to the old Windows PC.
Will do the tests and post the journals ASAP with new code.
Greeting,
The new code works fine.
Here are the journals if you need them for further analysis.
Logitech G304
Nov 23 17:33:49 mcv kernel: usb 1-5: New USB device found, idVendor=046d, idProduct=c53f, bcdDevice=44.01
Nov 23 17:33:49 mcv kernel: usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 23 17:33:49 mcv kernel: usb 1-5: Product: USB Receiver
Nov 23 17:33:49 mcv kernel: usb 1-5: Manufacturer: Logitech
Nov 23 17:33:49 mcv kernel: logitech-djreceiver 0003:046D:C53F.0008: hidraw2: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:02:00.0-5/input0
Nov 23 17:33:49 mcv kernel: logitech-djreceiver 0003:046D:C53F.0009: hiddev1,hidraw3: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:02:00.0-5/input1
Nov 23 17:33:49 mcv kernel: logitech-djreceiver 0003:046D:C53F.000A: hiddev2,hidraw4: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:02:00.0-5/input2
Nov 23 17:33:49 mcv kernel: logitech-djreceiver 0003:046D:C53F.000A: device of type eQUAD Lightspeed 1.1 (0x0d) connected on slot 1
Nov 23 17:33:49 mcv mtp-probe[2416]: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5"
Nov 23 17:33:49 mcv mtp-probe[2416]: bus: 1, device: 5 was not an MTP device
Nov 23 17:33:49 mcv kernel: input: Logitech G304 as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5/1-5:1.2/0003:046D:C53F.000A/0003:046D:4074.000B/input/input34
Nov 23 17:33:49 mcv kernel: logitech-hidpp-device 0003:046D:4074.000B: input,hidraw6: USB HID v1.11 Keyboard [Logitech G304] on usb-0000:02:00.0-5/input2:1
Nov 23 17:33:49 mcv mtp-probe[2431]: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5"
Nov 23 17:33:49 mcv mtp-probe[2431]: bus: 1, device: 5 was not an MTP device
Nov 23 17:33:49 mcv systemd[1]: Started dvorak@event6.service - Dvorak Virtual Keyboard.
Nov 23 17:33:49 mcv systemd-logind[1131]: Watching system buttons on /dev/input/event6 (Logitech G304)
Nov 23 17:33:49 mcv kernel: input: Virtual Dvorak Keyboard as /devices/virtual/input/input35
Nov 23 17:33:49 mcv systemd[1]: Started dvorak@event22.service - Dvorak Virtual Keyboard.
Nov 23 17:33:49 mcv systemd-logind[1131]: Watching system buttons on /dev/input/event22 (Virtual Dvorak Keyboard)
Nov 23 17:33:49 mcv systemd[1]: dvorak@event22.service: Deactivated successfully.
Nov 23 17:33:49 mcv dvorak[2438]: Staring event loop with keyboard: [Logitech G304] for device [/dev/input/event6].
Nov 23 17:33:50 mcv kernel: logitech-hidpp-device 0003:046D:4074.000B: HID++ 4.2 device connected.
Rapoo M10
Nov 23 17:43:14 mcv kernel: usb 1-5: new full-speed USB device number 17 using xhci_hcd
Nov 23 17:43:14 mcv kernel: usb 1-5: New USB device found, idVendor=24ae, idProduct=1100, bcdDevice= 1.10
Nov 23 17:43:14 mcv kernel: usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 23 17:43:14 mcv kernel: usb 1-5: Product: Rapoo 2.4G Wireless Device
Nov 23 17:43:14 mcv kernel: usb 1-5: Manufacturer: RAPOO
Nov 23 17:43:14 mcv kernel: input: RAPOO Rapoo 2.4G Wireless Device as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5/1-5:1.0/0003:24AE:1100.001E/input/input48
Nov 23 17:43:14 mcv kernel: hid-generic 0003:24AE:1100.001E: input,hidraw2: USB HID v1.10 Mouse [RAPOO Rapoo 2.4G Wireless Device] on usb-0000:02:00.0-5/input0
Nov 23 17:43:14 mcv kernel: hid-generic 0003:24AE:1100.001F: hiddev1,hidraw3: USB HID v1.10 Device [RAPOO Rapoo 2.4G Wireless Device] on usb-0000:02:00.0-5/input1
Nov 23 17:43:14 mcv mtp-probe[3256]: checking bus 1, device 17: "/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5"
Nov 23 17:43:14 mcv mtp-probe[3256]: bus: 1, device: 17 was not an MTP device
Nov 23 17:43:14 mcv systemd[1]: Started dvorak@event6.service - Dvorak Virtual Keyboard.
Nov 23 17:43:14 mcv mtp-probe[3272]: checking bus 1, device 17: "/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5"
Nov 23 17:43:14 mcv mtp-probe[3272]: bus: 1, device: 17 was not an MTP device
Nov 23 17:43:14 mcv systemd[1]: dvorak@event6.service: Deactivated successfully.
Off-brand wired mouse
Nov 23 17:43:58 mcv kernel: usb 1-5: new low-speed USB device number 18 using xhci_hcd
Nov 23 17:43:58 mcv kernel: usb 1-5: New USB device found, idVendor=30fa, idProduct=1701, bcdDevice= 1.00
Nov 23 17:43:59 mcv kernel: usb 1-5: New USB device strings: Mfr=2, Product=1, SerialNumber=0
Nov 23 17:43:59 mcv kernel: usb 1-5: Product: USB GAMING MOUSE
Nov 23 17:43:59 mcv kernel: usb 1-5: Manufacturer: INSTANT
Nov 23 17:43:59 mcv kernel: input: INSTANT USB GAMING MOUSE as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5/1-5:1.0/0003:30FA:1701.0020/input/input49
Nov 23 17:43:59 mcv kernel: hid-generic 0003:30FA:1701.0020: input,hidraw2: USB HID v1.10 Mouse [INSTANT USB GAMING MOUSE ] on usb-0000:02:00.0-5/input0
Nov 23 17:43:59 mcv kernel: input: INSTANT USB GAMING MOUSE Keyboard as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5/1-5:1.1/0003:30FA:1701.0021/input/input50
Nov 23 17:43:59 mcv kernel: hid-generic 0003:30FA:1701.0021: input,hiddev1,hidraw3: USB HID v1.10 Keyboard [INSTANT USB GAMING MOUSE ] on usb-0000:02:00.0-5/input1
Nov 23 17:43:59 mcv mtp-probe[3317]: checking bus 1, device 18: "/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5"
Nov 23 17:43:59 mcv mtp-probe[3317]: bus: 1, device: 18 was not an MTP device
Nov 23 17:43:59 mcv systemd[1]: Started dvorak@event22.service - Dvorak Virtual Keyboard.
Nov 23 17:43:59 mcv systemd-logind[1131]: Watching system buttons on /dev/input/event22 (INSTANT USB GAMING MOUSE Keyboard)
Nov 23 17:43:59 mcv kernel: input: Virtual Dvorak Keyboard as /devices/virtual/input/input52
Nov 23 17:43:59 mcv systemd[1]: Started dvorak@event6.service - Dvorak Virtual Keyboard.
Nov 23 17:43:59 mcv systemd[1]: Started dvorak@event23.service - Dvorak Virtual Keyboard.
Nov 23 17:43:59 mcv systemd-logind[1131]: Watching system buttons on /dev/input/event23 (Virtual Dvorak Keyboard)
Nov 23 17:43:59 mcv mtp-probe[3340]: checking bus 1, device 18: "/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-5"
Nov 23 17:43:59 mcv mtp-probe[3340]: bus: 1, device: 18 was not an MTP device
Nov 23 17:43:59 mcv systemd[1]: dvorak@event23.service: Deactivated successfully.
Nov 23 17:43:59 mcv systemd[1]: dvorak@event6.service: Deactivated successfully.
Nov 23 17:43:59 mcv dvorak[3333]: Staring event loop with keyboard: [INSTANT USB GAMING MOUSE Keyboard] for device [/dev/input/event22].
As for the problem that systemctl mask systemd-udev-settle.service
breaks the video output, it seems caused by the USB-C connection.
I was trying to boot Linux on an external ssd drive via usb-c cable. I might dig it later.
I will close this issue since it's fixed now.
Looks good, thx.