Go Back   maemo.org - Talk > OS / Platform > Maemo 5 / Fremantle
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #1  
Old 2012-04-16, 15:11
qwazix's Avatar
qwazix qwazix is offline
Moderator
 
Join Date: Jan 2010
Posts: 2,622
Thanks!: 1,135
Thanked 5,447 Times in 1,547 Posts
Default [Announce - #MCCXII] Timenow: Proximity enabled lock screen

Remember the N95? It also had a transflective lcd screen just like the N900, but the N95 screen always showed the time. It was really dim but it was cool for most of the situations.

I also saw the 701, which also has an LCD screen and has an Idle screen with the time and notifications just like the N9, with the backlight turned down to the lowest level.

So I think maybe there is not too much impact on battery life if the N900 showed the lock screen always, (with a white background and black text)

I managed to turn the lock screen on when the device is locked with a script that simulates a power button press, and then dim the screen to 2 or even 0, but the screen turns off again 3 seconds later. I made a loop that triggers the power button again, and I managed to make it last for about 15 seconds, but then the screen turns forcibly off, and back on the next time the loop kicks in. The downside is that the backlight is dimmed 0.7 seconds after "power button pressed" so the light flashes once each 15 seconds which is unacceptable. You can try it by physically tapping the power button continuously. The lock screen eventually turns off.

So I am in search of a dbus command or other script that just forces the screen to turn on, and stay that way.

EDIT: various solutions are in development, check the thread. Most stable seems to be woodys' QBW in page 2. (Link)

EDIT: I am happy to announce timenow, a utility that shows the time on the locked screen when the proximity sensor is uncovered. This should be power friendly enough, but please test and report.

EDIT: fixed some bugs and imported to extras-devel
Attached Files
File Type: gz timenow.tar.gz (10.1 KB, 463 views)
File Type: deb timenow_0_0_1_armel.deb (14.7 KB, 603 views)
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jollacontactlaunchtimenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob

Last edited by qwazix; 2012-09-06 at 19:35.
Reply With Quote
  #2  
Old 2012-04-16, 15:55
nicolai's Avatar
nicolai nicolai is offline
 
Join Date: Apr 2009
Location: Germany
Posts: 1,637
Thanks!: 1,650
Thanked 4,424 Times in 1,023 Posts
Send a message via ICQ to nicolai Send a message via MSN to nicolai Send a message via Skype™ to nicolai
Default Re: [q] turn the screen on programmatically

There are some undocumented "screensaver" settings:
http://talk.maemo.org/showpost.php?p...07&postcount=5
Reply With Quote
The Following 7 Users Say Thank You to nicolai For This Useful Post:
  #3  
Old 2012-04-16, 19:42
qwazix's Avatar
qwazix qwazix is offline
Moderator
 
Join Date: Jan 2010
Posts: 2,622
Thanks!: 1,135
Thanked 5,447 Times in 1,547 Posts
Default Re: [q] turn the screen on programmatically

oh thanks! I had seen that thread but missed these options.I will try and report back.
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jollacontactlaunchtimenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
Reply With Quote
  #4  
Old 2012-04-17, 17:53
qwazix's Avatar
qwazix qwazix is offline
Moderator
 
Join Date: Jan 2010
Posts: 2,622
Thanks!: 1,135
Thanked 5,447 Times in 1,547 Posts
Default Re: [q] turn the screen on programmatically

Unfortunately they don't seem to affect lockscreen behavior... It still turns off 3s later
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jollacontactlaunchtimenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
Reply With Quote
  #5  
Old 2012-04-17, 19:05
nicolai's Avatar
nicolai nicolai is offline
 
Join Date: Apr 2009
Location: Germany
Posts: 1,637
Thanks!: 1,650
Thanked 4,424 Times in 1,023 Posts
Send a message via ICQ to nicolai Send a message via MSN to nicolai Send a message via Skype™ to nicolai
Default Re: [q] turn the screen on programmatically

inhibit_blank_mode 4 disables screen blank
this works for me.
gconftool -s /system/osso/dsm/display/inhibit_blank_mode 4 -t int
Reply With Quote
The Following 7 Users Say Thank You to nicolai For This Useful Post:
  #6  
Old 2012-04-17, 23:13
qwazix's Avatar
qwazix qwazix is offline
Moderator
 
Join Date: Jan 2010
Posts: 2,622
Thanks!: 1,135
Thanked 5,447 Times in 1,547 Posts
Default Re: [q] turn the screen on programmatically

does it need a reboot? I run this command as user and then lock the device. Screen turns off. If I press the power button screen turns on and off again after 3 seconds. I am using CSSU testing (latest). Thanks.
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jollacontactlaunchtimenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
Reply With Quote
  #7  
Old 2012-04-18, 13:08
MohammadAG's Avatar
MohammadAG MohammadAG is offline
 
Join Date: Oct 2009
Location: Jerusalem, PS/IL
Posts: 2,473
Thanks!: 1,091
Thanked 12,265 Times in 1,478 Posts
Send a message via MSN to MohammadAG Send a message via Skype™ to MohammadAG
Default Re: [q] turn the screen on programmatically

Code:
echo 0 > /sys/class/graphics/fb0/blank
echo 20 > /sys/class/backlight/acx565akm/brightness
You can then write to the framebuffer manually to have it display stuff.
I'm not sure what disables rendering UI elements such as the desktop, probably some code in hildon-desktop

As an example:
Code:
# With the screen on
cat /dev/fb0 > rawscreenshot
# Lock screen with side button
echo 0 > /sys/class/graphics/fb0/blank
echo 20 > /sys/class/backlight/acx565akm/brightness
cat rawscreenshot > /dev/fb0
# You should see your screenshot on the framebuffer
Optionally, this enables the touchscreen.
Code:
echo 0 > /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_ts
Reply With Quote
The Following 13 Users Say Thank You to MohammadAG For This Useful Post:
  #8  
Old 2012-04-18, 13:29
MohammadAG's Avatar
MohammadAG MohammadAG is offline
 
Join Date: Oct 2009
Location: Jerusalem, PS/IL
Posts: 2,473
Thanks!: 1,091
Thanked 12,265 Times in 1,478 Posts
Send a message via MSN to MohammadAG Send a message via Skype™ to MohammadAG
Default Re: [q] turn the screen on programmatically

And yep, it's in hildon-desktop:
http://gitorious.org/community-ssu/h...dbus.c#line226
Lines 256-272 stop any redraws from occurring.
Reply With Quote
The Following 9 Users Say Thank You to MohammadAG For This Useful Post:
  #9  
Old 2012-04-18, 13:39
qwazix's Avatar
qwazix qwazix is offline
Moderator
 
Join Date: Jan 2010
Posts: 2,622
Thanks!: 1,135
Thanked 5,447 Times in 1,547 Posts
Default Re: [q] turn the screen on programmatically

Excellent! Thanks a lot, it is even better than I expected as I can write whatever I want on the screen.
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jollacontactlaunchtimenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
Reply With Quote
The Following 6 Users Say Thank You to qwazix For This Useful Post:
  #10  
Old 2012-04-18, 14:26
MohammadAG's Avatar
MohammadAG MohammadAG is offline
 
Join Date: Oct 2009
Location: Jerusalem, PS/IL
Posts: 2,473
Thanks!: 1,091
Thanked 12,265 Times in 1,478 Posts
Send a message via MSN to MohammadAG Send a message via Skype™ to MohammadAG
Default Re: [q] turn the screen on programmatically

If you're not interested in the UI you can play a video in mplayer as well.
Code:
mplayer -vo fbdev videofile
Reply With Quote
The Following 11 Users Say Thank You to MohammadAG For This Useful Post:
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:31.