You are not logged in.

#1 2018-06-10 11:09:49

Tuomola
Member
Registered: 2016-06-21
Posts: 9

[SOLVED] .bash_profile lines execute but have no effect

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

#2 2018-06-10 11:22:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED] .bash_profile lines execute but have no effect

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

#3 2018-06-10 12:06:11

archimboldo
Member
Registered: 2016-03-07
Posts: 232

Re: [SOLVED] .bash_profile lines execute but have no effect


Rules for problems.
Everyone has problems. Animals have problems. And buildings. And cats, and trees.
Problems are your friends. Treat them well.

Offline

#4 2018-06-10 12:41:07

Tuomola
Member
Registered: 2016-06-21
Posts: 9

Re: [SOLVED] .bash_profile lines execute but have no effect

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

Board footer

Powered by FluxBB