mirror of
https://github.com/ublue-os/bazzite.git
synced 2024-12-29 12:22:20 +00:00
fix: Better handle drm path, fixes issues with DisplayLink
This commit is contained in:
parent
4c8034f5a6
commit
79756279aa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user