View Single Post
Old 12-28-2012, 12:38 PM   #11
xor_
Zealot
xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.
 
Posts: 101
Karma: 470830
Join Date: Nov 2012
Location: Berlin
Device: Kobo Libra 2
Quote:
Originally Posted by Rainer Zenz View Post
Hm. I put "frontlight" into the ".kobo" folder and the code from #6 into "koboplugins.ini"? Is that correct?
No, the code in #6 assumes that you create a subdirectory named frontlight in the root of the mount point, and copy it in there.

#6 is also only an example of how to turn the light off, i.e. set it to 0. You might want a corresponding line to turn it on in koboplugins.ini. In this case to 3, substitute your own desired light level.

Something like:
Code:
light3=Plugin::executeSystemCmd("/mnt/onboard/frontlight/frontlight 3")

Edit: Or do as Kev said for the path.

Last edited by xor_; 12-28-2012 at 12:40 PM.
xor_ is offline   Reply With Quote