Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frequent connect / disconnects from systemd-udevd #249

Open
hnapel opened this issue Oct 12, 2020 · 4 comments
Open

Frequent connect / disconnects from systemd-udevd #249

hnapel opened this issue Oct 12, 2020 · 4 comments
Labels

Comments

@hnapel
Copy link

hnapel commented Oct 12, 2020

Upgraded to ubuntu 20.04, noted that the systemd-udevd was using close to 100% cpu,
then checked with udevadm monitor and noted high frequency of add/ bind / remove /unbind events for the
G513 keyboard like this:

KERNEL[105975.409961] add /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1/0003:046D:C33C.48F5/hidraw/hidraw7 (hidraw)
KERNEL[105975.409985] bind /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1/0003:046D:C33C.48F5 (hid)
KERNEL[105975.410010] bind /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1 (usb)
UDEV [105975.410404] add /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1/0003:046D:C33C.48E4/input/input74330/event11 (input)
UDEV [105975.411549] bind /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1/0003:046D:C33C.48E4 (hid)
UDEV [105975.412858] bind /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1 (usb)
UDEV [105975.414204] remove /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1/0003:046D:C33C.48E4/hidraw/hidraw7 (hidraw)
UDEV [105975.414450] remove /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1/0003:046D:C33C.48E4/input/input74330/event11 (input)
UDEV [105975.414480] remove /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1/usbmisc/hiddev2 (usbmisc)
UDEV [105975.414526] remove /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1/0003:046D:C33C.48E4/input/input74329/event10 (input)
UDEV [105975.415432] remove /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1/0003:046D:C33C.48E4/input/input74329 (input)
UDEV [105975.415827] remove /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1/0003:046D:C33C.48E4/input/input74330 (input)
UDEV [105975.416728] unbind /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1/0003:046D:C33C.48E4 (hid)
UDEV [105975.417390] remove /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1/0003:046D:C33C.48E4 (hid)
UDEV [105975.418144] unbind /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1 (usb)
KERNEL[105975.497801] remove /devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb5/5-1/5-1.4/5-1.4.1/5-1.4.1:1.1/0003:046D:C33C.48F5/input/input74397/event10 (input)

This goes on and on with a high rate. After running sudo make uninstall it went away, so I'm quite convinced this program is the issue. Please note I re-installed on the ubuntu 20.0.4 to pull in any updated libs, but the problem remains.

@MatMoul
Copy link
Owner

MatMoul commented Nov 6, 2020

How do you have installed g810-led?
On my system I use this file "/etc/udev/rules.d/g810-led.rules"
And I don't use systemd.
What services do you use for g810-led?

@helix26j
Copy link

I was experiencing this same issue on my g910 and not having the RUN section at the end of the line in /lib/udev/rules.d/60-g810-led.rules appears to stop it and This was occurring both on system boot but also when using a usb switch. After removing the RUN the keyboard works immediately without having to wait for the disconnect/reconnects to stop.

My profile still applies on system boot (through systemd?). Perhaps its some timing or conflict when the USB device is initializing?

@helix26j
Copy link

Cannot seem to edit my previous comment. I am using Linux Mint that is based on Ubuntu 20.04.

@bkw777
Copy link

bkw777 commented Oct 12, 2021

I had the same problem. I was using #267 not the stock version, but it did that same thing. I had to remove the RUN directive from the udev rule.

The command in the RUN section is exiting with an error level of 2.
The same exact command when run from a normal user's terminal session, works fine and exits with 0 not 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants