mavrothal wrote:rrolsbe wrote:
2. What is the easiest way to turn off ALL the power management (or at least enough to not inhibit watching a movie) while watching a DVD? Can I just kill the power daemon? If so, what is the name of the daemon?
3. How to revert to the standard aggressive power management after watching a movie.
2)
3)
I had a movie playing to test how long the battery would last while watching a DVD movie and the unit went to sleep. I was playing the movie from an ISO located on a USB flash stick. When the OLPC laptop went to sleep, it unmounted the NTFS partition on the USB stick (could corrupt the file system). I plan to monitor the battery life while watching a movie but need an easy way to switch back and forth between the standard aggressive power management (a good thing usually) and little or no power management while watching movies.
Regards, Ron
This souldn't be happening.
The XO should not go to sleep if the CPU is used more than 10%. The screen can deem or even blank if the sleep timeout is after dim or blank timeout (as is set in XOpups) but should not go to sleep.
It doesn't in mine.
A good way to tell that is asleep is the slowly flashing power light (rightmost)
BTW when it goes to sleep it unmounts the USBs.
What's happening if the sleep timeout is before dim/blank? (actually this is the recommended setting for max power savings but the XO-1 flickers a just a bit every time it wakes up and annoys me
)
In mine just stays awake during playback.
Type "powerd-config" to set the timeouts and then restart powerd as above.
Is that v3 or v4? Do you have firmware q2e45? any other modifications?
About 1) Good question! Looks like in puppy ifdown/ifup does not work
How
do you kill network in puppy???
Thanks for the reply. I am currently using V3 with the geode pet installed. I have the latest firmware because I just updated the OLPC internal NAND two days ago (which also updated the firmware). I am pretty sure it went to sleep on the first test because (as you said), the USB stick was not mounted and when I moved the mouse Puppy came back to life (IE.. was not powered off). If the power monitoring daemon umounts the USB devices before going to sleep, that would be a VERY good thing. NOTE: I also have to rerun DHCP after the unit enters the sleep mode. I will rerun the 1st test , with the standard daemon power settings, and report back later.
1st test rerun results:
Pointed powerd.conf symbolic link back to the original aggressive config file, killed the daemon, restarted and reran the test. It played for 35 minutes and stopped playing. The green power indicator just to the left of the power button was flashing. Moved the mouse pointer and she came back alive but the flash stick I was playing the movie from was not mounted (as expected per your post). The Puppy battery charge level indicated it still had 76% left. If the CPU working more that 10% keeps it from entering sleep mode, I am not sure whats going on???? BTW, how does the daemon know it is in tablet mode??? Is there a hardware sensor that senses when you flip the screen around for table mode?
The stick I am playing the DVD ISO from must be plugged into a USB hub because Puppy doesn't see the device if it is plugged directly into one of the three USB ports?? (using "fdisk -lu" command to verify). Maybe this has something to to with the mystery, but why would it play for 35 minutes???? Also, this stick has an NTFS partition. I will repeat the test (third times a charm) using a stick with an ext2 partition, that works when directly plugged into the OLPC USB ports.
2nd Test: I edited the /etc/powerd/powerd.conf file rebooted and reran the DVD movie play test. Starting from a battery level of 97% the movie played for about an hour and 20 minutes. At that time, Puppy indicated the battery level was at 31% and the multicolor charging/status LED started flashing RED/Orange. Shortly thereafter, the OLPC powered itself down requiring me to plug in the wall-wart charger and power the unit back on (I guess this is the OLPC hardware power monitor and not the daemon that shut the unit down?). NOTE, during this play test I had the screen back-light set to its lowest setting, which I think is OFF? If the movie had played two hours or more, I could at least watch movies in B&W using the airplane overhead lighting; however, looks like that may not be an option and certainly wouldn't be if I watched it in color (IE.. using the screen back-light).
From the OLPC website
# if the LED is red, the battery is low.
# if the LED is flashing red/orange then the battery voltage is critically low, (only minutes left).
I am almost sure it was flashing red/orange when I noticed it (it did shut down within a about a minute or so. Not sure why the Puppy monitor though it still had 31% of the battery left?
Thanks Very Much for your response.
Regards, Ron
PS.. Maybe someone else will post their movie play test results. Wink-Wink