You are not logged in.

#1 2023-07-13 17:24:32

nphuracm
Member
From: China
Registered: 2022-07-16
Posts: 69

PulseAudio not detecting speakers at all

So my Arch system - presumably after me configuring some Xrdp shit - ceased detecting my speakers.

PulseAudio does not detect my speakers now. Now there are just dummy output devices.
pacmd list-sinks:

nphuracm@nphuracm-Arle-A ~> LC_ALL=C pacmd list-sinks
1 sink(s) available.
  * index: 0
        name: <auto_null>
        driver: <module-null-sink.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: IDLE
        suspend cause: (none)
        priority: 1000
        volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 701.34 ms
        max request: 375 KiB
        max rewind: 375 KiB
        monitor source: 0
        sample spec: s16le 2ch 48000Hz
        channel map: front-left,front-right
                     立体声        used by: 0
        linked by: 0
        configured latency: 2000.00 ms; range is 0.50 .. 2000.00 ms
        module: 2
        properties:
                device.description = "伪输出"
                device.class = "abstract"
                device.icon_name = "audio-card"

Relevant output of lspci -nnk:

00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller [1022:780d] (rev 01)
        Subsystem: ASUSTeK Computer Inc. AM1I-A Motherboard [1043:8576]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

ALSA seems to detect this just fine. Relevant output of aplay -l:

nphuracm@nphuracm-Arle-A ~> aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 1: ALC887-VD Digital [ALC887-VD Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Replugging the speakers does not work the issue around. The speakers work fine on another operating system so not a hardware issue (presumably).
First bunch of logs pulseaudio -v pours out:

nphuracm@nphuracm-Arle-A ~> LC_ALL=C pulseaudio -v
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 16.1
I: [pulseaudio] main.c: Page size is 4096 bytes
I: [pulseaudio] main.c: Machine ID is 1807bd4032884fb79c1c57a899cdfca8.
I: [pulseaudio] main.c: Session ID is 2.
I: [pulseaudio] main.c: Using runtime directory /run/user/1919810/pulse.
I: [pulseaudio] main.c: Using state directory /home/nphuracm/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulseaudio/modules.
I: [pulseaudio] main.c: Running in system mode: no
I: [pulseaudio] main.c: System supports high resolution timers
I: [pulseaudio] cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 MMXEXT 
I: [pulseaudio] svolume_mmx.c: Initialising MMX optimized volume functions.
I: [pulseaudio] remap_mmx.c: Initialising MMX optimized remappers.
I: [pulseaudio] svolume_sse.c: Initialising SSE2 optimized volume functions.
I: [pulseaudio] remap_sse.c: Initialising SSE2 optimized remappers.
I: [pulseaudio] sconv_sse.c: Initialising SSE2 optimized conversions.
I: [pulseaudio] svolume_orc.c: Initialising ORC optimized volume functions.
I: [pulseaudio] module.c: Loaded "module-augment-properties" (index: #0; argument: "").
I: [pulseaudio] sink.c: Created sink 0 "auto_null" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] sink.c:     device.description = "Dummy Output"
I: [pulseaudio] sink.c:     device.class = "abstract"
I: [pulseaudio] sink.c:     device.icon_name = "audio-card"
I: [pulseaudio] source.c: Created source 0 "auto_null.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] source.c:     device.description = "Monitor of Dummy Output"
I: [pulseaudio] source.c:     device.class = "monitor"
I: [pulseaudio] source.c:     device.icon_name = "audio-input-microphone"
I: [null-sink] util.c: Successfully enabled SCHED_RR scheduling for thread, with priority 5.
I: [pulseaudio] core.c: default_source: (unset) -> auto_null.monitor
I: [pulseaudio] core.c: default_sink: (unset) -> auto_null
I: [pulseaudio] module.c: Loaded "module-null-sink" (index: #2; argument: "sink_name=auto_null sink_properties='device.description="Dummy Output"'").
I: [pulseaudio] module.c: Loaded "module-always-sink" (index: #1; argument: "").
I: [pulseaudio] module.c: Loaded "module-native-protocol-unix" (index: #3; argument: "").
I: [pulseaudio] main.c: Daemon startup complete.
I: [pulseaudio] client.c: Created 0 "Native client (UNIX socket client)"
I: [pulseaudio] protocol-native.c: Got credentials: uid=1919810 gid=114514 success=1

fuser -v /dev/snd/* fails silently:

nphuracm@nphuracm-Arle-A ~> LC_ALL=C sudo fuser -v /dev/snd/*
nphuracm@nphuracm-Arle-A ~ [1]> 

/dev/dsp does not exist in the first place:

nphuracm@nphuracm-Arle-A ~ [1]> LC_ALL=C sudo fuser -v /dev/dsp
Specified filename /dev/dsp does not exist.
nphuracm@nphuracm-Arle-A ~ [1]> 

Offline

#2 2023-07-13 17:40:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,237

Re: PulseAudio not detecting speakers at all

You probably broke your logind and dbus session configuring "xrdp shit". What exactly did you do and what happens if you revert that? Outputs of

printenv
loginctl session-status

?

Offline

#3 2023-07-15 02:21:27

nphuracm
Member
From: China
Registered: 2022-07-16
Posts: 69

Re: PulseAudio not detecting speakers at all

printenv:

DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1919810/bus
DESKTOP_SESSION=plasma
XCURSOR_SIZE=24
XDG_SESSION_CLASS=user
LOGNAME=nphuracm
XCURSOR_THEME=Mocu-White-Right
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_ID=2
PAM_KWALLET5_LOGIN=/run/user/1919810/kwallet5.socket
XDG_VTNR=2
XDG_SESSION_TYPE=x11
TERM=xterm-256color
XDG_SEAT=seat0
SHELL=/usr/bin/fish
QT_IM_MODULE=fcitx
SHLVL=1
SYSTEMD_EXEC_PID=1135
PULSE_SCRIPT=/etc/xrdp/pulse/default.pa
XMODIFIERS=@im=fcitx
PROFILEHOME=
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/platform-tools:/home/nphuracm/.dotnet/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
USER=nphuracm
QT_SCREEN_SCALE_FACTORS=DVI-D-0=1;VGA-0=1;
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/nphuracm/.gtkrc-2.0:/home/nphuracm/.config/gtkrc-2.0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
COLORFGBG=15;0
LC_NUMERIC=zh_CN.UTF-8
SHELL_SESSION_ID=7c6181b046a948db87e1d1414830e558
DEBUGINFOD_URLS=https://debuginfod.archlinux.org
COLORTERM=truecolor
KONSOLE_DBUS_SERVICE=:1.60
MOTD_SHOWN=pam
QT_AUTO_SCREEN_SCALE_FACTOR=0
XAUTHORITY=/tmp/xauth_npWhgN
XDG_SESSION_DESKTOP=KDE
DOTNET_ROOT=/usr/share/dotnet
INVOCATION_ID=b0bf092cbd614c14a75b12324d875d04
KONSOLE_VERSION=230403
XDG_CURRENT_DESKTOP=KDE
WINDOWID=54525965
XDG_RUNTIME_DIR=/run/user/1919810
SESSION_MANAGER=local/nphuracm-Arle-A:@/tmp/.ICE-unix/929,unix/nphuracm-Arle-A:/tmp/.ICE-unix/929
MANAGERPID=797
LC_TIME=zh_CN.UTF-8
KDE_FULL_SESSION=true
XDG_CONFIG_DIRS=/home/nphuracm/.config/kdedefaults:/etc/xdg
DISPLAY=:0
MAIL=/var/spool/mail/nphuracm
LC_MONETARY=zh_CN.UTF-8
GTK_RC_FILES=/etc/gtk/gtkrc:/home/nphuracm/.gtkrc:/home/nphuracm/.config/gtkrc
LC_MEASUREMENT=zh_CN.UTF-8
PWD=/home/nphuracm
GTK_IM_MODULE=fcitx
DOTNET_BUNDLE_EXTRACT_BASE_DIR=/home/nphuracm/.cache/dotnet_bundle_extract
LANGUAGE=zh_CN:en_US
LANG=zh_CN.UTF-8
KDE_SESSION_UID=1919810
KONSOLE_DBUS_SESSION=/Sessions/1
KDE_SESSION_VERSION=5
KDE_APPLICATIONS_AS_SCOPE=1
JOURNAL_STREAM=8:23697
HOME=/home/nphuracm
GTK_MODULES=canberra-gtk-module

loginctl session-status:

2 - nphuracm (1919810)
           Since: Sat 2023-07-15 10:18:41 CST; 2min 3s ago
          Leader: 795 (sddm-helper)
            Seat: seat0; vc2
             TTY: tty2
         Service: sddm; type x11; class user
         Desktop: KDE
           State: active
            Unit: session-2.scope
                  ├─795 /usr/lib/sddm/sddm-helper --socket /tmp/sddm-auth-fe75e440-b5ad-4af5-8d1f-cb773c43898d --id 1 --start /usr/bin/startplasma-x11 --us>
                  ├─809 /usr/bin/kwalletd5 --pam-login 12 14
                  ├─810 /usr/bin/startplasma-x11
                  ├─823 fcitx -d
                  ├─832 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --config-file /usr/share/fcitx/dbus/daemon.conf
                  └─836 /usr/bin/fcitx-dbus-watcher unix:path=/tmp/dbus-hLj197ajIG,guid=f53fbba062aaf47c9c8a4fd664b20202 832

7月 15 10:18:42 nphuracm-Arle-A systemd[1]: Started Session 2 of User nphuracm.

Offline

#4 2023-07-17 21:53:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,237

Re: PulseAudio not detecting speakers at all

PULSE_SCRIPT=/etc/xrdp/pulse/default.pa

get rid of that export. Check/post

systemctl --user status pulseaudio
systemctl --user cat pulseaudio

Last edited by V1del (2023-07-17 22:07:04)

Offline

#5 2023-07-22 04:43:02

nphuracm
Member
From: China
Registered: 2022-07-16
Posts: 69

Re: PulseAudio not detecting speakers at all

systemctl --user status pulseaudio:

● pulseaudio.service - Sound Service
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; preset: enabled)
     Active: active (running) since Sat 2023-07-22 12:30:50 CST; 10min ago
TriggeredBy: ● pulseaudio.socket
   Main PID: 1299 (pulseaudio)
      Tasks: 2 (limit: 6967)
     Memory: 3.2M
        CPU: 944ms
     CGroup: /user.slice/user-1919810.slice/user@1919810.service/session.slice/pulseaudio.service
             └─1299 /usr/bin/pulseaudio --daemonize=no --log-target=journal

7月 22 12:30:50 nphuracm-Arle-A systemd[806]: Starting Sound Service...
7月 22 12:30:50 nphuracm-Arle-A systemd[806]: Started Sound Service.

systemctl --user cat pulseaudio:

nphuracm@nphuracm-Arle-A ~> systemctl --user cat pulseaudio
# /usr/lib/systemd/user/pulseaudio.service
[Unit]
Description=Sound Service

# We require pulseaudio.socket to be active before starting the daemon, because
# while it is possible to use the service without the socket, it is not clear
# why it would be desirable.
#
# A user installing pulseaudio and doing `systemctl --user start pulseaudio`
# will not get the socket started, which might be confusing and problematic if
# the server is to be restarted later on, as the client autospawn feature
# might kick in. Also, a start of the socket unit will fail, adding to the
# confusion.
#
# After=pulseaudio.socket is not needed, as it is already implicit in the
# socket-service relationship, see systemd.socket(5).
Requires=pulseaudio.socket
ConditionUser=!root

[Service]
ExecStart=/usr/bin/pulseaudio --daemonize=no --log-target=journal
LockPersonality=yes
MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
Restart=on-failure
RestrictNamespaces=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service
# Note that notify will only work if --daemonize=no
Type=notify
UMask=0077
Slice=session.slice

[Install]
Also=pulseaudio.socket
WantedBy=default.target

Offline

Board footer

Powered by FluxBB