From 23f56b50b1942d1f99b44b12d726234f3b6299d3 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Mon, 13 Mar 2023 03:28:03 +0100 Subject: [PATCH] Add 98-preventflippingbug.rules This mitigates the "flipping frames" bug. --- 98-preventflippingbug.rules | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 98-preventflippingbug.rules diff --git a/98-preventflippingbug.rules b/98-preventflippingbug.rules new file mode 100644 index 0000000..fe3d53d --- /dev/null +++ b/98-preventflippingbug.rules @@ -0,0 +1,9 @@ +# https://forum.pine64.org/showthread.php?tid=17771&pid=115220 +# udev rule. this prevent flipping frames bug +# example file location /lib/udev/rules.d/98-preventflippingbug.rules +# powersaving part +KERNEL=="1c40000.gpu", SUBSYSTEM=="platform", DRIVER=="lima", ATTR{power/autosuspend_delay_ms}="-1" +KERNEL=="1c40000.gpu", SUBSYSTEM=="platform", DRIVER=="lima", ATTR{power/control}="on" +# frequency part, may not be needed +KERNEL=="1c40000.gpu", SUBSYSTEM=="devfreq", ATTR{min_freq}="432000000" +KERNEL=="1c40000.gpu", SUBSYSTEM=="devfreq", ATTR{max_freq}="432000000"