Announcement

Collapse
No announcement yet.

Can't Screen Grab or Share Screen after switching to PulseAudio on Kubuntu 26.04

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can't Screen Grab or Share Screen after switching to PulseAudio on Kubuntu 26.04

    Hi there,

    So I've upgraded from Kubuntu 25 to Kubuntu 26 a month ago.
    But when it booted up I noticed it couldn't send 5.1 sound though the Toslink port on my motherboard.
    While digging, I found that PulseAudio had been replaced by Pipewire, and that Pipewire didn't support such profile through integrated motherboard ports, only through GPU outputs (like HDMI).
    Anyway, I changed it back to PulseAudio cause it worked fine for me and I do enjoy my surround sound. (While changing it I also noticed that PulseAudio now automatically up mixes stereo stream to 5.1 if selected as an output profile, it's excellent !)
    But now, if I try to record my screen with OBS or just share it on Discord, I get an error :

    Code:
    Failed to connect PipeWire context
    It's kind of becoming annoying, especially since I don't care about recording the sound, and even if I did, how can I get it to work while still using PulseAudio ?

    Here are my specs :


    Code:
    [FONT=monospace][COLOR=#5454ff][B]System:[/B][/COLOR]
    [COLOR=#5454ff][B]Host:[/B][/COLOR][COLOR=#000000] MUTHER [/COLOR][COLOR=#5454ff][B]Kernel:[/B][/COLOR][COLOR=#000000] 7.0.0-22-generic [/COLOR][COLOR=#5454ff][B]arch:[/B][/COLOR][COLOR=#000000] x86_64 [/COLOR][COLOR=#5454ff][B]bits:[/B][/COLOR][COLOR=#000000] 64[/COLOR]
    [COLOR=#5454ff][B]Desktop:[/B][/COLOR][COLOR=#000000] KDE Plasma [/COLOR][COLOR=#5454ff][B]v:[/B][/COLOR][COLOR=#000000] 6.6.4 [/COLOR][COLOR=#5454ff][B]Distro:[/B][/COLOR][COLOR=#000000] Kubuntu 26.04 LTS (Resolute Raccoon)[/COLOR]
    [COLOR=#5454ff][B]Machine:[/B][/COLOR]
    [COLOR=#5454ff][B]Type:[/B][/COLOR][COLOR=#000000] Desktop [/COLOR][COLOR=#5454ff][B]Mobo:[/B][/COLOR][COLOR=#000000] ASUSTeK [/COLOR][COLOR=#5454ff][B]model:[/B][/COLOR][COLOR=#000000] ROG STRIX B450-F GAMING [/COLOR][COLOR=#5454ff][B]v:[/B][/COLOR][COLOR=#000000] Rev 1.xx[/COLOR]
    [COLOR=#5454ff][B]serial:[/B][/COLOR][COLOR=#000000] <superuser required> [/COLOR][COLOR=#5454ff][B]Firmware:[/B][/COLOR][COLOR=#000000] UEFI [/COLOR][COLOR=#5454ff][B]vendor:[/B][/COLOR][COLOR=#000000] American Megatrends[/COLOR]
    [COLOR=#5454ff][B]v:[/B][/COLOR][COLOR=#000000] 3103 [/COLOR][COLOR=#5454ff][B]date:[/B][/COLOR][COLOR=#000000] 06/17/2020[/COLOR]
    [COLOR=#5454ff][B]CPU:[/B][/COLOR]
    [COLOR=#5454ff][B]Info:[/B][/COLOR][COLOR=#000000] 8-core [/COLOR][COLOR=#5454ff][B]model:[/B][/COLOR][COLOR=#000000] AMD Ryzen 7 3700X [/COLOR][COLOR=#5454ff][B]bits:[/B][/COLOR][COLOR=#000000] 64 [/COLOR][COLOR=#5454ff][B]type:[/B][/COLOR][COLOR=#000000] MT MCP [/COLOR][COLOR=#5454ff][B]cache:[/B][/COLOR][COLOR=#5454ff][B]L2:[/B][/COLOR][COLOR=#000000] 4 MiB[/COLOR]
    [COLOR=#5454ff][B]Speed (MHz):[/B][/COLOR][COLOR=#5454ff][B]avg:[/B][/COLOR][COLOR=#000000] 3811 [/COLOR][COLOR=#5454ff][B]min/max:[/B][/COLOR][COLOR=#000000] 2200/4549 [/COLOR][COLOR=#5454ff][B]cores:[/B][/COLOR][COLOR=#5454ff][B]1:[/B][/COLOR][COLOR=#000000] 3811 [/COLOR][COLOR=#5454ff][B]2:[/B][/COLOR][COLOR=#000000] 3811 [/COLOR][COLOR=#5454ff][B]3:[/B][/COLOR][COLOR=#000000] 3811[/COLOR]
    [COLOR=#5454ff][B]4:[/B][/COLOR][COLOR=#000000] 3811 [/COLOR][COLOR=#5454ff][B]5:[/B][/COLOR][COLOR=#000000] 3811 [/COLOR][COLOR=#5454ff][B]6:[/B][/COLOR][COLOR=#000000] 3811 [/COLOR][COLOR=#5454ff][B]7:[/B][/COLOR][COLOR=#000000] 3811 [/COLOR][COLOR=#5454ff][B]8:[/B][/COLOR][COLOR=#000000] 3811 [/COLOR][COLOR=#5454ff][B]9:[/B][/COLOR][COLOR=#000000] 3811 [/COLOR][COLOR=#5454ff][B]10:[/B][/COLOR][COLOR=#000000] 3811 [/COLOR][COLOR=#5454ff][B]11:[/B][/COLOR][COLOR=#000000] 3811 [/COLOR][COLOR=#5454ff][B]12:[/B][/COLOR][COLOR=#000000] 3811[/COLOR]
    [COLOR=#5454ff][B]13:[/B][/COLOR][COLOR=#000000] 3811 [/COLOR][COLOR=#5454ff][B]14:[/B][/COLOR][COLOR=#000000] 3811 [/COLOR][COLOR=#5454ff][B]15:[/B][/COLOR][COLOR=#000000] 3811 [/COLOR][COLOR=#5454ff][B]16:[/B][/COLOR][COLOR=#000000] 3811[/COLOR]
    [COLOR=#5454ff][B]Graphics:[/B][/COLOR]
    [COLOR=#5454ff][B]Device-1:[/B][/COLOR][COLOR=#000000] NVIDIA GP106 [GeForce GTX 1060 6GB] [/COLOR][COLOR=#5454ff][B]driver:[/B][/COLOR][COLOR=#000000] nvidia [/COLOR][COLOR=#5454ff][B]v:[/B][/COLOR][COLOR=#000000] 580.159.03[/COLOR]
    [COLOR=#5454ff][B]Device-2:[/B][/COLOR][COLOR=#000000] Logitech Webcam C300 [/COLOR][COLOR=#5454ff][B]driver:[/B][/COLOR][COLOR=#000000] snd-usb-audio,uvcvideo [/COLOR][COLOR=#5454ff][B]type:[/B][/COLOR][COLOR=#000000] USB[/COLOR]
    [COLOR=#5454ff][B]Display:[/B][/COLOR][COLOR=#000000] wayland [/COLOR][COLOR=#5454ff][B]server:[/B][/COLOR][COLOR=#000000] X.org [/COLOR][COLOR=#5454ff][B]v:[/B][/COLOR][COLOR=#000000] 1.21.1.22 [/COLOR][COLOR=#5454ff][B]with:[/B][/COLOR][COLOR=#000000] Xwayland [/COLOR][COLOR=#5454ff][B]v:[/B][/COLOR][COLOR=#000000] 24.1.10[/COLOR]
    [COLOR=#5454ff][B]compositor:[/B][/COLOR][COLOR=#000000] kwin_wayland [/COLOR][COLOR=#5454ff][B]driver:[/B][/COLOR][COLOR=#5454ff][B]X:[/B][/COLOR][COLOR=#5454ff][B]loaded:[/B][/COLOR][COLOR=#000000] nvidia[/COLOR]
    [COLOR=#5454ff][B]unloaded:[/B][/COLOR][COLOR=#000000] fbdev,modesetting,nouveau,vesa [/COLOR][COLOR=#5454ff][B]gpu:[/B][/COLOR][COLOR=#000000] nvidia,nvidia-nvswitch[/COLOR]
    [COLOR=#5454ff][B]resolution:[/B][/COLOR][COLOR=#5454ff][B]1:[/B][/COLOR][COLOR=#000000] 1024x768~60Hz [/COLOR][COLOR=#5454ff][B]2:[/B][/COLOR][COLOR=#000000] 1680x1050~60Hz [/COLOR][COLOR=#5454ff][B]3:[/B][/COLOR][COLOR=#000000] 1920x1080~60Hz[/COLOR]
    [COLOR=#5454ff][B]API:[/B][/COLOR][COLOR=#000000] EGL [/COLOR][COLOR=#5454ff][B]v:[/B][/COLOR][COLOR=#000000] 1.5 [/COLOR][COLOR=#5454ff][B]drivers:[/B][/COLOR][COLOR=#000000] nvidia,swrast[/COLOR]
    [COLOR=#5454ff][B]platforms:[/B][/COLOR][COLOR=#000000] gbm,wayland,x11,surfaceless,device[/COLOR]
    [COLOR=#5454ff][B]API:[/B][/COLOR][COLOR=#000000] OpenGL [/COLOR][COLOR=#5454ff][B]v:[/B][/COLOR][COLOR=#000000] 4.6.0 [/COLOR][COLOR=#5454ff][B]compat-v:[/B][/COLOR][COLOR=#000000] 4.5 [/COLOR][COLOR=#5454ff][B]vendor:[/B][/COLOR][COLOR=#000000] nvidia mesa [/COLOR][COLOR=#5454ff][B]v:[/B][/COLOR][COLOR=#000000] 580.159.03[/COLOR]
    [COLOR=#5454ff][B]renderer:[/B][/COLOR][COLOR=#000000] NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2[/COLOR]
    [COLOR=#5454ff][B]API:[/B][/COLOR][COLOR=#000000] Vulkan [/COLOR][COLOR=#5454ff][B]v:[/B][/COLOR][COLOR=#000000] 1.4.341 [/COLOR][COLOR=#5454ff][B]drivers:[/B][/COLOR][COLOR=#000000] nvidia,llvmpipe [/COLOR][COLOR=#5454ff][B]surfaces:[/B][/COLOR][COLOR=#000000] N/A[/COLOR]
    [COLOR=#5454ff][B]Info:[/B][/COLOR][COLOR=#5454ff][B]Tools:[/B][/COLOR][COLOR=#5454ff][B]api:[/B][/COLOR][COLOR=#000000] clinfo, eglinfo, glxinfo, vulkaninfo[/COLOR]
    [COLOR=#5454ff][B]de:[/B][/COLOR][COLOR=#000000] kscreen-console,kscreen-doctor [/COLOR][COLOR=#5454ff][B]gpu:[/B][/COLOR][COLOR=#000000] nvidia-settings,nvidia-smi[/COLOR]
    [COLOR=#5454ff][B]wl:[/B][/COLOR][COLOR=#000000] wayland-info [/COLOR][COLOR=#5454ff][B]x11:[/B][/COLOR][COLOR=#000000] xdriinfo, xdpyinfo, xprop, xrandr[/COLOR]
    [COLOR=#5454ff][B]Audio:[/B][/COLOR]
    [COLOR=#5454ff][B]Device-1:[/B][/COLOR][COLOR=#000000] NVIDIA GP106 High Definition Audio [/COLOR][COLOR=#5454ff][B]driver:[/B][/COLOR][COLOR=#000000] snd_hda_intel[/COLOR]
    [COLOR=#5454ff][B]Device-2:[/B][/COLOR][COLOR=#000000] Advanced Micro Devices [AMD] Starship/Matisse HD Audio[/COLOR]
    [COLOR=#5454ff][B]driver:[/B][/COLOR][COLOR=#000000] snd_hda_intel[/COLOR]
    [COLOR=#5454ff][B]Device-3:[/B][/COLOR][COLOR=#000000] Logitech Webcam C300 [/COLOR][COLOR=#5454ff][B]driver:[/B][/COLOR][COLOR=#000000] snd-usb-audio,uvcvideo [/COLOR][COLOR=#5454ff][B]type:[/B][/COLOR][COLOR=#000000] USB[/COLOR]
    [COLOR=#5454ff][B]API:[/B][/COLOR][COLOR=#000000] ALSA [/COLOR][COLOR=#5454ff][B]v:[/B][/COLOR][COLOR=#000000] k7.0.0-22-generic [/COLOR][COLOR=#5454ff][B]status:[/B][/COLOR][COLOR=#000000] kernel-api[/COLOR]
    [COLOR=#5454ff][B]Server-1:[/B][/COLOR][COLOR=#000000] PulseAudio [/COLOR][COLOR=#5454ff][B]v:[/B][/COLOR][COLOR=#000000] 17.0 [/COLOR][COLOR=#5454ff][B]status:[/B][/COLOR][COLOR=#000000] active[/COLOR][/FONT]
    I've been looking around for a couple of hours, but can't seem to find anyone with a similar issue...
    I'm not really new to Kubuntu, but I kinda feel like it's an easy problem, and I'm just not looking at it the right way.

    Thanks in advance !

    Natsukian

    #2
    Originally posted by Natsukian View Post
    upgraded from Kubuntu 25 to Kubuntu 26
    25.10, or 25.04 to 26.04?

    Ubuntu moved to a full PipeWire setup well before 24.04, so you were already using it, so the problem may be elsewhere.


    PipeWire handles both audio and video, so the error is relevant. OBS wants pipewire.

    A first thought might be that it is an X11 vs Wayland thing, but it shouldn't be today.
    I have no problems screensharing in Discord, at least using my web browser.
    In OBS, it may be worth trying the Flatpak version or a current release via PPA. In my light experience, sometimes one works better than the other, or vice versa, depending on the version. I doubt this will cure the error, as iirc it still connects to the system's audio as opposed to using internal libraries.


    Check that you have libasound2-plugins installed; it is not a default package, but iirc does provide A52 support, which may be what you need.

    If you haven't already, also check that the "pro" option is selected for the device, to see if that reveals a bunch of new device listings, which may offer the output type you need.

    Click image for larger version

Name:	Screenshot_20260607_163113.png
Views:	0
Size:	166.1 KB
ID:	692599


    Another thing to peek at is alsamixer in the terminal, which can allow you to enable some outputs, if they are hidden or disabled for some reason. This one is less likely to be helpful, but it is available.

    Undoing the "downgrade" to Pulseaudio, I can't say. I have only gone the other way, switching to full-pipewire on my installs prior to 24.04.
    Last edited by claydoh; Today, 12:43 AM.
    Self-built: Asus PRIME B550M-K/Ryzen 5600GT/32Gb/Intel ARC B580 12Gb/KDE neon
    HP Elitedesk 800 G3 Mini: i5-7500T(35w)/32Gb/Kubuntu LTS
    HP Chromebook 14: i5-1135G7/8Gb/512Gb SSD/KDE Linux

    Comment

    Users Viewing This Topic

    Collapse

    There are 0 users viewing this topic.

    Working...
    X