Commit Graph

80 Commits (278f060c2a7852eef93fcf855e6181b3b57abb12)

Author SHA1 Message Date
NiLuJe 278f060c2a Disable the Kindle passcode while we're running
Because we cannot deal with it properly...
We'd need to be able to stop eating all input, and have a lot of luck
with refresh timings to actually have the popup visible at the right
time.

TL;DR: it's a mess, kill it with fire.

Fix #1811
8 years ago
NiLuJe 4510625d37 Unbreak native screensavers on Kindle >= 5.7.2
Which I broke the last time I touched this.
NOTE: I'm not quire sure why the bbsave/bbrestore on stop/resume did a
double check (screensaver & charging), because that effectiely disabled
it when charging, which I don't quite understand...

Also makes sure the needsScreenRefreshAfterResume flag is honored on
Kindles, because we need it on FW >= 5.7.2

Note that this *breaks* the behavior with passcode enabled, which was
unwittingly fixed in said previous changes...

re #1811
8 years ago
Qingping Hou 427abd1cf6 bump base for android fix 8 years ago
zijiehe e7b8bdcde2 Check whether sd card is presenting and mounting as RO, before do the real remount 8 years ago
zijiehe 38553b5ef8 Mount SD card as RW on kobo, but ignore errors, since we may not have sd
card installed.
8 years ago
NiLuJe 693e732a71 Fix exit when running from KUAL on FW >= 5.6.5
Properly refresh the screen with useful stuff, instead of leaving
us hanging with an unusable mix of framework and our own crap.
8 years ago
NiLuJe af743d106e When started from KUAL on FW >= 5.6.5...
try to refresh the screen with more useful stuff on exit.

And because I forgot in my last commit, the issue was reported here:
http://www.mobileread.com/forums/showpost.php?p=3258045&postcount=903
8 years ago
NiLuJe d3333fe81d Prevent the status bar clock from peeking out...
When launched from KUAL on FW >= 5.7.2
8 years ago
NiLuJe 6413390490 Make Amazon's additional CJK fonts available to us
Should be a no-op on systems which don't have any.
Fix #1802
8 years ago
Qingping Hou 65455cee23 bump luajit-launcher 8 years ago
Qingping Hou cc8e079548 doc: update description for KUAL 8 years ago
Cosmin Gorgovan 856ec6d075 Mark suspend.sh for Kobo as executable
Otherwise suspend fails to work when running koreader from a FS
which supports execute permissions.
8 years ago
chrox f3dbf9ce2e move mmap workaround to android-luajit-launcher 9 years ago
chrox 3df4832265 fix mcode allocation failure on Android
This workaround makes a reservation of mmap slots that are hopefully
near the address of `mcode_alloc_at`. Then it unmaps those slots and
lets luajit allocate a large slot for mcode.
9 years ago
NiLuJe f9925a8c82 Play with the Kobo suspend script...
Because apparently it's not behaving as it should? IDK...
9 years ago
NiLuJe 29f14491e1 Forgot this bit in a previous commit. 9 years ago
NiLuJe 5979f9f855 Better and more complete status bar handling.
When runnning from KUAL on FW >= 5.6.5
9 years ago
NiLuJe 55fa3db6a1 Minor tweak to handle FW 5.6.5 better...
When launching KOReader with the framework up from KUAL...
Our gentle hide/unhide method doesn't work anymore, which leads to
various issues, the most obvious being not getting a refresh to the
default UI on exit...
9 years ago
chrox 5bab00ff9b add apparmor.openstore file for openstore submission 9 years ago
chrox a60544b1ad Koreader Ubuntu-touch port
Currently only tested on Ubuntu-touch emulator with framework
ubuntu-sdk-14.10 for armhf.
The ubuntu-touch port is binary compatible with the Kobo port
major changes in this PR are:
1. rename the emulator device to sdl device since both the emulator
and the ubuntu-touch target use libsdl to handle input/output.
2. ubuntu-touch app has no write access to the installation dir so
all write-outs should be in a seperate dir definded in `datastorage`.
9 years ago
chrox cf56f6a6e5 update luajit repo url 9 years ago
chrox b65b70fec6 update base and luajit-launcher 9 years ago
NiLuJe d6ab3b5224 Fix previous commit
So it actually works as intended ;p.
9 years ago
NiLuJe 2058209aa8 More Kindle startup tweaks on legacy devices
Don't try to setup iptables if it's not there (K2/DX/DXG).
Note that we'll do it on the K3, but it'll be useless there (no wifi).
9 years ago
NiLuJe f85c10e3b9 Minor tweak to exit behavior on legacy devices.
Properly refresh the screen when exiting with the framework running.
The lua code to handle that is called while cvm is SIGSTOPP'ed, so it
doesn't help.
9 years ago
NiLuJe a19954a201 Restart Kindle framework from an unpolluted env 9 years ago
NiLuJe a4ebfee83b Handle the PW3
(Dry-coded, assume it's basically a PW2 w/ the KV screen ;p)
9 years ago
NiLuJe 687aba796d Fix networkmgr on Kobo
To avoid potential issues with USBMS.
Namely, make sure CWD doesn't point to the userstore for persitent
processes.
Make sure wpa_supplicant doesn't try to use our own OpenSSL lib, which,
again, is in the userstore area.
Properly kill our dhcp client invocation on when killing WiFi

Also, some related fixes to the startup script:
Properly kill wpa_supplicant & the dhcp client when we kill
wifi before rebooting to nickel.
9 years ago
arasyi d3bc8ecb5f Fix nickel doesn't recognize sdcard after exiting
After exiting koreader, nickel will not recognize that sdcard is present.
This patch fixes that
9 years ago
Huang Xin 0b45394a7f Merge pull request #1564 from Frenzie/koreader.sh
Fix KOReader exit
9 years ago
Frans de Jonge 475ee28173 Fix KOReader exit
Should reboot less unnecessarily for older versions of KSM, and hopefully this would also be more forward-compatible.
9 years ago
chrox 34ea9ac574 add datastorage module to handle data directory on various platform
On kindle, kobo and pocketbook the data directory is the current
running directory but on Android the app is installed in system
defined location and users may have no access to that location.
The same circumstances should be true for the upcoming Koreader for
Ubuntu touch, so the data directory (in which tessdata, dictionaries,
global settings, persistant defaults and probably history data are
stored) could be stored in another place.
9 years ago
chrox 99af63c545 add koreader app icon for android finally 9 years ago
chrox e9d19965eb fix a bug in android-luajit-launcher that may prevent some devices launching
this should fix #1553 and fix #1551.
9 years ago
NiLuJe 34cb799818 Fix nickel restart with WiFi up.
By killing the WiFi first, since apparently,
nickel really doesn't like that, and causes a deadlock.

re #1503, re #1504, fix #1520
9 years ago
NiLuJe 02fcb9037b Fix startup scripts.
Thanks to @Markismus's questions, I realized that some of what i thought
was true, wasn't.

First, pkill is a terrible idea to check for interpreted scripts.
Second, pidof is also potentially not that great for interpreted
scripts, because it'll only work with a shebang, and one that is
following the Linux syntax.
We don't have the full version with the -x to paper over that,
so use pgrep -f instead.

cf.
a736a571d2 (commitcomment-10948910)
for the gory details.
9 years ago
NiLuJe 8703a043c7 Fix the eips prints on a KT2 9 years ago
NiLuJe 9f89fc8e47 Fix Kobo startup script w/ KSM
pkill probably only checks the actual name of the binary.
We were checking a shell script, which I'm guessing is not launched
via a shebang, so that name was actually an arg to sh, or something like
that.

Use pidof instead, which matches the full command line.
9 years ago
NiLuJe 85445b12f1 Guess what? More comments ^^. 9 years ago
NiLuJe da891ca335 And comment that, because I'm likely to forget. 9 years ago
NiLuJe a99359fa44 Add a comment to explicit the KSM check 9 years ago
NiLuJe 8661194b79 Nice typo bro! 9 years ago
NiLuJe 2d07ec8a9d Handle snapshot tarballs w/ KUAL manual update
It only handled release zips so far.
9 years ago
NiLuJe 7fd45c6cd3 And even more Kobo startup script tweaks.
Good news: restarting nickel doesn't deadlock anymore. Yay.
9 years ago
NiLuJe 218d8b3e54 More comments... 9 years ago
NiLuJe f259ec4259 Wipe dead code 9 years ago
NiLuJe 7db252a27e More Kobo startup scripts tweaks... 9 years ago
NiLuJe d4f80209d9 Minor comment tweak 9 years ago
NiLuJe 476ae3322c sync before killing nickel
Hopefully good enough to avoid trashing the DB
9 years ago
NiLuJe 97ad4afa92 Minor comment tweak 9 years ago