You are not logged in.
Pages: 1
Topic closed
Hello,
I noticed strange behaving last week. Every time I reboot my laptop, speakers drop to zero volume. I have to go to "alsamixer -c 0" and there I have to increase it. It starts just one week ago and it worked fine before. Thanks
$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default
Playback/recording through the PulseAudio sound server
sysdefault:CARD=PCH
HDA Intel PCH, ALC269VC Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VC Analog
Front speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VC Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VC Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VC Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VC Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VC Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
$aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
cat /etc/asound.conf
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}
$ pacman -Qs pulse
local/libcanberra-pulse 0.30-4
PulseAudio plugin for libcanberra
local/pavucontrol 2.0-2
A GTK volume control for PulseAudio
local/pulseaudio 4.0-6
A featureful, general-purpose sound server
local/pulseaudio-alsa 2-2
ALSA Configuration for PulseAudio
$ pacman -Qs alsa
local/alsa-firmware 1.0.27-2
ALSA firmware package
local/alsa-lib 1.0.27.2-1
An alternative implementation of Linux sound support
local/alsa-plugins 1.0.27-2
Extra alsa plugins
local/alsa-utils 1.0.27.2-1
An alternative implementation of Linux sound support
local/pulseaudio-alsa 2-2
ALSA Configuration for PulseAudio
Last edited by Kotrfa (2013-11-30 09:03:05)
Offline
Did you try saving the settings since then?
Offline
Yes I tried that using "sudo alsactl store". Here is my asound.state
cat /var/lib/alsa/asound.state
state.PCH {
control.1 {
iface MIXER
name 'Headphone Playback Volume'
value.0 87
value.1 87
comment {
access 'read write'
type INTEGER
count 2
range '0 - 87'
dbmin -6525
dbmax 0
dbvalue.0 0
dbvalue.1 0
}
}
control.2 {
iface MIXER
name 'Headphone Playback Switch'
value.0 true
value.1 true
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.3 {
iface MIXER
name 'Speaker Playback Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '0 - 87'
dbmin -6525
dbmax 0
dbvalue.0 -6525
dbvalue.1 -6525
}
}
control.4 {
iface MIXER
name 'Speaker Playback Switch'
value.0 true
value.1 true
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.5 {
iface MIXER
name 'Internal Mic Playback Volume'
value.0 28
value.1 28
comment {
access 'read write'
type INTEGER
count 2
range '0 - 31'
dbmin -3450
dbmax 1200
dbvalue.0 750
dbvalue.1 750
}
}
control.6 {
iface MIXER
name 'Internal Mic Playback Switch'
value.0 false
value.1 false
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.7 {
iface MIXER
name 'Mic Playback Volume'
value.0 28
value.1 28
comment {
access 'read write'
type INTEGER
count 2
range '0 - 31'
dbmin -3450
dbmax 1200
dbvalue.0 750
dbvalue.1 750
}
}
control.8 {
iface MIXER
name 'Mic Playback Switch'
value.0 false
value.1 false
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.9 {
iface MIXER
name 'Auto-Mute Mode'
value Enabled
comment {
access 'read write'
type ENUMERATED
count 1
item.0 Disabled
item.1 Enabled
}
}
control.10 {
iface MIXER
name 'Capture Volume'
value.0 63
value.1 63
comment {
access 'read write'
type INTEGER
count 2
range '0 - 63'
dbmin -1725
dbmax 3000
dbvalue.0 3000
dbvalue.1 3000
}
}
control.11 {
iface MIXER
name 'Capture Switch'
value.0 true
value.1 true
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.12 {
iface MIXER
name 'Internal Mic Boost Volume'
value.0 1
value.1 1
comment {
access 'read write'
type INTEGER
count 2
range '0 - 3'
dbmin 0
dbmax 3000
dbvalue.0 1000
dbvalue.1 1000
}
}
control.13 {
iface MIXER
name 'Mic Boost Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '0 - 3'
dbmin 0
dbmax 3000
dbvalue.0 0
dbvalue.1 0
}
}
control.14 {
iface MIXER
name 'Master Playback Volume'
value 87
comment {
access 'read write'
type INTEGER
count 1
range '0 - 87'
dbmin -6525
dbmax 0
dbvalue.0 0
}
}
control.15 {
iface MIXER
name 'Master Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.16 {
iface CARD
name 'Internal Mic Phantom Jack'
value true
comment {
access read
type BOOLEAN
count 1
}
}
control.17 {
iface CARD
name 'Mic Jack'
value false
comment {
access read
type BOOLEAN
count 1
}
}
control.18 {
iface CARD
name 'Headphone Jack'
value false
comment {
access read
type BOOLEAN
count 1
}
}
control.19 {
iface CARD
name 'Speaker Phantom Jack'
value true
comment {
access read
type BOOLEAN
count 1
}
}
control.20 {
iface PCM
name 'Playback Channel Map'
value.0 0
value.1 0
comment {
access read
type INTEGER
count 2
range '0 - 36'
}
}
control.21 {
iface PCM
name 'Capture Channel Map'
value.0 0
value.1 0
comment {
access read
type INTEGER
count 2
range '0 - 36'
}
}
control.22 {
iface CARD
name 'HDMI/DP,pcm=3 Jack'
value false
comment {
access read
type BOOLEAN
count 1
}
}
control.23 {
iface MIXER
name 'IEC958 Playback Con Mask'
value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
comment {
access read
type IEC958
count 1
}
}
control.24 {
iface MIXER
name 'IEC958 Playback Pro Mask'
value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
comment {
access read
type IEC958
count 1
}
}
control.25 {
iface MIXER
name 'IEC958 Playback Default'
value '0482000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
comment {
access 'read write'
type IEC958
count 1
}
}
control.26 {
iface MIXER
name 'IEC958 Playback Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.27 {
iface PCM
device 3
name ELD
value ''
comment {
access 'read volatile'
type BYTES
count 0
}
}
control.28 {
iface PCM
device 3
name 'Playback Channel Map'
value.0 0
value.1 0
value.2 0
value.3 0
value.4 0
value.5 0
value.6 0
value.7 0
comment {
access 'read write'
type INTEGER
count 8
range '0 - 36'
}
}
control.29 {
iface MIXER
name 'PCM Playback Volume'
value.0 255
value.1 255
comment {
access 'read write user'
type INTEGER
count 2
range '0 - 255'
tlv '0000000100000008ffffec1400000014'
dbmin -5100
dbmax 0
dbvalue.0 0
dbvalue.1 0
}
}
control.30 {
iface MIXER
name 'Digital Capture Volume'
value.0 60
value.1 60
comment {
access 'read write user'
type INTEGER
count 2
range '0 - 120'
tlv '0000000100000008fffff44800000032'
dbmin -3000
dbmax 3000
dbvalue.0 0
dbvalue.1 0
}
}
}
When I login I can see that speakers are at 100% but after few seconds it drops down.
Offline
Exactly same issue here... I still haven't found a solution yet, sorry, but I wanna tell you that you're not the only one....
Last edited by snazza (2013-11-19 20:51:54)
Offline
One week ago it worked fine... Don't know what happened.
Offline
Ok, no real solution, here is my workaround. I start this after boot... I added to my awesome WM autostart function, but adding that to .profile or something like that should work.
sleep 10 && amixer -c 0 set Speaker 100%
Last edited by Kotrfa (2013-11-21 19:40:40)
Offline
Just curious... what does systemctl status alsa-restore.service tell you? Does it succeed? How about the alsa-store.service right before the previous shutdown/reboot? Does that succeed?
Offline
Interesting question .
$systemctl status alsa-restore.service
alsa-restore.service - Restore Sound Card State
Loaded: loaded (/usr/lib/systemd/system/alsa-restore.service; static)
Active: inactive (dead) since Thu 2013-11-21 20:52:55 CET; 1h 0min ago
Process: 228 ExecStart=/usr/bin/alsactl restore (code=exited, status=19)
Main PID: 228 (code=exited, status=19)
When I manually restart alsa-restore.service, it works - it restores settings.
Last edited by Kotrfa (2013-11-21 20:53:05)
Offline
Race condition maybe? I wonder what an exit status of 19 indicates?
Offline
Race condition? I'm not only one, by the way.
https://bugs.archlinux.org/task/31163
https://bugs.archlinux.org/task/35438
Offline
What I mean by race condition is that since the alsa-restore.service works perfectly fine when you run it manually, maybe it is being run before the audio HW itself has had a chance to be fully initialized.
If you feel up to it, maybe you could test this by putting the necessary sound modules in the initramfs to be explicitly loaded (in the MODULES="" section) and see if it works then. This would bring up the sound stuff during its time in the initramfs rather than when udev does its probing, which would guarantee that the proper modules are in place when alsa-restore.service is run.
Offline
Ok, I have this mkinitcpio-custom.conf:
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES="piix ide_disk reiserfs"
MODULES="snd_hda_intel"
# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image. This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""
# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way. This is useful for config files.
FILES=""
# HOOKS
# This is the most important setting in this file. The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
## This setup specifies all modules in the MODULES setting above.
## No raid, lvm2, or encrypted root is needed.
# HOOKS="base"
#
## This setup will autodetect all modules for your system and should
## work as a sane default
# HOOKS="base udev autodetect block filesystems"
#
## This setup will generate a 'full' image which supports most systems.
## No autodetection is done.
# HOOKS="base udev block filesystems"
#
## This setup assembles a pata mdadm array with an encrypted root FS.
## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
# HOOKS="base udev block mdadm encrypt filesystems"
#
## This setup loads an lvm2 volume group on a usb device.
# HOOKS="base udev block lvm2 filesystems"
#
## NOTE: If you have /usr on a separate partition, you MUST include the
# usr, fsck and shutdown hooks.
HOOKS="base udev autodetect modconf block filesystems keyboard fsck keymap"
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""
where I added "snd_hda_intel" to modules (and keymap to hooks, but it is because of other problem). Then I generated new image and added to grub. But when I loaded, still same behaviour - volume of speakers is dropped down.
Offline
Ok, I have found where the problem is. alsa-restore starts before sound.target.
$ sudo systemctl status alsa-state.service alsa-restore.service sound.target
alsa-state.service - Manage Sound Card State (restore and store)
Loaded: loaded (/usr/lib/systemd/system/alsa-state.service; static)
Active: inactive (dead)
start condition failed at Sat 2013-11-30 10:36:35 CET; 1min 5s ago
ConditionPathExists=/etc/alsa/state-daemon.conf was not met
Nov 30 10:36:35 530uarch systemd[1]: Started Manage Sound Card State (restore and store).
alsa-restore.service - Restore Sound Card State
Loaded: loaded (/usr/lib/systemd/system/alsa-restore.service; static)
Active: inactive (dead) since Sat 2013-11-30 10:36:36 CET; 1min 4s ago
Process: 227 ExecStart=/usr/bin/alsactl restore (code=exited, status=19)
Main PID: 227 (code=exited, status=19)
Nov 30 10:36:35 530uarch systemd[1]: Starting Restore Sound Card State...
Nov 30 10:36:35 530uarch alsactl[227]: /usr/bin/alsactl: load_state:1729: No soundcards found...
Nov 30 10:36:36 530uarch systemd[1]: Started Restore Sound Card State.
sound.target - Sound Card
Loaded: loaded (/usr/lib/systemd/system/sound.target; static)
Active: active since Sat 2013-11-30 10:36:36 CET; 1min 4s ago
Docs: man:systemd.special(7)
Nov 30 10:36:36 530uarch systemd[1]: Starting Sound Card.
Nov 30 10:36:36 530uarch systemd[1]: Reached target Sound Card.
$ systemd-analyze dot | grep -in alsa-restore
36: "shutdown.target"->"alsa-restore.service" [color="red"];
97: "shutdown.target"->"alsa-restore.service" [color="green"];
367: "basic.target"->"alsa-restore.service" [color="grey66"];
378: "alsa-restore.service"->"shutdown.target" [color="red"];
379: "alsa-restore.service"->"alsa-state.service" [color="green"];
380: "alsa-restore.service"->"systemd-journald.socket" [color="green"];
$ systemd-analyze dot | grep -in sound.target
79: "shutdown.target"->"sound.target" [color="red"];
Original units looks like this:
$ cat /usr/lib/systemd/system/basic.target.wants/alsa-restore.service
[Unit]
Description=Restore Sound Card State
ConditionPathExists=!/etc/alsa/state-daemon.conf
DefaultDependencies=no
After=alsa-state.service
Before=shutdown.target
Conflicts=shutdown.target
[Service]
Type=oneshot
ExecStart=-/usr/bin/alsactl restore
StandardOutput=syslog
and even I tried to edit it to this:
[Unit]
Description=Restore Sound Card State
ConditionPathExists=!/etc/alsa/state-daemon.conf
DefaultDependencies=no
Requires=sound.target
After=sound.target
Before=shutdown.target
Conflicts=shutdown.target
[Service]
Type=oneshot
ExecStart=-/usr/bin/alsactl restore
StandardOutput=syslog
it doesn't help - sound.target is still runned after alsa-restore. It is signed us bug
Last edited by Kotrfa (2013-11-30 09:45:14)
Offline
for me what it woks was to edit /etc/pulse/default.pa and comment this line "load-module module-device-restore", then reboot and everything was OK
source; Ubuntu Forums
Offline
erkasko: Thanks, had the same problem and your solution worked for me!
Offline
Wow, great!! That also works for me, congrats for your great work!!
Offline
Worked for me. Thanks!
Offline
The consensus on this ancient thread is that it seems to work. We are done here.
Closed. https://wiki.archlinux.org/index.php/Fo … Bumping.22
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Pages: 1
Topic closed