Qingping Hou
f402ee5f6f
chore: remove all echo shell out in kobo resume routine
8 years ago
Qingping Hou
f95ad00b9e
feat: add logger module & rewrite kobo suspend script in lua
8 years ago
Frans de Jonge
0fb29e9cd3
Kobo: fix Kobo Aura second edition highlighting
8 years ago
Frans de Jonge
69f70ac16e
Kobo: initial support for Kobo Aura second edition (Kobo star)
...
This fixes #2418 .
8 years ago
Qingping Hou
d1f9cf932b
kobo(minor): add debug log for suspend action
8 years ago
Bastien Dejean
c71b176e0a
Kobo Aura ONE: no viewport adjustments needed
...
Test image:
https://cloud.githubusercontent.com/assets/159419/20651651/5e344d1c-b4e9-11e6-8450-6fb165c792db.png
Fixes #2372 .
8 years ago
Qingping Hou
816d0a551a
kobo: handle charging/uncharging event
8 years ago
Qingping Hou
705d3e4cb4
doc(minor): document alternative usb plug event source for kobo
8 years ago
Qingping Hou
ef5c8ced60
chore: disable wrong usbplug event handler
8 years ago
Qingping Hou
902403bf0a
kobo(fix): prevent usb plug events from interrupting sleep
8 years ago
Qingping Hou
93b3262db7
kobo(fix): make sure sleep cover is not interrupting sleeping when ignore_power_sleepcover is set
8 years ago
Qingping Hou
ebc7055b43
chore: move kobo specific code into kobo/device.lua
8 years ago
Matej Mihelič
6600410c08
Aura One support
8 years ago
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
8 years ago
chrox
9afad43a3e
refactoring utils to tools as discussed in #2197
8 years ago
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
8 years ago
Qingping Hou
20eb36a03d
feat: add network management UI for kobo
8 years ago
Qingping Hou
44d62f6f41
networkmanager: move device specific code into device module
8 years ago
Qingping Hou
38a1758889
kobo: detect non-epoch timestamp using current second
8 years ago
Qingping Hou
82a3e0f9ad
automatically adjust ev time for kobo touch
8 years ago
NiLuJe
103e4eaeb8
Use the GloHD quirks on the Touch 2.0...
...
re #2005
8 years ago
NiLuJe
9a7c46e8f5
Unbreak previous commit
...
Weeeeee!
8 years ago
NiLuJe
467e65be3d
Don't crash on the Kobo Touch 2.0
...
I wouldn't go so far as to say "support", though, since I don't have the
device, and the touch protocol might be wrong ;).
re #2005
8 years ago
Cosmin Gorgovan
19338cb439
Kobo: Offer to power off if the power button is held for at least 3 seconds
9 years ago
Zijie He
f33f78cf08
Add an ignore_power_sleepcover setting to ignore Kobo power_sleepcover keycode
9 years ago
Hzj_jie
1be9264a0c
Resolve review comments
9 years ago
Zijie He
7d4bd076f7
Resolve review comments
9 years ago
NiLuJe
f43cbc74e6
Always forcibly wake the H2O IR grid on wakeup
...
Fix #1862
Fix #1943
9 years ago
Qingping Hou
eb37d9b8b6
kobo: fix screen probe for touch
9 years ago
Qingping Hou
c35aad3ae1
fix(kobo): return 0 frontlight level config to signal frontlight off state
9 years ago
Qingping Hou
824bdb4463
comment for kobo sleep
9 years ago
Zijie He
767e6e2b71
Add a sleep after kobo resume to resolve partial blank screen issue ( #1874 )
9 years ago
Qingping Hou
e812f7d0d6
kobo: fix typo during refactoring, luacheck is the best check
9 years ago
Qingping Hou
cf70e86552
kobo: move reader setting outside of nicke_conf module
9 years ago
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
9 years ago
Qingping Hou
4751aba46c
kobo: rewording, turns out has_toggle_btn != has_state_cfg :(
9 years ago
Qingping Hou
8190093f83
kobo: don't create FrontLightState config if it didn't exist to begin with
9 years ago
Qingping Hou
8b7658b8cd
kobo: always keep intensity value and is_fl_on in sync
9 years ago
Qingping Hou
cf3b97537b
kobo: build fl_state based on fl_intensity if model does not support toggle
9 years ago
Qingping Hou
9afae91b13
chore: rename frontlight related variables to keep style consistent
...
flIntensity -> fl_intensity
flState -> is_fl_on
fallback_FrontLightLevel -> fallback_fl_level
9 years ago
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...
9 years ago
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...
9 years ago
NiLuJe
85737e2b9d
Forcibly re-activate IR grid on resume...
...
re #1862
9 years ago
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.
9 years ago
zijiehe
a183c1c64b
Slightly refector device & powerd component, remove some magic code
9 years ago
zijiehe
e84093c414
Add a flState in Kobo, and KoboPowerD:toggleFrontlight uses flState to control the light instead of intensity.
9 years ago
Qingping Hou
59c17ef420
minor: more luacheck fixes
9 years ago
Qingping Hou
71ef994318
test: add nickle conf spec
9 years ago
Qingping Hou
1609becd61
Merge pull request #1772 from dset0x/frontlight-sync
...
WIP Synchronise frontlight level with nickel config
9 years ago
Qingping Hou
5a3b9c6856
style: make staick-check happier
9 years ago
Dimitrios Semitsoglou-Tsiapos
699781de68
nickel_conf: handle missing file/key/section
9 years ago
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 .
9 years ago
Guangda Hu
7491cd7b9d
fix spaces
10 years ago
Guangda Hu
69db627136
Glo HD support
10 years ago
NiLuJe
a6a2b3d6a3
Try to get the Kobo codename from the env first
...
My batch of startup script tweaks should ensure PRODUCT is always
exported.
Leave the fallback in place, to avoid blowing up in weird corner-cases I
haven't thought about.
10 years ago
NiLuJe
c6a3f9002c
Tweak the H2O viewport to make it pixel-perfect.
...
As confirmed by checking a fb dump via fbgrab, and nickel's
broken cropping of screenshots ;).
10 years ago
Cosmin Gorgovan
41045dab99
Fix charging detection for Kobo devices
...
I've tested this on a N905C. I assume this implementation never
worked (since charge_now is supposed to show state of charge), but
it would be useful to get a confirmation.
10 years ago
chrox
d0b450efde
refresh battery capacity when going out of suspend
...
This should fix #1383 .
10 years ago
Michael Hall
9a66805b5a
Handle Kobo Touch Key
10 years ago
Hans-Werner Hilse
3d73ff5ae7
only open frontlight device on Kobo devices that actually have light
10 years ago
Hans-Werner Hilse
173de615db
Revert "smaller viewport for Kobo H2O (bezel overlaps bottom)"
...
This reverts commit fc36d6db37
.
10 years ago
Hans-Werner Hilse
fc36d6db37
smaller viewport for Kobo H2O (bezel overlaps bottom)
10 years ago
Hans-Werner Hilse
dacb59f6b2
move debug function handover, set viewport for Kobo Mini
...
in order to have debugging facilities in framebuffer:init(), we hand
over the debug function as soon as we can.
Also, set a viewport for Kobo Mini. Hopefully, it fits most people -
I can only test on my unit.
10 years ago
Hans-Werner Hilse
4a497cfcfb
fix initialization order on Kobos
...
notably, this will set up input offsets for viewport stuff after the
input rotation has been set up.
10 years ago
Hans-Werner Hilse
bf7ea7af6d
add device names as comments
...
we use mostly code names internally, but it is probably a good idea
to annotate the actual device names.
10 years ago
Hans-Werner Hilse
63af71188a
refactor refresh
...
Lots of the device-related distinction wandered into
base/ffi/framebuffer_<driver>. This eases the refresh logic in
UI manager, which basically only decides what kind of refresh
to trigger. The device specific configuration in the framebuffer
driver decides how to realize that whish.
screen.lua is gone, in its place is now the framebuffer driver.
The device abstraction decides what framebuffer driver to load.
10 years ago
chrox
8384eba810
consider also the screen size when scaling by DPI
10 years ago
Andrey Golovizin
f785b29f34
Fix the viewport on Kobo Aura (phoenix).
10 years ago
WS64
67c4bb365d
Center screen for Kobo Aura
...
Why was it
viewport = Geom:new{x=6, y=12, w=752, h=1012},?
viewport = Geom:new{x=0, y=0, w=752, h=1012}, looks way better!
10 years ago
Frans de Jonge
c4f1687c22
Remove KOBO_LIGHT_OFF_ON_SUSPEND option and move workaround to ffi/kobolight.ua
10 years ago
Frans de Jonge
011c5b6544
Fix Kobo resume in new hardware abstraction.
10 years ago
Qingping Hou
8927f901da
fix(input): use elseif conditional logic in adjustTouchSwitchXY
10 years ago
Hans-Werner Hilse
3066c86e38
Refactoring hardware abstraction
...
This is a major overhaul of the hardware abstraction layer.
A few notes:
General platform distinction happens in
frontend/device.lua
which will delegate everything else to
frontend/device/<platform_name>/device.lua
which should extend
frontend/device/generic/device.lua
Screen handling is implemented in
frontend/device/screen.lua
which includes the *functionality* to support device specifics.
Actually setting up the device specific functionality, however,
is done in the device specific setup code in the relevant
device.lua file.
The same goes for input handling.
10 years ago