3

Due to current issues with Logitech Bluetooth devices, I need to update the /lib/udev/rules.d/70-hid2hci.rules file.

A few weeks ago, an update overwrote this file (with an attempted fix that didn't, for many, work), and it took a while for me to realise why my mouse and keyboard stopped working again.

I have memories of being able to store an overriding rules file to a usr directory that will be checked before the lib file, but can't remember the specifics.

Could someone please jog my memory.

2 Answers 2

4

You should put udev rules files in /etc/udev/rules.d; they won't get overwritten on package upgrades.

2

The answer lies not too far away :-)

In the /lib/udev/rules.d directory is a file named README which helps you deal with rules files.

Basically and this could apply to your case, you should create a new file called 71-hid2hci.rules. You should save this file in /etc/udev/rules.d (take care it's under /etc and not /lib). As this file starts with a number higher than the one you're trying to alter, it will override it.

I hope this will help you solve your problem.

3
  • 1
    If you read that README file, it will tell you that you should put your overrides in /etc/udev/rules.d, not "in the same directory". :-) Oct 11, 2010 at 21:39
  • Thanks Chris. @Huygens +1 for the README pointer (though the wiki means you won't get it, sorry)
    – johnc
    Oct 11, 2010 at 21:41
  • Good eyes Chris :) I really was wondering for awhile at your comment before I could understand it! Perhaps I should get some sleep. I'm going to update the answer so it is accurate.
    – Huygens
    Oct 11, 2010 at 21:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .