View Single Post
Old 07-21-2023, 11:23 AM   #24
Kindleschokolade
Connoisseur
Kindleschokolade began at the beginning.
 
Posts: 59
Karma: 14
Join Date: Dec 2021
Device: kindle PW3
Ah
Well it was worth doing some shell script syntax recap.

here is the shorter one using the event:
Code:
#!/bin/bash
echo "com.lab126.powerd" |lipc-wait-event -m -l "readyToSuspend" | while read event; do
	g=`echo $event*| grep "readyToSuspend"`
	if [ ! -z "$g" ]
	then
		lipc-set-prop com.lab126.powerd deferSuspend 3000000
	fi
	done
Feel free to make optimisations
Kindleschokolade is offline   Reply With Quote