regolith-desktop icon indicating copy to clipboard operation
regolith-desktop copied to clipboard

Sound does not work

Open dawnfreelance opened this issue 2 years ago • 20 comments

Describe the bug Sound Does not work. audo panel along with pulseaudio report only a dummy output/input

To Reproduce trying to play audio

Expected behavior audio shoud play

Screenshots

Configuration file(s) here is my aplay -l output:

**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC274 Analog [ALC274 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Here is my lspci output:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
03:00.0 Non-Volatile memory controller: Micron Technology Inc Device 5411 (rev 01)
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Lucienne (rev c2)
04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
04:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
04:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
04:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
05:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
05:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)

Installation Details

  • Regolith Install Type: [ISO/PPA]
  • Regolith Version: [e.g. 1.4]
  • PPA url: [default: ppa:regolith-linux/release]
  • Host OS (for PPA): [e.g. Ubuntu 20.04]

Additional context Add any other context about the problem here. The audio on this computer DOES work with other linux distros, ex: ubuntu 22.10

dawnfreelance avatar Jan 02 '23 20:01 dawnfreelance

can you run gnome-control-center from the terminal and see if the sound devices are also missing there?

kgilmer avatar Jan 03 '23 04:01 kgilmer

I can confirm I'm having the same issue. In gnome-control-centre, run in terminal, also shows only Dummy Output and no other device. The issue is only present installing Regolith from ISO. Running Regolith 2.2 22.04.LTS

nouniques avatar Jan 27 '23 07:01 nouniques

Same issue.

Installed from Regolith 2.2 ISO onto an Intel 10th gen i7 NUC10i7FNKN.

gnome-control-center only shows 'Dummy Output'

aplay -l shows:

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [Acer H274HL]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HP VH240a]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Device [USB PnP Audio Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

lsusb shows:

Bus 001 Device 014: ID 0c76:153f JMTek, LLC. USB PnP Audio Device

Plugging in a pair of USB powered USB speakers. No joy. Syslog shows:

Jan 29 21:21:50 ws11 kernel: [93274.675586] usb 1-2.4: New USB device found, idVendor=1130, idProduct=1620, bcdDevice= 1.87
Jan 29 21:21:50 ws11 kernel: [93274.675608] usb 1-2.4: New USB device strings: Mfr=0, Product=2, SerialNumber=0
Jan 29 21:21:50 ws11 kernel: [93274.675618] usb 1-2.4: Product: USB  AUDIO  
Jan 29 21:21:50 ws11 kernel: [93274.685140] input: USB  AUDIO   as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4:1.2/0003:1130:1620.0009/input/input16
Jan 29 21:21:50 ws11 kernel: [93274.744857] hid-generic 0003:1130:1620.0009: input,hidraw5: USB HID v1.10 Device [USB  AUDIO  ] on usb-0000:00:14.0-2.4/input2
Jan 29 21:21:50 ws11 mtp-probe: checking bus 1, device 15: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4"
Jan 29 21:21:50 ws11 mtp-probe: bus: 1, device: 15 was not an MTP device
Jan 29 21:21:50 ws11 systemd-udevd[1572650]: 1-2.4:1.1: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_cupsd /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4:1.1 0:0' failed with exit code 1.
Jan 29 21:21:50 ws11 systemd-udevd[1572650]: 1-2.4:1.1: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_ippeveprinter /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4:1.1 0:0' failed with exit code 1.
Jan 29 21:21:50 ws11 systemd-udevd[1572663]: controlC2: Process '/usr/sbin/alsactl -E HOME=/run/alsa -E XDG_RUNTIME_DIR=/run/alsa/runtime restore 2' failed with exit code 99.
Jan 29 21:21:50 ws11 systemd-udevd[1572663]: 1-2.4:1.0: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_cupsd /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4:1.0 0:0' failed with exit code 1.
Jan 29 21:21:50 ws11 systemd-udevd[1572663]: 1-2.4:1.0: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_ippeveprinter /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4:1.0 0:0' failed with exit code 1.
Jan 29 21:21:50 ws11 systemd[655126]: Reached target Sound Card.
Jan 29 21:21:50 ws11 systemd[1033]: Reached target Sound Card.
Jan 29 21:21:50 ws11 systemd-udevd[1572663]: 1-2.4:1.2: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_cupsd /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4:1.2 0:0' failed with exit code 1.
Jan 29 21:21:50 ws11 systemd-udevd[1572663]: 1-2.4:1.2: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_ippeveprinter /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4:1.2 0:0' failed with exit code 1.
Jan 29 21:21:50 ws11 mtp-probe: checking bus 1, device 15: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4"
Jan 29 21:21:50 ws11 mtp-probe: bus: 1, device: 15 was not an MTP device
Jan 29 21:21:50 ws11 systemd-udevd[1572663]: 1-2.4: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_cupsd /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4 189:14' failed with exit code 1.
Jan 29 21:21:50 ws11 systemd-udevd[1572663]: 1-2.4: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_ippeveprinter /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4 189:14' failed with exit code 1.
Jan 29 21:22:02 ws11 kernel: [93286.893349] audit: type=1107 audit(1675056122.590:9367): pid=517 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal"  bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" member="CheckPermissions" name=":1.12" mask="receive" pid=25878 label="snap.cups.cups-browsed" peer_pid=630 peer_label="unconfined"
Jan 29 21:22:02 ws11 kernel: [93286.893349]  exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
Jan 29 21:22:02 ws11 kernel: [93286.915726] audit: type=1107 audit(1675056122.610:9368): pid=517 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal"  bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" member="CheckPermissions" name=":1.12" mask="receive" pid=25878 label="snap.cups.cups-browsed" peer_pid=630 peer_label="unconfined"
Jan 29 21:22:02 ws11 kernel: [93286.915726]  exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
Jan 29 21:22:02 ws11 systemd[1]: session-c1541.scope: Deactivated successfully.
Jan 29 21:22:02 ws11 kernel: [93287.210613] audit: type=1107 audit(1675056122.906:9369): pid=517 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal"  bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" member="CheckPermissions" name=":1.12" mask="receive" pid=25878 label="snap.cups.cups-browsed" peer_pid=630 peer_label="unconfined"
Jan 29 21:22:02 ws11 kernel: [93287.210613]  exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
Jan 29 21:22:13 ws11 regolith-contro[1573357]: BluetoothHardwareAirplaneMode: 0

Even when I pair my BT headphones, no joy. Syslog shows:

Jan 29 21:16:26 ws11 regolith-contro[1563042]: BluetoothHardwareAirplaneMode: 0
Jan 29 21:16:32 ws11 bluetoothd[718]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for FC:58:FA:01:73:29: Protocol not available
Jan 29 21:16:32 ws11 bluetoothd[718]: src/service.c:btd_service_connect() a2dp-source profile connect failed for FC:58:FA:01:73:29: Protocol not available
Jan 29 21:16:32 ws11 bluetoothd[718]: profiles/input/device.c:ioctl_is_connected() Can't get HIDP connection info

Disabling the non-existent onboard audio did not help.

verbatimtpv avatar Jan 30 '23 05:01 verbatimtpv

Same on my HP Stream 11 laptop.

verbatimtpv avatar Jan 30 '23 20:01 verbatimtpv

@verbatimtpv @dawnfreelance @nouniques see if doing this fixes the problem for you

sudo touch /usr/share/pipewire/media-session.d/with-pulseaudio
systemctl --user restart pipewire-session-manager

cfsmp3 avatar Jan 30 '23 20:01 cfsmp3

No joy:

-ws11::sedwards:~$ sudo touch /usr/share/pipewire/media-session.d/with-pulseaudio
-ws11::sedwards:~$ systemctl --user restart pipewire-session-manager
Failed to restart pipewire-session-manager.service: Unit pipewire-session-manager.service not found.

verbatimtpv avatar Jan 30 '23 20:01 verbatimtpv

No joy:

-ws11::sedwards:~$ sudo touch /usr/share/pipewire/media-session.d/with-pulseaudio
-ws11::sedwards:~$ systemctl --user restart pipewire-session-manager
Failed to restart pipewire-session-manager.service: Unit pipewire-session-manager.service not found.

Do you have pipewire installed? (package pipewire-media-session )

I don't want to send you through a bogus path but that's what fixed the problem for me.

cfsmp3 avatar Jan 30 '23 20:01 cfsmp3

Yep:

-ws11::sedwards:~$ sudo apt install pipewire-media-session
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
pipewire-media-session is already the newest version (0.4.1-4).
pipewire-media-session set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

Does some other package provide the systemctl cruft?

verbatimtpv avatar Jan 30 '23 20:01 verbatimtpv

Does some other package provide the systemctl cruft?

These are the packages I have about it

✦ ❯ sudo dpkg -l |grep pipewire
ii  gstreamer1.0-pipewire:amd64                 0.3.58-2ubuntu1                            amd64        GStreamer 1.0 plugin for the PipeWire multimedia server
ii  libpipewire-0.3-0:amd64                     0.3.58-2ubuntu1                            amd64        libraries for the PipeWire multimedia server
ii  libpipewire-0.3-common                      0.3.58-2ubuntu1                            all          libraries for the PipeWire multimedia server - common files
ii  libpipewire-0.3-modules:amd64               0.3.58-2ubuntu1                            amd64        libraries for the PipeWire multimedia server - modules
ii  pipewire:amd64                              0.3.58-2ubuntu1                            amd64        audio and video processing engine multimedia server
ii  pipewire-bin                                0.3.58-2ubuntu1                            amd64        PipeWire multimedia server - programs
ii  pipewire-media-session                      0.4.1-4                                    amd64        example session manager for PipeWire
ii  pipewire-pulse                              0.3.58-2ubuntu1                            amd64        PipeWire PulseAudio daemon

cfsmp3 avatar Jan 30 '23 21:01 cfsmp3

More info

✦ ❯ systemctl --user status pipewire-session-manager
● pipewire-media-session.service - PipeWire Media Session Manager
     Loaded: loaded (/usr/lib/systemd/user/pipewire-media-session.service; enabled; preset: enabled)
     Active: active (running) since Mon 2023-01-30 12:57:56 PST; 4min 49s ago
   Main PID: 1986694 (pipewire-media-)
      Tasks: 2 (limit: 76704)
     Memory: 7.5M
        CPU: 167ms
     CGroup: /user.slice/user-1000.slice/[email protected]/session.slice/pipewire-media-session.service
             └─1986694 /usr/bin/pipewire-media-session

✦ ❯ dpkg -S pipewire-media-session.service
pipewire-media-session: /usr/lib/systemd/user/pipewire-media-session.service

cfsmp3 avatar Jan 30 '23 21:01 cfsmp3

After installing a bunch of pipewire and gstreamer libs and apps -- no joy.

Then I rebooted. I had sound, but no clue what the solution was.

So my game plan was to execute each line in my bash history on my 'also afflicted' HP laptop followed by a reboot.

After your first suggestion ('sudo touch /usr/share/pipewire/media-session.d/with-pulseaudio') and a reboot I had sound on my laptop.

Thank you so much.

verbatimtpv avatar Jan 31 '23 19:01 verbatimtpv

After installing a bunch of pipewire and gstreamer libs and apps -- no joy.

Then I rebooted. I had sound, but no clue what the solution was.

So my game plan was to execute each line in my bash history on my 'also afflicted' HP laptop followed by a reboot.

After your first suggestion ('sudo touch /usr/share/pipewire/media-session.d/with-pulseaudio') and a reboot I had sound on my laptop.

Thank you so much.

+1 On this, after running the following and rebooting I have sound :tada:

sudo touch /usr/share/pipewire/media-session.d/with-pulseaudio

Running systemctl --user restart pipewire-session-manager gave me the same error message mentioned above:

Failed to restart pipewire-session-manager.service: Unit pipewire-session-manager.service not found.

So I ran

sudo dpkg -l |grep pipewire

And compared my installed packge to what's listed above, and I was missing gstreamer1.0-pipewire, so I installed it and rebooted and now I have sound. Thank y'all!

spacesailor24 avatar Apr 10 '23 00:04 spacesailor24

I'm on a Dell XPS 15 9570 and have tried everything here. The device connects and stays connected, I installed all libraries suggested and added the file at /usr/share/pipewire/media-session.d/with-pulseaudio and still no dice. Does anyone have any other suggestions? It stays connected in gnome-control-center bluetooth but does not display as an output device in sound settings

TimVanDyke avatar Jun 23 '23 18:06 TimVanDyke

I'm on a Dell XPS 15 9570 and have tried everything here. The device connects and stays connected, I installed all libraries suggested and added the file at /usr/share/pipewire/media-session.d/with-pulseaudio and still no dice. Does anyone have any other suggestions? It stays connected in gnome-control-center bluetooth but does not display as an output device in sound settings

Can you elaborate on what do you mean by "the device" and "blutooth" :-) Let's make sure this is the same issue to begin with and not say, a bluetooth problem.

Does sound work with any device? (for example, built-in speakers)

cfsmp3 avatar Jun 25 '23 17:06 cfsmp3

Try installing libspa-0.2-bluetooth. Should fix Bluetooth audio.

SoumyaRanjanPatnaik avatar Jun 26 '23 01:06 SoumyaRanjanPatnaik

If that doesn't work, try replacing pipewire-media-session with wire-plumber

SoumyaRanjanPatnaik avatar Jun 26 '23 01:06 SoumyaRanjanPatnaik

I followed this link https://askubuntu.com/questions/1407885/how-to-uninstall-pipewire-and-go-back-to-pulseaudio

systemctl --user unmask pulseaudio
systemctl --user --now disable pipewire-media-session.service
systemctl --user --now disable pipewire pipewire-pulse
systemctl --user --now enable pulseaudio.service pulseaudio.socket
sudo apt remove pipewire-audio-client-libraries pipewire

something about pipewire doesn't work, so removing it and replacing it with pulseaudio does the trick, I have my sound back. (I didn't dive into it for long enough, I just wanted my sound back... should probably see about that pipewire-pulse package...)

gotohr avatar Jun 26 '23 12:06 gotohr

@gotohr Are you on Regolith 3.0? Keep in mind that if you ever want to use the wayland session, pipewire becomes a necessity. Without it screensharing won't work.

SoumyaRanjanPatnaik avatar Jun 26 '23 13:06 SoumyaRanjanPatnaik

@SoumyaRanjanPatnaik using Regolith 2.2 here, installed on t450s few days ago.

gotohr avatar Jun 26 '23 19:06 gotohr

Sorry for being unclear. My system sound for built in speakers was functioning correctly and my media keys on my keyboard work too. Sound over bluetooth to a connected device was not working.

I ran sudo apt install libspa-0.2-bluetooth and rebooted which didn't appear to fix the issue.

I then followed the directions from here: https://support.system76.com/articles/bluetooth/

and ran sudo apt reinstall --purge bluez gnome-bluetooth and rebooted.

After that my normal audio and my bluetooth audio is working.

Thank you your patience and help! I hope this helps someone too. For more context I am using the Regolith 2 ISO version. I installed last week I think.

TimVanDyke avatar Jun 27 '23 21:06 TimVanDyke