You are not logged in.
Due to some sound issues, I want to execute following command each time I login:
amixer -c 0 sset Headphone 100% unmute
So I added this line to my .bash_profile.
The command gives output on login, but has no effect? Looking at alsamixer after login, the sound levels are unchanged. I also tried the same with alsactl restore in bash_profile with the same results.
When executed manually, both commands work as intended. Also sourcing .bash_profile works. How come it is not working at the time of login? There must be something I don't understand about .bash_profile and the login sequence? Please enlighten me.
Note that this is not a graphical login, just the same login you get with fresh Arch.
Last edited by Tuomola (2018-06-10 12:42:49)
Offline
I'd suspect it is "working" but something else in the startup process is changing the settings - perhaps a misconfigured restore service.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Rules for problems.
Everyone has problems. Animals have problems. And buildings. And cats, and trees.
Problems are your friends. Treat them well.
Offline
Thanks for guiding me to right direction.
The culprit was pulseaudio, which messes the alsa settings at some point. So I took away pulseaudio, and the line works. I didn't as of yet find an easy solution to do the same unmuting process with pulseaudio on login.
Offline