View Single Post
Old 04-12-2015, 05:29 PM   #167
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
Power-off screen

The content of the power-off screen is defined by a html file. The default power-off screen html is .adds\kbmenu\txt\poweroff_info.html (note: since KSM 08 the location is .adds\kbmenu_user\txt\poweroff_info.html). You can modify this file in accordance with your needs. Only a limited subset of html tags and css properties is supported, cf. http://qt-project.org/doc/qt-4.8/ric...ml-subset.html

Random Power-off Screen

In order to show randomly html files at power off, you can use the "display random html file" function. You can find an example at .adds\kbmenu\mynotes\pofftest (since KSM 08 the location is .adds\kbmenu_user\mynotes\pofftest).

To activate it
  • select (KSM home) "configure"
  • select "[general]"
  • select "PoweroffRandomdir=$ksmroot/mynotes/pofftest (you will possibly not see the whole line, but there is only one value that starts with $ksmroot) //note: since KSM 08, the directory is $ksmuser/mynotes/pofftest
  • select "return"
  • select "save and exit"

If you want to play around without powering off the reader each time, you can
  • select (KSM home) "scripts" > "tests" > "poweroff test.sh"

This will display the power-off screen without powering off. Close the screen by tapping in the middle of the screen, then select "close".

Make the KSM power off screen display also if the device is being powered off directly from within nickel
  • select (KSM home) "tools" > "activate" > "x install poweroff.sh"

The KSM power-off screen will be displayed also if you power off from nickel (vlasovsoft launcher's power-off screen however is not affected by this). This activation will last until the next firmware update. Be aware that KSM does not yet provide an option to deactivate this feature.

Last edited by tshering; 07-02-2017 at 12:35 PM.
tshering is offline   Reply With Quote