Open fetzerch opened 12 years ago
It seems there is a bug in the ScreenSaver code: http://forum.meego.com/showthread.php?t=4810
Ah didn't know that there's a qml element.
In C++ it's working with the following snippet (QmDisplayState). Basically you have to call setBlankingPause every 60seconds.
Is it possible to add this anyhow with your python code?
INCLUDEPATH += /usr/include/resource/qt4
LIBS += -lresourceqt -lqmsystem2
#include <resource/qt4/policy/resource-set.h>
#include <qmsystem2/qmdisplaystate.h>
MeeGo::QmDisplayState m_disaplyState;
...
ResourcePolicy::ResourceSet *m_resouceSet = new ResourcePolicy::ResourceSet("game"))
ResourcePolicy::BacklightResource *backlightResource = new ResourcePolicy::BacklightResource();
backlightResource->setOptional(false);
m_resouceSet->addResourceObject(backlightResource);
qDebug() << "acquired backlight:" << m_resouceSet->acquire();
connect(&m_displayBlankingTimer, SIGNAL(timeout()), SLOT(setBlankingPause()));
m_displayBlankingTimer.start(60000);
...
void setBlankingPause() {
m_displayState->setBlankingPause();
}
I was using agtl for quite a while on the n900. Awesome that you ported it to harmattan!
Could you add an option / button to keep the display backlight on and prevent the device from going to standby. On the last meters to a geocache you might want to see the compass / map view all the time cause this helps to finally find it.
With the N900 i was using the 'simple brightness applet' for that reason but the n9 is lacking widget support. (I guess it should be possible using this api: http://harmattan-dev.nokia.com/docs/library/html/qmsystem2/classMeeGo_1_1QmDisplayState.html)
What do you think?