shermp / NickelDBus

Monitor and control kobo Nickel via dbus
MIT License
27 stars 2 forks source link

Add method to keep Wifi active #18

Closed shermp closed 6 months ago

shermp commented 6 months ago

By default, when you connect to a Wifi network, Nickel will try and kill it after a minute or two, unless you prevent it.

There is a class called WirelessWatchdog which seems responsible for watching for Wifi to connect, and then (attempt) to kill it after a set time. After taking a look at the web browser controller class, I discovered how it keeps Wifi active while the browser is open. Basically the WirelessWatchdog emits a signal requesting permission to kill wifi. If an attached slot denies permission, it will not kill the Wifi.