You are not logged in.

#1 2013-06-19 04:54:01

sheng
Member
Registered: 2009-02-19
Posts: 28

[SOLVED] Auto turn down volume after reboot system

Everytime I turn up the volume to 100% in Gnome3, after reboot system, the volume auto turn down to 0%(mute).

Whether I need use "systemctl" command to enable some services, or install some package?

Last edited by sheng (2013-06-20 01:34:17)

Offline

#2 2013-06-19 06:04:59

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: [SOLVED] Auto turn down volume after reboot system

The alsa-store.service and alsa-restore.service should handle this. Though I am not a gnome user and I know that gconf tends to like ot do its own damn thing sometimes, but I am unsure if sound levels are one of them.  What is the status of those services?

Offline

#3 2013-06-19 09:43:10

sheng
Member
Registered: 2009-02-19
Posts: 28

Re: [SOLVED] Auto turn down volume after reboot system

WonderWoofy wrote:

The alsa-store.service and alsa-restore.service should handle this. Though I am not a gnome user and I know that gconf tends to like ot do its own damn thing sometimes, but I am unsure if sound levels are one of them.  What is the status of those services?

Thanks.

I install alsa-utils package, and enable alsa-store.service, the volume is normal now.

Offline

#4 2013-06-19 13:14:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,422

Re: [SOLVED] Auto turn down volume after reboot system

Please remember to mark the thread as solved.

Offline

#5 2013-06-20 01:54:44

sheng
Member
Registered: 2009-02-19
Posts: 28

Re: [SOLVED] Auto turn down volume after reboot system

By the way, what is the difference between alsa-store.service and alsa-restore.service?

Offline

#6 2013-06-20 01:57:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,422

Re: [SOLVED] Auto turn down volume after reboot system

sheng wrote:

By the way, what is the difference between alsa-store.service and alsa-restore.service?

$ diff -Naur /usr/lib/systemd/system/alsa-store.service /usr/lib/systemd/system/alsa-restore.service
--- /usr/lib/systemd/system/alsa-store.service	2013-05-26 17:53:02.000000000 +0000
+++ /usr/lib/systemd/system/alsa-restore.service	2013-05-26 17:53:02.000000000 +0000
@@ -4,12 +4,14 @@
 #
 
 [Unit]
-Description=Store Sound Card State
+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 store
+ExecStart=-/usr/bin/alsactl restore
 StandardOutput=syslog

;P

Offline

#7 2013-06-20 02:05:55

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: [SOLVED] Auto turn down volume after reboot system

One stores the volume level on shutdown, the other restores it... I kind of thought the names of the services made that pretty clear.

Offline

Board footer

Powered by FluxBB