Active Topics

 


Reply
Thread Tools
Posts: 81 | Thanked: 45 times | Joined on Dec 2009
#1
I would like to write a "ScreenSaver" program that is activated whenever the N900 is idle and it is connected to the powercord. How should I do this? Should I just read the xscreensaver sources or won't whatever techinque it uses not work under FreeMantle?

My first application would be a photoalbum that would show pictures on the beatiful N900 screen, whenever the phone is idle.
 
giecsar's Avatar
Posts: 91 | Thanked: 34 times | Joined on Apr 2010 @ Italy
#2
Uhm, I'm no expert, but how about the CPU frequency trick? See, whenever the phone goes idle, the CPU downclocks itself to 250MHz. so in theory you can tell when the phone is idle by polling the frequency.
 

The Following User Says Thank You to giecsar For This Useful Post:
Posts: 81 | Thanked: 45 times | Joined on Dec 2009
#3
Sounds reasonable, in lack of anything better. How do you read the CPU frequency? /etc/cpuinfo?
 
ZogG's Avatar
Posts: 1,389 | Thanked: 1,857 times | Joined on Feb 2010 @ Israel
#4
1) it would end your battery twice faster?
2) are you trying to write an app or you want others to write for you (nothing personal - but it looks you don't know where to start man)
 
Posts: 81 | Thanked: 45 times | Joined on Dec 2009
#5
Originally Posted by ZogG View Post
1) it would end your battery twice faster?
2) are you trying to write an app or you want others to write for you (nothing personal - but it looks you don't know where to start man)
1. I wrote that I intend this application to run when the unit is connected to the power cord. Thus no problem with battery drain.

2. I intend to write the application with clutter, though I still haven't decided whether to do it in Python or C.

And yes, I know how to write applications, though there are a few points that I wanted help with, and asking stupid questions is one of the first principles of learning. And "man" I typically use for "man pages". Try "man man", man.

Cheers,
Dov
 

The Following User Says Thank You to dov For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#6
Originally Posted by dov View Post
[...]connected to the powercord. How should I do this?
D-Bus signals are emitted by BME when the charger is connected/disconnected. To get the current state, look at the "maemo.charger.connection_status" property on the UDI "/org/freedesktop/Hal/devices/bme" using HAL*.

*/me wonders if gudev will build...
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 16:09.