We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

How to reset power button actions? [answered]

asked 2015-09-10 00:20:17 +0200

AliN gravatar image

updated 2015-09-10 00:34:21 +0200

Is there any way to reset power button actions, for example using mcte-tool or something? Long press on power button shuts down the phone even on the lock screen. No difference on 1.1.9 or previous releases.

Here's the whole scenario:

Once I installed the powermenu-2 app from Warehouse and removed after some days, I saw some persistent side effects:

  1. The action selected for long press continues to work even after removing the app. If I select none, then long press will shut down the phone even on the lock screen – no power menu on 1.1.9;
  2. The lock screen stays ON for more time. The default time is 5 sec, but now it's 10.

P.S: Can anyone please write here for me the contents of /etc/mce/60-powerkey-lipstick-jolla-home.conf? I guess it's related to the issue.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by AliN
close date 2015-09-10 02:21:33.991901

2 Answers

Sort by » oldest newest most voted
1

answered 2015-09-10 00:38:42 +0200

martinrusler gravatar image

updated 2015-09-10 00:40:33 +0200

Yes:

[nemo@Jolla ~]$ cat /etc/mce/60-powerkey-lipstick-jolla-home.conf

/system/osso/dsm/powerkey/actions_long_on=dbus1

/system/osso/dsm/powerkey/dbus_action1=power-key-menu

/system/osso/dsm/powerkey/actions_double_off=unblank,tkunlock,dbus2

/system/osso/dsm/powerkey/dbus_action2=double-power-key

edit flag offensive delete publish link more

Comments

Thanks. So it's not related. I have the same.

AliN ( 2015-09-10 00:49:01 +0200 )edit
1

answered 2015-09-10 01:38:17 +0200

cornerman gravatar image

updated 2015-09-10 02:24:16 +0200

AliN gravatar image

I had the same problem and was able to fix it by issuing these two commands posted by coderus: http://talk.maemo.org/showpost.php?p=1481751&postcount=74

Powermenu2 not using configuration files

dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.set_config "string:/system/osso/dsm/powerkey/actions_long_on" "variant:string:dbus1"
dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.set_config "string:/system/osso/dsm/powerkey/dbus_action1" "variant:string:power-key-menu"
edit flag offensive delete publish link more

Comments

Thanks a million, however, the problem (2) still exists. Doesn't matter.

AliN ( 2015-09-10 02:20:50 +0200 )edit
1

There is mcetool option for resetting settings back to defaults specified in configuration files.

So, to clear any runtime changes made by user to powerkey actions, this can be used:

mcetool --reset-settings=/system/osso/dsm/powerkey/actions_ --reset-settings=/system/osso/dsm/powerkey/dbus_action

Note: "mcetool --reset-settings" without any args resets all mce settings, so check what you've typed before pressing return.

As to (2), there is now separate setting for blank timeout from lockscreen. The default is 10 seconds, but if you prefer shorter value, it can be changed via:

mcetool --set-blank-from-lockscreen-timeout=5
spiiroin ( 2015-09-10 09:35:46 +0200 )edit

@spiiroin, it's exactly what I was looking for. Thanks a billion. :)

By the way, is there any documentation or manpage on mcetool? I love it.

AliN ( 2015-09-10 13:25:32 +0200 )edit

Oh, it's accessible by mcetool --help. I tried for mce-tool before! Also your email is there. ;)

AliN ( 2015-09-10 13:30:53 +0200 )edit

thanks for explantion, expierenced the same problems but found the solution here

sfb ( 2015-09-10 17:59:40 +0200 )edit

Question tools

Follow
1 follower

Stats

Asked: 2015-09-10 00:20:17 +0200

Seen: 437 times

Last updated: Sep 10 '15