Thread: Reboot command?
View Single Post
Old 04-13-2023, 01:18 PM   #4
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 3,055
Karma: 18821071
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.
rkomar is offline   Reply With Quote