NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.67k stars 13.82k forks source link

Advanced sound configuration doesn't work in Plasma #179515

Open haizaar opened 2 years ago

haizaar commented 2 years ago

Describe the bug

Advanced Audio settings do not work in KDE plasma. Possible related: https://github.com/NixOS/nixpkgs/issues/47938

Steps To Reproduce

  1. Open System settings
  2. Go to Audio
  3. Click on Configure button.

Expected behavior

Clicking on "Add virtual output device for simultaneous output on all local sound cards" should add a new virtual audio device to the list.

However the device is not added, and after closing session app and opening it again I noticed that both checkboxes are still un-ticked.

What I've tried so far

Installed papref (had to set programs.dconf.enable = true; in NixOS config to get it work) and enabled the same virtual output there. Now new virtual device appears in pavucontrol and I can play music through it. However Plasma wise, the device still doesn't appear in the output devices list and both checkboxes in the below screenshot remain unchecked.

Screenshots

image

Notify maintainers

@thiagokokada @amjoseph-nixpkgs (Apologies if I'm hitting the wrong ppl but mb you can tag the right ones)

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 5.18.6, NixOS, 22.11 (Raccoon), 22.11pre388062.f2537a505d4`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.9.1`
 - channels(haizaar): `""`
 - channels(root): `"home-manager, nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
haizaar commented 2 years ago

CC @jtojnar in case you have any input here.

jtojnar commented 2 years ago

Do you see anything in systemd journal when you click the checkbox?

haizaar commented 2 years ago

Nothing at all unfortunately. Both in journalctl --user and the plain one.

Here is what gets printed in journalctl --user once I launch system settings:

Jun 30 00:34:25 h******r krunner[8292]: kf.sonnet.core: No language dictionaries for the language: "en_US"
Jun 30 00:34:25 h******r krunner[8292]: kf.plasma.quick: Couldn't create KWindowShadow for View(0x7ffdd2be2b50)
Jun 30 00:34:25 h******r krunner[8292]: kf.plasma.quick: Couldn't create KWindowShadow for View(0x7ffdd2be2b50)
Jun 30 00:34:25 h******r krunner[8292]: kf.plasma.quick: Couldn't create KWindowShadow for View(0x7ffdd2be2b50)
Jun 30 00:34:25 h******r krunner[8292]: kf.plasma.quick: Couldn't create KWindowShadow for View(0x7ffdd2be2b50)
Jun 30 00:34:25 h******r krunner[8292]: kf.plasma.quick: Couldn't create KWindowShadow for View(0x7ffdd2be2b50)
Jun 30 00:34:25 h******r krunner[8292]: kf.plasma.quick: Couldn't create KWindowShadow for View(0x7ffdd2be2b50)
Jun 30 00:34:25 h******r krunner[8292]: kf.plasma.quick: Couldn't create KWindowShadow for View(0x7ffdd2be2b50)
Jun 30 00:34:25 h******r krunner[8292]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Jun 30 00:34:30 h******r systemd[1573]: Started systemsettings.
Jun 30 00:34:30 h******r kded5[8114]: org.kde.plasma.appmenu: Got an error
Jun 30 00:34:30 h******r kded5[8114]: org.kde.plasma.appmenu: Got an error
Jun 30 00:34:30 h******r krunner[54800]: kf.service.services: The desktop entry file "/run/current-system/sw/share/applications/kcm_krunnersettings.desktop" has Type= "Application" but no Exec line
Jun 30 00:34:30 h******r krunner[54800]: kf.service.sycoca: Invalid Service :  "/run/current-system/sw/share/applications/kcm_krunnersettings.desktop"
Jun 30 00:34:30 h******r krunner[54800]: QFSFileEngine::open: No file name specified
Jun 30 00:34:30 h******r krunner[54800]: kf.coreaddons.desktopparser: Error: Failed to open  ""
Jun 30 00:34:30 h******r krunner[54800]: QFileDevice::seek: IODevice is not open
Jun 30 00:34:30 h******r krunner[54800]: QFSFileEngine::open: No file name specified
Jun 30 00:34:30 h******r krunner[54800]: kf.coreaddons.desktopparser: Error: Failed to open  ""
Jun 30 00:34:30 h******r krunner[54800]: QFileDevice::seek: IODevice is not open
Jun 30 00:34:30 h******r krunner[54800]: kf.coreaddons: "Could not load plugin from kcm_pulseaudio: The shared library was not found."
Jun 30 00:34:30 h******r krunner[54800]: org.kde.plasma.pulseaudio: No GSettings schemas are installed on the system
Jun 30 00:34:30 h******r krunner[54800]: org.kde.plasma.pulseaudio: No GSettings schemas are installed on the system
Jun 30 00:34:30 h******r krunner[54800]: org.kde.plasma.pulseaudio: No GSettings schemas are installed on the system
Jun 30 00:34:30 h******r krunner[54800]: QQmlEngine::setContextForObject(): Object already has a QQmlContext
Jun 30 00:34:30 h******r krunner[54800]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
jtojnar commented 2 years ago

Yeah that looks like there are some issues with our Plasma packaging. cc @NixOS/qt-kde

haizaar commented 2 years ago

For what is worth it was always like this since I switched to NixOS back in the last ~October.

peterhoeg commented 2 years ago

Cc: @NixOS/qt-kde

tank-trax commented 2 years ago

Operating System: Debian GNU/Linux 11 KDE Plasma Version: 5.20.5 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 Kernel Version: 5.18.0-11.1-liquorix-amd64 OS Type: 64-bit Processors: 4 × Intel® Core™ i5-3470 CPU @ 3.20GHz Memory: 11.4 GiB of RAM Graphics Processor: Mesa DRI Intel® HD Graphics 2500

$ pactl info | grep "Server Name"
Server Name: PulseAudio (on PipeWire 0.3.55)

Something similar here. I can't place the check mark in Add virtual output device

image

Would be nice to see check boxes as opposed to radio buttons here.... to have two simultaneous output streams is not possible

image

tank-trax commented 2 years ago

this appears to be a KDE Plasma issue

peterhoeg commented 2 years ago

this appears to be a KDE Plasma issue

Plasma on NixOS issue or upstream Plasma issue?

kurnevsky commented 2 years ago

I have the same error qt.qpa.wayland: Wayland does not support QWindow::requestActivate() when trying to configure connections, systemsettings5 segfaults. AFAIR, it worked fine in a previous nixos release.

peterhoeg commented 2 years ago

I have the same error qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

This message is completely unrelated and has nothing to do with the issue at hand.