LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-25-2013, 11:42 PM   #16
bednarjm
Member
 
Registered: Jul 2005
Location: Franklin, PA
Distribution: Fedora 24
Posts: 76

Original Poster
Rep: Reputation: 19

Quote:
ok first I need to know the full pathway to your amixer command, likely to be /usr/bin/amixer but YMMV
/usr/bin/amixer

Quote:
pls copy and paste as is,
PHP Code:
[jaison@coolermaster ~]# sudo leafpad /etc/rc.local
[jaison@coolermaster ~]# chmod 755 /etc/rc.local
[jaison@coolermaster ~]# chown root:root /etc/rc.local
[jaison@coolermaster ~]# cat /etc/rc.local
#!/bin/sh
/usr/bin/amixer set IEC958 unmute

exit 0
[jaison@coolermaster ~]
Is this right?? rebooting now.

Ok that didn't work. I still have to go unmute it manually.

Last edited by bednarjm; 11-25-2013 at 11:48 PM. Reason: rebooted
 
Old 11-26-2013, 12:02 AM   #17
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
ok can you post the full results to reply 13 commands

we are getting there!
 
Old 11-26-2013, 12:20 AM   #18
bednarjm
Member
 
Registered: Jul 2005
Location: Franklin, PA
Distribution: Fedora 24
Posts: 76

Original Poster
Rep: Reputation: 19
Quote:
ok on each reboot can you also save the contents of this command results pls
post it if its the same, obviously if spdif is unmutetd just say so
Sorry, I forgot.
[jaison@coolermaster ~]$ amixer get IEC958
amixer: Unable to find simple control 'IEC958',0

[jaison@coolermaster ~]$ amixer set IEC958 unmute
amixer: Unable to find simple control 'IEC958',0

Last edited by bednarjm; 11-26-2013 at 12:21 AM.
 
Old 11-26-2013, 12:38 AM   #19
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
ahhhh that helps not!

yes it looks like you have a poor range of amixer controls on first boot

so we slow down

if you have already used alsamixer.....pls don't use it to change anything------until we resolve the rc.local contents
but you it to report on your spdif status........OK?

so if need be, full reboot and as a local user we redo
Code:
amixer -c0 cset iface=MIXER,name="IEC958 Default PCM Playback Switch" 1
now run alsamixer and just report each spdif setting pls

sorry but this is going to take longer than I hoped

what I am looking for spdif unmuted

2) now irrespective of alsamixer results
close down alsamixer by pressing escape key

issue second command

Code:
amixer set IEC958 unmute
redo alsamixer command

and report each status of spdif and if optical works pls


3) I may need to read your alsa stuff again but I am dreading it----

the idea is what ever commands we can use to get spdif unmuted is what we will put into rc.local

good luck

Last edited by aus9; 11-26-2013 at 12:40 AM.
 
Old 11-26-2013, 12:48 AM   #20
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Hi

is this a tower or a laptop?

if its a laptop have you enabled spdif in bios?

if its a tower, have you connected the motherboard connector to the spdif correctly?

If its a tower, is spdif onboard the motherboard? ---in which case the bios might be the culprit as well

I have just spotted that we have a phantom spdif in your alsa first post
 
Old 11-26-2013, 01:22 AM   #21
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
the other thing we need to eliminate as being an interfering config is your resultant asound.state file

can you find it and then post its contents pls

Code:
sudo find / -name asound.state
mine is pathway /var/lib/alsa/asound.state

then as local user, ignore what I said above and enable all spdifs

then save the config

sudo alsactl store

then check if it got timestamped

if you do not have a recent timestamp.....we look at this more closely ok?

Code:
sudo alsactl store
root@box:/home/gordon# ls -al /var/lib/alsa/asound.state
-rw-r--r-- 1 root root 5642 Nov 26 15:19 /var/lib/alsa/asound.state
maybe our earlier efforts were wasted as i failed to verify your store command was successful?

I like easy solutions before hard ones
 
Old 11-26-2013, 01:24 AM   #22
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
trivia

here is some of my contents so you know what I am looking for
PLUS run alsamixer to see your spdifs are unmuted

we have the same alsa version and notice the playbacks have value=true

edit-----posting contents of my settings leads to display issues

Last edited by aus9; 11-26-2013 at 05:39 PM.
 
Old 11-26-2013, 08:27 AM   #23
bednarjm
Member
 
Registered: Jul 2005
Location: Franklin, PA
Distribution: Fedora 24
Posts: 76

Original Poster
Rep: Reputation: 19
Appreciate your efforts.

Quote:
so if need be, full reboot and as a local user we redo
[jaison@coolermaster ~]$ amixer -c0 cset iface=MIXER,name="IEC958 Default PCM Playback Switch" 1
numid=28,iface=MIXER,name='IEC958 Default PCM Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
Quote:
now run alsamixer and just report each spdif setting pls
Ran it and i still have to F6 to pick card and its still muted.

Quote:
2) now irrespective of alsamixer results
close down alsamixer by pressing escape key

issue second command
[jaison@coolermaster ~]$ amixer set IEC958 unmute
amixer: Unable to find simple control 'IEC958',0

Quote:
if its a laptop have you enabled spdif in bios?

if its a tower, have you connected the motherboard connector to the spdif correctly?

If its a tower, is spdif onboard the motherboard? ---in which case the bios might be the culprit as well
Tower. cable is connected correctly. spdif setting is enabled in bios and onboard.

Quote:
sudo find / -name asound.state
[jaison@coolermaster ~]$ sudo find / -name asound.state
[sudo] password for jaison:
/var/lib/alsa/asound.state
Quote:
sudo alsactl store

then check if it got timestamped
[jaison@coolermaster ~]$ ls -al /var/lib/alsa/asound.state
-rw-r--r--. 1 root root 8833 Nov 26 08:53 /var/lib/alsa/asound.state

control.24 {
iface MIXER
name 'IEC958 Playback Con Mask'
value '0fff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000'
comment {
access read
type IEC958
count 1
}
}
control.25 {
iface MIXER
name 'IEC958 Playback Pro Mask'
value '0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000'
comment {
access read
type IEC958
count 1
}
}
control.26 {
iface MIXER
name 'IEC958 Playback Default'
value '040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000'
comment {
access 'read write'
type IEC958
count 1
}
}
control.27 {
iface MIXER
name 'IEC958 Playback Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.28 {
iface MIXER
name 'IEC958 Default PCM Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}

Last edited by bednarjm; 11-27-2013 at 07:39 AM.
 
Old 11-26-2013, 05:51 PM   #24
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Hi

1) I had to edit reply to remove my stuff as its causing web browser to have display issues

can you do the same pls for your asound.state

2) sorry about this-----in my earlier questions I asked if spdif showed up in your alsamixer caputure command
---you correctly replied it did not

but what I should have asked is my your first image for alsamixer card 0 did not show up any spdifs
-----and the correct answer is

You have to press F6 to get to change card.....DOH me----I have only just twigged what the real issue is!

3) so the amixer commands will not work at the moment because its attempting to use device 0

4) Since you use leafpad we re-start an dot file -----save as .asoundrc in your home folder pls

you could have copied and pasted my earlier command but now I know you use leafpad here is the contents

Quote:
pcm.!default {
type hw
card 0
device 3
}

5) log out and login back in should suffice to change the device
run alsamixer (no extra bits)
it must now show what you previously did by running alsamixer and pressing F6

----if it does not take you straight to a mixer showing spdif controls then do a full reboot

###################

easy solution one

You must delete your rc.local file so no interference pls

assuming you now see spdif then

unmute them and then save them

Code:
sudo alsactl store
full reboot and check your spdifs are unmuted and you have sound pls

############################

If easy solution does not work
upon full reboot do not unmute spdifs

but open a terminal and try out my amixer commands again and report
and assuming we can use amixer commands to unmute
we will design a rc.local to work

good luck
 
Old 11-26-2013, 06:43 PM   #25
bednarjm
Member
 
Registered: Jul 2005
Location: Franklin, PA
Distribution: Fedora 24
Posts: 76

Original Poster
Rep: Reputation: 19
I tried everything up to

Quote:
but open a terminal and try out my amixer commands again and report
and assuming we can use amixer commands to unmute
we will design a rc.local to work
Still getting:
Code:
[jaison@coolermaster ~]$ amixer -c0 cset iface=MIXER,name="IEC958 Default PCM Playback Switch" 1
numid=28,iface=MIXER,name='IEC958 Default PCM Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
[jaison@coolermaster ~]$ amixer set IEC958 unmute
amixer: Unable to find simple control 'IEC958',0
 
Old 11-26-2013, 08:23 PM   #26
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Hi

can you edit and delete all of your asound.state from reply 23

As a compromise, copy the file into your home folder
rename it as asound-state.txt
upload it to say dropbox and link to it
my web browser can display the link instead of downloading it.

b) when you do, I am more than happy to show my full file but that does not solve your sound issue
Your sound issue is amixer controls.

2) this is messier than I hoped

with the new .asoundrc file can you now link to the first image of alsamixer

if that does not show spdif ---then don't link to but SAY SO
and show the F6 screen shot pls

3) this confirms the problem you mentioned in reply 8 for your amixer controls/simple controls etc

that is, amixer is not showing a control for spdif at first boot

I will need to ponder this

but I hope you don't lose patience.
 
Old 11-26-2013, 08:54 PM   #27
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
ok in case your eyesight is as bad as my brain giggles

I need to confirm that
A) you have used root powers and deleted /etc/rc.local to reduce interfernence
B) the name of the file is /home/jaison/.asoundrc
Note the dot pls

c) as amixer -c0 cset iface=MIXER,name="IEC958 Default PCM Playback Switch" 1
is a full set command and appears to work

I will bodgee up a full set command for unmute
but still want confirmation we are all on the same page ok?
 
Old 11-26-2013, 08:56 PM   #28
bednarjm
Member
 
Registered: Jul 2005
Location: Franklin, PA
Distribution: Fedora 24
Posts: 76

Original Poster
Rep: Reputation: 19
Quote:
As a compromise, copy the file into your home folder
rename it as asound-state.txt
upload it to say dropbox and link to it
my web browser can display the link instead of downloading it.
https://www.dropbox.com/s/ttux7n0r78jx7gs/asound.state

Quote:
with the new .asoundrc file can you now link to the first image of alsamixer

if that does not show spdif ---then don't link to but SAY SO
and show the F6 screen shot pls
Alsamixer only shows Master as usual unless i do F6 to select card...

Quote:
but I hope you don't lose patience.
Me lose patience? haha I'm praying you don't. I mean i could just as easily do the F6 thing all the time, but it shouldn't be that way so i do greatly appreciate your help.
 
Old 11-26-2013, 09:01 PM   #29
bednarjm
Member
 
Registered: Jul 2005
Location: Franklin, PA
Distribution: Fedora 24
Posts: 76

Original Poster
Rep: Reputation: 19
Quote:
A) you have used root powers and deleted /etc/rc.local to reduce interfernence
Yes i used the almighty root.

Quote:
B) the name of the file is /home/jaison/.asoundrc
Note the dot pls
correct its a dot file.

Quote:
c) as amixer -c0 cset iface=MIXER,name="IEC958 Default PCM Playback Switch" 1
is a full set command and appears to work
The command does go through without failing. Though its not doing anything to help the cause?
 
Old 11-26-2013, 09:04 PM   #30
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
ohh shiite

you are running pulseaudio!

master is normal actually the image should show pulseaudio

damn

pls delete that blinking /var/lib/alsa/asound.state quote/code box
or I will get nasty ok....giggles

plus I have to go out,

plus I can't see your reply to my request for you to choose digital in your pulseaudio
(I must learn to nail you down and get a confirmation on each request----giggles)

go back to pavucontrol -click config tab and choose either digital or digital and analog
---instead of mucking about with restarting the pulse daemon
just do a full reboot and see if you now have digital

good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Audio not working karthiksharu Linux - Hardware 2 06-21-2009 10:52 AM
lmms - No audio-driver working - falling back to dummy-audio-driver GuySkarpz Linux - Software 3 01-20-2009 03:58 PM
media problem with .avi --- audio only in vlc working rest amarock ,etc. not working fedex Linux - Newbie 1 12-22-2007 08:06 AM
Microsoft Confort Optial Mouse 3000 USB rhbegin Linux - Hardware 9 10-30-2007 09:58 PM
Audio Not Working muskvar Ubuntu 2 08-30-2007 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration