Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hint: Disable a udev rule that comes with the package (alsa)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
henri
Apprentice
Apprentice


Joined: 15 Nov 2002
Posts: 182
Location: Germany

PostPosted: Thu Mar 15, 2012 2:22 pm    Post subject: Hint: Disable a udev rule that comes with the package (alsa) Reply with quote

Hi folks,

because I have a heavily encrypted laptop system udev fails while executing the rule in /lib/udev/rules.d/90-alsa-restore.rules.
And udev doesn't need to restore the mixer-levels because I also have /etc/init.d/alsasound in my default runlevel, which also restores the mixer-levels.

Allright, first I diabled them by renaming /lib/udev/rules.d/90-alsa-restore.rules to /lib/udev/rules.d/90-alsa-restore.rules.disabled.
But the next time I will update udev /lib/udev/rules.d/90-alsa-restore.rules will be created again... too bad :-( so I enabled it again.


I tried a few things and came up with this solution:

I copied /lib/udev/rules.d/90-alsa-restore.rules to /etc/udev/rules.d/99-alsa-restore.rules (NOTE: 90 became 99 for overriding!)
Then I edited /etc/udev/rules.d/99-alsa-restore.rules and replaced
Code:
RUN+="/usr/sbin/alsactl restore $attr{number}"
with:
Code:
RUN="/bin/true"

Notice that
Code:
+=
became
Code:
=


By solving the problem this way I don't get any udev-errors on boot and this is upgrade-safe!

Maybe this hint will also help someone else.

Yours Henri Schomäcker
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2063

PostPosted: Thu Mar 15, 2012 4:57 pm    Post subject: Reply with quote

Finally something "sane".

// wenn man das überhaupt so sagen kann. danke!
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum