Comments (6)
We could stop framework with kill -STOP <backquote>cat /var/run/cvm.pid<backquote>
and suspend ourselves with echo "mem" >/sys/power/state
just like /etc/init.d/framework
does. Would that help?
from kindlepdfviewer.
We could stop framework with
kill -STOP <backquote>cat /var/run/cvm.pid<backquote>
and suspend ourselves withecho "mem" >/sys/power/state
just like/etc/init.d/framework
does. Would that help?
Except from writing /sys/power/state
, are there anything else the framework does for power management? Maybe we could resume the framework on event occur to let it handle the power management and screen saver drawing?
from kindlepdfviewer.
I happened to find the file drivers/char/luigi_button.c
in the released kernel source. Looks like the driver for the power slider.
Edit:
cat /proc/misc
does lists the luigibutton
device.
from kindlepdfviewer.
Maybe we can pull events from the power button with ioctl on /dev/pmic
?
from kindlepdfviewer.
I've changed it a bit now and spawn the new process from within kpdfview via fork(). I reused the code you wrote in slider_watcher, since I really like the hackyness of the event emulation :-)
Worked very well for me. This should probably also be incorporated in other event loops.
While working on the code in input.c, I also enabled "waiting forever" in select().
from kindlepdfviewer.
Good job, fork looks cleaner. :)
I am closing this issue for now.
from kindlepdfviewer.
Related Issues (20)
- switch default branch on github to new ui branch HOT 32
- unable to return to the native system :( HOT 5
- readers crash when paging from TOC HOT 4
- an indicator to know that the app is not frozen? HOT 2
- Suggest to use Left to move up in folders HOT 2
- Update make build infrastructure to factored out C/C++ API HOT 3
- Pdf: When in zoom, next page should position to the top of the page automatically HOT 6
- Update k2pdfopt to v1.65 HOT 3
- Latest nightly build will not launch HOT 16
- filechooser dialog causing too many refreshes
- Fit content mode should align to center HOT 3
- Some epub file can't open on the kpv HOT 3
- Switching pan_by_page and panning left/right crashes kpv
- All history of current session will lost when program crashed HOT 5
- Suggestion on keys for navigating in file browser
- Content missing in a CHM file when being displayed by KPV
- 可以识别 chm 文件,但是打不开?
- bookmark jumping in epub messed up in certain case HOT 11
- next page key sometimes flips a page instead of scrolling, in fit-content-width mode HOT 1
- Unable to read any epub file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kindlepdfviewer.