View Single Post
Old 09-30-2016, 06:38 PM   #256
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
Quote:
Originally Posted by Alan_S View Post
How should I run this script (let's call it settime)?

./settime 20:44:21

This from terminal? Where should I put script in that case (what directory)?
I put this and another script into a package. You can install it by copying the contained KoboRoot.tgz to .kobo. Then select "handle update > install update."

Now you have to options:
1) manual input
  • in KBTerminal write "settime.sh 20:45:00" (without the quotes) and press enter

2) with ntpd
  • enable wifi
  • select (in the same wifi menu) "x ntpd set time.sh"
  • wait until you see a response (might need 20 secs or so)

Edit: In version 02, I improved the script for option 2. Asking the time server is now about 8 seconds quicker than in the old script. The script has still to wait 10 seconds before the hardware clock can be synchronised. Usually one would not synchronise the hardware clock at this point, but at the time of powering off. Maybe we should consider doing this.
Attached Files
File Type: zip settime_02.zip (693 Bytes, 273 views)

Last edited by tshering; 10-01-2016 at 04:04 AM.
tshering is offline   Reply With Quote