You are not logged in.

#1 2024-10-16 15:11:15

nazu
Member
Registered: 2024-10-16
Posts: 2

No sound but sometimes it works

I installed Arch Linux in my new desktop PC.
After that, there are some problems and I'm dealing with them now.
One of problems is about audio.

Basically, all applications including `speaker-test` has no sound despite of USB Audio Device which I intend to use as sound device is set as default.
But `speaker-test` outputs no error.
Of course I checked devices aren't muted on `alsamixer`.
And I reinstalled Arch but it has no effect.

Furthermore, strangely enough, somehow and sometimes audio works.

Are there any solution or workaround?
I use pipewire and wireplumber.

$ uname -r
6.11.3-arch1-1
$ sudo dmesg | grep snd
[   17.745897] snd_hda_intel 0000:03:00.1: enabling device (0000 -> 0002)
[   17.745955] snd_hda_intel 0000:03:00.1: Handle vga_switcheroo audio client
[   17.745956] snd_hda_intel 0000:03:00.1: Force to non-snoop mode
[   17.746015] snd_hda_intel 0000:0f:00.1: enabling device (0000 -> 0002)
[   17.746051] snd_hda_intel 0000:0f:00.1: Handle vga_switcheroo audio client
[   17.746077] snd_hda_intel 0000:0f:00.6: Skipping the device on the denylist
[   19.388051] snd_hda_intel 0000:03:00.1: bound 0000:03:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[   19.790682] snd_hda_intel 0000:0f:00.1: bound 0000:0f:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[   21.778541] usbcore: registered new interface driver snd-usb-audio
$ lsmod | grep snd
snd_seq_dummy          12288  0
snd_hrtimer            12288  1
snd_seq               131072  7 snd_seq_dummy
snd_hda_codec_hdmi     98304  2
snd_usb_audio         544768  5
snd_hda_intel          65536  2
snd_usbmidi_lib        49152  1 snd_usb_audio
snd_intel_dspcfg       40960  1 snd_hda_intel
snd_ump                36864  1 snd_usb_audio
snd_intel_sdw_acpi     16384  1 snd_intel_dspcfg
snd_hda_codec         212992  2 snd_hda_codec_hdmi,snd_hda_intel
snd_rawmidi            57344  2 snd_usbmidi_lib,snd_ump
snd_seq_device         16384  3 snd_seq,snd_ump,snd_rawmidi
snd_hda_core          147456  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
mc                     90112  1 snd_usb_audio
snd_hwdep              20480  2 snd_usb_audio,snd_hda_codec
snd_pcm               200704  5 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
snd_timer              53248  3 snd_seq,snd_hrtimer,snd_pcm
snd                   155648  28 snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_timer,snd_ump,snd_pcm,snd_rawmidi
soundcore              16384  1 snd
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 9: HDMI 3 [LG HDR 4K]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: Audio [USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: Audio [USB Audio], device 1: USB Audio [USB Audio #1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: Audio [USB Audio], device 2: USB Audio [USB Audio #2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: Audio [USB Audio], device 3: USB Audio [USB Audio #3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
$ sudo fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  nazu       1978 F.... wireplumber
/dev/snd/controlC1:  nazu       1978 F.... wireplumber
/dev/snd/controlC2:  nazu       1978 F.... wireplumber
/dev/snd/controlC3:  nazu       1977 F.... pipewire
                     nazu       1978 F.... wireplumber
/dev/snd/pcmC3D1p:   nazu       1977 F...m pipewire
/dev/snd/seq:        nazu       1977 F.... pipewire
$ amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 19340 [30%] [on]
  Front Right: Playback 19340 [30%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cvolume-joined cswitch cswitch-joined
  Capture channels: Mono
  Limits: Capture 0 - 65536
  Mono: Capture 65536 [100%] [on]
$ systemctl --user status pipewire
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
     Active: active (running) since Wed 2024-10-16 22:34:31 JST; 1h 27min ago
 Invocation: 1a98aa8f7b804569975b6bfb370f3626
TriggeredBy: ● pipewire.socket
   Main PID: 1977 (pipewire)
      Tasks: 3 (limit: 75876)
     Memory: 8.7M (peak: 10.3M)
        CPU: 696ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─1977 /usr/bin/pipewire

Oct 16 22:34:31 EAGLEOWL systemd[1653]: Started PipeWire Multimedia Service.
Oct 16 23:11:37 EAGLEOWL pipewire[1977]: pw.node: (alsa_output.usb-Generic_USB_Audio-00.HiFi__Headphones__sink-56) graph xrun not-triggered (0 suppressed)
Oct 16 23:11:37 EAGLEOWL pipewire[1977]: pw.node: (alsa_output.usb-Generic_USB_Audio-00.HiFi__Headphones__sink-56) xrun state:0x777d77ff4008 pending:1/1 s:1118653121467 a:1118653127237 f:1118653142737 waiting:5770 process:15500 status:triggered
$ systemctl --user status wireplumber
● wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
     Active: active (running) since Wed 2024-10-16 22:34:31 JST; 1h 27min ago
 Invocation: 5115291c9974441bbe6b379fe71524c0
   Main PID: 1978 (wireplumber)
      Tasks: 6 (limit: 75876)
     Memory: 38.9M (peak: 39.7M)
        CPU: 311ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
             └─1978 /usr/bin/wireplumber

Oct 16 22:34:31 EAGLEOWL systemd[1653]: Started Multimedia Service Session Manager.
Oct 16 22:34:31 EAGLEOWL wireplumber[1978]: wp-internal-comp-loader: Loading profile 'main'
Oct 16 22:34:33 EAGLEOWL wireplumber[1978]: spa.bluez5: BlueZ system service is not available
Oct 16 22:34:33 EAGLEOWL wireplumber[1978]: wp-device: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
Oct 16 22:34:33 EAGLEOWL wireplumber[1978]: s-monitors-libcamera: PipeWire's libcamera SPA plugin is missing or broken. Some camera types may not be supported.

Here's `pw-top` result when I play YouTube on Firefox.

S   ID  QUANT   RATE    WAIT    BUSY   W/Q   B/Q  ERR FORMAT           NAME
S   29      0      0    ---     ---   ---   ---     0                  Dummy-Driver
S   30      0      0    ---     ---   ---   ---     0                  Freewheel-Driver
S   51      0      0    ---     ---   ---   ---     0                  Midi-Bridge
S   54      0      0    ---     ---   ---   ---     0                  alsa_output.pci-0000_03_00.1.hdmi-stereo-extra3
S   55      0      0    ---     ---   ---   ---     0                  alsa_output.usb-Generic_USB_Audio-00.HiFi__SPDIF__sink
R   56   2048  48000  20.6us   4.4us  0.00  0.00    0    S32LE 2 48000 alsa_output.usb-Generic_USB_Audio-00.HiFi__Headphones__sink
R   85   3600  48000   7.0us   7.9us  0.00  0.00    0    F32LE 2 48000  + Firefox
S   57      0      0    ---     ---   ---   ---     0                  alsa_output.usb-Generic_USB_Audio-00.HiFi__Speaker__sink
S   58      0      0    ---     ---   ---   ---     0                  alsa_input.usb-Generic_USB_Audio-00.HiFi__Mic2__source
S   59      0      0    ---     ---   ---   ---     0                  alsa_input.usb-Generic_USB_Audio-00.HiFi__Mic1__source
S   65      0      0    ---     ---   ---   ---     0                  bluez_midi.server
S   60      0      0    ---     ---   ---   ---     0                  alsa_input.usb-Fonglun_USB_PnP_Audio_Device_201807-00.mono-fallback

Offline

#2 2024-10-17 15:39:39

nazu
Member
Registered: 2024-10-16
Posts: 2

Re: No sound but sometimes it works

I found that the front headphone works when I unplugged and replugged the earphone back in.
But it shuts up again when I reboot it.
During that time, OS keeps to recognize the front headphone whether it outputs some sound or not.

EDIT: More precisely, I found I can make the headphone work only if I launch pavucontrol and replugged the earphone back in.

Last edited by nazu (2024-10-20 08:54:17)

Offline

Board footer

Powered by FluxBB