maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Application for screen shut down (https://talk.maemo.org/showthread.php?t=70654)

mattiasbäx 2011-03-04 09:34

Application for screen shut down
 
I want my screen to auto shut down and auto lock itself, but not when i'm in a program or looking at a website! Is it any way to make this possibe?

Thanks in advance

Switch_ 2011-03-04 09:51

Re: Application for screen shut down
 
more description of what you actually want? You can manually configure the shut-off time for the screen within settings, or alternatively you can create a desktop widget to click and shut off the screen and keys when you want.....

mattiasbäx 2011-03-04 11:31

Re: Application for screen shut down
 
Quote:

Originally Posted by Switch_ (Post 960362)
more description of what you actually want? You can manually configure the shut-off time for the screen within settings, or alternatively you can create a desktop widget to click and shut off the screen and keys when you want.....

I want my phone to shut down the screen and lock itself when i'm not using it. But if i'm reading something on a website or playing a game that have me waiting and thinking the auto shut down will go off... Hopefully you'll understand the dilemma.

In example: I'm playing a game, close it and walk away. Now i want the screen to shut off and lock.
But let's say i'm playing magic the gathering with my friends and use the lifetracker application. Every time i'm supposed to click for damage the screen has locked because we haven't touched it for the time.

What i want is: auto lock and shutdown when phone is not in use (desktop showing) and no shutdown when an application is showing.

Switch_ 2011-03-04 11:34

Re: Application for screen shut down
 
Quote:

Originally Posted by mattiasbäx (Post 960442)
What i want is: auto lock and shutdown when phone is not in use (desktop showing) and no shutdown when an application is showing.

What you are asking for is a contradiction in terms. You want your phone to shut off when it's not being used - but when it's not being used you want it to stay live. This does not ring true I'm afraid.

Your best bet is to maximise the screen shut-off time i nthe settings for the device and then when you finish what you are doing use the slide lock to lock the screen and keys.

Alternatively you can create an icon on your desktop to lock the device using d-bus commands.

ndi 2011-03-04 11:46

Re: Application for screen shut down
 
Quote:

Originally Posted by Switch_ (Post 960448)
What you are asking for is a contradiction in terms.

It's a bit confusing, but I think he wants to auto-lock when on desktop, but not when in a program. Basically, automate what some apps do (prevent sleep).

OP: Until this gets flight, brightness-applet has a button that, while held (it's in the status area, so it's accessible) it will keep the screen up. I use it with VNC server, because VNC clicks don't register as inputs so the screen goes black.

nicholes 2011-03-04 11:54

Re: Application for screen shut down
 
Quote:

Originally Posted by Switch_ (Post 960448)
What you are asking for is a contradiction in terms. You want your phone to shut off when it's not being used - but when it's not being used you want it to stay live. This does not ring true I'm afraid.

Your best bet is to maximise the screen shut-off time i nthe settings for the device and then when you finish what you are doing use the slide lock to lock the screen and keys.

Alternatively you can create an icon on your desktop to lock the device using d-bus commands.

wooooooooo i would like to create a shortcut on the desktop to lock the screen !!!!!!! how to to this????????step by step tutorial needed...

Switch_ 2011-03-04 12:06

Re: Application for screen shut down
 
Open leafpad from xterm using
Code:

leafpad
Create a .desktop file that looks like this:
Code:

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=Lock
Exec=dbus-send --system --type=method_call
--dest=com.nokia.mce /com/nokia/mce/request
com.nokia.mce.request.req_tklock_mode_change string:"locked"
Icon=general_locked

Once that is done click on the top bar, and go to "Save As" - name the file "lock.desktop" and where it asks for location (currently says "/") change that to your device (click on the "/" button then click on your device name on the next pop-up - this will be the root of MyDocs folder in your device)

Open a new terminal window and become root
Code:

root
mv /home/user/MyDocs/lock.desktop /usr/share/applications/hildon/

Next open the settings on your desktop and "Add Shortcut" - add the shortcut called "Lock" and press it for fullscreen lockery shenanigans. Enjoy.

nicholes 2011-03-04 12:39

Re: Application for screen shut down
 
1 Attachment(s)
@Switch_

hmmmmm i did as you said the same (i think so )and i got the lock.desktop and moved into /usr/share/applications/hildon/ i can seee the file lock.desktop(using filebox) but there is no shortcut in desktop settings to "Add Shortcut"(there no name called "lock" infact there is no new shortcut i found)

Switch_ 2011-03-04 13:00

Re: Application for screen shut down
 
don't get it mate, it should be there.....

Have you already added one instance? If you have it wont appear on the menu. I need to work on getting the icon right, because in my theme it's half transparent and not "general_lock".

Joseph.skb 2011-03-04 13:26

Re: Application for screen shut down
 
Why don't you change the settings so that the phone does not lock. I think sleep alone is fine because you could easily activate it by sliding the keyboard or the slide button.

This may not solve your problem, but it's a 1-step less solution.

nicholes 2011-03-04 13:30

Re: Application for screen shut down
 
Quote:

Originally Posted by Switch_ (Post 960539)
don't get it mate, it should be there.....

Have you already added one instance? If you have it wont appear on the menu. I need to work on getting the icon right, because in my theme it's half transparent and not "general_lock".

nop i did add. i know i would not appear on the menu if i already added one.


All times are GMT. The time now is 08:14.

vBulletin® Version 3.8.8