Making ALSA Mixer Changes Permaenet
Tofloor
poster avatar
xolotl
deepin
2016-05-19 03:05
Author
In Deepin I have this problem where I can't set up the audio for my Logitech surround speakers via settings but I can go:

Terminal > alsamixer > F6 (change sound card) > 0 HDA Intel PCH > SPDIF (press M to unmute).

The problem is this configuartion reverts each session. How can I make the change permanent? 'sudo alsactl store' does not work.

Reply Favorite View the author
All Replies
dance707
deepin
2016-05-19 05:44
#1
Hi, I do not know how to make this change permanent but hopefully we will have better hardware support in Deepin 15.2 version.
Reply View the author
xolotl
deepin
2016-05-19 15:57
#2
Thanks for the reply Dance. Is there a page with a release schedule/timeline so I can read about what's in the pipe for Deepin? I'm becoming a fan.
Reply View the author
dance707
deepin
2016-05-20 02:05
#3
https://bbs.deepin.org/post/31030
Thanks for the reply Dance. Is there a page with a release schedule/timeline so I can read about wha ...

Hi, I have not seen a published release schedule/timeline. There is the blog   http://blog.deepin.org/
Twitter , IRC, The main Chinese web site and forum.
Reply View the author
xolotl
deepin
2016-06-02 17:27
#4
I've updated to 15.2 and the problem persists. On boot I have no audio and have to jump into the terminal. Do you know what to try next? If not, where should I ask?
Reply View the author
dance707
deepin
2016-06-02 17:33
#5
https://bbs.deepin.org/post/31030
I've updated to 15.2 and the problem persists. On boot I have no audio and have to jump into the ter ...

I would you Deepin User Feedback in your applications. Keep in mind though the Deepin Linux kernel plan has short term and mid term goals and we did not get a Kernel update yet in 15.2
Reply View the author
xolotl
deepin
2016-06-02 18:26
#6
Have done. I'll report back if I find a fix. I might post on the ALSA forums.
Reply View the author
xolotl
deepin
2016-06-04 22:31
#7
Edited by xolotl at 2016-6-4 15:32

Okay I've got a hotfix in mind.

Makes SPDIF work "amixer -c 0 cset name='IEC958 Playback Switch' on"
Makes it not insanely loud "amixer -c 0 set PCM 150"

How would I go about making this something that runs on boot?
Reply View the author
tristar
deepin
2016-06-05 04:45
#8
Maybe you can put this command in the /etc/rc.local file?
Reply View the author
xolotl
deepin
2016-06-05 14:59
#9
Awesome, that must be the equivalent of a start up script in Manjaro. I tired it though and it didn't work. The issue may be the way in which alsa and maybe pulseaudio loads. Apparently my script in Manjro didn't work because it got overrides itself with an illogical load order. If you agree that's the problem, how can I make a script that waits until everything else is loaded?
Reply View the author
xolotl
deepin
2016-06-05 15:55
#10
I tried making a script in my home directory and then linking to it from rc.local "nohup /path/ &" but no luck.
Reply View the author
tristar
deepin
2016-06-06 01:06
#11
You can use "crontab -e" as user and put there some entries. It's fine to search crontab on the google so you can see how it works editing of it.
Reply View the author
xolotl
deepin
2016-06-06 17:34
#12
No luck with crontab -e. Some resources say init.d is a directory, I see it as a file. Does Deepin have Upstart? Is there a way to add it as a start up application? Running a script on start up is a mess.
Reply View the author
tristar
deepin
2016-06-06 22:37
#13
You can put .desktop file in ~/.config/autostart/
Reply View the author
xolotl
deepin
2016-06-07 19:20
#14
Thanks Tristar. I've never done this, so I must be wrong. Here is my alsaFix.desktop file in autostart.

  1. [Desktop Entry]
  2. Name=AlsaFix
  3. GenericName=AlsaStartSPDIF
  4. Comment=Enables SPDIF and corrects volume
  5. Exec=amixer -c 0 set PCM 140 && amixer -c 0 cset name='IEC958 Playback Switch' on
Copy the Code
Reply View the author
xolotl
deepin
2016-09-22 03:06
#15
Happy to report that Deepin listened and is the first OS I know of to function correctly with my speakers. Deepin 15.3 has a SPDIF option that works perfectly. Thank you.
Reply View the author
ha******mi@hotmail.com
deepin
2022-12-07 02:39
#16
The user is banned, and the content is hidden.
ha******mi@hotmail.com
deepin
2022-12-07 02:42
#17
The user is banned, and the content is hidden.
ha******mi@hotmail.com
deepin
2022-12-07 02:44
#18
The user is banned, and the content is hidden.
ha******mi@hotmail.com
deepin
2022-12-07 02:45
#19
The user is banned, and the content is hidden.