Active Topics

 


Reply
Thread Tools
Posts: 68 | Thanked: 4 times | Joined on Feb 2010 @ Germany
#1
Hello,

I opened a thread :
http://talk.maemo.org/showthread.php...139#post888139

....to see the time on my N900, WHILE my device is locked at office (privat messages, pictures,...) without success yet...

A solution would be:
1)
to replace the slider-window by changing the sourcecode that it does not switch off my display after 4/5 seconds, but I do not know how?

2)writing the TIME on the screen with the lock-keys

3)
write the time directly on framebuffer (at key-lock-screen ,it stays on)

Has anyone an idea how to write the time directly on the framefuffer-device?
(I tested with mircowindows, but that is no good library anymore...)

thanks for any help!
schasch
 
Posts: 1,463 | Thanked: 1,916 times | Joined on Feb 2008 @ Edmonton, AB
#2
display on/off, dimming, lock is actually called by MCE (Mode Control Entity)
you can look at the mce.ini file but be very careful, if n900 can't read some settings it will not start. if you stick bad character in the wrong place, maybe you have to reflash

there's obviously some dbus command or window flags you can set to prevent sleep mode too, just try to find some open source video player and see how they do it.

if you really want to write to the framebuffer, search for directfb.

okay i see, you want it to freeze on the lock screen, without dimming... i would look at those mce.ini settings first, might be something in there.

here's some more dbus stuff you can try:
http://maemo.org/api_refs/5.0/beta/m...-names_8h.html

Last edited by Creamy Goodness; 2010-12-03 at 08:36.
 
Posts: 68 | Thanked: 4 times | Joined on Feb 2010 @ Germany
#3
>there's obviously some dbus command or window flags you
>can set to prevent sleep mode too,
yes, but this only shows the key-window (screenshot)
...without the time
:-(

> just try to find some open source video player and see how
>they do it.
mplayer is not been showed. the key-wondow is ONLY shown if locked...
:-(

>mce.ini
no setting-possibility to set the delay for the slider window to prevent going to black screen
:-(
Attached Images
 

Last edited by schasch; 2010-12-03 at 08:51.
 
Posts: 68 | Thanked: 4 times | Joined on Feb 2010 @ Germany
#4
Ok,
correction...

mplayer -vo fbdev fil.avi
...works, even with locked-device....

but now I have to display somehow the time....

?
 
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#5
Code:
while [ 1 == 1 ]; do 
    d=`date '+%H:%M'`
    text2screen -t "$d" -s 10
done
__________________
N9: Go white or go home
 

The Following 2 Users Say Thank You to daperl For This Useful Post:
Posts: 68 | Thanked: 4 times | Joined on Feb 2010 @ Germany
#6
thanks,
this already helps me very much!

regards
schasch
 
Posts: 1,463 | Thanked: 1,916 times | Joined on Feb 2008 @ Edmonton, AB
#7
did you look at the dbus stuff?
MCE_DISPLAY_ON_REQ "req_display_state_on"
-or-
MCE_TRIGGER_POWERKEY_EVENT_REQ req_trigger_powerkey_event

i would think one of those would wake up the screen without unlocking it

Last edited by Creamy Goodness; 2010-12-03 at 17:09.
 
Posts: 68 | Thanked: 4 times | Joined on Feb 2010 @ Germany
#8
Hello Creamy Goodness ,

>MCE_DISPLAY_ON_REQ "req_display_state_on"
this one only gets the display on
whenn it is locked, the key-window is shown and not the
time
Keeping the key-window ON is no problem if I use the
brightness-applet...


>MCE_TRIGGER_POWERKEY_EVENT_REQ req_trigger_powerkey_event
I didn't get this one to work. I alway got wrong name(parameter)
I think this one is use if you want to check the power-key if it was pressed...

regards
schasch
 
Posts: 68 | Thanked: 4 times | Joined on Feb 2010 @ Germany
#9
..solution till now...
Attached Images
 
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:28.