View Single Post
Old 08-06-2019, 06:53 AM   #5
Mavireck
Connoisseur
Mavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a Texan
 
Posts: 63
Karma: 18290
Join Date: Jul 2016
Location: France
Device: Kobo H2O (broken), Kobo H2O Edition 2 v1 (stolen), Kobo Clara 2E
Quote:
Originally Posted by NiLuJe View Post
FL control is via ioctl (except on Mk. 7 when there's also a sysfs entry), so, that'd need a C helper if you want to cover all current devices.
Yes thank you for your help, it is now working well on my H20 (mark5 - I am not going to try to make it work on a mark7 for now)

As for wifi. Disabling seems to work, but connecting to the network doesn't:
I copied the whole sources from koreader in a folder called 'files' in my app.
It is coded in Python (of course). After a click on a button, it launches a function which among other things, executes these lines of code:
Code:
os.system("sh ./files/enable-wifi.sh")
time.sleep(5)
os.system("sh ./files/obtain-ip.sh")
print("Wifi enabled")
But it still does not connect to the wifi network (IP remains local), while it does connect with Nickel.
Am I missing something ?

I also have another unexpected issue : the "Wifi enabled" message is being printed multiple times... Can it be due to the problem I am having (or cause it?). I really don't know why it would be executed multiple times in my code.

Thank you for your help !
Mavireck is offline   Reply With Quote