2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

125 Commits

Author SHA1 Message Date
NiLuJe
f43cbc74e6 Always forcibly wake the H2O IR grid on wakeup
Fix #1862
Fix #1943
2016-04-09 17:51:39 +02:00
Qingping Hou
eb37d9b8b6 kobo: fix screen probe for touch 2016-04-02 23:06:09 -07:00
Zijie He
b86aa5a02b Implement auto-suspend function for Kobo. Add test case for UIManager:_checkTasks, which should not clear _task_queue_dirty bit before looping. 2016-03-28 17:53:18 -07:00
Qingping Hou
26f5c8861b chore: minor style cleanup 2016-03-27 17:18:25 -07:00
Qingping Hou
c35aad3ae1 fix(kobo): return 0 frontlight level config to signal frontlight off state 2016-03-20 23:58:59 -07:00
Qingping Hou
824bdb4463 comment for kobo sleep 2016-03-10 18:39:36 -08:00
Zijie He
767e6e2b71 Add a sleep after kobo resume to resolve partial blank screen issue (#1874) 2016-03-10 15:35:06 -08:00
Zijie He
61ec784f91 Add eink_optimization_spec 2016-03-08 19:38:06 -08:00
zijiehe
f0c675d722 E-ink optimization setting should be correctly set after restart. 2016-03-08 17:58:05 -08:00
Qingping Hou
ada373e247 kobo: refresh screen after close screensaver on resume 2016-03-07 00:02:15 -08:00
Qingping Hou
e812f7d0d6 kobo: fix typo during refactoring, luacheck is the best check 2016-03-05 13:02:33 -08:00
Qingping Hou
cf70e86552 kobo: move reader setting outside of nicke_conf module 2016-03-02 23:25:39 -08:00
NiLuJe
e60de3044c Keep intensity in sync at the config level too
Make sure frontlight_intensity in reader.lua settings matches what we
write into Nikcel's config
2016-03-02 19:16:02 +01:00
Qingping Hou
4751aba46c kobo: rewording, turns out has_toggle_btn != has_state_cfg :( 2016-03-02 18:25:17 +01:00
Qingping Hou
8190093f83 kobo: don't create FrontLightState config if it didn't exist to begin with 2016-03-02 18:25:17 +01:00
Qingping Hou
8b7658b8cd kobo: always keep intensity value and is_fl_on in sync 2016-03-02 18:25:17 +01:00
Qingping Hou
cf3b97537b kobo: build fl_state based on fl_intensity if model does not support toggle 2016-03-02 18:25:17 +01:00
Qingping Hou
9afae91b13 chore: rename frontlight related variables to keep style consistent
flIntensity -> fl_intensity
flState -> is_fl_on
fallback_FrontLightLevel -> fallback_fl_level
2016-03-02 18:25:17 +01:00
NiLuJe
f213fb6405 Bypass flState on suspend/wakeup
We pretty much always want to turn it off on suspend, and turn it on to
some measure on wakeup.

That, and nickel's FrontLightState is completely nonsensical on my device anyway...
2016-03-02 18:24:14 +01: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
85737e2b9d Forcibly re-activate IR grid on resume...
re #1862
2016-03-02 18:24:14 +01:00
NiLuJe
6c8bbfd470 Unbreak Kobo frontlight -> off when suspending.
If no-one touches anything, flState stays false...
And anyway, we should unconditionally disable the fl on sleep.
2016-03-02 18:09:38 +01:00
NiLuJe
7d0c354ffb Unbreak battery status refresh on resume on Kindle
Went kaput w/ #1854
2016-02-29 19:49:37 +01:00
NiLuJe
aa0450ab5d Fix volumd's USBMS splash screen on FW 5.7.x
That clears up my previous queries abour the dual checks ;p.
2016-02-29 18:22:52 +01:00
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
2016-02-29 16:59:15 +01:00
zijiehe
a183c1c64b Slightly refector device & powerd component, remove some magic code 2016-02-28 14:38:14 +08:00
zijiehe
e84093c414 Add a flState in Kobo, and KoboPowerD:toggleFrontlight uses flState to control the light instead of intensity. 2016-02-26 15:34:23 +08:00
Qingping Hou
1f082d7f5c build: fix travis build 2016-02-16 09:58:24 -08:00
chrox
1cef9278f1 do full screen refresh on KV after waked up
from screensaver
this should fix #1800
2016-02-16 22:43:54 +08:00
Qingping Hou
e422842256 minor: a lot of luacheck fixes 2016-02-15 23:10:07 -08:00
Qingping Hou
59c17ef420 minor: more luacheck fixes 2016-02-15 01:33:48 -08:00
Qingping Hou
11ee8d6fcc refactor: use new KeyValuePage widget for displaying statistics 2016-02-14 21:54:17 -08:00
Qingping Hou
71ef994318 test: add nickle conf spec 2016-02-03 10:35:47 -08:00
Qingping Hou
1609becd61 Merge pull request #1772 from dset0x/frontlight-sync
WIP Synchronise frontlight level with nickel config
2016-02-01 21:15:00 -08:00
Qingping Hou
5a3b9c6856 style: make staick-check happier 2016-01-31 15:08:24 -08:00
Qingping Hou
59e791db82 feat: support numeric input for keyboard only devices 2016-01-31 15:08:13 -08:00
Dimitrios Semitsoglou-Tsiapos
699781de68 nickel_conf: handle missing file/key/section 2016-01-12 16:22:37 +02:00
Dimitrios Semitsoglou-Tsiapos
eb47c5a39f Synchronise frontlight level with nickel config
* Drops support for mocking the frontlight setting internally which may
  cause incorrect in-memory values.

* Adds new supported value for `KOBO_LIGHT_ON_START` (-2), which sets
  'Kobo eReader.conf' as the source to update `settings.reader.lua`'s
  brightness setting on startup, thus using the value from it
  indirectly.

* Adds the `KOBO_SYNC_BRIGHTNESS_WITH_NICKEL` configuration variable
  which updates 'Kobo eReader.conf' every time the brightness setting is
  changed within koreader.

* Fixes missing call to save brightness when modifying via two-finger
  swipe.

Closes #1523.
2016-01-11 23:30:22 +02:00
NiLuJe
bfb2ee703a Force poll the battery when showing the menu.
Making sure to always show up to date info.

Also fix the battery polling cache invalidation logic to actually
work?
Should make it behave properly on devices where we handle resuming
ourselves.
2015-10-16 02:49:39 +02:00
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`.
2015-10-03 14:48:51 +08:00
Qingping Hou
f2fa1c36ba Merge pull request #1647 from chrox/fix_kv_refresh
fix some minor issues on Kindle Voyage
2015-09-28 21:22:18 -07:00
chrox
d198f1c7ab don't set focus button for Android 2015-09-27 22:29:59 +08:00
chrox
4920426148 no need to do full screen refresh when outof screensaver
since there is already one by the native system
2015-09-27 09:25:50 +08:00
chrox
e91b7bd266 set foucus of button table only if the device has a dpad
so that Kindle Voyage won't show a highlighted button in
confirm dialog.
2015-09-27 09:05:40 +08:00
NiLuJe
d17ca951d3 Fix battery status on K3.
Will probably be more complex on older devices, where, AFAICT,
gasgauge-info is bitbanging over i2c...
2015-09-27 01:44:50 +02:00
NiLuJe
5fa5fabf02 Fix battery status on the K4
And also probably prevent a crash when trying to enable WiFi there.
We really shouldn't even show the WiFi stuff on some of these old
devices, but at least now it doesn't crash ;).
2015-09-27 01:02:37 +02:00
NiLuJe
dc7b854196 Fix input devices on K2 2015-09-06 16:47:15 +02:00
NiLuJe
ffd3f5c1cc Fix input devices on K4 2015-09-06 16:32:00 +02:00
NiLuJe
df4bbc8191 Only read Kindle S/N once 2015-09-06 16:21:02 +02:00
NiLuJe
928404a6b6 Fix K4 key mappings 2015-09-06 16:19:00 +02:00