On 07/25/2013 12:08 PM, Armin K. wrote:
> On 07/25/2013 12:03 PM, Igor Živković wrote:
>> On 07/25/2013 11:53 AM, Armin K. wrote:
>>> On 07/25/2013 11:50 AM, [email protected] wrote:
>>>> Author: igor
>>>> Date: Thu Jul 25 02:50:36 2013
>>>> New Revision: 11499
>>>>
>>>> Log:
>>>> ALSA restore state in the bootscript
>>>>
>>>
>>> Why is this necesary? Udev rule is, and has always, done that. You can't
>>> rely on bootscript to know when sound module is loaded. Not everyone
>>> builds in their drivers into kernel (doing that makes kernel load a
>>> looot slower in my experience).
>>
>> It works for me, udev rule doesn't. Are we missing something in the book
>> to make it work with udev?
>>
>
> The udev rule appears to have changed in 1.0.27.
>
> Can you try old one?
>
> http://git.alsa-project.org/?p=alsa-utils.git;a=blob;f=alsactl/90-alsa-restore.rules.in;h=0bcee5bd1bf374c1d5fd751aad9874ab36b03954;hb=b9deb6d9f33b09acdbc4956e147b7fbdf3b4ad18
>
> Just remember to adjust your @sbindir@ correctly
>
I've tried with:
ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS=="card*", \
RUN+="/usr/sbin/alsactl restore $attr{number}"
but it didn't restore my volume state. :-(
--
Igor Živković
http://www.slashtime.net/
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page