Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Audio Devices Don't Show Up on Boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
burningserenity
n00b
n00b


Joined: 18 Jul 2022
Posts: 65

PostPosted: Thu Sep 08, 2022 9:02 pm    Post subject: Audio Devices Don't Show Up on Boot Reply with quote

Hello good people of Gentoo.

I have an issue where when I first start an X session, i3status-rust shows an error in the sound block,
Code:
could not get sound info
. Sometimes, when I restart i3, the error disappears and my audio out works okay, audio in does not (input devices don't show up in PIpewire, either). Sometimes, the error will not disappear and I will have no sound. Pipewire will show no devices in this case.

Both of these things occur when I have no audio devices plugged in, when I have headphones plugged in, and/or when I have a USB sound card plugged in.

I'm loading all of the ALSA drivers in my kernel config and am using PIpewire and Alsa only.

After I kill my X session, I notice this warning:
Code:
[module-rt.c: 297 pw_rtkit_check_xdg_portal()] Can't find xdg-portal: (null)
and this warning:
Code:
[module-rt.c: 297 translate_error()] RTKit error: org.freedesktop.DBus.Error.AccessDenied


How can I provide more information about this problem?
Back to top
View user's profile Send private message
burningserenity
n00b
n00b


Joined: 18 Jul 2022
Posts: 65

PostPosted: Fri Sep 09, 2022 12:10 pm    Post subject: Reply with quote

Correction - sometimes audio in does work when my audio out works.
Back to top
View user's profile Send private message
sicr0
Apprentice
Apprentice


Joined: 23 Mar 2022
Posts: 179

PostPosted: Mon Sep 26, 2022 10:46 pm    Post subject: Reply with quote

I'm not having problems with my audio, but I noticed a similar message when closing Sway.

I checked and it looks to be triggered when a dbus has no owner as stated in this function.

Did you manage to solve your issue?
Back to top
View user's profile Send private message
burningserenity
n00b
n00b


Joined: 18 Jul 2022
Posts: 65

PostPosted: Tue Sep 27, 2022 1:42 am    Post subject: Reply with quote

No, I never did fix it. I had what seems like an issue that would cause the warning in that code to be logged. It prevented me from getting realtime on Pipewire and applications like JamesDSP that use it. I switched to Pipewire with Pulseaudio which works around some of my problems, but it's not perfect, I still get errors with Pipewire.

While I was still trying with ALSA I could get part of the way there with Pipewire by installing and using sys-apps/xdg-desktop-portal.

I think the issue that I originally posted about, audio not showing up on boot, is due to my status bar, i3status-rust. I noticed when I switched to Pulseaudio, that the volume percentage would start at zero and then return to whatever I had previously set. I feel this is the same or similar to audio not showing up at all in the status bar until I restart Pipewire, it's just that something about Pulseaudio is handling the refresh for me.

The other issue I had was with Bluetooth protocols, in that I can't get CVSD or mSBC protocols, or anything that would let me use my headset as a telephone-like device. This probably warrants a separate post.
Back to top
View user's profile Send private message
burningserenity
n00b
n00b


Joined: 18 Jul 2022
Posts: 65

PostPosted: Tue Sep 27, 2022 1:46 am    Post subject: Reply with quote

Separate question - how does this "finish" block work?
Code:
finish:
   dbus_error_free(&error);

   return ret;
}

I've only ever heard of goto statements as a big no-no, and to me it seems like this block of code could have just as well have just been normal code underneath the if clause.
Back to top
View user's profile Send private message
sicr0
Apprentice
Apprentice


Joined: 23 Mar 2022
Posts: 179

PostPosted: Tue Sep 27, 2022 1:57 am    Post subject: Reply with quote

> I switched to Pipewire with Pulseaudio

burningserenity, how did you run Pipewire? Pipewire with Pulseaudio is the default and as far as I understand, running Pipewire as a stand-alone is not advised
Back to top
View user's profile Send private message
burningserenity
n00b
n00b


Joined: 18 Jul 2022
Posts: 65

PostPosted: Tue Sep 27, 2022 2:03 am    Post subject: Reply with quote

Pipewire with ALSA. There are configurations you can use to make Pipewire use ALSA, with or without Pulseaudio.
Back to top
View user's profile Send private message
sicr0
Apprentice
Apprentice


Joined: 23 Mar 2022
Posts: 179

PostPosted: Tue Sep 27, 2022 2:52 am    Post subject: Reply with quote

I tried it once, but wasn't successful. This was my issue, maybe it can be helpful to you.

How did you manage to replace PulseAudio? I was fighting with Portage all the time while trying it.
Back to top
View user's profile Send private message
burningserenity
n00b
n00b


Joined: 18 Jul 2022
Posts: 65

PostPosted: Tue Sep 27, 2022 12:22 pm    Post subject: Reply with quote

For me I just had to change my global use flags from alsa to pulseaudio when switching to pulse, and vice versa. Then I recompile everything and it seems to work fine.
Back to top
View user's profile Send private message
burningserenity
n00b
n00b


Joined: 18 Jul 2022
Posts: 65

PostPosted: Tue Sep 27, 2022 12:23 pm    Post subject: Reply with quote

Oh and I always uninstalled Pulseaudio manually.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
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