diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-12-02 17:08:53 -0500 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-12-02 17:08:53 -0500 |
commit | 969c377ac6c01e8e3874a0b4822dc42a001c14cb (patch) | |
tree | a08e51065ec0d6a866e50e2e932d611ecd7220fe /scripts | |
parent | ecf6c2147d8fed19aa616f0793252ae7f53c5010 (diff) | |
download | infrastructure-969c377ac6c01e8e3874a0b4822dc42a001c14cb.tar.gz |
configure mpv for hw accel
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/hostclass/desktop | 4 |
1 files changed, 4 insertions, 0 deletions
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) |