Skip to content

Instantly share code, notes, and snippets.

@ogabriel
Last active August 11, 2024 14:08
Show Gist options
  • Save ogabriel/790aa3c385924695cbb4d93451048ada to your computer and use it in GitHub Desktop.
Save ogabriel/790aa3c385924695cbb4d93451048ada to your computer and use it in GitHub Desktop.
ACTION=="add", SUBSYSTEM=="module", KERNEL=="i915", RUN+="/usr/local/bin/intel-wayland-fix-full-color"
#!/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