Reply
Thread Tools
Posts: 217 | Thanked: 20 times | Joined on Jan 2010
#1
Hi
Is it possible to let the screen always on while the slide is open and return to normal configured screen time out while slide screen is close?
Thanks

dhcmega
 
xomm's Avatar
Posts: 609 | Thanked: 243 times | Joined on Jan 2010 @ Eastern USA
#2
No, not that I know of. You could try writing your own script.

An alternative is to use Simple Brightness Applet, and toggle "Keep display on."
__________________
==In school once again. Free time limited to night, holidays and weekends.==
Hi! I'm Andy, a Maemo Greeter! I'm also a moderator of the Applications, Nokia N900, and Maemo 5/Fremantle forums.
Useful Links: Maemo Wiki Main Page, New users start here, Beginners' wiki page, Maemo5 101, Frequently Asked Questions (FAQ)
Also, pin yourself in the map! Maemo Map. Send me a PM (Private Message) if I leave you hanging on a problem (or if you need more help).
Owner of both a N800 and N900; Active community member since Jan 2010. You've been xommified! - My blog.
 
Posts: 217 | Thanked: 20 times | Joined on Jan 2010
#3
Yes, but I just want it to lit when it is opened, so I have to keep changing that config option all the time.
 
pelago's Avatar
Posts: 2,121 | Thanked: 1,540 times | Joined on Mar 2008 @ Oxford, UK
#4
This sounds like a good idea. It would be nice to be able to separately control timeouts whether the keyboard is open or closed.
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#5
You may try dbus-scripts.
Write a script to turn screen on every few seconds while
keybord open. And call this script from dbus-scripts when keyboard opened.

For example:
dbus-scripts setting:
/home/user/stay_lit.sh * * org.freedesktop.Hal.Device Condition ButtonPressed cover

Your script (/home/user/stay_lit.sh)

Code:
#!/bin/sh
# path to the keyboard slide state
SLIDE_PATH=/sys/devices/platform/gpio-switch/slide/state

TIMEOUT=25
read SLIDE_STATE < $SLIDE_PATH
while [ "$SLIDE_STATE" == "open" ]; do
# dbus-call to stop display blanking, I thought this one should turn light on 
# for at least 60 seconds, but it depends on your display settings.
  run-standalone.sh dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_display_blanking_pause
  sleep $TIMEOUT
  read SLIDE_STATE < $SLIDE_PATH
done
The TIMEOUT value has to be less than your display blank time.

regards nicolai
 

The Following 3 Users Say Thank You to nicolai For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 00:13.