Quote:
Originally Posted by khseal
Supply current 40-50ma. When rmmod ehci-hcd supply current 0-1ma.
How to run rmmod ehci-hcd when the screensaver? And when you turn off the screensaver run moprobe ehci-hcd?
|
This command will block script until screensaver will be enabled:
Code:
lipc-wait-event com.lab126.powerd goingToScreenSaver
This command will block script until screensaver will be disabled:
Code:
lipc-wait-event com.lab126.powerd outOfScreenSaver
Here is a script (replace
echo with
modprobe/
rmmod):
Code:
lipc-wait-event -m com.lab126.powerd goingToScreenSaver,outOfScreenSaver | while read event wtf_num; do
if [ "x$event" = "xgoingToScreenSaver" ]; then
echo "screensaver enabled"
else if [ "x$event" = "xoutOfScreenSaver" ]; then
echo "screensaver disabled"
fi; fi
done