2013/5/2 Bruce Dubbs <[email protected]>

> xinglp wrote:
> > 2013/5/2 xinglp <[email protected]>
> >
> >>
> >>
> >>
> >> 2013/5/2 Bruce Dubbs <[email protected]>
> >>
> >>> xinglp wrote:
> >>>> 2013/5/1 Armin K. <[email protected]>
> >>>>
> >>>>> Dana 1.5.2013 15:18, xinglp je napisao:
> >>>>>>
> >>>>>
> >>>
> http://www.linuxquestions.org/questions/linux-from-scratch-13/alsa-doesnt-restore-volume-at-boot-4175460174/
> >>>>>>
> >>>>>>
> >>>>>
> >>>>> alsa-utils ships udev file that restores volume at boot.
> >>>>>
> >>>> But it not run after reboot, and the status of 'alsamixer' not
> restored.
> >>>> Run 'alsactl restore' manually fix this.
> >>>
> >>> alsa-utils installs
> >>>
> >>> /usr/bin/install -c -m 644 90-alsa-restore.rules '/lib/udev/rules.d'
> >>>
> >>> ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*",
> KERNELS=="card*",
> >>> \
> >>>           RUN+="/usr/sbin/alsactl restore $attr{number}"
> >>>
> >>> When running udev during boot, '/lib/udev/udevd --daemon' will fire
> that
> >>> rule if it finds the sound subsystem.  Use 'udevadm info --export-db'
> to
> >>> see what your system detects.
> >>
> >>
> >> udevadm info --export-db
> >> P: /devices/pci0000:00/0000:00:1b.0/sound/card0
> >> E: DEVPATH=/devices/pci0000:00/0000:00:1b.0/sound/card0
> >>   E: ID_BUS=pci
> >> E: ID_MODEL_ID=0x293e
> >> E: ID_PATH=pci-0000:00:1b.0
> >> E: ID_PATH_TAG=pci-0000_00_1b_0
> >> E: ID_VENDOR_ID=0x8086
> >> E: SOUND_FORM_FACTOR=internal
> >> E: SOUND_INITIALIZED=1
> >> E: SUBSYSTEM=sound
> >> E: USEC_INITIALIZED=5249
> >>
> >> P: /devices/pci0000:00/0000:00:1b.0/sound/card0/pcmC0D0c
> >> N: snd/pcmC0D0c
> >> E: DEVNAME=/dev/snd/pcmC0D0c
> >> E: DEVPATH=/devices/pci0000:00/0000:00:1b.0/sound/card0/pcmC0D0c
> >> E: MAJOR=116
> >> E: MINOR=3
> >> E: SUBSYSTEM=sound
> >>
> >> P: /devices/pci0000:00/0000:00:1b.0/sound/card0/pcmC0D0p
> >> N: snd/pcmC0D0p
> >> E: DEVNAME=/dev/snd/pcmC0D0p
> >>   E: DEVPATH=/devices/pci0000:00/0000:00:1b.0/sound/card0/pcmC0D0p
> >> E: MAJOR=116
> >> E: MINOR=2
> >> E: SUBSYSTEM=sound
> >>
> >> P: /devices/pci0000:00/0000:00:1b.0/sound/card0/controlC0
> >> N: snd/controlC0
> >> S: snd/by-path/pci-0000:00:1b.0
> >> E: DEVLINKS=/dev/snd/by-path/pci-0000:00:1b.0
> >> E: DEVNAME=/dev/snd/controlC0
> >> E: DEVPATH=/devices/pci0000:00/0000:00:1b.0/sound/card0/controlC0
> >> E: ID_PATH=pci-0000:00:1b.0
> >> E: ID_PATH_TAG=pci-0000_00_1b_0
> >> E: MAJOR=116
> >> E: MINOR=4
> >> E: SUBSYSTEM=sound
> >> E: USEC_INITIALIZED=4553
> >>
> >> I'm using SVN-20130429 with linux kernel 3.9.
> >>
> > I have /lib/udev/rules.d/90-alsa-restore.rules:
> >
> > ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*",
> > GOTO="alsa_restore_go"
> > GOTO="alsa_restore_end"
> >
> > LABEL="alsa_restore_go"
> > TEST!="/etc/alsa/state-daemon.conf", RUN+="/usr/sbin/alsactl restore
> > $attr{number}"
> > TEST=="/etc/alsa/state-daemon.conf", RUN+="/usr/sbin/alsactl nrestore
> > $attr{number}"
> >
> > LABEL="alsa_restore_end"
> >
> > But I don't have  /etc/alsa/state-daemon.conf.
>
> I haven't seen /etc/alsa/state-daemon.conf before, but it looks like it
> will do the right thing if TEST!="/etc/alsa/state-daemon.conf"
>
> The udev rule is added by alsa-utils, but the version I have installed
> is a little dated (1.0.26  v the current 1.0.27).
>
I'm using 1.0.27, I have tried to cp /lib/udev/rules.d/90-alsa-restore.rules
to /lib/udev/rules.d/, but still not work.

>
>    -- Bruce
>
>
>    -- Bruce
>
>
>
>
> --
> http://linuxfromscratch.org/mailman/listinfo/blfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
>
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to