Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] OpenRC hangs at boot
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 27

PostPosted: Sun Sep 29, 2019 4:11 pm    Post subject: [SOLVED] OpenRC hangs at boot Reply with quote

I'm having trouble getting my new install to boot. The messages fly by too fast on the screen for me to read them, so I did a recording of the boot process with my phone, then tried to slowly go through the recording the best I could on my other computer to try to figure out what's going on. Here's what I was able to grab from the output...

Code:
>> Scanning for and activating Volume Groups
   Configuration setting "devices/scan_lvs" unknown.
   Reading all physical volumes.  This may take a while...
   Found volume group "vg0" using metadata lvm2
   2 logical volume(s) in volume group "vg0" now active
>> Determining root device ...
>> Mounting /dev/mapper/vg-root as root...
>> Using mount -t auto -o ro /dev/mapper/vg0-root /newroot
>> Booting (initramfs)
/newroot is a mountpoint
>> Switching to real root: /sbin/switch_root -c /dev/console /newroot /sbin/init

INIT: version 2.93 booting

*** At this point, the text flies by really fast, so I probably missed some.

Code:
INIT: Entering runlevel: 3
mkdir '/run/openrc': Read-only file system
mkdir '/run/openrc/starting': No such file or directory
mkdir '/run/openrc/started': No such file or directory
mkdir '/run/openrc/stopping: No such file or directory
mkdir '/run/openrc/inactive': No such file or directory
mkdir '/run/openrc/wasinactive': No such file or directory
mkdir '/run/openrc/failed': No such file or directory
mkdir '/run/openrc/hotplugged': No such file or directory
mkdir '/run/openrc/daemons': No such file or directory
mkdir '/run/openrc/options': No such file or directory
mkdir '/run/openrc/exclusive': No such file or directory
mkdir '/run/openrc/scheduled': No such file or directory
mkdir '/run/openrc/tmp': No such file or directory
INIT: Id "c4" respawning too fast: disabled for 5 minutes
INIT: Id "c1" respawning too fast: disabled for 5 minutes
INIT: Id "c5" respawning too fast: disabled for 5 minutes
INIT: Id "c3" respawning too fast: disabled for 5 minutes
INIT: Id "c2" respawning too fast: disabled for 5 minutes
INIT: Id "c6" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel

Any ideas as to how to fix this?

[Moderator edit: added [code] tags to preserve output layout. -Hu]


Last edited by compinthegroove on Sun Oct 13, 2019 11:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
Prof. Frink
Apprentice
Apprentice


Joined: 07 Jan 2017
Posts: 176

PostPosted: Mon Sep 30, 2019 4:06 am    Post subject: Reply with quote

Hey,

I am not sure, but looks like you are using LUKS. What ist your GRUB_CMDLINE_LINUX variable?

Best Regards,

Frink
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Mon Sep 30, 2019 11:40 am    Post subject: Re: OpenRC hangs at boot Reply with quote

compinthegroove wrote:

mkdir '/run/openrc': Read-only file system

/run should never be RO, /run should be tmpfs and then writable even on a RO /
Code:
tmpfs on /run type tmpfs (rw,nodev,relatime,size=1635392k,mode=755)

Check proper support for tmpfs in kernel
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 27

PostPosted: Mon Sep 30, 2019 4:19 pm    Post subject: Reply with quote

I figured it out. At first I thought the read-only part of the output was the problem, but the real giveaway is what appears at the very bottom:

Code:
INIT: Id "c4" respawning too fast: disabled for 5 minutes
INIT: Id "c1" respawning too fast: disabled for 5 minutes
INIT: Id "c5" respawning too fast: disabled for 5 minutes
INIT: Id "c3" respawning too fast: disabled for 5 minutes
INIT: Id "c2" respawning too fast: disabled for 5 minutes
INIT: Id "c6" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel


There are 6 processes here, one for each CPU core. This will come into play shortly.

So I booted back into my Debian install on the machine, mounted the disk, and tried to chroot into it. I got this: Illegal Instruction. Huh? After doing some googling, I got my answer.

I did a Gentoo install as a VM on one of my servers. Being new to Gentoo, I didn't realize just how customized the system would be with the various settings in make.conf. Following the handbook, I set my COMMON_FLAGS setting to -march=native. My server runs an Intel Xeon. Once I got everything working great on the VM, I thought I would just copy it over to one of my desktop machines, just using a different kernel with different drivers. Problem is, the target system has an AMD processor.

If you try to chroot into a disk with software compiled on a different architecture, you get the Illegal Instruction output. My guess is that the system was failing to boot because the CPU was getting intsructions it didn't understand. Doh!!!

I went ahead and did a fresh install directly on the target machine, doing the same steps I did on my VM and it booted perfectly the first time.

Thanks for chiming in. I'll try not to be a dumbass the next time around! :D


Last edited by compinthegroove on Mon Sep 30, 2019 9:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Mon Sep 30, 2019 4:34 pm    Post subject: Reply with quote

compinthegroove,

Welcome to the school of 'hard knocks'.
You have the right approach to Gentoo.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 27

PostPosted: Mon Sep 30, 2019 5:08 pm    Post subject: Reply with quote

LOL, whoops! I guess this distro isn't the most "deployment friendly"; lesson learned. My other desktop uses an Intel CPU which is just one generation ahead of that in my server. My deployment scheme *might* work on that one, just gotta check the CPU flags more carefully and do some research. If it doesn't, I still have a VM that I can snapshot and blow up at will. Not all bad.

NeddySeagoon wrote:
compinthegroove,

Welcome to the school of 'hard knocks'.
You have the right approach to Gentoo.


Thank you.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Tue Oct 01, 2019 1:53 am    Post subject: Reply with quote

With the right settings, you can make it deployment friendly and enable your scheme to work. However, as you found, with the wrong settings (which you stumbled into because they are recommended for a typical simple system), you can lay a trap for later.
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 27

PostPosted: Tue Oct 01, 2019 5:50 am    Post subject: Reply with quote

Hu wrote:
With the right settings, you can make it deployment friendly and enable your scheme to work. However, as you found, with the wrong settings (which you stumbled into because they are recommended for a typical simple system), you can lay a trap for later.


If you or anyone else could give me some pointers regarding this, I would be very appreciative. Off the top of my head (which probably isn't worth much since I'm a Gentoo noob), I would imagine that you'd have to create your "golden image" without the -march setting. That would yield a really generic template to start with, no? If I went that route, I'm thinking that if I wanted to optimize that target system, I would have to reset the cpu flags and recompile everything. I'm not sure what problems that might cause. Assuming that would work, it would take a long time to rebuild the target machine, but at least I wouldn't have to reconfigure everything from scratch. Just do a world update and come back the next day.

I've been running deployment servers for several years now with Windows and I can't tell how much work it's saved me. I would love to be able to do the same thing on the Linux side of the house. Have cookie cutter, make cookies!
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Tue Oct 01, 2019 8:43 am    Post subject: Reply with quote

compinthegroove wrote:
to create your "golden image" without the -march setting.

That's not really good, you're delegating it to gcc to pickup a generic setting, plus you're also delegating gentoo to not itself add a march setting for you.
If you want build generic binaries, just set -march= to a real generic value (look at gcc for them, but from memory they are for x86 : i686 for 32bits and 86-64 for 64bits)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Tue Oct 01, 2019 10:35 am    Post subject: Reply with quote

compinthegroove,

Sort of, and no.

The generic, run anyware, on 64 bit AMD/Intel needs -march not set and -mtune=generic.
That's how the stage3 and ISOs are built as they have to run anywhere.
Feel free to unpick them, you have a licence to do that. :)
The build tool, catalyst, is in portage, so you can see how its done.
Once you have a generic, run anywhare core that you like, you need to make a stage 4 to deploy it. Put stage4 into you search engine of choice..

No, you don't need to recompile everything. Just performance critical applications.
You won't really care if you make Libre Office waits longer between your keystrokes because you rebuilt it with -march=native.
You will care a great deal if mplayer does frame dropping because it can't render video fast enough without -march=native.
You may be concerned with battery life, so getting mplayer to use only 10% of the CPU instead of 90% may be important.

That's the black and white approach. There is a more complex grey in the middle.
Assess all your target CPU instruction sets. Set CFLAGS so that the output code will run on any of your targets.
The implementation details are left as an exercise for the reader.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 27

PostPosted: Wed Oct 02, 2019 2:27 am    Post subject: Reply with quote

Interesting, thanks for the insight. I think I'll hold off on that idea for the time being- I still have a lot of documentation to read before deploying to my other machines. I've got a Gentoo VM to play with and a bare metal install on my living room PC. I'll just learn the ropes with those two for now. I'm using the living room PC to write back to you, so I've made good progress so far. :)

I still have two nagging issues with regard to my living room install. One is that when I play videos, sometimes the computer will lock up, then reboot. The other is that the only output on my sound card recognized by Gnome Settings is the s/pdif jack. None of my analog jacks show up. Right now I'm using an HDMI cable to route sound from my video card to my TV, then running a cable out the headphone jack of the TV to my stereo system (the built in speakers on the TV sound awful). These problems aren't specific to Gentoo- I've tried a pile of other distros and they all do this on this machine. I built this machine back in 2011, so it may be an issue with old hardware drivers not being updated to play nice with newer kernels/software, I dunno. I have some more digging to do.

Thanks again.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Wed Oct 02, 2019 7:57 pm    Post subject: Reply with quote

compinthegroove,

Lets poke at your sound card issue.

Post the output of
Code:
lspci -nnk
This will tell us the hardware you nave on your PCI(e) busses. At least one sound card should be there as sound works at all.
Pastebin your kernel .config file. wgetpaste is your friend. Its far too big for a post.

Post the content of /proc/asound/devices. That will tell us what sound devices the kernel can see right now.

2011 is not old. I sill run a media player with no moving parts from 2011.
It started life net booting as SSDs were silly money. A few years ago, it got an SSD.
The only requirement I got from my wife was "it shall be silent".
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 27

PostPosted: Wed Oct 02, 2019 8:36 pm    Post subject: Reply with quote

Neddy, here ya go:

Code:
media-pc /home/steve # lspci -nnk
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] RS880 Host Bridge [1022:9601]
   Subsystem: ASUSTeK Computer Inc. M5A88-V EVO [1043:843e]
00:02.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] RS780 PCI to PCI bridge (ext gfx port 0) [1022:9603]
   Kernel driver in use: pcieport
00:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 0) [1022:9604]
   Kernel driver in use: pcieport
00:07.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 3) [1022:9607]
   Kernel driver in use: pcieport
00:09.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 4) [1022:9608]
   Kernel driver in use: pcieport
00:0a.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 5) [1022:9609]
   Kernel driver in use: pcieport
00:11.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] [1002:4391]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] [1043:8389]
   Kernel driver in use: ahci
00:12.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1043:8389]
   Kernel driver in use: ohci-pci
00:12.1 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller [1002:4398]
   Subsystem: ASUSTeK Computer Inc. SB7x0 USB OHCI1 Controller [1043:8389]
   Kernel driver in use: ohci-pci
00:12.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 USB EHCI Controller [1043:8389]
   Kernel driver in use: ehci-pci
00:13.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1043:8389]
   Kernel driver in use: ohci-pci
00:13.1 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller [1002:4398]
   Subsystem: ASUSTeK Computer Inc. SB7x0 USB OHCI1 Controller [1043:8389]
   Kernel driver in use: ohci-pci
00:13.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 USB EHCI Controller [1043:8389]
   Kernel driver in use: ehci-pci
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller [1002:4385] (rev 3c)
   Subsystem: ASUSTeK Computer Inc. M4A785TD Motherboard [1043:8389]
   Kernel modules: sp5100_tco
00:14.1 IDE interface [0101]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller [1002:439c]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 IDE Controller [1043:8389]
   Kernel driver in use: pata_atiixp
   Kernel modules: ata_generic
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) [1002:4383]
   Subsystem: ASUSTeK Computer Inc. M5A88-V EVO [1043:841b]
   Kernel driver in use: snd_hda_intel
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller [1002:439d]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 LPC host controller [1043:8389]
00:14.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge [1002:4384]
00:14.5 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller [1002:4399]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 USB OHCI2 Controller [1043:8389]
   Kernel driver in use: ohci-pci
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration [1022:1200]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map [1022:1201]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller [1022:1202]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control [1022:1203]
   Kernel driver in use: k10temp
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control [1022:1204]
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Curacao PRO [Radeon R7 370 / R9 270/370 OEM] [1002:6811]
   Subsystem: ASUSTeK Computer Inc. Curacao PRO [Radeon R7 370 / R9 270/370 OEM] [1043:048d]
   Kernel driver in use: radeon
01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 Series] [1002:aab0]
   Subsystem: ASUSTeK Computer Inc. Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 Series] [1043:aab0]
   Kernel driver in use: snd_hda_intel
02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8812AE 802.11ac PCIe Wireless Network Adapter [10ec:8812] (rev 01)
   Subsystem: ASUSTeK Computer Inc. RTL8812AE 802.11ac PCIe Wireless Network Adapter [1043:86dd]
   Kernel driver in use: rtl8821ae
   Kernel modules: rtl8821ae
03:00.0 USB controller [0c03]: VIA Technologies, Inc. VL805 USB 3.0 Host Controller [1106:3483] (rev 01)
   Subsystem: VIA Technologies, Inc. VL805 USB 3.0 Host Controller [1106:3483]
   Kernel driver in use: xhci_hcd
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)
   Subsystem: ASUSTeK Computer Inc. P8P67 and other motherboards [1043:8432]
   Kernel driver in use: r8169
05:00.0 USB controller [0c03]: NEC Corporation uPD720200 USB 3.0 Host Controller [1033:0194] (rev 03)
   Subsystem: ASUSTeK Computer Inc. P8P67 Deluxe Motherboard [1043:8413]
   Kernel driver in use: xhci_hcd
06:07.0 USB controller [0c03]: VIA Technologies, Inc. VT82xx/62xx UHCI USB 1.1 Controller [1106:3038] (rev 61)
   Subsystem: VIA Technologies, Inc. VT82xx/62xx UHCI USB 1.1 Controller [1106:3038]
   Kernel driver in use: uhci_hcd
06:07.1 USB controller [0c03]: VIA Technologies, Inc. VT82xx/62xx UHCI USB 1.1 Controller [1106:3038] (rev 61)
   Subsystem: VIA Technologies, Inc. VT82xx/62xx UHCI USB 1.1 Controller [1106:3038]
   Kernel driver in use: uhci_hcd
06:07.2 USB controller [0c03]: VIA Technologies, Inc. USB 2.0 [1106:3104] (rev 63)
   Subsystem: VIA Technologies, Inc. USB 2.0 Controller [1106:3104]
   Kernel driver in use: ehci-pci
06:08.0 FireWire (IEEE 1394) [0c00]: VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller [1106:3044] (rev c0)
   Subsystem: ASUSTeK Computer Inc. Motherboard [1043:81fe]
   Kernel driver in use: firewire_ohci


Code:
media-pc /home/steve # cat /proc/asound/devices
  2: [ 1- 3]: digital audio playback
  3: [ 1- 7]: digital audio playback
  4: [ 1- 8]: digital audio playback
  5: [ 1- 9]: digital audio playback
  6: [ 1-10]: digital audio playback
  7: [ 1-11]: digital audio playback
  8: [ 1- 0]: hardware dependent
  9: [ 1]   : control
 10: [ 0- 0]: digital audio playback
 11: [ 0- 0]: digital audio capture
 12: [ 0- 1]: digital audio playback
 13: [ 0- 2]: digital audio capture
 14: [ 0- 0]: hardware dependent
 15: [ 0]   : control
 33:        : timer



The motherboard specifications can be found here: https://www.asus.com/Motherboards/M4A88TV_EVOUSB3/specifications/

If you look at the Audio section of the page, it shows that the sound card is using the Realtek ALC 892 codec.

I have Realtek codecs enabled in my kernel config:

Code:
  │ Symbol: SND_HDA_CODEC_REALTEK [=y] 
  │ Type  : tristate                                               
  │ Prompt: Build Realtek HD-audio codec support 
  │   Location:                                                       
  │     -> Device Drivers                                         
  │       -> Sound card support (SOUND [=y])                       
  │         -> Advanced Linux Sound Architecture (SND [=y])   
  │ (9)       -> HD-Audio                                                       
  │   Defined at sound/pci/hda/Kconfig:88                             
  │   Depends on: SOUND [=y] && !UML && SND [=y] && SND_HDA [=y]
  │   Selects: SND_HDA_GENERIC [=y]


I can't say for sure if the ALC 892 codec is included with that or not.

The Realtek site offers a download for the codec, but they state that it only works for kernel versions under 3.18. I'm running 4.19.72. Download page here: https://www.realtek.com/en/component/zoo/category/pc-audio-codecs-high-definition-audio-codecs-software

In the BIOS settings, you can set the sound card to HD Audio or AC97. I tried adding AC97 support to my kernel and changing the BIOS setting accordingly. Gnome Settings detected that I had a headphone out, but when I tested it, no dice. I've since switched it back to HD Audio.

One other thing I uncovered in my quest to fix these issues is that the built-in video card (Radeon HD 4250) isn't listed at all in the lspci output. If I switch the HDMI cable to it and boot the computer, I don't even get a BIOS screen. My guess is that either the card is broken or the BIOS disables it if it detects another video card. I haven't tried removing the second card to test the BIOS theory. I'm also not ruling out the possibility that my sound issues are due to hardware failure.

What say you?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Wed Oct 02, 2019 10:23 pm    Post subject: Reply with quote

compinthegroove,

cat /proc/asound/devices says you have two sound card and the kernel seems to be correctly configured.

Lets look at one line.
Code:
  2: [ 1- 3]: digital audio playback
The 2 in 2: is the kernel minor device number.
The [ 1 tells that the device is a part of sound card 1. (Numbering starts at 0)
The - 3]: is the device on the card.
The text digital audio playback says what that device does.

Some devices
Code:
 10: [ 0- 0]: digital audio playback
 11: [ 0- 0]: digital audio capture
 14: [ 0- 0]: hardware dependent
appear several times.

Card 0 is the default sound card, unless you change it and device 0 is the default device, again unless you change it.
As your default card has digital audio capture, I can tell that's the sound card on your motherboard, not the one on your video card.

Sound cards that use the snd_hda_intel driver (both of yours) are capable of dealing with the 48kHz sample rate used by digital audio ot the 44.1kHz sample rate used by Compact Disc Digital Audio (CDDA) that in the normal input for your analogue audio. However, they can only do one at a time and if both are enabled, only the digital works.

Run
Code:
alsamixer
in a terminal
Mute any control that has IEC or SPDI/F in its name.
Unmute Master, Front and PCM and set the sliders to about 70%.
That should get you stereo out of the light green jack.

With several video cards installed, there is normally a BIOS option to select the primary card.
Its used for the console, until Xorg starts, then you can use all your video cards.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 27

PostPosted: Wed Oct 02, 2019 11:37 pm    Post subject: Reply with quote

Neddy,

I followed your suggestions with the alsamixer. The analog outs showed up and none of them were muted. I set them all to 70% and muted the s/pdif outs. Still no sound. When I mute or unmute the s/pdif, the change is shown when I open Gnome Settings and go to the Sound section, but Gnome still doesn't see anything but the s/pdif out of that card.

I searched through my BIOS to see if there was a default sound card setting; there was none. The only related item there was a setting for enabling/disabling HDMI audio.

On a different note, I tried removing my GPU to see if BIOS was disabling the built-in video card when it saw that a second one was installed. I fired up the machine and lo and behold, I had video. I had to add a few binaries to my kernel to get the driver to load correctly, but I managed to get it working. Thing is, if I run the built-in card, Gnome doesn't see any HDMI audio, even though I have my kernel set to build the HDMI audio codec and I have HDMI audio enabled in BIOS. I dunno what gives with that.

Maybe there's a Gnome specific setting that needs to be changed to get my audio working correctly?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Thu Oct 03, 2019 5:28 pm    Post subject: Reply with quote

compinthegroove,

One thing at a time.

You have an on board sound card and an on board video card that may or may not have built in HDMI sound.
The on board video may use the on board sound card for HDMI.
We need to see
Code:
lspci -nnk
with the on board video in use to determine that.

You also have a plugin video card that has its own on board HDMI sound.

Going back to your previous set up, something I omitted was that enabling the Headphone output way mute the speakers.
Some implementations detect the headphone jack and mute the speakers in response.
Others mute the speakers when the headphones are unmuted.

The GUI in Gnome or whatever is just a wrapper around the console tools you are using.
Its just 'eye candy'. When it works, its fine but it hides all the useful information when its not working.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 27

PostPosted: Fri Oct 04, 2019 12:57 am    Post subject: Reply with quote

NeddySeagoon wrote:
One thing at a time


That's normally the route I go, but in this case I wanted to save a little time. I'm still contending with random system crashes when playing videos, and since I was in a holding pattern waiting for a response about the sound issue, I figured I would go ahead and see what the deal was with the built in video card and try to get it working. One thing I could do for troubleshooting the video issue is revert back to the built-in card and see if I still get the random crashes. Make sense?

NeddySeagoon wrote:
You have an on board sound card and an on board video card that may or may not have built in HDMI sound.
The on board video may use the on board sound card for HDMI.
We need to see
Code:
lspci -nnk
with the on board video in use to determine that.


Here ya go:

Code:
edia-pc /home/steve # lspci -nnk
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] RS880 Host Bridge [1022:9601]
   Subsystem: ASUSTeK Computer Inc. M5A88-V EVO [1043:843e]
00:01.0 PCI bridge [0604]: ASUSTeK Computer Inc. AMD RS780/RS880 PCI to PCI bridge (int gfx) [1043:9602]
00:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 0) [1022:9604]
   Kernel driver in use: pcieport
00:07.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 3) [1022:9607]
   Kernel driver in use: pcieport
00:09.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 4) [1022:9608]
   Kernel driver in use: pcieport
00:0a.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 5) [1022:9609]
   Kernel driver in use: pcieport
00:11.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] [1002:4391]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] [1043:8389]
   Kernel driver in use: ahci
00:12.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1043:8389]
   Kernel driver in use: ohci-pci
00:12.1 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller [1002:4398]
   Subsystem: ASUSTeK Computer Inc. SB7x0 USB OHCI1 Controller [1043:8389]
   Kernel driver in use: ohci-pci
00:12.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 USB EHCI Controller [1043:8389]
   Kernel driver in use: ehci-pci
00:13.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1043:8389]
   Kernel driver in use: ohci-pci
00:13.1 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller [1002:4398]
   Subsystem: ASUSTeK Computer Inc. SB7x0 USB OHCI1 Controller [1043:8389]
   Kernel driver in use: ohci-pci
00:13.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 USB EHCI Controller [1043:8389]
   Kernel driver in use: ehci-pci
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller [1002:4385] (rev 3c)
   Subsystem: ASUSTeK Computer Inc. M4A785TD Motherboard [1043:8389]
   Kernel modules: sp5100_tco
00:14.1 IDE interface [0101]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller [1002:439c]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 IDE Controller [1043:8389]
   Kernel driver in use: pata_atiixp
   Kernel modules: ata_generic
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) [1002:4383]
   Subsystem: ASUSTeK Computer Inc. M5A88-V EVO [1043:841b]
   Kernel driver in use: snd_hda_intel
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller [1002:439d]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 LPC host controller [1043:8389]
00:14.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge [1002:4384]
00:14.5 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller [1002:4399]
   Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 USB OHCI2 Controller [1043:8389]
   Kernel driver in use: ohci-pci
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration [1022:1200]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map [1022:1201]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller [1022:1202]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control [1022:1203]
   Kernel driver in use: k10temp
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control [1022:1204]
01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RS880 [Radeon HD 4250] [1002:9715]
   Subsystem: ASUSTeK Computer Inc. M5A88-V EVO [1043:843e]
   Kernel driver in use: radeon
01:05.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] RS880 HDMI Audio [Radeon HD 4200 Series] [1002:970f]
   Subsystem: ASUSTeK Computer Inc. M5A88-V EVO [1043:843e]
   Kernel driver in use: snd_hda_intel
02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8812AE 802.11ac PCIe Wireless Network Adapter [10ec:8812] (rev 01)
   Subsystem: ASUSTeK Computer Inc. RTL8812AE 802.11ac PCIe Wireless Network Adapter [1043:86dd]
   Kernel driver in use: rtl8821ae
   Kernel modules: rtl8821ae
03:00.0 USB controller [0c03]: VIA Technologies, Inc. VL805 USB 3.0 Host Controller [1106:3483] (rev 01)
   Subsystem: VIA Technologies, Inc. VL805 USB 3.0 Host Controller [1106:3483]
   Kernel driver in use: xhci_hcd
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)
   Subsystem: ASUSTeK Computer Inc. P8P67 and other motherboards [1043:8432]
   Kernel driver in use: r8169
05:00.0 USB controller [0c03]: NEC Corporation uPD720200 USB 3.0 Host Controller [1033:0194] (rev 03)
   Subsystem: ASUSTeK Computer Inc. P8P67 Deluxe Motherboard [1043:8413]
   Kernel driver in use: xhci_hcd
06:07.0 USB controller [0c03]: VIA Technologies, Inc. VT82xx/62xx UHCI USB 1.1 Controller [1106:3038] (rev 61)
   Subsystem: VIA Technologies, Inc. VT82xx/62xx UHCI USB 1.1 Controller [1106:3038]
   Kernel driver in use: uhci_hcd
06:07.1 USB controller [0c03]: VIA Technologies, Inc. VT82xx/62xx UHCI USB 1.1 Controller [1106:3038] (rev 61)
   Subsystem: VIA Technologies, Inc. VT82xx/62xx UHCI USB 1.1 Controller [1106:3038]
   Kernel driver in use: uhci_hcd
06:07.2 USB controller [0c03]: VIA Technologies, Inc. USB 2.0 [1106:3104] (rev 63)
   Subsystem: VIA Technologies, Inc. USB 2.0 Controller [1106:3104]
   Kernel driver in use: ehci-pci
06:08.0 FireWire (IEEE 1394) [0c00]: VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller [1106:3044] (rev c0)
   Subsystem: ASUSTeK Computer Inc. Motherboard [1043:81fe]
   Kernel driver in use: firewire_ohci


It looks like the built-in card does have HDMI audio capability and that a driver was detected.

NeddySeagoon wrote:
Going back to your previous set up, something I omitted was that enabling the Headphone output way mute the speakers.
Some implementations detect the headphone jack and mute the speakers in response.
Others mute the speakers when the headphones are unmuted.


I ran some tests with that, muting and unmuting the headphone jack, swapping the audio cable between the headphone jack and the light green output on the back of the computer. I don't get any output out of the green jack no matter what I do. If I swap the cable to the headphone out, I can hear a difference between muting and unmuting. If I mute the channel, no sound at all, which is what we would expect. If I unmute it, I get a sort of noise. It will rise in pitch for a few seconds, then stabilize. It doesn't sound like white noise, but more like the wind blowing.

NeddySeagoon wrote:
The GUI in Gnome or whatever is just a wrapper around the console tools you are using.
Its just 'eye candy'. When it works, its fine but it hides all the useful information when its not working.


That gets to another question I hadn't specifically asked. When you install Gnome, it pulls down NetworkManager with it, adding another software layer that needs to be taken into account when doing network troubleshooting. Does Gnome pull down additional management software for controlling sound, or does it simply display what it gets from ALSA/Pulseaudio?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Fri Oct 04, 2019 7:46 pm    Post subject: Reply with quote

compinthegroove,

Its a long time since I was a Gnome user. For me, Gnome lost its way around version 3.0.
I suspect that Gnome forces PulseAudio on you, which is an Alsa wrapper.

Restart the alsasound service then post the content of /var/lib/alsa/asound.state
That's the file that saves all your alsa settings across reboots.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 27

PostPosted: Fri Oct 04, 2019 8:02 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Its a long time since I was a Gnome user. For me, Gnome lost its way around version 3.0.


I can understand that. I didn't like it either at first- it's not the most intuitive. I figured out how to configure it to my liking and it only takes a few minutes. Other than the sound issue, it does everything I want it to do.

NeddySeagoon wrote:
I suspect that Gnome forces PulseAudio on you, which is an Alsa wrapper.


I had a feeling this was the case.

NeddySeagoon wrote:
Restart the alsasound service then post the content of /var/lib/alsa/asound.state
That's the file that saves all your alsa settings across reboots.


Here ya go:

[
Code:
state.SB {
   control.1 {
      iface MIXER
      name 'Front Playback Volume'
      value.0 60
      value.1 60
      comment {
         access 'read write'
         type INTEGER
         count 2
         range '0 - 64'
         dbmin -6400
         dbmax 0
         dbvalue.0 -400
         dbvalue.1 -400
      }
   }
   control.2 {
      iface MIXER
      name 'Front Playback Switch'
      value.0 true
      value.1 true
      comment {
         access 'read write'
         type BOOLEAN
         count 2
      }
   }
   control.3 {
      iface MIXER
      name 'Surround Playback Volume'
      value.0 60
      value.1 60
      comment {
         access 'read write'
         type INTEGER
         count 2
         range '0 - 64'
         dbmin -6400
         dbmax 0
         dbvalue.0 -400
         dbvalue.1 -400
      }
   }
   control.4 {
      iface MIXER
      name 'Surround Playback Switch'
      value.0 false
      value.1 false
      comment {
         access 'read write'
         type BOOLEAN
         count 2
      }
   }
   control.5 {
      iface MIXER
      name 'Center Playback Volume'
      value 60
      comment {
         access 'read write'
         type INTEGER
         count 1
         range '0 - 64'
         dbmin -6400
         dbmax 0
         dbvalue.0 -400
      }
   }
   control.6 {
      iface MIXER
      name 'LFE Playback Volume'
      value 60
      comment {
         access 'read write'
         type INTEGER
         count 1
         range '0 - 64'
         dbmin -6400
         dbmax 0
         dbvalue.0 -400
      }
   }
   control.7 {
      iface MIXER
      name 'Center Playback Switch'
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.8 {
      iface MIXER
      name 'LFE Playback Switch'
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.9 {
      iface MIXER
      name 'Side Playback Volume'
      value.0 60
      value.1 60
      comment {
         access 'read write'
         type INTEGER
         count 2
         range '0 - 64'
         dbmin -6400
         dbmax 0
         dbvalue.0 -400
         dbvalue.1 -400
      }
   }
   control.10 {
      iface MIXER
      name 'Side Playback Switch'
      value.0 true
      value.1 true
      comment {
         access 'read write'
         type BOOLEAN
         count 2
      }
   }
   control.11 {
      iface MIXER
      name 'Headphone Playback Volume'
      value.0 60
      value.1 60
      comment {
         access 'read write'
         type INTEGER
         count 2
         range '0 - 64'
         dbmin -6400
         dbmax 0
         dbvalue.0 -400
         dbvalue.1 -400
      }
   }
   control.12 {
      iface MIXER
      name 'Headphone Playback Switch'
      value.0 true
      value.1 true
      comment {
         access 'read write'
         type BOOLEAN
         count 2
      }
   }
   control.13 {
      iface MIXER
      name 'Loopback Mixing'
      value Disabled
      comment {
         access 'read write'
         type ENUMERATED
         count 1
         item.0 Disabled
         item.1 Enabled
      }
   }
   control.14 {
      iface MIXER
      name 'Front Mic Playback Volume'
      value.0 28
      value.1 28
      comment {
         access 'read write'
         type INTEGER
         count 2
         range '0 - 31'
         dbmin -3450
         dbmax 1200
         dbvalue.0 750
         dbvalue.1 750
      }
   }
   control.15 {
      iface MIXER
      name 'Front Mic Playback Switch'
      value.0 true
      value.1 true
      comment {
         access 'read write'
         type BOOLEAN
         count 2
      }
   }
   control.16 {
      iface MIXER
      name 'Rear Mic Playback Volume'
      value.0 0
      value.1 0
      comment {
         access 'read write'
         type INTEGER
         count 2
         range '0 - 31'
         dbmin -3450
         dbmax 1200
         dbvalue.0 -3450
         dbvalue.1 -3450
      }
   }
   control.17 {
      iface MIXER
      name 'Rear Mic Playback Switch'
      value.0 false
      value.1 false
      comment {
         access 'read write'
         type BOOLEAN
         count 2
      }
   }
   control.18 {
      iface MIXER
      name 'Line Playback Volume'
      value.0 28
      value.1 28
      comment {
         access 'read write'
         type INTEGER
         count 2
         range '0 - 31'
         dbmin -3450
         dbmax 1200
         dbvalue.0 750
         dbvalue.1 750
      }
   }
   control.19 {
      iface MIXER
      name 'Line Playback Switch'
      value.0 true
      value.1 true
      comment {
         access 'read write'
         type BOOLEAN
         count 2
      }
   }
   control.20 {
      iface MIXER
      name 'Auto-Mute Mode'
      value Disabled
      comment {
         access 'read write'
         type ENUMERATED
         count 1
         item.0 Disabled
         item.1 Enabled
      }
   }
   control.21 {
      iface MIXER
      name 'Input Source'
      value 'Front Mic'
      comment {
         access 'read write'
         type ENUMERATED
         count 1
         item.0 'Front Mic'
         item.1 'Rear Mic'
         item.2 Line
      }
   }
   control.22 {
      iface MIXER
      name 'Input Source'
      index 1
      value 'Front Mic'
      comment {
         access 'read write'
         type ENUMERATED
         count 1
         item.0 'Front Mic'
         item.1 'Rear Mic'
         item.2 Line
      }
   }
   control.23 {
      iface MIXER
      name 'Capture Volume'
      value.0 28
      value.1 28
      comment {
         access 'read write'
         type INTEGER
         count 2
         range '0 - 46'
         dbmin -1600
         dbmax 3000
         dbvalue.0 1200
         dbvalue.1 1200
      }
   }
   control.24 {
      iface MIXER
      name 'Capture Switch'
      value.0 true
      value.1 true
      comment {
         access 'read write'
         type BOOLEAN
         count 2
      }
   }
   control.25 {
      iface MIXER
      name 'Capture Volume'
      index 1
      value.0 0
      value.1 0
      comment {
         access 'read write'
         type INTEGER
         count 2
         range '0 - 46'
         dbmin -1600
         dbmax 3000
         dbvalue.0 -1600
         dbvalue.1 -1600
      }
   }
   control.26 {
      iface MIXER
      name 'Capture Switch'
      index 1
      value.0 false
      value.1 false
      comment {
         access 'read write'
         type BOOLEAN
         count 2
      }
   }
   control.27 {
      iface MIXER
      name 'Front Mic Boost Volume'
      value.0 0
      value.1 0
      comment {
         access 'read write'
         type INTEGER
         count 2
         range '0 - 3'
         dbmin 0
         dbmax 3000
         dbvalue.0 0
         dbvalue.1 0
      }
   }
   control.28 {
      iface MIXER
      name 'Rear Mic Boost Volume'
      value.0 0
      value.1 0
      comment {
         access 'read write'
         type INTEGER
         count 2
         range '0 - 3'
         dbmin 0
         dbmax 3000
         dbvalue.0 0
         dbvalue.1 0
      }
   }
   control.29 {
      iface MIXER
      name 'Line Boost Volume'
      value.0 2
      value.1 2
      comment {
         access 'read write'
         type INTEGER
         count 2
         range '0 - 3'
         dbmin 0
         dbmax 3000
         dbvalue.0 2000
         dbvalue.1 2000
      }
   }
   control.30 {
      iface MIXER
      name 'IEC958 Playback Con Mask'
      value '0fff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access read
         type IEC958
         count 1
      }
   }
   control.31 {
      iface MIXER
      name 'IEC958 Playback Pro Mask'
      value '0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access read
         type IEC958
         count 1
      }
   }
   control.32 {
      iface MIXER
      name 'IEC958 Playback Default'
      value '0482000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access 'read write'
         type IEC958
         count 1
      }
   }
   control.33 {
      iface MIXER
      name 'IEC958 Playback Switch'
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.34 {
      iface MIXER
      name 'IEC958 Default PCM Playback Switch'
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.35 {
      iface MIXER
      name 'Master Playback Volume'
      value 60
      comment {
         access 'read write'
         type INTEGER
         count 1
         range '0 - 64'
         dbmin -6400
         dbmax 0
         dbvalue.0 -400
      }
   }
   control.36 {
      iface MIXER
      name 'Master Playback Switch'
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.37 {
      iface CARD
      name 'Front Mic Jack'
      value false
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.38 {
      iface CARD
      name 'Rear Mic Jack'
      value false
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.39 {
      iface CARD
      name 'Line Jack'
      value false
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.40 {
      iface CARD
      name 'Line Out Front Jack'
      value false
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.41 {
      iface CARD
      name 'Line Out Surround Jack'
      value false
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.42 {
      iface CARD
      name 'Line Out CLFE Jack'
      value false
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.43 {
      iface CARD
      name 'Line Out Side Jack'
      value false
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.44 {
      iface CARD
      name 'Front Headphone Jack'
      value false
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.45 {
      iface CARD
      name 'SPDIF Phantom Jack'
      value true
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.46 {
      iface CARD
      name 'SPDIF Phantom Jack'
      index 1
      value true
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.47 {
      iface PCM
      name 'Playback Channel Map'
      value.0 0
      value.1 0
      value.2 0
      value.3 0
      value.4 0
      value.5 0
      value.6 0
      value.7 0
      comment {
         access read
         type INTEGER
         count 8
         range '0 - 36'
      }
   }
   control.48 {
      iface PCM
      name 'Capture Channel Map'
      value.0 0
      value.1 0
      comment {
         access read
         type INTEGER
         count 2
         range '0 - 36'
      }
   }
   control.49 {
      iface PCM
      device 1
      name 'Playback Channel Map'
      value.0 0
      value.1 0
      comment {
         access read
         type INTEGER
         count 2
         range '0 - 36'
      }
   }
   control.50 {
      iface PCM
      device 2
      name 'Capture Channel Map'
      value.0 0
      value.1 0
      comment {
         access read
         type INTEGER
         count 2
         range '0 - 36'
      }
   }
   control.51 {
      iface MIXER
      name 'PCM Playback Volume'
      value.0 237
      value.1 237
      comment {
         access 'read write user'
         type INTEGER
         count 2
         range '0 - 255'
         tlv '0000000100000008ffffec1400000014'
         dbmin -5100
         dbmax 0
         dbvalue.0 -360
         dbvalue.1 -360
      }
   }
}
state.HDMI {
   control.1 {
      iface CARD
      name 'HDMI/DP,pcm=3 Jack'
      value true
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.2 {
      iface MIXER
      name 'IEC958 Playback Con Mask'
      value '0fff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access read
         type IEC958
         count 1
      }
   }
   control.3 {
      iface MIXER
      name 'IEC958 Playback Pro Mask'
      value '0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access read
         type IEC958
         count 1
      }
   }
   control.4 {
      iface MIXER
      name 'IEC958 Playback Default'
      value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access 'read write'
         type IEC958
         count 1
      }
   }
   control.5 {
      iface MIXER
      name 'IEC958 Playback Switch'
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.6 {
      iface PCM
      device 3
      name ELD
      value '10000600002000010000000000000000000000000907071507500000'
      comment {
         access 'read volatile'
         type BYTES
         count 28
      }
   }
   control.7 {
      iface CARD
      name 'HDMI/DP,pcm=7 Jack'
      value false
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.8 {
      iface MIXER
      name 'IEC958 Playback Con Mask'
      index 1
      value '0fff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access read
         type IEC958
         count 1
      }
   }
   control.9 {
      iface MIXER
      name 'IEC958 Playback Pro Mask'
      index 1
      value '0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access read
         type IEC958
         count 1
      }
   }
   control.10 {
      iface MIXER
      name 'IEC958 Playback Default'
      index 1
      value '040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access 'read write'
         type IEC958
         count 1
      }
   }
   control.11 {
      iface MIXER
      name 'IEC958 Playback Switch'
      index 1
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.12 {
      iface PCM
      device 7
      name ELD
      value ''
      comment {
         access 'read volatile'
         type BYTES
         count 0
      }
   }
   control.13 {
      iface CARD
      name 'HDMI/DP,pcm=8 Jack'
      value false
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.14 {
      iface MIXER
      name 'IEC958 Playback Con Mask'
      index 2
      value '0fff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access read
         type IEC958
         count 1
      }
   }
   control.15 {
      iface MIXER
      name 'IEC958 Playback Pro Mask'
      index 2
      value '0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access read
         type IEC958
         count 1
      }
   }
   control.16 {
      iface MIXER
      name 'IEC958 Playback Default'
      index 2
      value '040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access 'read write'
         type IEC958
         count 1
      }
   }
   control.17 {
      iface MIXER
      name 'IEC958 Playback Switch'
      index 2
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.18 {
      iface PCM
      device 8
      name ELD
      value ''
      comment {
         access 'read volatile'
         type BYTES
         count 0
      }
   }
   control.19 {
      iface CARD
      name 'HDMI/DP,pcm=9 Jack'
      value false
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.20 {
      iface MIXER
      name 'IEC958 Playback Con Mask'
      index 3
      value '0fff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access read
         type IEC958
         count 1
      }
   }
   control.21 {
      iface MIXER
      name 'IEC958 Playback Pro Mask'
      index 3
      value '0f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access read
         type IEC958
         count 1
      }
   }
   control.22 {
      iface MIXER
      name 'IEC958 Playback Default'
      index 3
      value '04000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access 'read write'
         type IEC958
         count 1
      }
   }
   control.23 {
      iface MIXER
      name 'IEC958 Playback Switch'
      index 3
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.24 {
      iface PCM
      device 9
      name ELD
      value ''
      comment {
         access 'read volatile'
         type BYTES
         count 0
      }
   }
   control.25 {
      iface CARD
      name 'HDMI/DP,pcm=10 Jack'
      value false
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.26 {
      iface MIXER
      name 'IEC958 Playback Con Mask'
      index 4
      value '0fff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access read
         type IEC958
         count 1
      }
   }
   control.27 {
      iface MIXER
      name 'IEC958 Playback Pro Mask'
      index 4
      value '0f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access read
         type IEC958
         count 1
      }
   }
   control.28 {
      iface MIXER
      name 'IEC958 Playback Default'
      index 4
      value '040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access 'read write'
         type IEC958
         count 1
      }
   }
   control.29 {
      iface MIXER
      name 'IEC958 Playback Switch'
      index 4
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.30 {
      iface PCM
      device 10
      name ELD
      value ''
      comment {
         access 'read volatile'
         type BYTES
         count 0
      }
   }
   control.31 {
      iface CARD
      name 'HDMI/DP,pcm=11 Jack'
      value false
      comment {
         access read
         type BOOLEAN
         count 1
      }
   }
   control.32 {
      iface MIXER
      name 'IEC958 Playback Con Mask'
      index 5
      value '0fff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access read
         type IEC958
         count 1
      }
   }
   control.33 {
      iface MIXER
      name 'IEC958 Playback Pro Mask'
      index 5
      value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access read
         type IEC958
         count 1
      }
   }
   control.34 {
      iface MIXER
      name 'IEC958 Playback Default'
      index 5
      value '04000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
      comment {
         access 'read write'
         type IEC958
         count 1
      }
   }
   control.35 {
      iface MIXER
      name 'IEC958 Playback Switch'
      index 5
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.36 {
      iface PCM
      device 11
      name ELD
      value ''
      comment {
         access 'read volatile'
         type BYTES
         count 0
      }
   }
   control.37 {
      iface PCM
      device 3
      name 'Playback Channel Map'
      value.0 0
      value.1 0
      value.2 0
      value.3 0
      value.4 0
      value.5 0
      value.6 0
      value.7 0
      comment {
         access 'read write'
         type INTEGER
         count 8
         range '0 - 36'
      }
   }
   control.38 {
      iface PCM
      device 7
      name 'Playback Channel Map'
      value.0 0
      value.1 0
      value.2 0
      value.3 0
      value.4 0
      value.5 0
      value.6 0
      value.7 0
      comment {
         access 'read write'
         type INTEGER
         count 8
         range '0 - 36'
      }
   }
   control.39 {
      iface PCM
      device 8
      name 'Playback Channel Map'
      value.0 0
      value.1 0
      value.2 0
      value.3 0
      value.4 0
      value.5 0
      value.6 0
      value.7 0
      comment {
         access 'read write'
         type INTEGER
         count 8
         range '0 - 36'
      }
   }
   control.40 {
      iface PCM
      device 9
      name 'Playback Channel Map'
      value.0 0
      value.1 0
      value.2 0
      value.3 0
      value.4 0
      value.5 0
      value.6 0
      value.7 0
      comment {
         access 'read write'
         type INTEGER
         count 8
         range '0 - 36'
      }
   }
   control.41 {
      iface PCM
      device 10
      name 'Playback Channel Map'
      value.0 0
      value.1 0
      value.2 0
      value.3 0
      value.4 0
      value.5 0
      value.6 0
      value.7 0
      comment {
         access 'read write'
         type INTEGER
         count 8
         range '0 - 36'
      }
   }
   control.42 {
      iface PCM
      device 11
      name 'Playback Channel Map'
      value.0 0
      value.1 0
      value.2 0
      value.3 0
      value.4 0
      value.5 0
      value.6 0
      value.7 0
      comment {
         access 'read write'
         type INTEGER
         count 8
         range '0 - 36'
      }
   }
}


Last edited by compinthegroove on Fri Oct 04, 2019 8:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Fri Oct 04, 2019 8:12 pm    Post subject: Reply with quote

compinthegroove,

Code:
   control.33 {
      iface MIXER
      name 'IEC958 Playback Switch'
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }
   control.34 {
      iface MIXER
      name 'IEC958 Default PCM Playback Switch'
      value true
      comment {
         access 'read write'
         type BOOLEAN
         count 1
      }
   }


Check your IEC958 mute controls.
Code:
value true
means unmuted.
Any one control with IEC in its name being unmuted will prevent Analogue sound working.
Not all IEC controls have mute switches.

In alsamixer, you may need to scroll left and right to see all the controls.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 27

PostPosted: Fri Oct 04, 2019 8:29 pm    Post subject: Reply with quote

Neddy,

I did have my s/pdif outs unmuted- I went to my local ChinaMart last night and got me a s/pdif cable. I unmuted the s/pdif outs for testing and forgot to mute them afterward. I couldn't get any sound out of the s/pdif outs; so much for that. I've got them muted again and still no sound (we're right back to where we were before).

Any other ideas?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Fri Oct 04, 2019 8:43 pm    Post subject: Reply with quote

compinthegroove,

Most of your SPDI/F outputs are not connected.
You may have one optical SPDI/F output or maybe one coax SPDI/F output. Its really intended for HDMI and other digital outputs (not DVI).

There are no controls, other than mute on digital outputs as volume control in the digital domain is hard.
Unmute only Master, Front, and PCM. That should justwork. It even covers the headphone uncertainty.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Fri Oct 04, 2019 8:46 pm    Post subject: Reply with quote

'amixer -i ' should print a nice overview of current state of controls.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 27

PostPosted: Fri Oct 04, 2019 8:52 pm    Post subject: Reply with quote

Ok, I set the controls like you said. For some strange reason, the s/pdif channel in alsamixer keeps unmuting itself. If I open Gnome Settings and go to Sound, the Audio Line Out option will repeatedly appear, then disappear. Looks like we have some software fighting against each other.
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 27

PostPosted: Fri Oct 04, 2019 9:09 pm    Post subject: Reply with quote

I rebooted the machine and restarted alsasound from the command line. This time I had the alsamixer set to mute the s/pdif outs before restarting the service. I got an error in the output that may give some insidght:

Code:
media-pc /home/steve # rc-service alsasound restart
 * Storing ALSA Mixer Levels ...                                                                                                                                                                             [ ok ]
 * Restoring Mixer Levels ...
alsactl: set_control:1461: Cannot write control '2:0:0:IEC958 Playback Default:0' : Operation not permitted
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum