You are not logged in.

#1 2016-02-01 07:30:47

bigdoge16
Member
Registered: 2016-02-01
Posts: 6

S/PDIF muted at boot. Cant use amixer to unmute in /etc/profile

I've been using Ubuntu for 4 years, and Arch for 1 week, I've configured my sound to work although my spdif channel is muted every time i reboot. I am attempting to fix this by running a script in /etc/profile so that amixer will simply unmute S/PDIF for me as opposed to me having to go into alsamixer to unmute it every time.

I am able to unmute and use S/PDIF easiy with alsamixer just fine:
$ alsamixer
────────────────────────────── AlsaMixer v1.1.0 ──────────────────────────────┐
│ Card: HD-Audio Generic                               F1:  Help               
│ Chip: ATI R6xx HDMI                                  F2:  System information
│ View: F3:[Playback] F4: Capture  F5: All             F6:  Select sound card 
│ Item: S/PDIF                                         Esc: Exit             

Although in my trials of trying to find a command that would do that, ive encountered this:                             

$ amixer set 'S/PDIF' 90% unmute
amixer: Unable to find simple control 'S/PDIF',0

Ive seen on other posts here to look into contents and scontents for the correct device name but the only things i see in there are for my laptop speakers "master" and my microphone "capture"

$ amixer scontents
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 58983 [90%] [on]
  Front Right: Playback 58983 [90%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 52429 [80%] [on]
  Front Right: Capture 52429 [80%] [on]

$ amixer contents
numid=4,iface=MIXER,name='Master Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=3,iface=MIXER,name='Master Playback Volume'
  ; type=INTEGER,access=rw------,values=2,min=0,max=65536,step=1
  : values=58983,58983
numid=2,iface=MIXER,name='Capture Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=1,iface=MIXER,name='Capture Volume'
  ; type=INTEGER,access=rw------,values=2,min=0,max=65536,step=1
  : values=52429,52429

None of the devices i can manipulate with amixer control my S/PDIF channel.

I either need to know how to stop it from muting my S/PDIF on boot or know a command to unmute my S/PDIF that i can run in /etc/profiles.

Thank you

Offline

#2 2016-02-01 08:02:49

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: S/PDIF muted at boot. Cant use amixer to unmute in /etc/profile

Try:

amixer set -c0 Master unmute

Jin, Jîyan, Azadî

Offline

#3 2016-02-01 13:49:26

bigdoge16
Member
Registered: 2016-02-01
Posts: 6

Re: S/PDIF muted at boot. Cant use amixer to unmute in /etc/profile

Head_on_a_Stick wrote:

Try:

amixer set -c0 Master unmute

No dice, same output as before
$ amixer set -c0 Master unmute
amixer: Unable to find simple control 'Master',0

Offline

#4 2018-02-20 18:23:20

donChristophe
Member
Registered: 2018-02-20
Posts: 1

Re: S/PDIF muted at boot. Cant use amixer to unmute in /etc/profile

You can get the name of the S/PDIF control with

amixer scontrols

Mine names IEC958. Then you can say 

amixer sset 'IEC958' unmute

Offline

Board footer

Powered by FluxBB