05-22-2013, 10:38 AM | #1 |
Member
Posts: 17
Karma: 10
Join Date: May 2013
Device: PaperWhite
|
Open a web page at startup on a PaperWhite
Hi !
As part as a project I will need to display at startup the content of a web page (basically an image). And then update this content each hour (for example). I saw a thread (https://www.mobileread.com/forums/sho...d.php?t=210210) who will allow me to display the page in full screen. But how can I do it at startup, without any "human" intervention ? Then, it would be even better if I manage to fully replace the OS by a basic Linux who will only launch my web browser with the url I want. Do you think this is possible and if so, do you have any ideas ? I confess, I'm really new with kindle tablet and the project is quite short, so if it gets really complicated I will keep the first option. Thanks for your advices. Vadim |
05-22-2013, 11:26 AM | #2 |
THE NOOB
Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
I think it could be done using an upstart script and the end of the upstart process.
But wait for more info! |
Advert | |
|
05-22-2013, 01:48 PM | #3 |
Wizard
Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
|
|
05-23-2013, 02:48 AM | #4 |
Member
Posts: 17
Karma: 10
Join Date: May 2013
Device: PaperWhite
|
Thank you both, a script plus the event handler will do the trick !
But, I have an other question, is that possible to manage the processor activity ? For example, when the kindke puts itself on standby, I would like to reduce the cpu activity to 10% and shut off the WiFi. Do you know how can I do it ? |
05-23-2013, 06:24 AM | #5 | |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
|
|
Advert | |
|
05-23-2013, 08:26 AM | #6 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
posted within the past week:
echo 'mem' >/sys/power/state or something like that, search for my post in the thread subject of turning the Kindle off. |
05-24-2013, 03:52 AM | #7 |
Member
Posts: 17
Karma: 10
Join Date: May 2013
Device: PaperWhite
|
Thanks ixtab for your informations, I will get the kindle today, I didn't knew about the sleep mode implications.
knc1, I saw your post, I will take a look at it ! Thanks too. |
05-24-2013, 08:24 AM | #8 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Plug in USB cable: Code:
PM: resume of devices complete after 804.277 msecs kernel: I PM:resume:duration=804.277: Restarting tasks ... done. g_ether gadget: high speed config #1: CDC Ethernet (ECM) Battery: Resume - TimeSuspended(secs)=569234, NAC=0x1ed1, RSOC=98, capacity=92% Battery: Resume - PostUpdate NAC=0x1c25, RSOC=98 [root@kindle root]# (A change in the device's system resources will wake Linux from suspend - any Linux, even your desktop). So the report says it sat in its case about 6.5 days, waiting for something to happen. Used 8% of the battery capacity doing that. According to the dmesg above - cron would not have been running - but I suspect the hardware timers where. And obviously, the USB buses where powered (so the change in bus configuration could wake the sleeping kernel). PS: Yes, earlier in the kernel message buffer it mentioned that the Wifi chip was powered off. Last edited by knc1; 05-24-2013 at 08:32 AM. |
|
05-25-2013, 06:34 AM | #9 |
Member
Posts: 17
Karma: 10
Join Date: May 2013
Device: PaperWhite
|
Knc1, could you explain how you get those type of logs please ? It seems really helpful
|
05-25-2013, 08:17 AM | #10 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
dmseg (does not clear the buffer) dmseg -c (does clear the buffer) Re-direct to a file if you want to save the output. From the KUAL launcher: touch the: dmesg -> document button. That does clear the buffer, but each generated text document is named by its date-time stamp of creation. For the post above, I used the first method - because the screen saver was still displayed by the "wake on USB event" process. |
|
05-25-2013, 10:39 AM | #11 |
Member
Posts: 17
Karma: 10
Join Date: May 2013
Device: PaperWhite
|
Thanks knc1 ! I have a final question, do you need to use SSH connection to perform sudo command ? When I tried to edit some file I get a permission denied and the sudo command is unknown..
|
05-25-2013, 10:45 AM | #12 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
You are already running as root. Some of the filesystems are mounted read-only; Some of the filesystems can not be written by design. "tried to edit some file" <<--- which one? where? It makes a difference in the answer. |
|
05-25-2013, 10:50 AM | #13 |
Member
Posts: 17
Karma: 10
Join Date: May 2013
Device: PaperWhite
|
Ok, for example, an "echo mem >/sys/power/state" is not working.
|
05-25-2013, 12:12 PM | #14 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
05-25-2013, 02:58 PM | #15 |
Member
Posts: 17
Karma: 10
Join Date: May 2013
Device: PaperWhite
|
The spelling is OK, that's why I don't understand... But, I found an other way to do it, so don't bother you And thank you for all your help !
|
Tags |
linux, paperwhite, startup |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
can't open .mobi converted from epub on paperwhite | perler | Devices | 1 | 12-25-2012 10:00 PM |
Function call to open a web link | Agama | Development | 1 | 08-22-2012 06:29 AM |
Can't open or connect to web-site. | hcreechok | Calibre | 5 | 06-20-2011 12:26 PM |
Touch Touch bug - open document with page arrow open | Sooty | Kobo Reader | 3 | 06-11-2011 09:25 PM |
Classic Nook skips page after startup | sulka | Barnes & Noble NOOK | 3 | 10-19-2010 12:35 PM |