Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpvremote fails to start when starting mpv as a systemd service #20

Open
marcopus opened this issue Aug 23, 2023 · 0 comments
Open

mpvremote fails to start when starting mpv as a systemd service #20

marcopus opened this issue Aug 23, 2023 · 0 comments

Comments

@marcopus
Copy link
Contributor

marcopus commented Aug 23, 2023

I was trying to setup a systemd service to autostart mpv on boot. However mpvremote fails as follows:

systemctl status mpv-start
● mpv-start.service - Start mpv
     Loaded: loaded (/etc/systemd/system/mpv-start.service; enabled; preset: disabled)
     Active: active (running) since Wed 2023-08-23 23:06:27 CEST; 7s ago
   Main PID: 28301 (mpv)
      Tasks: 9 (limit: 9365)
     Memory: 23.7M
        CPU: 155ms
     CGroup: /system.slice/mpv-start.service
             └─28301 /usr/bin/mpv --vo=gpu --gpu-context=drm --drm-connector=HDMI-A-1 --idle

Aug 23 23:06:27 n411z systemd[1]: mpv-start.service: Scheduled restart job, restart counter is at 1.
Aug 23 23:06:27 n411z systemd[1]: Started Start mpv.
Aug 23 23:06:27 n411z mpv[28301]: [mpvremote] true
Aug 23 23:06:27 n411z mpv[28301]: [mpvremote] {"error_string":"init","killed_by_us":false,"status":-3,"stderr":""}
Aug 23 23:06:27 n411z mpv[28301]: [mpvremote] ""

The same command starts mpv and mpvremote successfully when executed on the terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant