Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 05-06-2025, 09:22 PM   #1
kodermike
Member
kodermike is on a distinguished road
 
kodermike's Avatar
 
Posts: 12
Karma: 60
Join Date: Dec 2024
Location: PNW, US
Device: kobo
Post [plugin] AirPlane Mode

Hey there! I've put together a little plugin to mimic airplane mode in koreader. I rarely take koreader out of the house, but when I do it's a mad button dash to remember what all needs to be disabled so koreader doesn't lock up trying to reconnect to my home network. I tried to use the profiles plugin, but the use case didn't quite fit what profiles was designed for.

What It Does

Enabling AirPlane mode turns off wifi, sets all of the default wifi settings to their most conservative options (off, prompt, etc.), and disables plugins that use networking. There is a default list of plugins included by default, but there is also a menu that will let you browse all active plugins and mark them so they will disable while AirPlane is active. When you disable, network settings and plugin management should return to the previous, pre-AirPlane state.

Repository, tarball, and zip with the initial alpha can be found here: https://github.com/kodermike/airplanemode.koplugin

Tested with:
* the koreader emulator (of course)
* Kobo Clara
* Kobo Clara2E
* Kobo Forma
* Kobo Libra Color
* Kindle PW 2

I know it's a kobo heavy list, but it's what I had on hand while testing.


Last edited by kodermike; 05-27-2025 at 12:57 AM.
kodermike is offline   Reply With Quote
Old 05-08-2025, 09:04 AM   #2
PiperKev
Enthusiast
PiperKev began at the beginning.
 
Posts: 49
Karma: 10
Join Date: Sep 2020
Device: Kindle Oasis 3
Stupid question, but how is this different than simply unchecking the "Wi-Fi connection" checkbox?
PiperKev is offline   Reply With Quote
Old 05-08-2025, 06:48 PM   #3
Ebookus
Digital Grenadier
Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.Ebookus ought to be getting tired of karma fortunes by now.
 
Ebookus's Avatar
 
Posts: 176
Karma: 1500000
Join Date: Jan 2024
Device: Kindle
Quote:
disable all automatic wifi settings, as well as a list of the standard plugins that use automatic networking.
I believe that means, if for example you synchronise progress, airplane mode won't bug you trying to turn wifi on when you now there is no wifi available.
Ebookus is offline   Reply With Quote
Old 05-08-2025, 08:09 PM   #4
kodermike
Member
kodermike is on a distinguished road
 
kodermike's Avatar
 
Posts: 12
Karma: 60
Join Date: Dec 2024
Location: PNW, US
Device: kobo
Quote:
Originally Posted by Ebookus View Post
I believe that means, if for example you synchronise progress, airplane mode won't bug you trying to turn wifi on when you now there is no wifi available.
Exactly! I have a pretty active progress sync for when I'm at home, because what's a little battery use before bed, but if you forget to disable all of the auto-enable, auto-connect settings before going out, it's literally a battle to disable progress sync and wifi in time. Connecting to wifi seems to be a particularly blocking process, since on my kobo's it locks up the whole experience waiting for a timeout. Then it tries again seconds later.

I wrote this plugin not only turns off wireless but sets everything to prompting, as well as disabling plugins that use wifi to avoid the request. In road testing, wikipedia tried to connect, but because of the disabled settings, was easily exited without trying to connect.

Writing up the initial post, I realized I should work on being able to specify which plugins you want disabled so you can disable other plugins that I don't know about (or didn't think about, like the hardcover plugin).
kodermike is offline   Reply With Quote
Old 05-08-2025, 10:32 PM   #5
PiperKev
Enthusiast
PiperKev began at the beginning.
 
Posts: 49
Karma: 10
Join Date: Sep 2020
Device: Kindle Oasis 3
Gotcha! Thanks for the explanation!
PiperKev is offline   Reply With Quote
Old 05-09-2025, 12:22 PM   #6
Billiam
Member
Billiam is as sexy as a twisted cruller doughtnut.Billiam is as sexy as a twisted cruller doughtnut.Billiam is as sexy as a twisted cruller doughtnut.Billiam is as sexy as a twisted cruller doughtnut.Billiam is as sexy as a twisted cruller doughtnut.Billiam is as sexy as a twisted cruller doughtnut.Billiam is as sexy as a twisted cruller doughtnut.Billiam is as sexy as a twisted cruller doughtnut.Billiam is as sexy as a twisted cruller doughtnut.Billiam is as sexy as a twisted cruller doughtnut.Billiam is as sexy as a twisted cruller doughtnut.
 
Billiam's Avatar
 
Posts: 23
Karma: 15120
Join Date: May 2010
Device: Kobo Clara 2e
Quote:
Originally Posted by kodermike View Post
disable other plugins that I don't know about (or didn't think about, like the hardcover plugin).
I'll also be adding support for the airplanemode global setting to the hardcover plugin 👍

Last edited by Billiam; 05-09-2025 at 02:38 PM.
Billiam is offline   Reply With Quote
Old 05-21-2025, 11:18 PM   #7
kodermike
Member
kodermike is on a distinguished road
 
kodermike's Avatar
 
Posts: 12
Karma: 60
Join Date: Dec 2024
Location: PNW, US
Device: kobo
Just a quick update - v.0.0.1 is up. Releases and instructions can be found in the usual place, i.e. https://github.com/kodermike/airplanemode.koplugin

This release adds the ability to manage which plugins are included as disabled while you're in AirPlane mode. Next up is to address a bug that seems to be Kindle specific, hopefully that will be fixed relatively soon. Let me know if you have any questions, thanks!
kodermike is offline   Reply With Quote
Old 05-26-2025, 12:33 PM   #8
Sofo
Junior Member
Sofo began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2025
Device: Kobo Libra Colour and Kindle PW Sign 11th
Nice plugin! I came from reddit after you mentioned it on my post. Thanks so much for your work here!
Sofo is offline   Reply With Quote
Old 05-27-2025, 01:01 AM   #9
kodermike
Member
kodermike is on a distinguished road
 
kodermike's Avatar
 
Posts: 12
Karma: 60
Join Date: Dec 2024
Location: PNW, US
Device: kobo
Quote:
Originally Posted by Sofo View Post
Nice plugin! I came from reddit after you mentioned it on my post. Thanks so much for your work here!
Thanks! I just posted a new release (minute ago) that fixes some issues I came across after brazenly releasing the last one last week. Mostly functional fixes, nothing too extra, although there is now gesture support for start/stop/toggle. Hopefully I will stop finding things I didn't do right the first or second time and be able to release a little less often
kodermike is offline   Reply With Quote
Old 05-27-2025, 01:14 AM   #10
hius07
Wizard
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 1,162
Karma: 3592925
Join Date: Sep 2014
Location: Ukraine
Device: Kindle
(Looking at the code)
Are the plugins settings saved when enabling the Airplane mode?
For example, create a new profile and enable the Airplane mode (with restart).
Was the new profile saved?
hius07 is online now   Reply With Quote
Reply

Tags
plugin


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KOA3 Prompting Me to Update Despite Being in Airplane Mode scolby33 Kindle Developer's Corner 0 02-06-2022 01:57 PM
iPhone Airplane mode engaging by itself? OtinG Apple Devices 0 03-04-2021 02:00 PM
Commands to switch airplane mode? Yourcat Kindle Developer's Corner 3 03-30-2016 12:16 PM
Updates from BB with Airplane Mode On? pghaworth Amazon Kindle 26 10-30-2014 12:46 AM
Airplane Mode Keeps Enabling Itself aglick enTourage eDGe 15 04-26-2012 12:34 PM


All times are GMT -4. The time now is 05:45 AM.


MobileRead.com is a privately owned, operated and funded community.