You are not logged in.
sound does not work in applications if they are not running as root. Tried with discord, librewolf, qutebrowser. The sound on behalf of the user did not work anywhere. is this normal?
I use archlinux, pipewire, pipewire-pulse, wire plumber
libpipewire 1:0.3.77-1
libwireplumber 0.4.14-1
pipewire 1:0.3.77-1
pipewire-alsa 1:0.3.77-1
pipewire-audio 1:0.3.77-1
pipewire-jack 1:0.3.77-1
pipewire-pulse 1:0.3.77-1
wireplumber 0.4.14-1
Offline
Sounds like your session is broken from the normal user
printenv
loginctl session-status
systemctl --user status pipewire{,pulse} wireplumber
sudo fuser -v /dev/snd/*
How do you login/start your session?
Last edited by V1del (2023-08-10 11:25:09)
Online
I just login via root and run startx
user@archlinux root$ printenv
loginctl session-status
systemctl --user status pipewire{,pulse} wireplumber
sudo fuser -v /dev/snd/*
SHELL=/bin/bash
WINDOWID=8388610
COLORTERM=truecolor
JAVA_HOME=/home/user/.sdkman/candidates/java/current
CREDENTIALS_DIRECTORY=/run/credentials/getty@tty1.service
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
SDKMAN_CANDIDATES_DIR=/home/user/.sdkman/candidates
GTK_MODULES=canberra-gtk-module
XDG_SEAT=seat0
PWD=/root
LOGNAME=user
XDG_SESSION_TYPE=tty
SYSTEMD_EXEC_PID=361
XAUTHORITY=/root/.Xauthority
WINDOWPATH=1
MOTD_SHOWN=pam
HOME=/home/user
LANG=en_US.UTF-8
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/system.slice/system-getty.slice/getty@tty1.service/memory.pressure
INVOCATION_ID=daa8ffa00d124a11bd6f3e736396325d
ALACRITTY_SOCKET=/run/user/0/Alacritty-:0-1813.sock
XDG_SESSION_CLASS=user
TERM=alacritty
USER=user
SDKMAN_DIR=/home/user/.sdkman
DISPLAY=:0
SHLVL=4
XDG_VTNR=1
SDKMAN_CANDIDATES_API=https://api.sdkman.io/2
XDG_SESSION_ID=1
XDG_RUNTIME_DIR=/run/user/0
DEBUGINFOD_URLS=https://debuginfod.archlinux.org
PATH=/home/user/.sdkman/candidates/java/current/bin:/root/.sdkman/candidates/java/current/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
ALACRITTY_LOG=/tmp/Alacritty-1813.log
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus
SDKMAN_PLATFORM=linuxx64
MAIL=/var/spool/mail/root
ALACRITTY_WINDOW_ID=8388610
_=/usr/bin/printenv
1 - root (0)
Since: Thu 2023-08-10 14:54:16 MSK; 9min ago
Leader: 361 (login)
Seat: seat0; vc1
TTY: tty1
Service: login; type tty; class user
State: active
Idle: no
Unit: session-1.scope
├─ 361 "login -- root"
├─ 446 -bash
├─ 463 /bin/sh /usr/bin/startx
├─ 478 xinit /root/.xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.skxPiI26PA
├─ 479 /usr/lib/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.skxPiI26PA
├─ 500 dwm
├─ 517 /bin/bash
├─ 520 /usr/lib/librewolf/librewolf
├─ 620 /usr/lib/librewolf/librewolf -contentproc -parentBuildID 20230802002849 -prefsLen 22797 -prefMapSize 232582 -appDir /usr/lib/librewolf/browser {2b19c65d-7759-4487-8c5f-a5f4b1f4500b} 520 s>
├─ 660 /usr/lib/librewolf/librewolf -contentproc -childID 1 -isForBrowser -prefsLen 22938 -prefMapSize 232582 -jsInitLen 242416 -parentBuildID 20230802002849 -appDir /usr/lib/librewolf/browser {>
├─ 709 /usr/lib/librewolf/librewolf -contentproc -childID 2 -isForBrowser -prefsLen 27582 -prefMapSize 232582 -jsInitLen 242416 -parentBuildID 20230802002849 -appDir /usr/lib/librewolf/browser {>
├─ 879 /usr/lib/librewolf/librewolf -contentproc -parentBuildID 20230802002849 -prefsLen 27456 -prefMapSize 232582 -appDir /usr/lib/librewolf/browser {fe3699c9-ed10-44c3-b717-5443a96a6783} 520 r>
├─ 883 /usr/lib/librewolf/librewolf -contentproc -parentBuildID 20230802002849 -sandboxingKind 0 -prefsLen 27456 -prefMapSize 232582 -appDir /usr/lib/librewolf/browser {bb91eb27-d428-4ace-8045-e>
├─ 907 /usr/lib/librewolf/librewolf -contentproc -childID 7 -isForBrowser -prefsLen 24895 -prefMapSize 232582 -jsInitLen 242416 -parentBuildID 20230802002849 -appDir /usr/lib/librewolf/browser {>
├─1300 /usr/lib/librewolf/librewolf -contentproc -childID 8 -isForBrowser -prefsLen 24895 -prefMapSize 232582 -jsInitLen 242416 -parentBuildID 20230802002849 -appDir /usr/lib/librewolf/browser {>
├─1684 /usr/lib/librewolf/librewolf -contentproc -childID 18 -isForBrowser -prefsLen 24895 -prefMapSize 232582 -jsInitLen 242416 -parentBuildID 20230802002849 -appDir /usr/lib/librewolf/browser >
├─1722 /usr/lib/librewolf/librewolf -contentproc -childID 19 -isForBrowser -prefsLen 24895 -prefMapSize 232582 -jsInitLen 242416 -parentBuildID 20230802002849 -appDir /usr/lib/librewolf/browser >
├─1756 /usr/lib/librewolf/librewolf -contentproc -childID 20 -isForBrowser -prefsLen 24895 -prefMapSize 232582 -jsInitLen 242416 -parentBuildID 20230802002849 -appDir /usr/lib/librewolf/browser >
├─1790 /usr/lib/librewolf/librewolf -contentproc -childID 21 -isForBrowser -prefsLen 24895 -prefMapSize 232582 -jsInitLen 242416 -parentBuildID 20230802002849 -appDir /usr/lib/librewolf/browser >
├─1813 alacritty
├─1828 /bin/bash
├─1848 su user
├─1849 bash
├─1885 /usr/lib/librewolf/librewolf -contentproc -childID 22 -isForBrowser -prefsLen 24895 -prefMapSize 232582 -jsInitLen 242416 -parentBuildID 20230802002849 -appDir /usr/lib/librewolf/browser >
├─1921 /usr/lib/librewolf/librewolf -contentproc -childID 23 -isForBrowser -prefsLen 24895 -prefMapSize 232582 -jsInitLen 242416 -parentBuildID 20230802002849 -appDir /usr/lib/librewolf/browser >
├─1962 /usr/lib/librewolf/librewolf -contentproc -childID 24 -isForBrowser -prefsLen 24895 -prefMapSize 232582 -jsInitLen 242416 -parentBuildID 20230802002849 -appDir /usr/lib/librewolf/browser >
├─2024 loginctl session-status
└─2025 less
Aug 10 15:02:19 archlinux sudo[1997]: PAM Attempted to close sd-bus after fork, this should not happen.
Aug 10 15:03:07 archlinux sudo[2007]: pam_unix(sudo:auth): conversation failed
Aug 10 15:03:07 archlinux sudo[2007]: pam_unix(sudo:auth): auth could not identify password for [user]
Aug 10 15:03:09 archlinux sudo[2007]: PAM Attempted to close sd-bus after fork, this should not happen.
Aug 10 15:03:18 archlinux sudo[2015]: user : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/bin/fuser -v /dev/snd/by-id /dev/snd/by-path /dev/snd/controlC0 /dev/snd/controlC1 /dev/snd/controlC2 /dev/snd/hwC>
Aug 10 15:03:18 archlinux sudo[2015]: pam_unix(sudo:session): session opened for user root(uid=0) by root(uid=1000)
Aug 10 15:03:18 archlinux sudo[2015]: pam_unix(sudo:session): session closed for user root
Aug 10 15:03:25 archlinux sudo[2018]: user : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/bin/fuser -v /dev/snd/by-id /dev/snd/by-path /dev/snd/controlC0 /dev/snd/controlC1 /dev/snd/controlC2 /dev/snd/hwC>
Aug 10 15:03:25 archlinux sudo[2018]: pam_unix(sudo:session): session opened for user root(uid=0) by root(uid=1000)
Aug 10 15:03:25 archlinux sudo[2018]: pam_unix(sudo:session): session closed for user root
Failed to connect to bus: Permission denied
USER PID ACCESS COMMAND
/dev/snd/controlC0: root 445 F.... wireplumber
/dev/snd/controlC1: root 445 F.... wireplumber
/dev/snd/controlC2: root 445 F.... wireplumber
/dev/snd/seq: root 444 F.... pipewire
Offline
You aren't generally supposed to do that and various integrations and assumptions will break. Create and use a normal user for running X/startx and post your .xinitrc
Online
And don't create a 3rd account for that…
Offline