View Single Post
Old 11-22-2012, 06:34 AM   #161
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 728
Karma: 2314258
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by khseal View Post
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
eureka is offline   Reply With Quote