Very perplexing...
I took a look at the code for alsactl.c and state.c and don't see where it might bail without some error message. One "last"
thing to try is update to the halt.local you have as such:
Code:
#!/bin/sh
echo "running halt (modified1-start) `date`" > /sbin/DEBUGhalt-DELETEME
ls -al /etc/asound.state >> /sbin/DEBUGhalt-DELETEME
fuser /etc/asound.state &>> /sbin/DEBUGhalt-DELETEME
/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf store &>> /sbin/DEBUGhalt-DELETEME
/usr/sbin/strace /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf store >& /sbin/DEBUGhalt-DELETEME-strace
ls -al /etc/asound.state >> /sbin/DEBUGhalt-DELETEME
echo "running halt (modified1-end) `date`" >> /sbin/DEBUGhalt-DELETEME
#EOF
(note that the strace line uses a different DEBUG file)
Then maybe post the output from the following:
/sbin/lspci | grep Audio
grep state /etc/asound.state
grep -A5 asound.state /sbin/DEBUGhalt-DELETEME-strace
e.g.
Code:
# /sbin/lspci | grep Audio
00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
# grep state /etc/asound.state
state.NVidia {
# grep -A5 asound.state /tmp/foo
open("/etc/asound.state", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=7652, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa8ffdbd000
read(3, "state.NVidia {\n\tcontrol.1 {\n\t\tco"..., 4096) = 4096
read(3, "comment.dbmax 3000\n\t\tiface MIXER"..., 4096) = 3556
read(3, "", 4096) = 0
--
open("/etc/asound.state", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa8ffdbd000
write(3, "state.NVidia {\n\tcontrol.1 {\n\t\tco"..., 4096) = 4096
write(3, "comment.dbmax 3000\n\t\tiface MIXER"..., 3556) = 3556
close(3) = 0
The added "ls"s are just sanity check make sure they agree. The strace line requires the strace package to be installed first and assumes that /usr isn't unmounted yet (which it might be if /usr is on a different filesystem/partition than /sbin).
SS