Last active
August 11, 2024 14:08
-
-
Save ogabriel/790aa3c385924695cbb4d93451048ada to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACTION=="add", SUBSYSTEM=="module", KERNEL=="i915", RUN+="/usr/local/bin/intel-wayland-fix-full-color" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
readarray -t proptest_result <<<"$(/usr/bin/proptest -M i915 -D /dev/dri/card0 | grep -E 'Broadcast|Connector')" | |
for ((i = 0; i < ${#proptest_result[*]}; i += 2)); do | |
connector=$(echo ${proptest_result[i]} | awk '{print $2}') | |
connector_id=$(echo ${proptest_result[i + 1]} | awk '{print $1}') | |
/usr/bin/proptest -M i915 $connector connector $connector_id 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment