Notices


Reply
Thread Tools
lorenzo's Avatar
Posts: 491 | Thanked: 299 times | Joined on Jul 2012 @ Pordenone IT
#11
i have a problem: the double action of powerkey was assigned to unlock the device and now the string is empty (and if i duoble press it the phone goes in powersaving mode)
what should be written after PowerKeyDoubleAction=?
and is it possible to unlock the device when locked and have powermenu when unlocked
many thanks
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#12
Code:
PowerKeyDoubleAction=dbus-signal-powerkey_double_ind
Same as in Maemo 5

I'll add unlocking the device in the next version.
 

The Following User Says Thank You to MohammadAG For This Useful Post:
lorenzo's Avatar
Posts: 491 | Thanked: 299 times | Joined on Jul 2012 @ Pordenone IT
#13
don't you think it is easyer have
Code:
PowerKeyLongAction=dbus-signal-powerkey_double_ind
PowerKeyDoubleAction=tklock-unlock
 
Posts: 108 | Thanked: 77 times | Joined on Jul 2012
#14
Pure Sweet Holy Love <3 - <3
__________________
I Hope i Pissed you OFF

Just a 'normal' guy who Loves N9
Twittter: https://twitter.com/MunimZahid
Facebook: https://www.facebook.com/ModestAtTheTop
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#15
Originally Posted by lorenzo View Post
don't you think it is easyer have
Code:
PowerKeyLongAction=dbus-signal-powerkey_double_ind
PowerKeyDoubleAction=tklock-unlock
I actually did that at first (see code), but the fact it starts 2 minutes after bootup means the long press won't do anything for 2 minutes, which might be annoying if the user wishes to power off quickly for some reason.
 

The Following User Says Thank You to MohammadAG For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#16
just place .conf in /etc/init and add it to group-mce.conf
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
lorenzo's Avatar
Posts: 491 | Thanked: 299 times | Joined on Jul 2012 @ Pordenone IT
#17
and a "killall mce" after boot can't be a solution?
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#18
No, mce just sends a signal, /usr/bin/harmattan-power-menu shows the menu and handles the dbus signal.

What coderus posted is a good solution, just need to do a quick script to safely edit mce.ini and group-mce.conf. sed can't cover all possibilities.
 

The Following User Says Thank You to MohammadAG For This Useful Post:
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#19
I'll post for once and say one thing. Thanks!

Edit: Wait, it didnt work for me after restart even. It comes up exactly how? Pressing power button how many times?

Last edited by F2thaK; 2012-12-17 at 11:08.
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#20
Double click the power button, this will change to long press in 0.2
 

The Following 2 Users Say Thank You to MohammadAG For This Useful Post:
Reply

Tags
extended, harmattan, power

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:37.