maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   Power Button (https://talk.maemo.org/showthread.php?t=85491)

redgael 2012-07-14 07:20

Power Button
 
You can configure the N9, so that when you support 2 times a power button on the application starts?

rainisto 2012-07-14 07:40

Re: Power Button
 
Quote:

Originally Posted by redgael (Post 1237320)
You can configure the N9, so that when you support 2 times a power button on the application starts?

Sorry, I don't understand the question.

redgael 2012-07-14 08:27

Re: Power Button
 
Sorry i don't speak English^^

How?
Press 2 times the power button
&
Launch an application

Do you understand? :D

redgael 2012-07-14 10:23

Re: Power Button
 
I can not launch an application with this method


http://shootspeak.com/2011/10/10/nok...-mce-ini-file/


PowerKeyDoubleAction=disabled
=>
PowerKeyDoubleAction=/etc/reboot/bin/reboot

But the application does not launch

ranbaxy 2012-07-24 06:13

Re: Power Button
 
:confused:

nonikhanna 2012-07-24 06:42

Re: Power Button
 
I think he needs help to launch an application through a double press of the lock/power key.

nicolai 2012-07-24 07:21

Re: Power Button
 
The powerkey can not execute arbitrary commands.
Look at the comment in the mce.ini file:

Code:

# Valid options:
# disabled – do nothing on short press
# poweroff – shutdown device
# softpoweroff – enter soft poweroff mode
# tklock-lock – lock touchscreen/keypad lock if not locked
# tklock-unlock – unlock the touchscreen/keypad lock if locked
# tklock-both – lock the touchscreen/keypad if not locked,
# unlock the touchscreen/keypad lock if locked
# dbus-signal-<signal name> – send a D-Bus signal with the name <signal name>


ranbaxy 2012-07-24 07:29

Re: Power Button
 
Quote:

Originally Posted by nicolai (Post 1242059)
The powerkey can not execute arbitrary commands.
Look at the comment in the mce.ini file:

Code:

# Valid options:
# disabled – do nothing on short press
# poweroff – shutdown device
# softpoweroff – enter soft poweroff mode
# tklock-lock – lock touchscreen/keypad lock if not locked
# tklock-unlock – unlock the touchscreen/keypad lock if locked
# tklock-both – lock the touchscreen/keypad if not locked,
# unlock the touchscreen/keypad lock if locked
# dbus-signal-<signal name> – send a D-Bus signal with the name <signal name>


But from the link he posted, it looks like we can edit the mce.ini file and we can perform more functions :D

saponga 2012-07-24 15:37

Re: Power Button
 
Quote:

Originally Posted by ranbaxy (Post 1242063)
But from the link he posted, it looks like we can edit the mce.ini file and we can perform more functions :D

Actually, he just choose one of the valid options listed by nicolai. The options are clearlly showed as comented lines in the file.

ajalkane 2012-07-24 16:39

Re: Power Button
 
But dbus signals can be used to launch at least some applications, right?


All times are GMT. The time now is 02:11.

vBulletin® Version 3.8.8