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 Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
NeddySeagoon
Administrator
Administrator


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

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

compinthegroove,

That looks like the control does not exist. That suggests its being created by pulse.
Ignore that error. Stay on the command line
Run
Code:
speaker-test

It will generate 16 octaves of pink noise then quit.
_________________
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: 22

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

Jaglover wrote:
'amixer -i ' should print a nice overview of current state of controls.


Somehow I missed your comment. Here ya go:

Code:
steve@media-pc ~ $ amixer -i
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 55 [86%] [-9.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 55 [86%] [-9.00dB] [off]
  Front Right: Playback 55 [86%] [-9.00dB] [off]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 215 [84%] [-8.00dB]
  Front Right: Playback 215 [84%] [-8.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 55 [86%] [-9.00dB] [on]
  Front Right: Playback 55 [86%] [-9.00dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 1 [3%] [-33.00dB] [off]
  Front Right: Playback 1 [3%] [-33.00dB] [off]
Simple mixer control 'Front Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 0 [0%] [-64.00dB] [off]
  Front Right: Playback 0 [0%] [-64.00dB] [off]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 0 [0%] [-64.00dB] [off]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 0 [0%] [-64.00dB] [off]
Simple mixer control 'Side',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 0 [0%] [-64.00dB] [off]
  Front Right: Playback 0 [0%] [-64.00dB] [off]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 26 [84%] [4.50dB] [off]
  Front Right: Playback 26 [84%] [4.50dB] [off]
Simple mixer control 'Line Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 28 [61%] [12.00dB] [on]
  Front Right: Capture 28 [61%] [12.00dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 0 [0%] [-16.00dB] [off]
  Front Right: Capture 0 [0%] [-16.00dB] [off]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Line'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Front Mic'
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Rear Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Rear Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 22

PostPosted: Fri Oct 04, 2019 10:33 pm    Post subject: Reply with quote

Ok, so here's the pattern...

I set the alsamixer per Neddy's instructions- set master, pcm, and front to 70%, mute everything else. The s/pdif channel immediately unmutes itself. So I manually mute the s/pdif channel, then my headphone channel immediately unmutes itself, and my volume settings get cranked up to 100%, without me setting it that way. Then I go and mute the microphone channel. This time it stays muted. I run speaker-test and get no output. Then I open Gnome settings and see Audio Line Out rapidly appearing and disappearing.

Ideas?
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 22

PostPosted: Sat Oct 05, 2019 5:38 am    Post subject: Reply with quote

UPDATE: It's been a long night...

The weird behavior I was talking about earlier with the Audio Line Out rapidly appearing and disappearing in Gnome Settings had the add-on effect of constant redraws of the notification area, alternating between having a volume icon and not having one. Nothing I did in the alsamixer stopped it and it was driving me nuts, so booted into my Debian install on the machine to restore my Gentoo install to a point in time just before I started messing with this stuff. To my surprise, Debian was doing the same thing! Huh? I rolled my Gentoo back and booted back into it. Annoying problem solved, and my backups are working! :)

I found an Arch Wiki page dedicated to diagnosing PulseAudio problems and went to work. It suggesting starting with this:
Code:
pacmd list-cards


All the analog profiles listed for my sound card showed as unavailable. It turns out that this is because udev tries to detect which ports on the card have a cable plugged into them. Even though I had a cable in the front speaker out, it still wasn't detected. So jack detection is broken. After some more research, I found a way to create a udev rule to disable jack detection. I did as such, then set the card profile to an analog setting. I rebooted the machine and lo and behold, I had a line out and a headphone jack listed in Gnome Settings, and no annoying flapping. Nice! I swapped my audio cable to each one for testing and was denied both times. Damn.

Then my computer crashed. This time, I wasn't playing any videos; just reading articles on the web and running commands in the terminal. At that point, I was done.

Based on all the jinky stuff I've seen over the last few days, I've come to the conclusion that my motherboard is dying. I put in an offer for an exact replacement from a well rated seller on eBay. If he counters with something reasonable, I'll grab it. For now, I'll hook my laptop up to my TV until I can get a new board.

I'll keep y'all posted. Thanks for all your help!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Oct 05, 2019 10:35 am    Post subject: Reply with quote

compinthegroove,

Jack detection has always been hit or miss. As I don't have udev, its never been a problem for me.
I suspect your motherboard is fine, you just need to disable the autoblackmagic that is trying to 'help'.
_________________
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: 22

PostPosted: Sat Oct 05, 2019 1:31 pm    Post subject: Reply with quote

Disabling jack detection in udev didn't do the trick. I tried killing all the pulseaudio processes and restarting alsa; that didn't do the trick either. There's no "automagic" left to kill.

I checked Pulseaudio's website and read through the changelogs for their most recent releases. In version 13, they added a feature to autoswitch away from unavailable card profiles (i.e., no cable detected on the port). Does that explain the flapping I was getting? No, my Gentoo install is running version 12.2-r2. That feature wasn't added yet.

As I mentioned in the previous post, I had decided to roll back my Gentoo install. I have two SSDs in this box- one for Gentoo, one for Debian. The fstab files for each are set to only mount the disk needed for the OS being used. The inactive OS disk remains unmounted. To switch between them, I hit F8 at the BIOS screen to get to a boot options menu. Everything is nicely separated, no? So the Gentoo side was giving me issues with the sound card flapping and I couldn't fix them with alsamixer. Screw it, let's just roll it back. So I issue a reboot command from the terminal, not a halt. The Debian disk was never mounted during any of this. The system reboots, I get to the boot options menu, and select my Debian disk. I log into Debian, now it's doing the sound card flapping too! If this isn't a hardware issue, how else do you explain it?

I haven't gone into much detail about the video crash issues and what I've tried to fix it. Here too it's looking like a hardware issue.

At this point swapping the board is about the only thing I haven't tried.
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 22

PostPosted: Thu Oct 10, 2019 11:00 pm    Post subject: Reply with quote

UPDATE: The seller on eBay offered a reasonable deal on the replacement motherboard, so I grabbed. it. It arrived today and I've got it installed. Jack detection is now working. There's no flapping of the audio jacks in either alsamixer or Gnome Settings. Audio outputs on both the front and back now work properly. So yeah, the issue I was having with my analog audio was a hardware issue.

Further testing showed that I was still not getting correct functionality for HDMI audio on the built-in graphics card. I had to do a little trial and error, but found that I was missing a codec, AND that the missing codec MUST be added as a module in the kernel for Gnome to detect it properly. Now I have both audio and video capabilities with the built-in video card. Things are finally starting to work as they should on the audio front.

The last issue I was having was random crashes when playing videos. That one won't be as easy to pin down- sometimes the machine will go hours on end without any issues, other times it will have multiple crashes within minutes of each other. I've devised a simple testing procedure for this... point Firefox to YouTube, set Autoplay to "on", mute the volume, and walk away. I think 48 straight hours should suffice. If the machine passes, I'll mark this thread as solved.

It's good to be making progress again!
Back to top
View user's profile Send private message
compinthegroove
n00b
n00b


Joined: 25 Sep 2019
Posts: 22

PostPosted: Sun Oct 13, 2019 11:30 pm    Post subject: Reply with quote

UPDATE: Within a few hours, the computer crashed again while playing videos. This was with the dedicated GPU installed, so I decided to pull it out and swap the video cable to the built-in GPU. This is viable now that my sound is finally working. The machine has been playing videos nonstop for the past two days and it refuses to crash. While it sucks that the other GPU causes problems, I'm not a heavy gamer, and I've got another PC better suited for that purpose. I might revisit the GPU thing later on, but for now, this old machine is doing everything I need it to do. Marking this one as solved.
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 Previous  1, 2
Page 2 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