From 79756279aaa7d709d73b888ed361e5a4f20ddd9a Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Sat, 23 Dec 2023 20:17:12 -0800 Subject: [PATCH] fix: Better handle drm path, fixes issues with DisplayLink --- spec_files/jupiter-hw-support/priv-write.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec_files/jupiter-hw-support/priv-write.patch b/spec_files/jupiter-hw-support/priv-write.patch index 35f5473c..284377ca 100644 --- a/spec_files/jupiter-hw-support/priv-write.patch +++ b/spec_files/jupiter-hw-support/priv-write.patch @@ -50,18 +50,18 @@ index 296996e..ae0ae3e 100755 if [[ "$WRITE_PATH" == /sys/class/drm/card*/device/power_dpm_force_performance_level ]]; then - CommitWrite -+ for i in $(ls /sys/class/drm/): ++ for i in $(ls /sys/class/drm/card*/device/power_dpm_force_performance_level) + do -+ WRITE_PATH="/sys/class/drm/$i/device/power_dpm_force_performance_level" ++ WRITE_PATH="$i" + CommitWrite + done fi if [[ "$WRITE_PATH" == /sys/class/drm/card*/device/pp_od_clk_voltage ]]; then - CommitWrite -+ for i in $(ls /sys/class/drm/): ++ for i in $(ls /sys/class/drm/card*/device/pp_od_clk_voltage) + do -+ WRITE_PATH="/sys/class/drm/$i/device/pp_od_clk_voltage" ++ WRITE_PATH="$i" + CommitWrite + done fi