From 969c377ac6c01e8e3874a0b4822dc42a001c14cb Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Mon, 2 Dec 2024 17:08:53 -0500 Subject: configure mpv for hw accel --- scripts/hostclass/desktop | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/hostclass/desktop b/scripts/hostclass/desktop index 381aeef..e6ddd86 100644 --- a/scripts/hostclass/desktop +++ b/scripts/hostclass/desktop @@ -174,6 +174,7 @@ case $graphics_type in set_loader_conf \ compat.linuxkpi.i915_enable_fbc=1 \ compat.linuxkpi.i915_fastboot=1 + : ${mpv_hwdec:='vaapi-copy'} ;; esac @@ -181,6 +182,9 @@ esac # acceleration after resuming from sleep. set_sysctl kern.vt.suspendswitch="${vt_suspendswitch:-1}" +# Generate mpv configuration. +install_template -m 0644 /usr/local/etc/mpv/mpv.conf + # Start login manager. case $desktop_type in kde) -- cgit v1.2.3