The file is provided by the bluez package, I would suggest re-installing it for the sake of the regular desktop system’s dependency requirements.
OK - I’ve done that and now I see the rule in /lib/udev/rules.d, but the hid2hci keeps spamming the output.
Is it still the case after running sudo udevadm control --reload
?
Yes, the output keeps getting spammed by hid2hci.
Try running sudo dpkg-divert --local --rename --divert /lib/udev/rules.d/97-hid2hci.rules.disabled --add /lib/udev/rules.d/97-hid2hci.rules
and sudo udevadm control --reload
in a terminal, and verify if the spamming is still happening
Yeah… I ran your commands but spamming is still there.
sudo dpkg-divert --local --rename --divert /lib/udev/rules.d/97-hid2hci.rules.disabled --add /lib/udev/rules.d/97-hid2hci.rules
Leaving ‘local diversion of /lib/udev/rules.d/97-hid2hci.rules to /lib/udev/rules.d/97-hid2hci.rules.disabled’
I have no idea how to solve this problem right now, you may try to clear the /lib/udev/rules.d/97-hid2hci.rules{.disabled} file’s content and run sudo udevadm control --reload-rules
and sudo udevadm trigger
or reboot but the modification won’t survive after the next bluez package upgrade.
This is something very stubborn, I disabled bluetooth in the BIOS, but hid2hci keeps bugging.
This seems to be related to:
(seemingly comment 70 has a workaround)
I tried that before and it didn’t work for me, but is possible that it was because i didn’t reboot the system - I will try it again.
Thanks
I will try that comment 70 again, so now I have 97-hid2hci-.rules.disabled - how do I formally enable that rule again?
It depends on what you’ve previously done with the file.
For dpkg-divert
check out the --remove
option of the command, the sudo dpkg-divert --remove /lib/udev/rules.d/97-hid2hci.rules
should do the work.
I applied your command but the file still has the “disabled” extension, so it is 97-hid2hci.rules.disabled rather than
97-hid2hci.rules