Frans de Jonge
0eec5b5174
Simplify koreader.sh
...
`-C "${KOREADER_DIR}"` isn't needed, see https://github.com/koreader/koreader/issues/2752#issuecomment-293698136 .
2017-04-12 22:37:06 +02:00
Frans de Jonge
5de8310aa6
Kobo (koreader.sh): install OTA update in working directory
...
Thanks to @a-kohout
Fixes #2752
2017-04-12 01:49:23 -07:00
Frans de Jonge
e8c01274f4
Travis: enforce shellscript coding style
...
* enormous coding style update
* update luajit-launcher
All changes are formatting only except for:
* new more correct pushd/popd style
* keeps useful indentation
* prevents execution of commands when pushd failed (cf. https://github.com/koalaman/shellcheck/wiki/SC2164 and https://github.com/koalaman/shellcheck/issues/863 )
```
pushd some_dir && {
command1
command2
} || exit
popd
```
2017-04-11 15:30:23 +02:00
Frans de Jonge
9d39f11f59
Travis: speed up by caching base and running luacheck earlier ( #2741 )
...
* Travis: speed up by caching base and running luacheck earlier
* ignore bin and install for git status change detection
* skip coverage except on official master branch. It adds 3 whole minutes and does nothing to prevent regressions
* also cache ~/.luarocks. It evens out but would generally prevent remote timeout shenenigans
* remove base cache dir before caching with verbose remove to see what's going on
* more inclusive shell code quality analysis
* fixed more shellcheck issues
* better shellcheck/shfmt debugging info
2017-04-11 11:23:42 +02:00
Frans de Jonge
e5bcdee85e
Add ShellCheck and shfmt shell code quality analysis ( #2712 )
...
* Add ShellCheck and shfmt shell code quality analysis
* kobo/koreader.sh: remove useless $PREFIX
* kobo/koreader.sh: fix rotation issue caused by #2731
* Travis: speed up (caching Luarocks should shave a minute off install process)
2017-04-09 10:42:16 +02:00
pazos
3a75b6deab
use fullpath for reboot
2017-04-06 23:30:00 -07:00
pazos
31b246574b
Kobo framebuffer: workaround to support +4.0FW
2017-04-06 23:30:00 -07:00
Qingping Hou
c34e04e081
wifi(fix): use -D wext for kobo wpa_supplicant
2017-02-27 11:08:57 +01:00
Qingping Hou
6b50a2783b
kobo(fix): load wifi module by ENV
...
Aura One uses 8189fs instead of dhd module
2017-02-27 11:08:57 +01:00
Martín Fernández
79fd02e020
Kobo: remove useless error messages from ntx_hwconfig
2017-02-20 18:02:11 -08:00
Qingping Hou
f95ad00b9e
feat: add logger module & rewrite kobo suspend script in lua
2017-01-02 19:52:09 -08:00
poire-z
65881738b5
disable-wifi.sh: decreased sleep duration
2016-12-14 11:39:46 -08:00
Qingping Hou
744115de9f
crash.log(fix): obviously I suck at counting zeros
2016-12-10 16:06:51 -08:00
poire-z
08a92de179
Fix: avoid system hang when disabling wifi ( #2394 )
2016-12-04 12:03:11 -08:00
cibersheep
922cd0fecf
Update manifest.json
...
- Update to current framework
- "name": should match: «hooks name».«nickname»
2016-12-03 15:21:20 -08:00
cibersheep
14155c3662
Policy_version version bump
2016-12-03 15:20:43 -08:00
Qingping Hou
b7cdf103e3
chore: fix luacheck error & add comment to release-ip.sh
2016-11-19 13:11:23 -08:00
Hzj_jie
8e5f294902
Return correct result from koreader.sh
2016-11-11 22:41:46 -08:00
Qingping Hou
efae2ed16f
network(fix): automaticallly obtain IP if network is already authenticated
2016-11-06 23:56:29 -08:00
Qingping Hou
705d3e4cb4
doc(minor): document alternative usb plug event source for kobo
2016-10-17 23:45:47 -07:00
Qingping Hou
0ed95406a4
log(fix): do not pipe stdout to /dev/null during crash log rotation
2016-10-16 01:29:02 -07:00
Qingping Hou
5309a0a47f
misc: rotate crash.log for kobo/kindle/pocketbook
2016-10-14 20:37:54 -07:00
Qingping Hou
3d79d44381
build: fix android and pocketbook builds
2016-10-09 23:28:16 -07:00
Qingping Hou
cc4e510194
bump koreader base for android build tweaks
2016-10-09 16:35:45 -07:00
Qingping Hou
c716fef0e3
minor: change wording in restore-wifi-sync script
2016-10-08 15:53:02 -07:00
Hzj_jie
52bcf87643
always release ip before obtaining a new one
2016-09-24 01:10:45 -07:00
Hzj_jie
da2c57f93a
Automatically connect WIFI after Kobo has been resumed ( #2215 )
...
* Add bash scripts to control WIFI / IP, so we can share them with frontend/device/kobo/device.lua.
* add test cases
2016-09-01 00:05:40 -07:00
NiLuJe
2013a66fdd
Some more Kobo suspend tweaks...
...
Disable wakeup_count handling, that's often causing more harm than
anything else...
Nickel doesn't even use it, that should have been a hint ;).
Make the logging slightly less confusing.
Add commented out debug features (dumping relevant dmesg output).
Re #2188
2016-07-31 19:01:15 +02:00
NiLuJe
0f184e30ed
Tweak nickel restart script
...
Also restart sickel...
2016-07-31 18:13:16 +02:00
NiLuJe
207af74527
Support the White Kindle PW3 & the Kindle Oasis.
...
Also attempts to support the new Kindle Basic, pending confirmation.
2016-07-09 03:16:08 +02:00
chrox
41f2fe85b7
fix #2119 by updating libSDL2.so and fix Evernote Plugin
2016-07-05 22:16:42 +08:00
chrox
687b6df4f2
add support of screen brightness settings for Android
...
and use standrad Android API to query battery level and charging status
This should fix #2025 , fix #1759 and fix #1415 .
2016-06-24 02:05:20 +08:00
NiLuJe
892e3c0f1e
Kobo startup script tweak.
...
When using KFMon, make the reboot on exit user-configurable.
The user can now choose to try to restart Nickel directly, like with
fmon.
For now, we still do a full reboot by default.
2016-05-15 20:52:46 +02:00
Frans de Jonge
8643d38a68
Removed some bashisms
2016-05-06 18:51:10 +02:00
NiLuJe
e90f1018db
Make the KFMon chekc actually accurate...
...
Sleep does wonder for your brain!
2016-05-01 15:11:47 +02:00
NiLuJe
b406e3591f
Update Kobo startup script for KFMon
...
Takes care of some potentially critical stuff ;p
2016-05-01 05:59:50 +02:00
NiLuJe
66b40955c6
Tweak the timing of the previous commit a bit
...
On those FW, we can get an up-to-date status bar, instead of the one
from our fb dump ;).
2016-04-12 17:09:21 +02:00
NiLuJe
a3536e28a6
Bypass a few unneeded usleep when possible
...
If awesome is stopped, it won't cause any trouble ;).
2016-04-12 16:17:17 +02:00
NiLuJe
879b593455
Refresh the UI properly on exit on more Kindle FW
...
This broadens the fix applied to FW >= 5.6.5 to the whole range of FW
5.x, because it appears to be needed on some FW 5.3.7.x versions...
Fix #1924
2016-04-12 16:17:17 +02:00
chrox
f3e0d44cc4
disable jit on some modules on android
...
to make koreader on Android more stable
and with these opt params:
```
require("jit.opt").start("sizemcode=64","maxmcode=64", "hotloop=10000")
```
The strategy here is that we only use precious mcode memory (jitting)
on deep loops like the several blitting methods in blitbuffer.lua and
the pixel-copying methods in mupdf.lua. So that a small amount of mcode
memory (64KB) allocated when koreader is launched in the android.lua
is enough for the program and it won't need to jit other parts of lua
code and thus won't allocate mcode memory any more which by our
observation will be harder and harder as we run koreader.
2016-04-07 23:43:58 +08:00
Qingping Hou
ff273158af
bump luajit-launcher
2016-03-21 01:11:55 -07:00
Qingping Hou
dceaa01250
minor: redirect all output to crash.log
2016-03-17 21:55:46 -07:00
Qingping Hou
8621720d19
bump base and luajitlauncher
2016-03-16 22:57:17 -07:00
Frans de Jonge
b8b0684e30
Add a comment with 'from_nickel', fixes #1889
2016-03-15 18:12:01 +01:00
Qingping Hou
55fa046d49
android: set android log tag to KOReader
2016-03-13 19:49:13 -07:00
chrox
3a9cb659d1
add OTA update on Android
2016-03-13 23:43:05 +08:00
NiLuJe
770625d756
Tweak the 'IR down on resume' workaround...
...
Only apply it when started from nickel, because I'm guessing we'd have
seen a number of reports of this if it happened more widely...
2016-03-02 18:24:14 +01:00
NiLuJe
ea382aea86
Tweak the sd is ro check a bit
...
Inspired from MRPI, but without a strict check of the device name,
because I'm not sure it'll be the same across the whole range of
Kobos...
2016-03-02 18:24:13 +01:00
NiLuJe
150aac1630
More comment tweaks re: Kobo suspend
2016-03-02 18:24:13 +01:00
NiLuJe
06e1bd4ed2
Slightly more accurate comments re: Kobo suspend
2016-03-02 18:24:10 +01:00