![]() |
#1 |
0000000000101010
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,871
Karma: 12981955
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
|
Solved - PocketBook reboot command?
Non-root and firmware above v5
This simple command seems to work: Code:
iv2sh reboot Code:
/mnt/secure/su reboot Non-root and firmware below v5 (and older devices?) A reboot script that piggybacks off Koreader's restart option: Code:
#!/bin/sh koreader=/mnt/ext1/applications/koreader picview=/ebrmain/cramfs/bin/picviewer.app bootlogo=/ebrmain/logo/bootlogo/PocketBook.bmp cd $koreader # create reboot.lua within applications/koreader dir if [ ! -e "reboot.lua" ]; then echo "#!./luajit" >> reboot.lua echo "require(\"setupkoenv\")" >> reboot.lua echo "local DataStorage = require(\"datastorage\")" >> reboot.lua echo "G_reader_settings = require(\"luasettings\"):open(" >> reboot.lua echo "DataStorage:getDataDir()..\"/settings.reader.lua\")" >> reboot.lua echo "local Device = require(\"device\")" >> reboot.lua echo "Device:reboot()" >> reboot.lua fi # opens the default pocketbook logo to act as restart splash screen $picview "$bootlogo" & ./reboot.lua Last edited by neil_swann80; 04-17-2023 at 08:27 AM. |
![]() |
![]() |
![]() |
#3 | |
0000000000101010
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,871
Karma: 12981955
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
|
Quote:
If you have a rooted device this may work: Code:
/mnt/secure/su reboot Last edited by neil_swann80; 04-15-2023 at 02:22 AM. |
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,038
Karma: 18765433
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
If you look in the PocketBook::reboot() function, they make a call into the Inkview library to initiate the reboot. You could write your own trivial Inkview application that just makes the same call and run that. Whatever you do, you will probably need to go through the Inkview interface because you don't have the root privileges required to change the run level from the command line.
In case you don't have the code, here is the call: inkview.iv_ipc_request(C.MSG_REBOOT, 1, nil, 0, 0) That is written in LUA, in C it would probably be: iv_ipc_request(MSG_REBOOT, 1, NULL, 0, 0); Last edited by rkomar; 04-13-2023 at 01:21 PM. |
![]() |
![]() |
![]() |
#5 |
0000000000101010
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,871
Karma: 12981955
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
|
Lovely! Thanks again rkomar
EDIT: This alone should work: Code:
iv2sh reboot Last edited by neil_swann80; 04-13-2023 at 11:40 PM. |
![]() |
![]() |
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,038
Karma: 18765433
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Nice find! It looks to be the simple Inkview program that I was suggesting, already installed on the system. It does seem to have a strange selection of supported functions, though. I guess that those were the ones needed by some shell scripts written for the system.
It isn't available on my older devices. It seems to be a newer addition to the system. |
![]() |
![]() |
![]() |
#7 |
0000000000101010
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,871
Karma: 12981955
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a way to execute a non-root command without access to command line | Galunid | Kindle Developer's Corner | 4 | 05-15-2018 07:50 PM |
Command to reboot the PocketBook ? | Chris_77 | PocketBook Developer's Corner | 1 | 12-29-2015 07:40 PM |
Cannot reboot - help! | khalleron | Nook Color & Nook Tablet | 0 | 05-05-2011 09:42 PM |
Have to reboot often | Karinfhd | Nook Color & Nook Tablet | 2 | 11-29-2010 01:20 PM |
Why I need to reboot the Dr so often? | physics@war | iRex | 3 | 06-03-2009 04:55 PM |