You are not logged in.
Pages: 1
I'd like to play a sound when my hyprland (uwsm) session starts, but if I add for example exec-once = paplay ~/Downloads/my_sounds.oga no sound.
if I run the same command in a shell, the sound plays (sometimes after 2 tries).
is it possible that wireplumber takes a long time to start up? if so, is it possible for it to start up right away to play the sound?
I've also noticed that when I pause a video in mpv, it takes ~ 3 seconds for the sound to resume.
wireplumber pipewire and pipewire-pulse start via sockets (I tried to start these services as a user ![]()
Last edited by Manix (2025-05-11 15:11:55)
I don't love rosbeef
Offline
exec-once = mpv -ao alsa ~/Downloads/my_sounds.ogaThough
is it possible that wireplumber takes a long time to start up?
when I pause a video in mpv, it takes ~ 3 seconds for the sound to resume
sounds more like some powersaving (unless you play sound via bluetooth?)
Offline
mpv -ao alsa ~/Downloads/song.ogadoesn't work in a shell (not the packages I guess)
mpv -ao pulse ~Downloads.song.ogaworks in shell but not at startup with exec-once.
sounds more like some powersaving (unless you play sound via bluetooth?)
I have sound on an HDMI TV.
https://forum.endeavouros.com/t/pipewir … nk/58125/7
I test this (link above) in /etc/wireplumber/wireplumber.conf and for the moment I no longer have a “latency” when resuming reading via mpv. still at startup though
if it can be useful :
wpctl status
PipeWire 'pipewire-0' [1.4.2, nico@archnico, cookie:2612614496]
└─ Clients:
32. waybar [1.4.2, nico@archnico, pid:1257]
33. WirePlumber [1.4.2, nico@archnico, pid:1511]
41. WirePlumber [export] [1.4.2, nico@archnico, pid:1511]
55. pipewire [1.4.2, nico@archnico, pid:4680]
56. wpctl [1.4.2, nico@archnico, pid:5428]
Audio
├─ Devices:
│ 42. Navi 21/23 HDMI/DP Audio Controller [alsa]
│ 43. Audio interne [alsa]
│
├─ Sinks:
│ * 50. Navi 21/23 HDMI/DP Audio Controller Digital Stereo (HDMI 2) [vol: 1.00]
│
├─ Sources:
│
├─ Filters:
│
└─ Streams:
Video
├─ Devices:
│
├─ Sinks:
│
├─ Sources:
│
├─ Filters:
│
└─ Streams:
Settings
└─ Default Configured Devices:❯ wpctl inspect 42
id 42, type PipeWire:Interface:Device
alsa.card = "1"
alsa.card_name = "HDA ATI HDMI"
alsa.components = "HDA:1002aa01,00aa0100,00100800"
alsa.driver_name = "snd_hda_intel"
alsa.id = "HDMI"
alsa.long_card_name = "HDA ATI HDMI at 0x84b20000 irq 187"
alsa.mixer_name = "ATI R6xx HDMI"
api.acp.auto-port = "false"
api.acp.auto-profile = "false"
api.alsa.card = "1"
api.alsa.card.longname = "HDA ATI HDMI at 0x84b20000 irq 187"
api.alsa.card.name = "HDA ATI HDMI"
api.alsa.path = "hw:1"
api.alsa.split-enable = "true"
api.alsa.use-acp = "true"
api.dbus.ReserveDevice1 = "Audio1"
api.dbus.ReserveDevice1.Priority = "-20"
* client.id = "41"
* device.api = "alsa"
device.bus = "pci"
device.bus-path = "pci-0000:03:00.1"
* device.description = "Navi 21/23 HDMI/DP Audio Controller"
device.enum.api = "udev"
device.icon-name = "audio-card-analog-pci"
* device.name = "alsa_card.pci-0000_03_00.1"
* device.nick = "HDA ATI HDMI"
device.plugged.usec = "5357261"
device.product.id = "0xab28"
device.product.name = "Navi 21/23 HDMI/DP Audio Controller"
device.string = "1"
device.subsystem = "sound"
device.sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/0000:03:00.1/sound/card1"
device.vendor.id = "0x1002"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
* factory.id = "15"
* media.class = "Audio/Device"
object.path = "alsa:acp:HDMI"
* object.serial = "42"
spa.object.id = "4"wpctl inspect 50
id 50, type PipeWire:Interface:Node
alsa.card = "1"
alsa.card_name = "HDA ATI HDMI"
alsa.class = "generic"
alsa.components = "HDA:1002aa01,00aa0100,00100800"
alsa.device = "7"
alsa.driver_name = "snd_hda_intel"
alsa.id = "HDMI 1"
alsa.long_card_name = "HDA ATI HDMI at 0x84b20000 irq 187"
alsa.mixer_name = "ATI R6xx HDMI"
alsa.name = "SONY TV *00"
alsa.resolution_bits = "16"
alsa.subclass = "generic-mix"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.sync.id = "00000000:00000000:00000000:00000000"
api.alsa.card.longname = "HDA ATI HDMI at 0x84b20000 irq 187"
api.alsa.card.name = "HDA ATI HDMI"
api.alsa.headroom = "0"
api.alsa.path = "hdmi:1,1"
api.alsa.pcm.card = "1"
api.alsa.pcm.stream = "playback"
api.alsa.period-num = "32"
api.alsa.period-size = "1024"
audio.channels = "2"
audio.position = "FL,FR"
card.profile.device = "8"
* client.id = "41"
clock.quantum-limit = "8192"
device.api = "alsa"
device.class = "sound"
device.icon-name = "audio-card-analog"
* device.id = "42"
device.profile.description = "Digital Stereo (HDMI 2)"
device.profile.name = "hdmi-stereo-extra1"
device.routes = "1"
* factory.id = "19"
factory.name = "api.alsa.pcm.sink"
iec958.codecs = "["PCM","DTS","AC3","EAC3"]"
library.name = "audioconvert/libspa-audioconvert"
* media.class = "Audio/Sink"
* node.description = "Navi 21/23 HDMI/DP Audio Controller Digital Stereo (HDMI 2)"
node.driver = "true"
node.loop.name = "data-loop.0"
node.max-latency = "16384/48000"
* node.name = "alsa_output.pci-0000_03_00.1.hdmi-stereo-extra1"
* node.nick = "SONY TV *00"
node.pause-on-idle = "false"
* object.path = "alsa:acp:HDMI:8:playback"
* object.serial = "50"
port.group = "playback"
* priority.driver = "632"
* priority.session = "632"I don't love rosbeef
Offline
I have sound on an HDMI TV.
Can you attach speakers or headphones?
Fwwi, "mpv -ao alsa" not "working" might be either because the device is occupied by pipewire already or because you're using the "wrong" alsa device (ie. it works, but plays on speakers etc - not the TV which is a different sound device [Edit: the different device being the HDMI output on the GPU, not your TV
])
Last edited by seth (2025-05-10 20:11:11)
Offline
Can you attach speakers or headphones?
works as expected with headphones! ![]()
Fwwi, "mpv -ao alsa" not "working" might be either because the device is occupied by pipewire already or because you're using the "wrong" alsa device (ie. it works, but plays on speakers etc - not the TV which is a different sound device [Edit: the different device being the HDMI output on the GPU, not your TV wink])
if i've understood correctly, you're assuming that it plays sound on another hdmi port? if that's the case, i don't have anything else connected to my computer, apart from my 2 keyboard/mouse receivers.
in pavucontrol I've turned off “internal audio” I don't use it.
I don't love rosbeef
Offline
you're assuming that it plays sound on another hdmi port?
No, the soundcard where you're plugging the HPs and the GPUs HDMI output are two different soundcards (of sorts)
Try "mpv -ao alsa file.mp3" w/ the headphones.
Is the TV active while you're booting or only enabled by hyprland ?
You could try to play something earlier in the boot process (can be the sound of silence, https://archive.org/details/audio-silen … ter-second )
Offline
Try "mpv -ao alsa file.mp3" w/ the headphones.
does not work ...
Is the TV active while you're booting or only enabled by hyprland ?
yes, the TV is switched on and operational. ![]()
You could try to play something earlier in the boot process (can be the sound of silence, https://archive.org/details/audio-silen … ter-second )
I tested this:
exec-once = paplay ~/Downloads/silent_1-second.mp3 && paplay Downloads/service-login.ogaand :
exec-once = paplay ~/Downloads/silent_1-second.mp3
exec-once = paplay Downloads/service-login.ogano sound. with mpv too, no sound. very strange that it works with the headset and not directly on the TV.
EDIT : journalctl https://0x0.st/8yPS.txt
Last edited by Manix (2025-05-11 08:04:30)
I don't love rosbeef
Offline
I tested this:
"Way" earlier - with some systemd service wanted by the multi-user.target or so.
Apparently (as the HPs work) the latency is w/ the Tv.
Offline
I'm going to do without the sound on startup, but I've resolved the sound in mpv by pausing and then resuming.
thanks seth
I don't love rosbeef
Offline
Pages: 1