06 March 2014

Screen blanking in Qi-Hardware Ben NanoNote

When using Qi-Hardware Ben NanoNote gadget as monitoring other machines (like a server) via usb-net (is pretty cool as small monitor display) but by default OpenWRT firmware blanks the screen after a while.

I wrote a small shell script for avoid this:

connected=`cat $infodir/online`
if [ "0" = $connected ] then
    setterm -blank 1 > /dev/tty0 
    echo "`date` - Battery, enabled screen blanking"
    setterm -blank 0 > /dev/tty0
    echo "`date` - Connected, disabled screen blanking"

This cannot be used in a crontab (the original idea) but is useful, enjoy :)

No comments:

Post a Comment

Disclaimer: In no event shall the blog owner, be liable for any damages, including without limitation, special, indirect or consequential damages, or any damages, whatsoever resulting from access or use, or inability to access or use this Website or arising out of any materials, information, qualifications or recommendations on this Website.