mpv unit: wait for udev/DRM devices before starting
Cold-boot race could leave mpv running but not rendering to HDMI (console stays visible) even though the same command works when run manually later. Order the unit after systemd-udev-settle so /dev/dri/* exists first. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ed9da9a065
commit
db06ae252d
1 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,11 @@
|
|||
[Unit]
|
||||
Description=mpv persistent player (DRM/HDMI output, JSON IPC)
|
||||
After=local-fs.target
|
||||
# Wait until udev has settled so the DRM/HDMI devices (/dev/dri/*) exist
|
||||
# before mpv tries to grab the display. Without this, a cold-boot race can
|
||||
# leave mpv running but never rendering to HDMI (you see the console instead),
|
||||
# even though the exact same command works when run by hand later.
|
||||
After=local-fs.target systemd-udev-settle.service
|
||||
Wants=systemd-udev-settle.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
|
|
|||
Loading…
Reference in a new issue