Score:0

How to set sound balance through command line?

ag flag
KiR

I'm running Ubuntu 22.04 LTS on my laptop. The right (internal) speaker is dead, so I change the sound balance to full left in Ubuntu sound settings everytime I need to play some video/music. At each startup, the sound balance gets forgotten (back on default value).

I would like to write a short shell script that sets the balance to full left (in order to run it at startup). But I can't find the command line.

Does someone knows it ?

Thanks :-) M3

Score:0
cn flag

Taken from This answer: If you run PulseAudio then try with alsamixer:

amixer set Master 100% 0%.

To automate the process, you can write a Unit for systemd that will run this command on startup.

KiR avatar
ag flag
KiR
Thank you ! That command line doesn't work on my system, but I followed your link and it gives the solution for OS with Pulseaudio : `amixer -D pulse set Master 100%,0%` That one works for me. Have a nice evening ! :-)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.