Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

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

share|improve this answer
add comment

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.

share|improve this answer
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". :-) –  Chris Jester-Young Oct 11 '10 at 21:39
    
Thanks Chris. @Huygens +1 for the README pointer (though the wiki means you won't get it, sorry) –  johnc Oct 11 '10 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 '10 at 21:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.