andreldm / harpoond

Provides basic support to control Corsair Harpoon Mouse's LEDs.
18 stars 3 forks source link

Spam in dmesg kernel log while daemon is running #3

Open valeth opened 3 years ago

valeth commented 3 years ago

When running the daemon as systemd service I'm getting an endless amount of the following message in my dmesg:

...
[ 3093.821158] hid-generic 0003:1B1C:1B5E.04E9: hiddev98,hidraw4: USB HID v1.11 Device [Corsair CORSAIR HARPOON RGB WIRELESS Gaming Mouse] on usb-0000:02:00.0-1/input1
[ 3095.828085] hid-generic 0003:1B1C:1B5E.04EA: hiddev98,hidraw4: USB HID v1.11 Device [Corsair CORSAIR HARPOON RGB WIRELESS Gaming Mouse] on usb-0000:02:00.0-1/input1
...

Which I assume is caused by the keep_alive function which initializes and ungrabs the device.

andreldm commented 3 years ago

Yes, very likely because of that, unfortunately I don't see how to avoid that as the device was designed to expect a keep alive and grabbing the device indefinitely sounds like a bad idea.

ChaosInfinited commented 2 years ago

It's not a proper fix, but spams dmesg much less, doubt too there's another way https://github.com/andreldm/harpoond/pull/8