Reply
Thread Tools
Posts: 34 | Thanked: 5 times | Joined on Jan 2012
#1
You can configure the N9, so that when you support 2 times a power button on the application starts?
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#2
Originally Posted by redgael View Post
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.
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.
 
Posts: 34 | Thanked: 5 times | Joined on Jan 2012
#3
Sorry i don't speak English^^

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

Do you understand?
 
Posts: 34 | Thanked: 5 times | Joined on Jan 2012
#4
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's Avatar
Posts: 308 | Thanked: 299 times | Joined on Jul 2012 @ Graveyard
#5
 
Posts: 90 | Thanked: 62 times | Joined on Jul 2012 @ India, Canada
#6
I think he needs help to launch an application through a double press of the lock/power key.
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#7
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's Avatar
Posts: 308 | Thanked: 299 times | Joined on Jul 2012 @ Graveyard
#8
Originally Posted by nicolai View Post
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
 
Posts: 432 | Thanked: 917 times | Joined on Jun 2011
#9
Originally Posted by ranbaxy View Post
But from the link he posted, it looks like we can edit the mce.ini file and we can perform more functions
Actually, he just choose one of the valid options listed by nicolai. The options are clearlly showed as comented lines in the file.
 
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#10
But dbus signals can be used to launch at least some applications, right?
__________________
My N9/N950 projects:
 

The Following User Says Thank You to ajalkane For This Useful Post:
Reply

Tags
mce.ini, powerkey

Thread Tools

 
Forum Jump


All times are GMT. The time now is 10:48.