mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 17:46:14 +01:00
Add s0ix-test
script
Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
parent
828a7b9bab
commit
4c4ff44081
21
scripts/s0ix-test/s0ix-test.sh
Normal file
21
scripts/s0ix-test/s0ix-test.sh
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env bash
|
||||
counter=0
|
||||
|
||||
until [ $counter -gt 32 ]
|
||||
do
|
||||
echo $counter > /sys/kernel/debug/pmc_core/ltr_ignore
|
||||
echo "LTR ignore for" $counter
|
||||
|
||||
rtcwake -m freeze -s 10
|
||||
|
||||
residency=$(cat /sys/devices/system/cpu/cpuidle/low_power_idle_cpu_residency_us)
|
||||
echo "residency is" $residency
|
||||
|
||||
if [ $residency -gt 0 ]; then
|
||||
echo "Residency is non zero!"
|
||||
break
|
||||
fi
|
||||
|
||||
((counter++))
|
||||
sleep 2
|
||||
done
|
Loading…
Reference in a new issue