You are not logged in.
No audio, Youtube videos wont run. I had this issue when I first installed arch and never definitively resolved it. It all just worked one day, so I assume it was fixed during a daily pacman update. Well, I'm afflicted again.
I outputed a journalctl here: http://0x0.st/Xy0E.txt
I'm running a Dell Inspiron 5620, on Firefox, Linux 6.10.6-arch1-1; pipewire.
One thing I tried this time though was reinstalling pulseaudio. I actually got a youtube video to load and output sound after I rebooted, but lost it soon after. No audio when I load other videos up via VLC.
Offline
One thing I tried this time though was reinstalling pulseaudio.
Don't.
https://archlinux.org/packages/extra/x8 … ire-pulse/
On occasion, deleting ~/.config/wireplumber (the format changed at some point) or (more likely) the state (~/.local/state/wireplumber/) helps.
Offline
I have the latest version of pipewire. Also uninstalled pulseaudio (now no audio again, even for a brief moment). I have two files in the ~/.local/state/wireplumber directory: should I delete them both? Rm the entire directory?
Offline
Have you installed pipewire-pulse?
Otherwise, yes - just delete the entire directory (then re-login to restart pipewire/wireplumber)
Offline
Yep, have the latest pipewire-pulse as well.
Otherwise, yes - just delete the entire directory (then re-login to restart pipewire/wireplumber)
Ok brb
Offline
Didn't work
My YouTube actually started playing video again between the time of my original post and today (albeit no sound still). Unfortunately deleting the ~/.local/state/wireplumber directory actually regressed my issue back to YouTube stalling and freezing all my firefox windows and tabs.
Offline
Post
sudo fuser -v /dev/snd/*
aplay -lL
systemctl --user status pipewire{,-pulse} wireplumber pulseaudio
pactl list sinks
pactl list sink-inputs
Online
Post
sudo fuser -v /dev/snd/* aplay -lL systemctl --user status pipewire{,-pulse} wireplumber pulseaudio pactl list sinks pactl list sink-inputs
~/.local/state/wireplumber % sudo fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: defcon 2493 F.... pipewire
defcon 2494 F.... wireplumber
~/.local/state/wireplumber % 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
pipewire
PipeWire Sound Server
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 PipeWire Media Server)
sysdefault:CARD=sofhdadsp
sof-hda-dsp,
Default Audio Device
usbstream:CARD=sofhdadsp
sof-hda-dsp
USB Stream Output
**** List of PLAYBACK Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 31: HDA Analog Deep Buffer (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
~/.local/state/wireplumber % systemctl --user status pipewire{,-pulse} wireplumber pulseaudio
Unit pulseaudio.service could not be found.
● pipewire.service - PipeWire Multimedia Service
Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
Active: active (running) since Tue 2024-08-27 08:07:12 EDT; 15min ago
Invocation: b67c0e22b3df4c0c9bff0f94111675e4
TriggeredBy: ● pipewire.socket
Main PID: 2493 (pipewire)
Tasks: 3 (limit: 18779)
Memory: 7M (peak: 8.9M)
CPU: 26ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
└─2493 /usr/bin/pipewire
Aug 27 08:07:12 ArchRonin systemd[2483]: Started PipeWire Multimedia Service.
● pipewire-pulse.service - PipeWire PulseAudio
Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; enabled; preset: enabled)
Active: active (running) since Tue 2024-08-27 08:07:12 EDT; 15min ago
Invocation: 6d002119da074dfb8d9348ab54af3ded
TriggeredBy: ● pipewire-pulse.socket
Main PID: 2495 (pipewire-pulse)
Tasks: 3 (limit: 18779)
Memory: 2.5M (peak: 2.8M)
CPU: 14ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-pulse.service
└─2495 /usr/bin/pipewire-pulse
Aug 27 08:07:12 ArchRonin systemd[2483]: Started PipeWire PulseAudio.
● wireplumber.service - Multimedia Service Session Manager
Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
Active: active (running) since Tue 2024-08-27 08:07:12 EDT; 15min ago
Invocation: 0424b731f48b4f48817b74eaef254bb0
Main PID: 2494 (wireplumber)
Tasks: 6 (limit: 18779)
Memory: 16.8M (peak: 18.8M)
CPU: 89ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
└─2494 /usr/bin/wireplumber
Aug 27 08:07:12 ArchRonin systemd[2483]: Started Multimedia Service Session Manager.
Aug 27 08:07:12 ArchRonin wireplumber[2494]: wp-device: SPA handle 'api.libcamera.enum.manager' could not be loade>
Aug 27 08:07:12 ArchRonin wireplumber[2494]: s-monitors-libcamera: PipeWire's libcamera SPA plugin is missing or b>
Aug 27 08:07:13 ArchRonin wireplumber[2494]: default: Failed to get percentage from UPower: org.freedesktop.DBus.E>
~/.local/state/wireplumber % pactl list sinks
Connection failure: Timeout
~/.local/state/wireplumber % pactl list sink-inputs
Connection failure: Timeout
Last edited by saltbringer (2024-08-27 13:17:51)
Offline
Please use [code][/code] tags. Edit your post in this regard.
~/.local/state/wireplumber % pactl list sinks
Connection failure: Timeout
~/.local/state/wireplumber % pactl list sink-inputs
Connection failure: Timeout
loginctl session-status
dbus-send --session --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListNames | sed '/string/!d; s/^\s*string //g'
Edit: also
ps aux | grep dbus
echo $DBUS_SESSION_BUS_ADDRESS
Last edited by seth (2024-08-27 13:18:44)
Offline
Please use [code][/code] tags. Edit your post in this regard.
~/.local/state/wireplumber % pactl list sinks Connection failure: Timeout ~/.local/state/wireplumber % pactl list sink-inputs Connection failure: Timeout
Sorry, fixed.
loginctl session-status dbus-send --session --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListNames | sed '/string/!d; s/^\s*string //g'
Edit: also
ps aux | grep dbus echo $DBUS_SESSION_BUS_ADDRESS
~/.local/state/wireplumber % loginctl session-status
2 - defcon (1000)
Since: Tue 2024-08-27 08:07:12 EDT; 48min ago
State: active
Leader: 2476 (sddm-helper)
Seat: seat0; vc1
TTY: tty1
Remote: no
Service: sddm
Type: wayland
Class: user
Idle: no
Unit: session-2.scope
├─2476 /usr/lib/sddm/sddm-helper --socket /tmp/sddm-auth-65493dfb-d53b-4684-95b9-391d76e3a121 --id 1 --st>
├─2516 /usr/bin/kwalletd6 --pam-login 12 13
├─2517 Hyprland
├─2569 nm-applet
├─2570 /bin/sh -c "waybar & hyprpaper"
├─2572 waybar
├─2573 hyprpaper
├─2576 wireplumber
├─2581 clipse
├─2587 swaync
├─2592 hypridle
├─2607 /usr/lib/polkit-kde-authentication-agent-1
├─2609 xss-lock hyprlock
├─2660 Xwayland :1 -rootless -core -listenfd 56 -listenfd 57 -displayfd 91 -wm 88
├─3470 alacritty
├─3479 /usr/bin/zsh
├─6153 alacritty
├─6162 /usr/bin/zsh
├─6264 vim /home/defcon/.config/hypr/hyprland.conf
├─9200 /usr/lib/firefox/firefox
├─9286 /usr/lib/firefox/firefox -contentproc -parentBuildID 20240820123043 -prefsLen 32762 -prefMapSize 2>
├─9309 /usr/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 32865 -prefMapSize 254423>
├─9369 /usr/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 37756 -prefMapSize 254423>
├─9423 /usr/bin/plasma-browser-integration-host /usr/lib/mozilla/native-messaging-hosts/org.kde.plasma.br>
├─9447 /usr/lib/firefox/firefox -contentproc -parentBuildID 20240820123043 -sandboxingKind 0 -prefsLen 37>
├─9456 /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 32192 -prefMapSize 254423>
├─9460 /usr/lib/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 32192 -prefMapSize 254423>
├─9463 /usr/lib/firefox/firefox -contentproc -childID 5 -isForBrowser -prefsLen 32192 -prefMapSize 254423>
├─9562 /usr/lib/firefox/firefox -contentproc -childID 6 -isForBrowser -prefsLen 32192 -prefMapSize 254423>
├─9639 loginctl session-status
└─9640 less
Aug 27 08:22:05 ArchRonin sudo[5873]: pam_systemd_home(sudo:account): New sd-bus connection (system-bus-pam-system>
Aug 27 08:22:05 ArchRonin sudo[5873]: defcon : TTY=pts/0 ; PWD=/home/defcon/.local/state/wireplumber ; USER=root>
Aug 27 08:22:05 ArchRonin sudo[5873]: pam_unix(sudo:session): session opened for user root(uid=0) by defcon(uid=10>
Aug 27 08:22:05 ArchRonin sudo[5873]: pam_unix(sudo:session): session closed for user root
Aug 27 08:29:51 ArchRonin pipewire[6286]: mod.protocol-native: server 0x629ac4387910: unable to lock lockfile '/ru>
Aug 27 08:29:51 ArchRonin pipewire[6286]: pw.conf: 0x629ac4367100: could not load mandatory module "libpipewire-mo>
Aug 27 08:29:51 ArchRonin pipewire[6286]: default: failed to create context: Resource temporarily unavailable
Aug 27 09:16:08 ArchRonin hyprlock[7490]: pam_systemd_home(hyprlock:auth): New sd-bus connection (system-bus-pam-s>
Aug 27 09:16:08 ArchRonin hyprlock[7490]: pam_unix(hyprlock:auth): authentication failure; logname=defcon uid=1000>
Aug 27 09:16:12 ArchRonin hyprlock[7490]: pam_systemd_home(hyprlock:auth): New sd-bus connection (system-bus-pam-s>
Last edited by saltbringer (2024-08-27 13:22:53)
Offline
re:
ps aux | grep dbus
echo $DBUS_SESSION_BUS_ADDRESS
~/.local/state/wireplumber % ps aux | grep dbus
echo $DBUS_SESSION_BUS_ADDRESS
dbus 809 0.0 0.0 7344 3484 ? Ss 08:06 0:00 /usr/bin/dbus-broker-launch --scope system --audit
dbus 812 0.0 0.0 5440 3440 ? S 08:06 0:00 dbus-broker --log 4 --controller 9 --machine-id 78fa92b7cbb947ee90b042cf288f83eb --max-bytes 536870912 --max-fds 4096 --max-matches 131072 --audit
defcon 2500 0.0 0.0 6808 3212 ? Ss 08:07 0:00 /usr/bin/dbus-broker-launch --scope user
defcon 2501 0.0 0.0 4576 2616 ? S 08:07 0:00 dbus-broker --log 4 --controller 10 --machine-id 78fa92b7cbb947ee90b042cf288f83eb --max-bytes 100000000000000 --max-fds 25000000000000 --max-matches 5000000000
defcon 2680 0.0 0.0 6808 3288 ? S 08:07 0:00 /usr/bin/dbus-broker-launch --config-file=/usr/share/defaults/at-spi2/accessibility.conf --scope user
defcon 2681 0.0 0.0 4096 2340 ? S 08:07 0:00 dbus-broker --log 4 --controller 9 --machine-id 78fa92b7cbb947ee90b042cf288f83eb --max-bytes 100000000000000 --max-fds 6400000 --max-matches 5000000000
defcon 9869 0.0 0.0 6716 4076 pts/0 S+ 09:21 0:00 grep dbus
unix:path=/run/user/1000/bus
Offline
I notice also that I have random hangups and freezes while browsing. I wonder if these errors from my journalctl have anything to do with it:
Jun 27 11:02:24 ArchRonin kernel: [Firmware Bug]: CPU4: Topology domain 1 shift 7 != 6
Jun 27 11:02:24 ArchRonin kernel: [Firmware Bug]: CPU4: Topology domain 2 shift 7 != 6
Jun 27 11:02:24 ArchRonin kernel: [Firmware Bug]: CPU4: Topology domain 3 shift 7 != 6
Jun 27 11:02:24 ArchRonin kernel: [Firmware Bug]: CPU4: Topology domain 4 shift 7 != 6
Jun 27 11:02:24 ArchRonin kernel: [Firmware Bug]: CPU4: Topology domain 5 shift 7 != 6
Jun 27 11:02:24 ArchRonin kernel: [Firmware Bug]: CPU4: Topology domain 6 shift 7 != 6
Same errors for CPU5-CPU11 as well
Offline
https://gitlab.archlinux.org/archlinux/ … /issues/57
Probably not - pactl not responding is a huge red flag.
If you create a new user, do you have the same pactl timeout issue there?
Offline
um, not sure. this is the output:
[tester@ArchRonin defcon]$ pactl list sinks
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 1001), but by uid 1000! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
Offline
Whyt is XDG_RUNTIME_DIR set to /run/user/1000 for UID 1001 (your test user)?
printenv
Offline
Idk. I just made a test user to try what you recommended earlier. Printenv:
[tester@ArchRonin defcon]$ printenv
SHELL=/usr/bin/bash
WINDOWID=104802706699632
COLORTERM=truecolor
HYPRLAND_CMD=Hyprland
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session18
CONDA_EXE=/home/defcon/anaconda3/bin/conda
_CE_M=
XDG_BACKEND=wayland
DESKTOP_SESSION=hyprland
HL_INITIAL_WORKSPACE_TOKEN=0f7dec48-bdae-4336-900e-58211f1b1355
XCURSOR_SIZE=28
XDG_SEAT=seat0
PWD=/home/defcon
LOGNAME=tester
XDG_SESSION_DESKTOP=wayland
QT_QPA_PLATFORMTHEME=qt6ct
XDG_SESSION_TYPE=wayland
MOTD_SHOWN=pam
HOME=/home/tester
LANG=en_US.UTF-8
_JAVA_AWT_WM_NONREPARENTING=1
XDG_CURRENT_DESKTOP=Hyprland
KEYTIMEOUT=1
WAYLAND_DISPLAY=wayland-1
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
QT_QPA_PLATFORM=wayland;xcb
ALACRITTY_SOCKET=/run/user/1000/Alacritty-wayland-1-18145.sock
XDG_SESSION_CLASS=user
TERM=alacritty
_CE_CONDA=
USER=tester
CONDA_SHLVL=0
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
HYPRLAND_INSTANCE_SIGNATURE=9a09eac79b85c846e3a865a9078a3f8ff65a9259_1724785204_53014640
DISPLAY=:1
SHLVL=4
MOZ_ENABLE_WAYLAND=1
XDG_VTNR=1
XDG_SESSION_ID=11
CONDA_PYTHON_EXE=/home/defcon/anaconda3/bin/python
XDG_RUNTIME_DIR=/run/user/1000
DEBUGINFOD_URLS=https://debuginfod.archlinux.org
XDG_DATA_DIRS=/home/defcon/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
PATH=/home/defcon/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin:/home/defcon/.spicetify:/home/defcon/.spicetify
ALACRITTY_LOG=/tmp/Alacritty-18145.log
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
MAIL=/var/spool/mail/defcon
ALACRITTY_WINDOW_ID=104802706699632
OLDPWD=/home/defcon
HYPRCURSOR_SIZE=28
_=/usr/bin/printenv
Offline
Check your hyprland config, otherwise
grep -r XDG /etc/{environment,profile}*
You don't want DBUS_SESSION_BUS_ADDRESS to be statically set anywhere either.
How do you start hyprland?
Does pactl work from an agetty login (in doubt post the multi-user.target, 2nd link below)
Offline
The only dbus stuff from my hyprland config is:
exec-once=dbus-update-activation-environment --all
exec-once=sleep 1 && dbus-activation-environment --systemd WAYLAND_DISPLAY_XDG_CURRENT_DESKTOP
hyprland starts from my login manager, i think. idk about agetty login, but pactl suddenly started working from my main user account again:
~ % pactl list sinks
Sink #177745
State: SUSPENDED
Name: auto_null
Description: Dummy Output
Driver: PipeWire
Sample Specification: float32le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 4294967295
Mute: no
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
Monitor Source: auto_null.monitor
Latency: 0 usec, configured 0 usec
Flags: DECIBEL_VOLUME LATENCY
Properties:
node.name = "auto_null"
device.description = "Dummy Output"
audio.rate = "48000"
audio.channels = "2"
audio.position = "FL,FR"
media.class = "Audio/Sink"
factory.name = "support.null-audio-sink"
node.virtual = "true"
monitor.channel-volumes = "true"
factory.id = "19"
clock.quantum-limit = "8192"
client.id = "33"
node.driver = "true"
port.group = "stream.0"
node.loop.name = "data-loop.0"
library.name = "audioconvert/libspa-audioconvert"
object.id = "130"
object.serial = "177745"
Formats:
pcm
Youtube, and spotify, will start playing for a little bit now, but ultimately stall out again. Still no sound on either. Checked for mute on alsamixer. Am not muted.
pactl list sink-inputs
gives nothing though.
Last edited by saltbringer (2024-08-29 13:29:35)
Offline
All of that looks very strange, during "playing a little" what do you get from
sudo fuser -v /dev/snd/*
pactl list cards
pactl list sinks
pactl list sink-inputs
the timing is important here, all of these should fire and capture the output during active playback.
Online
The only dbus stuff from my hyprland config is
… not what I asked. The problem isn't "dbus stuff" but - likely - hardcoded XDG paths and we need to know where this is coming from.
pactl suddenly started working from my main user account again:
What about the test user?
gives nothing though.
While playing anything?
but ultimately stall out again
Does pactl tehn still work?
Sanity check
hostnamectl
Offline
@V1del
sudo fuser -v /dev/snd/*
Gives this:
USER PID ACCESS COMMAND
/dev/snd/controlC0: defcon 2484 F.... pipewire
defcon 2485 F.... wireplumber
/dev/snd/pcmC0D3p: defcon 2485 F...m wireplumber
/dev/snd/pcmC0D4p: defcon 2485 F...m wireplumber
/dev/snd/pcmC0D5p: defcon 2485 F...m wireplumber
/dev/snd/seq: defcon 2484 F.... pipewire
pactl list cards
Gives nothing.
pactl list sinks
Gives this:
Sink #265400
State: SUSPENDED
Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.pro-output-31.99
Description: Alder Lake PCH-P High Definition Audio Controller Pro 31
Driver: PipeWire
Sample Specification: s32le 2ch 48000Hz
Channel Map: aux0,aux1
Owner Module: 4294967295
Mute: no
Volume: aux0: 65536 / 100% / 0.00 dB, aux1: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.pro-output-31.99.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY
Properties:
alsa.card = "0"
alsa.card_name = "sof-hda-dsp"
alsa.class = "generic"
alsa.components = "HDA:8086281c,80860101,00100000 HDA:10ec0295,10280b3b,00100002 cfg-dmics:2"
alsa.device = "31"
alsa.driver_name = "snd_soc_skl_hda_dsp"
alsa.id = "sofhdadsp"
alsa.long_card_name = "DellInc.-Inspiron165620--07T4T6"
alsa.mixer_name = "Realtek ALC3254"
alsa.name = ""
alsa.resolution_bits = "32"
alsa.subclass = "generic-mix"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.sync.id = "00000000:00000000:00000000:00000000"
api.alsa.card.longname = "DellInc.-Inspiron165620--07T4T6"
api.alsa.card.name = "sof-hda-dsp"
api.alsa.path = "hw:0,31"
api.alsa.pcm.card = "0"
api.alsa.pcm.stream = "playback"
audio.channels = "2"
audio.position = "AUX0,AUX1"
card.profile.device = "4"
clock.name = "api.alsa.0"
device.api = "alsa"
device.class = "sound"
device.id = "150"
device.profile.description = "Pro 31"
device.profile.name = "pro-output-31"
device.profile.pro = "true"
device.routes = "0"
factory.name = "api.alsa.pcm.sink"
media.class = "Audio/Sink"
device.description = "Alder Lake PCH-P High Definition Audio Controller Pro 31"
node.name = "alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.pro-output-31.99"
node.nick = "Pro 31"
node.pause-on-idle = "false"
object.path = "alsa:acp:sofhdadsp:4:playback"
port.group = "playback"
priority.driver = "748"
priority.session = "748"
factory.id = "19"
clock.quantum-limit = "8192"
client.id = "83"
node.driver = "true"
node.loop.name = "data-loop.0"
library.name = "audioconvert/libspa-audioconvert"
object.id = "104"
object.serial = "265400"
Formats:
pcm
pactl list sink-inputs
Gives nothing.
Offline
The only dbus stuff from my hyprland config is
… not what I asked. The problem isn't "dbus stuff" but - likely - hardcoded XDG paths and we need to know where this is coming from.
There is no dbus anything in my hyprland.conf other than what I listed.
pactl suddenly started working from my main user account again:
What about the test user?
Test user gives this:
[tester@ArchRonin defcon]$ pactl sink
No valid command specified.
[tester@ArchRonin defcon]$ pactl list sinks
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 1001), but by uid 1000! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
gives nothing though.
While playing anything?
Test user gives the same error for pactl list sinks when something is playing. Youtube stopped, but I checked with spotify in thebackground.
but ultimately stall out again
Does pactl tehn still work?
Nope.
Sanity check
hostnamectl
Static hostname: ArchRonin
Icon name: computer-laptop
Chassis: laptop ?
Machine ID: 78fa92b7cbb947ee90b042cf288f83eb
Boot ID: 885a988b67ab47fdbc857fe457ef57f4
Operating System: Arch Linux
Kernel: Linux 6.10.6-arch1-1
Architecture: x86-64
Hardware Vendor: Dell Inc.
Hardware Model: Inspiron 16 5620
Firmware Version: 1.6.0
Firmware Date: Mon 2022-07-11
Firmware Age: 2y 1month 2w 5d
Offline
There is no dbus anything in my hyprland.conf other than what I listed.
I guess one of us speaks chinese: I don't care about "dbus anything" in your hyprland config. Post it.
And have you meanwhile tried to play sound from the multi-user.target? No hyprland nor any other broken GUI session?
mpv thunderstruck.mp3
Offline
hyprland.conf
# #######################################################################################
# AUTOGENERATED HYPR CONFIG.
# PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT,
# OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
# #######################################################################################
# This is an example Hyprland config file.
# Refer to the wiki for more information.
# https://wiki.hyprland.org/Configuring/Configuring-Hyprland/
# Please note not all available settings / options are set here.
# For a full list, see the wiki
# You can split this configuration into multiple files
# Create your files separately and then link them to this file like this:
# source = ~/.config/hypr/myColors.conf
################
### MONITORS ###
################
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=eDP-1,1920x1200@60,0x0,1
###################
### MY PROGRAMS ###
###################
# See https://wiki.hyprland.org/Configuring/Keywords/
# Set programs that you use
$terminal=alacritty
$fileManager=dolphin
$menu=wofi --show drun
$browser=firefox
#################
### AUTOSTART ###
#################
# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:
# exec-once = $terminal
exec-once = nm-applet &
# exec-once = waybar & hyprpaper & firefox
exec-once=waybar & hyprpaper
#exec-once=waybar & waypaper
exec-once=pipewire
exec-once=wireplumber
exec-once=pipewire-pulse
exec-once=clipse
exec-once=swaync
exec-once=hypridle
exec-once=dbus-update-activation-environment --all
exec-once=sleep 1 && dbus-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once=/usr/lib/polkit-kde-authentication-agent-1
exec-once=xss-lock hyprlock
#############################
### ENVIRONMENT VARIABLES ###
#############################
# See https://wiki.hyprland.org/Configuring/Environment-variables/
env = XCURSOR_SIZE,28
env = HYPRCURSOR_SIZE,28
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,wayland
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_QPA_PLATFORMTHEME,qt6ct
env = HYPRLAND_TRACE=1
#####################
### LOOK AND FEEL ###
#####################
# Refer to https://wiki.hyprland.org/Configuring/Variables/
# https://wiki.hyprland.org/Configuring/Variables/#general
general {
gaps_in = 3
gaps_out = 10
border_size = 2
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
#col.active_border = rgba(bb9af7ee) (light purple)
col.active_border = rgba(0dc9eadd) # (cyan)
col.inactive_border = $text
#col.inactive_border = rgba(595959aa)
# Set to true enable resizing windows by clicking and dragging on borders and gaps
resize_on_border = true
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false
layout = dwindle
}
# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
rounding = 10
# Change transparency of focused and unfocused windows
active_opacity = 0.85
inactive_opacity = 0.5555550
drop_shadow = true
shadow_range = 3
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur {
enabled = true
size = 4
passes = 4
new_optimizations = true
noise = 0
brightness = .8
vibrancy = 0.1696
ignore_opacity = true
}
}
# https://wiki.hyprland.org/Configuring/Variables/#animations
animations {
enabled = true
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
}
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
dwindle {
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true # You probably want this
}
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
master {
new_status = master
orientation = right
mfact = 0.50
}
# https://wiki.hyprland.org/Configuring/Variables/#misc
misc {
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
}
#############
### INPUT ###
#############
# https://wiki.hyprland.org/Configuring/Variables/#input
input {
kb_layout = us
kb_variant =
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = true
}
}
# https://wiki.hyprland.org/Configuring/Variables/#gestures
gestures {
workspace_swipe = false
}
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
device {
name = epic-mouse-v1
sensitivity = -0.7
}
####################
### KEYBINDINGSS ###
####################
# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Return, exec, $terminal
bind = $mainMod, Q, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, E, exec, $fileManager
bind = $mainMod SHIFT, space, togglefloating,
bind = $mainMod, Space, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod SHIFT, Return, exec, $browser
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10
# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Move windows
bind = $mainMod SHIFT, left, movewindow, l
bind=$mainMod SHIFT, right, movewindow, r #spaces between the "=" dont matter
bind=$mainMod SHIFT, down, movewindow, d
bind=$mainMod SHIFT, up, movewindow, u
#Resize windows. The "bindm" needs us to use the touchpad, but is pretty powerful. We hold down super+r and move cursor around
#bindm=SUPER, R, resizewindow
#Submaps; window resizing. Tap ALT-R to activate, arrow buttons to resize. Escape to quitr
#switches to a submap called resize
#bind=ALT,R,submap,resize
bind=$mainMod,R,submap,resize
#starts submp called resize
submap=resize
#sets repeatable binds for resizing window
binde=,right,resizeactive,15 0
binde=,left,resizeactive,-15 0
binde=,up,resizeactive,0 -15
binde=,down,resizeactive,0 15
#exit submap to return to global submap
bind=,escape,submap,reset
submap=reset
##############################
### WINDOWS AND WORKSPACES ###
##############################
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.
windowrule = float, waypaper
windowrule = float, center, firefox,"Save As"
windowrule = float, vlc
windowrule = float, dolphin
#make all new windows floating. kinda cool, but too much
#windowrulev2 = float, class: .*
#windowrule=opacity 0.1, override 0.3 override, peaclock
Re: playing audio from multi-user.target: Idk how to do that. Can you give an example?
Offline
You boot the multiplayer target (2nd link below) and play some music,
mpv -ao pipewire thunderstruck.mp3
mpv -ao pulse thunderstruck.mp3
mpv -ao alsa thunderstruck.mp3
exec-once=pipewire
exec-once=wireplumber
exec-once=pipewire-pulse
…
exec-once=dbus-update-activation-environment --all
exec-once=sleep 1 && dbus-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
Comment all of that.
Offline