-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck-psr.sh
More file actions
executable file
·24 lines (21 loc) · 829 Bytes
/
Copy pathcheck-psr.sh
File metadata and controls
executable file
·24 lines (21 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
# check-psr.sh — is the Meteor Lake PSR suspend fix active?
# Verifies the kernel cmdline, live PSR state, and recent suspend cycles.
set -u
echo "== kernel cmdline =="
grep -o 'i915.enable_psr=[0-9]' /proc/cmdline || echo " i915.enable_psr NOT set (default) — add i915.enable_psr=0"
echo "== live PSR state =="
found=0
for s in /sys/kernel/debug/dri/*/i915_edp_psr_status; do
[ -r "$s" ] || continue
found=1
echo " $s:"
sudo cat "$s" | grep -iE 'PSR mode|Sink support' | sed 's/^/ /'
done
[ "$found" = 1 ] || echo " no i915_edp_psr_status (need root / debugfs mounted)"
echo "== suspend cycles this boot =="
if journalctl -b | grep -qE 'PM: suspend entry'; then
journalctl -b | grep -E 'PM: suspend (entry|exit)' | tail -4 | sed 's/^/ /'
else
echo " none this boot"
fi