-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the status of this project? #1
Comments
Hi houqp, I've been using it for almost an year now. There are a few rough edges:
I now have a few free days. I'm trying to update the packages, check that everything still works and commit my private patches, plus document everything. Keep an eye on the repository. Also, please let me know if you're interested in implementing some of the missing features in koreader or if you want to test okreader. I'll publish installation instructions soon. |
Awesome, good to know :)
I can help with the UI part if you can provide the script or list of system calls needed to perform the task.
Yeah, I was about to ask you about this :) I acutually started a wpa_supplicant client a long time ago: https://github.com/koreader/lj-wpaclient. But never got time to actually finish it. I was able to talk to wpa_supplicant and get the a list of networks. Once I tested the connect command, we can pull it into koreader-base and throw a UI on it.
Looks like you already got this part? What do you mean by cleanly shutdown the reader? Do you mean killing the reader from a script instead of the UI home button?
Sure, I would love to help test the build. |
Hi, I've been making some progress over the past few days in terms of automating some of the modifications I'm using and replacing some hacks with nicer implementations. The generated rootfs (using the git head) is now actually usable without requiring any configuration or modifications. I expect to move my attention towards the bootloader, the kernel and the installation procedure over the next few days.
Thanks. I've looked a bit more into this, and it actually seems possible to always have the data partition exposed as a USB mass storage device with g_file_storage.ko. It needs more testing and I need to disable & enable it in the koreader suspend.sh script, but if it continues to work well I'm tempted to just leave it always on for now.
A WiFi configuration UI would be nice to have. At this point it's a pretty low priority for me, but definitely let me know if you start working on it, and I'll help test it.
I meant powering off the device. Basically asking something like "Power off?" if the power button is held for longer than 2-3 seconds and then waiting for confirmation. I have a patch for that.
It's getting there. Do you have an ARM system to build okreader? If not, I'll look into setting up an automated build server soonish. Out of curiosity, what device(s) do you intend to run it on? |
Sounds reasonable, assuming it won't consume extra energy when enabled.
I am working on some minor fixes for the new restructured koreader-base right now. Wifi configuration will be the fast follow up after that. Will let you know when I get a working demo.
Awesome, looking forward to your patch :)
I don't have a ARM build system. I am only using my laptop for cross compile right now. A build server would really nice. I have a kobo aura hd. |
BTW, you can remove this patch now since it's fixed in a recent build system overhal upstream: |
Alright, this past weekend I've finished up and committed all patches I have been using on my own ereader. Apologies about taking so long. I was wondering how you'd envisioned the WiFi manager working. Would it generate wpa_supplicant config files directly? How would it scan for networks? On Debian we could just use its To be honest, I don't really have a use for WiFi at all on my regular ereader, I just use it to SSH to the ereader I use for development. On the other hand if a WiFi manager would be available, it would be useful at least for delivering package updates and for NTP. |
It will store the config outside of wap_supplicant and use its own config to tell wpa_supplicant how to connect to a network through its socket interface. Think of I personally need this wireless manager because i am tired of updating KOReader through USB ;P |
Hi @lgeek , Just to sync up on the progress. Now that we have network manager and power off support in KOReader, the last item is UI for mounting the device over USB for synchronisation? Do we really need a UI for this? Is it possible to get the usb plugin event from the kernel and automatically drop into USB mode? |
Hi @houqp. I've been keeping the module loaded all the time (see my rc.local). I'm pretty sure it's not theoretically safe because the filesystem on the data partition gets mounted both by the device and the host computer. On the other hand, I haven't managed to break it, so... I guess it works for me. IIRC, on Debian/okreader the USB plugged in event shows up in udevadm (as a different event compared to plugging into a charger), so I'm sure a proper solution could be implemented that way. Edit: I've been pretty busy with other things and I haven't updated koreader in ages, so I haven't checked out the network manager. I'll try to test the git head next week. |
Thanks @lgeek , this is very helpful! I will take a look at how to feed udev event into KOReader :) |
Forgot to update here. KOReader reads USB hot-plug events now via uevent from netlink sockets. So all we have to do is to hook these event up with an action ;P |
Hi @lgeek. I've tested the pre-release 1e7825eb3111_auto_build files on a Kobo Glo, and happy to report it's booting up, touch screen working, usb working, koreader working. Haven't tried wifi yet. I've noticed the status led on the Glo keeps slowly blinking green while the reader is in use. |
Just tested on Kobo Mini (with the swapping internal microSD card to a prepared one method), happy to report the pre-release 1e7825eb3111_auto_build files working there too. |
This is awesome, we should update the model matrix in the readme ;) |
@dtamas Oops, I've somehow missed the notification for the previous message. That's great, thanks for letting me know. I'll edit the readme and try to update to an up-to-date koreader soonish. |
OK, I've updated koreader and the readme. @houqp: have there been any upstream changes regarding the WiFi manager or USB detection for mounting? If not, I'll build the packages for public release now. |
@houqp Thanks. Regarding the WiFi manager, is there an UI to actually set it up or is it just an on/off toggle setting? When running on Debian/okreader, I've only found the latter. I don't have a reader with Nickel installed at the moment. |
@lgeek you should see a UI for managing wifi from gear icon tab -> network -> wi-fi connection. It will prompt you for turning on Wifi, then show you a list of network that you can configure. This feature doesn't require nickel, it will work as long as wpa_supplicant is installed in the system. |
@houqp Thanks, I got it working with custom network scripts in b8fcc58. My Kobo Touch works as expected, but the open source WiFi driver fails to connect when wpa_supplicant is controlled by Koreader on my Kobo Aura. I'll investigate it. Update: there's no problem with WiFi on Aura. I was running into this bug: koreader/koreader#2681 @dtamas I've built a new prerelease if you're interested in upgrading your devices. I would appreciate it if you could test whether you can connect to WiFi networks. |
So the last remaining item is UI for entering usb storage mode? |
I would also like to have an UI for setting the timezone (I first need to check how Nickel is handling it) and manually setting the time and date. |
@lgeek I've tested latest build on glo, could connect to wifi, no issues. The green status led on glo keeps blinking while not in sleep mode, despite not on charger. |
@dtamas Thanks for testing. The LED is just a software controlled indicator, it doesn't mean anything. Could you try adding |
how about we split that ticket up in different parts so people can track what they're interested in? from what I could tell, the current limitations are explained in the README, and that doesn't seem to include Wifi, which has been factored into koreader. i opened #4 for the USB stuff and #5 for time sync... anything else someone should keep in mind? if so, we should open different issues and close this ticket. if not, we should close this ticket anyways. :) thanks for this great project, it's amazing to see debian running on the kobo readers! |
i think this ticket should be closed. there are two tickets for the missing features and the rest is clearly explained in the README. |
No worries. Thank you for your reply :-) |
Just found this gem :) Is it ready for use now?
The text was updated successfully, but these errors were encountered: