maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Extended Power Menu for Harmattan (https://talk.maemo.org/showthread.php?t=88280)

MohammadAG 2012-12-16 16:33

[Announce] Extended Power Menu for Harmattan
 
Inception or open mode required!

Longing for Android? Probably not... :p

In any case, this is inspired from Android's power menu.

http://i.imgur.com/oRgGC.png

You can install easily if you have my repository installed: http://talk.maemo.org/showthread.php?t=85438
Code:

devel-su #enter pass
apt-get update
apt-get install harmattan-power-menu

in which case you'll receive update notifications etc.

or you can either use the direct deb and incept it (no support in installation problems!)

Code:

wget http://mohammadag.xceleo.org/n9inceptedrepo/pool/free/h/harmattan-power-menu/harmattan-power-menu_0.1_armel.deb
/usr/sbin/incept harmattan-power-menu_0.1_armel.deb #enter root pass

Or in open mode
Code:

devel-su #enter pass
wget http://mohammadag.xceleo.org/n9inceptedrepo/pool/free/h/harmattan-power-menu/harmattan-power-menu_0.1_armel.deb
export AEGIS_FIXED_ORIGIN=com.nokia.maemo
dpkg -i harmattan-power-menu_0.1_armel.deb

To activate it after installation, double click the power button.
This will auto-start 2 minutes after boot-up, a limitation in Harmattan's upstart (I'll see if it can be bypassed).

Source on Github: https://github.com/harmattan/extended-power-menu

Thanks to _JKay_ from xda-developers for the profile icons (borrowed them from JKay Framework)

Donate:
https://www.paypalobjects.com/en_US/...onateCC_LG.gif

B3Punch3D 2012-12-16 16:44

Re: [Announce] Extended Power Menu for Harmattan
 
Thank you so much for this.. for this.. awesomeness =)

evujumenuk 2012-12-16 16:45

Re: [Announce] Extended Power Menu for Harmattan
 
Is there any reason one would want to restart the homescreen?

(Not trolling, I really don't know :))

thedead1440 2012-12-16 16:47

Re: [Announce] Extended Power Menu for Harmattan
 
Quote:

Originally Posted by evujumenuk (Post 1305125)
Is there any reason one would want to restart the homescreen?

(Not trolling, I really don't know :))

Changing icons, themes, some system services etc instead of a reboot...

evujumenuk 2012-12-16 16:49

Re: [Announce] Extended Power Menu for Harmattan
 
What defines the maximum time between clicks in a double click?

ThraxZzz 2012-12-16 16:57

Re: [Announce] Extended Power Menu for Harmattan
 
Thanks MAG for this awesomeness :)

MohammadAG 2012-12-16 16:58

Re: [Announce] Extended Power Menu for Harmattan
 
Quote:

Originally Posted by evujumenuk (Post 1305127)
What defines the maximum time between clicks in a double click?

PowerKeyDoubleDelay in /etc/mce/mce.ini :)
Restart mce after changing the value.

Restarting MeeGoTouchHome is similar to Hot boot in Android.
Most apps are bootstrapped to MeeGoTouchHome, so killing it will kill those apps, and of course, as mentioned, it's a quick way to reload resources.

Dr.Heyde 2012-12-16 17:11

Re: [Announce] Extended Power Menu for Harmattan
 
...this is awesome.... thx a lot!

hrabrik 2012-12-16 17:15

Re: [Announce] Extended Power Menu for Harmattan
 
Add the possibility of navigating through the volume buttons and the phone app!

Iryus 2012-12-16 17:18

Re: [Announce] Extended Power Menu for Harmattan
 
Nice job MAG and...welcome back !! ;)

lorenzo 2012-12-16 17:40

Re: [Announce] Extended Power Menu for Harmattan
 
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 2012-12-16 17:43

Re: [Announce] Extended Power Menu for Harmattan
 
Code:

PowerKeyDoubleAction=dbus-signal-powerkey_double_ind
Same as in Maemo 5 :)

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

lorenzo 2012-12-16 18:01

Re: [Announce] Extended Power Menu for Harmattan
 
don't you think it is easyer have
Code:

PowerKeyLongAction=dbus-signal-powerkey_double_ind
PowerKeyDoubleAction=tklock-unlock


MeeNu 2012-12-16 21:33

Re: [Announce] Extended Power Menu for Harmattan
 
Pure Sweet Holy Love <3 - <3

MohammadAG 2012-12-16 22:25

Re: [Announce] Extended Power Menu for Harmattan
 
Quote:

Originally Posted by lorenzo (Post 1305157)
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.

coderus 2012-12-16 23:49

Re: [Announce] Extended Power Menu for Harmattan
 
just place .conf in /etc/init and add it to group-mce.conf

lorenzo 2012-12-17 06:14

Re: [Announce] Extended Power Menu for Harmattan
 
and a "killall mce" after boot can't be a solution?

MohammadAG 2012-12-17 10:30

Re: [Announce] Extended Power Menu for Harmattan
 
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.

F2thaK 2012-12-17 10:48

Re: [Announce] Extended Power Menu for Harmattan
 
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?

MohammadAG 2012-12-17 11:31

Re: [Announce] Extended Power Menu for Harmattan
 
Double click the power button, this will change to long press in 0.2

F2thaK 2012-12-17 11:38

Re: [Announce] Extended Power Menu for Harmattan
 
Crap. I forgot to mention I have double press to unlock, is this why its not working for me?

coderus 2012-12-17 11:43

Re: [Announce] Extended Power Menu for Harmattan
 
@MohammadAG i think
Code:

sed -i -e "s/end script/    start extended-power-menu\nend script/" /etc/init/group-mce.conf
can solve it ;)
Code:

sed -e "/^    start extended-power-menu/d" /etc/init/group-mce.conf > /etc/init/group-mce.conf
for restoring

@F2thaK it took some time to autostart. and defaul behaviour is double tap on power key. but if you modifyed mce.ini with tweaks you should restore PowerKey action

wout.martens 2012-12-17 12:12

Re: [Announce] Extended Power Menu for Harmattan
 
dont know why but it doesnt work for me.
Double press nor long press. looking forward to the update to 0.2

thedead1440 2012-12-17 12:38

Re: [Announce] Extended Power Menu for Harmattan
 
Quote:

Originally Posted by wout.martens (Post 1305341)
dont know why but it doesnt work for me.
Double press nor long press. looking forward to the update to 0.2


If you have anything that inhibits power button you can face the issue for example, n9-button-monitor if its set to monitor power button... Check your /etc/mce/mce.ini and see what's the values for power key double press; it should match as below:

Code:

PowerKeyDoubleAction=dbus-signal-powerkey_double_ind

koe 2012-12-17 14:37

Re: [Announce] Extended Power Menu for Harmattan
 
MohammadAG, thanks, man!
one thing: can you put menu's dialog text in config file, so everyone can change and localize it? it is not critically needed, off course, but it would be nice feature.

MohammadAG 2012-12-17 14:46

Re: [Announce] Extended Power Menu for Harmattan
 
Quote:

Originally Posted by coderus (Post 1305333)
@MohammadAG i think
Code:

sed -i -e "s/end script/    start extended-power-menu\nend script/" /etc/init/group-mce.conf
can solve it ;)
Code:

sed -e "/^    start extended-power-menu/d" /etc/init/group-mce.conf > /etc/init/group-mce.conf
for restoring

@F2thaK it took some time to autostart. and defaul behaviour is double tap on power key. but if you modifyed mce.ini with tweaks you should restore PowerKey action

S 15 com.nokia.maemo H 40 c7e50f2be6c5361377682c58e066269649be275b A 0 0 33188 P 15 system-services R 23 etc/init/group-mce.conf
group-mce.conf seems to be in refhashlist, meaning it might cause a MALF if edited

MaddogG 2012-12-17 16:06

Re: [Announce] Extended Power Menu for Harmattan
 
If possible, could you please add the "Beep" profile? Thank you in advance.

coderus 2012-12-17 16:07

Re: [Announce] Extended Power Menu for Harmattan
 
@MohammadAG you can use refhashlist.pl or my shell script:
Code:

#!/bin/sh

line=$(grep "etc/init/group-mce.conf" /var/lib/aegis/refhashlist)
oldsha1=$(for ii in $(sha1sum /etc/init/group-mce.conf); do echo $ii; break; done)
#MAKE ACTIONS WITH /etc/init/group-mce.conf
newsha1=$(for ii in $(sha1sum /etc/init/group-mce.conf); do echo $ii; break; done)
newline=$(echo ${line} | sed -e "s/${oldsha1}/${newsha1}/")
sed -i -e "s@${line}@${newline}@" /var/lib/aegis/refhashlist
accli -c tcb-sign -F /var/lib/aegis/refhashlist < /var/lib/aegis/refhashlist


kb61 2012-12-18 04:16

Re: [Announce] Extended Power Menu for Harmattan
 
How can i uninstall this mod?
it doesnt allow me to uninstall from program list, it tells me that it cant uninstall because applicatiin is still running.
but i really dont like the delay now when locking the device, takes a sec longer after hitting power button.

efion 2012-12-18 06:53

Re: [Announce] Extended Power Menu for Harmattan
 
just a cosmetic suggestion, would anyone made the icons match to the harmattan's icons?

superb job anyway

MK99 2012-12-18 07:49

Re: [Announce] Extended Power Menu for Harmattan
 
2 Attachment(s)
Quote:

Originally Posted by efion (Post 1305589)
just a cosmetic suggestion, would anyone made the icons match to the harmattan's icons?

superb job anyway

Simple. Or you can draw your own. :p

/usr/share/extended-power-menu/icons

bouznak 2012-12-18 12:31

Re: [Announce] Extended Power Menu for Harmattan
 
Hello ! Thank you for the very good work !

Unfortunately I can't install it without errors. When I try to install it as you say I get a the end of the process, just after "updating desktop entries... Done" :

Code:

Duplicate sources.list entry http://repo.apps.formeego.org ./ Packages (/var/lib/apt/lists/repo.apps.formeego.org_harmattan_apps_._Packages)
W: Ignoring Provides line with DepCompareOp for package liblablgl-ocaml-dev
W: Ignoring Provides line with DepCompareOp for package librsvg2-bin
W: Ignoring Provides line with DepCompareOp for package libboost-date-time-dev W: Ignoring Provides line with DepCompareOp for package libboost-dev
W: Ignoring Provides line with DepCompareOp for package libboost-filesystem-dev
W : Ignoring Provides line with DepCompareOp for package libboost-math-dev
W: IgnorIgnong Provides line with DepCompareOp for package libboost-program-options-dev
W: Ignoring Provides line with DepCompareOp for package libboost-regex-dev
W: Ignoring Provides line with DepCompareOp for package libboost-serialization-dev
W: Duplicate sources.list entry http://repo.pub.meego.com ./ Packages (/var/lib/apt/lists/repo.pub.meego.com_home:_rzr:_harmattan_MeeGo%5f1.2%5fHarmattan%5fMaemo.org%5fMeeGo%5f1.2%5fHarmattan%5fstandard_._Packages)
W: Duplicate sources.list entry http://harmattan-dev.nokia.com harmattan/sdk/free Packages (/var/lib/apt/lists/harmattan-dev.nokia.com_dists_harmattan_sdk_free_binary-armel_Packages)
W: Duplicate sources.list entry http://harmattan-dev.nokia.com harmattan/sdk/non-free Packages (/var/lib/apt/lists/harmattan-dev.nokia.com_dists_harmattan_sdk_non-free_binary-armel_Packages

Any idea to solve it ? It seems to be a repo issue..

thedead1440 2012-12-18 12:44

Re: [Announce] Extended Power Menu for Harmattan
 
bouznak,

If you get the "updating desktop entries... Done" message after doing the installation it means it has already been installed. Or do you mean you get this after doing apt-get update? It would be better to post full logs...

Anyway you seem to have duplicate entries which can be deleted from /etc/apt/sources.list.d/ while these errors shouldn't affect the update of MAG's repo and installation of harmattan-power-menu...

bouznak 2012-12-18 12:52

Re: [Announce] Extended Power Menu for Harmattan
 
Thank you thedead.

I've these errors at the end of the installation process, not by doing apt-get update.
I was thinking that they didn't affect the installation but Harmattan Power Menu don't work on my device. I try to press the power key two times but nothing happen.

I don't have any mod on this key... :(

thedead1440 2012-12-18 13:00

Re: [Announce] Extended Power Menu for Harmattan
 
Quote:

Originally Posted by bouznak (Post 1305726)
Thank you thedead.

I've these errors at the end of the installation process, not by doing apt-get update.
I was thinking that they didn't affect the installation but Harmattan Power Menu don't work on my device. I try to press the power key two times but nothing happen.

I don't have any mod on this key... :(

Delete your duplicate entries to fix that part up and check if harmattan-power-menu is in your applications list in settings->apps->manage apps

Maybe there is an error there that is preventing it from working... Also did you try it after a reboot; although the postinst script restarts mce maybe it didn't for you so a reboot should prove it too...

MohammadAG 2012-12-18 13:08

Re: [Announce] Extended Power Menu for Harmattan
 
Check PowerKeyDoubleAction in /etc/mce/mce.ini, it should be dbus-signal-powerkey_double_ind. If not, change it.

0.2 won't be soon, I MALFd my N9 trying to make /etc/init work, and so far I can't fix it (reflashing is a last resort).

bouznak 2012-12-18 13:38

Re: [Announce] Extended Power Menu for Harmattan
 
Thank you for your help guys.

It works now but I don't know what tip has done something. I've deleted repos and I've edited mce.ini but this one had already the line dbus-signal-powerkey_double_ind for PowerKeyDoubleAction.
But there was a line just below with "PowerKeyDoubleAction=" so I've written again after the "=" dbus-signal-powerkey_double_ind.

Then I've tried to uninstall and reinstall the app, rebooted the phone and finally it works. Thank you again ! :)

coderus 2012-12-18 14:48

Re: [Announce] Extended Power Menu for Harmattan
 
first line commented with # and not active

mousse04 2012-12-19 06:15

Re: [Announce] Extended Power Menu for Harmattan
 
Hi all,

I've just installed this great apps, and when I double tap on power button the menu arrives. So changing sound and vibration work but clicking on reboot or power off etc ...don't work.

Any clues why it doesn't work as expected?

coderus 2012-12-19 07:56

Re: [Announce] Extended Power Menu for Harmattan
 
inception?


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

vBulletin® Version 3.8.8