Thread: Kobo Start Menu
View Single Post
Old 02-18-2014, 08:59 AM   #43
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Controlling the front light

Quote:
Originally Posted by trekk View Post
There is some other minor annoyance. I don't know what is responsible for that, but when you exit koreader with the front light on, the light stays on and you can't turn it off with the light button.
When you exit vlasovsoftlauncher, the light is automatically turned off. I'd prefer that
Quote:
Originally Posted by tshering View Post
Light control, this is something I didn't give much attention until now. Right now that is beyond me, but maybe we can try to address this problem at a later point.
Fortunately, KevinShort wrote a "frontlight" program. Put this program into .kobo/kbmenu/tools, and put the following script (frontlight.msh) into .kobo/kbmenu/scripts:


Code:
#!/bin/sh

frontlightprg=/mnt/onboard/.kobo/kbmenu/tools/frontlight
kbmenudir=/mnt/onboard/.kobo/kbmenu

lightlevels="0 1 2 3 4 5 6 7 8 9 10 11 12"
moptions="$lightlevels return:arrowup.png return_home:arrowup.png"
while [ "$selection" != "EXIT" ]; do
  selection=$(sh $kbmenudir/kobomenu.sh $moptions)
  case $selection in
    return)  selection="EXIT";;
    return_home)
      selection="EXIT"
      echo "return_home"
      ;;
    *)
     $frontlightprg "$selection"
      ;;
  esac
done
If you already have the program at another folder, edit the line frontlightprg=/mnt/onboard/.kobo/kbmenu/tools/frontlight accordingly.
I don't know how many light levels there actually are. I took them to go up to 12. If you have more information, edit the line lightlevels="0 1 2 3 4 5 6 7 8 9 10 11 12" accordingly.
tshering is offline   Reply With Quote