You are not logged in.

#1 2024-11-22 19:25:57

kh8c5b
Member
Registered: 2024-11-20
Posts: 3

Linux doesn't see my audio devices

Hello, today I encountered a problem related to audio devices. I'm tired of switching sound using buttons on a laptop. for this I installed the wpctl package. I rebooted the PC but when I write the wpctl status command, it does not see the audio device at all. what should I do?

Russian:

здравствуйте, сегодня я столкнулся с проблемой связаной с аудио устройствами. мне нудно переключение звука по кнопкам на ноутбуке. для этого я установил пакет wpctl. перезагрузил пк но при написании команды wpctl status он не видит аудио устройства вообще. что мне делать?


~ wpctl status
PipeWire 'pipewire-0' [1.2.6, alabai@arch, cookie:1685379383]
 └─ Clients:
        33. WirePlumber                         [1.2.6, alabai@arch, pid:1131]
        40. WirePlumber [export]                [1.2.6, alabai@arch, pid:1131]
        45. wpctl                               [1.2.6, alabai@arch, pid:2539]

Audio
 ├─ Devices:
 │  
 ├─ Sinks:
 │  
 ├─ Sources:
 │  
 ├─ Filters:
 │  
 └─ Streams:

Video
 ├─ Devices:
 │      42. USB2.0 VGA UVC WebCam               [v4l2]
 │      43. USB2.0 VGA UVC WebCam               [v4l2]
 │  
 ├─ Sinks:
 │  
 ├─ Sources:
 │  *   41. USB2.0 VGA UVC WebCam (V4L2)       
 │  
 ├─ Filters:
 │  
 └─ Streams:

Settings
 └─ Default Configured Devices:
➜  ~ 

Offline

#2 2024-11-23 10:10:17

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,419
Website

Re: Linux doesn't see my audio devices

Mod note: moving to NC


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2024-11-23 10:11:06

kh8c5b
Member
Registered: 2024-11-20
Posts: 3

Re: Linux doesn't see my audio devices

ok)

Offline

#4 2024-11-23 14:20:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,289

Re: Linux doesn't see my audio devices

Can you post

sudo fuser -v /dev/snd/*
sudo dmesg | grep -iE 'snd|sof'
aplay -lL

Random guess, you're lacking sof-firmware. Which kernel? If LTS that's a year old in terms of HW support and you should test something newer

Offline

#5 2024-11-23 16:18:46

progandy
Member
Registered: 2012-05-17
Posts: 5,266

Re: Linux doesn't see my audio devices

Are you using pipwire for sound or is your system set up with pulseaudio?


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#6 2024-11-24 08:31:41

kh8c5b
Member
Registered: 2024-11-20
Posts: 3

Re: Linux doesn't see my audio devices

V1del wrote:

Can you post

sudo fuser -v /dev/snd/*
sudo dmesg | grep -iE 'snd|sof'
aplay -lL

Random guess, you're lacking sof-firmware. Which kernel? If LTS that's a year old in terms of HW support and you should test something newer

➜  ~ sudo fuser -v /dev/snd/*
[sudo] password for alabai: 
Sorry, try again.
[sudo] password for alabai: 
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  alabai      542 F.... pulseaudio
/dev/snd/controlC1:  alabai      542 F.... pulseaudio
/dev/snd/pcmC1D0p:   alabai      542 F...m pulseaudio
➜  ~ sudo dmesg | grep -iE 'snd|sof'
[    0.025886] software IO TLB: area num 2.
[    0.308481] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.308483] software IO TLB: mapped [mem 0x00000000b4a5f000-0x00000000b8a5f000] (64MB)
[    6.206023] snd_pci_acp3x 0000:03:00.5: enabling device (0000 -> 0002)
[    6.206146] snd_pci_acp3x 0000:03:00.5: ACP audio mode : 2
[    6.906012] snd_hda_intel 0000:03:00.1: enabling device (0000 -> 0002)
[    6.906097] snd_hda_intel 0000:03:00.1: Handle vga_switcheroo audio client
[    6.924195] snd_hda_intel 0000:03:00.6: enabling device (0000 -> 0002)
[    6.927712] snd_hda_intel 0000:03:00.1: bound 0000:03:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[    6.982803] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC256: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    6.982811] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    6.982813] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    6.982815] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[    6.982816] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[    6.982818] snd_hda_codec_realtek hdaudioC1D0:      Internal Mic=0x1b
[    6.982819] snd_hda_codec_realtek hdaudioC1D0:      Headset Mic=0x19
[    6.982820] snd_hda_codec_realtek hdaudioC1D0:      Internal Mic=0x13
➜  ~ aplay -lL
null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default
    Default ALSA Output (currently PulseAudio Sound Server)
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, HDMI 0
    HDMI Audio Output
usbstream:CARD=Generic
    HD-Audio Generic
    USB Stream Output
sysdefault:CARD=Generic_1
    HD-Audio Generic, ALC256 Analog
    Default Audio Device
front:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC256 Analog
    Front output / input
surround21:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC256 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC256 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC256 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC256 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC256 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC256 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
usbstream:CARD=Generic_1
    HD-Audio Generic
    USB Stream 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: ALC256 Analog [ALC256 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
➜  ~ 

Offline

#7 2024-11-24 11:37:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,289

Re: Linux doesn't see my audio devices

You have pulseaudio setup but try to query device state with wpctl which is a wireplumber tool which is already a logical conflict in and of itself.

If you want to properly switch to wireplumber you need to replace pulseaudio with pipewire-pulse.

Offline

#8 2024-11-24 14:46:52

progandy
Member
Registered: 2012-05-17
Posts: 5,266

Re: Linux doesn't see my audio devices

If you want to stay with pulseaudio, then the tools you need for scripting are pactl and/or pacmd. pavucontrol would be a graphical interface.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#9 2024-11-24 19:15:37

lvsl
Member
Registered: 2024-08-22
Posts: 4

Re: Linux doesn't see my audio devices

If you have pipewire you can use pipewire-pulse along with pavucontrol. This way is so that you can use pavucontrol as if it's pulseaudio instead.

But you can only have either pulseaudio or pipewire and not both. Meaning if you want to change you will need to manually remove one to install another. If you try to install both directly, pacman will not let you do so anyways

https://archlinux.org/packages/extra/x8 … ire-pulse/

Last edited by lvsl (2024-11-24 19:20:31)

Offline

Board footer

Powered by FluxBB