Active Topics

 



Notices


Reply
Thread Tools
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#61
Application updated for SailfishOS 10 Vaarainjärvi release.
Limitations:
- You can have only two custom actions, and first one is already used for triggering power menu. Only one extra application available to set.
Download: https://openrepos.net/content/coderus/powermenu
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 3 Users Say Thank You to coderus For This Useful Post:
Posts: 96 | Thanked: 80 times | Joined on May 2010
#62
Nice app, thank you very much!

Not sure if I'm just not getting something, but I can't figure out how to cancel. That is, once I long-tap the power button I can find no way to go back without a reboot. Is there something I am missing?
 
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#63
Originally Posted by coderus View Post
Morpog: i'm not willing to make more features.)
Hey coderus,
even I accept such dscisisons normally without any questions.
I have a feture request: would you mind to add a simple 'lock screen' to the Shutdown Controls? This way we could easily push one time and lock with touch (or shutdown/reboot).
This request is coming from having in mind the bad HW quality of N9 button. So I do not want to stress it with double-clicks.
I do not assume we can tweak that ourselves?
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#64
Originally Posted by peterleinchen View Post
Hey coderus,
even I accept such dscisisons normally without any questions.
I have a feture request: would you mind to add a simple 'lock screen' to the Shutdown Controls? This way we could easily push one time and lock with touch (or shutdown/reboot).
This request is coming from having in mind the bad HW quality of N9 button. So I do not want to stress it with double-clicks.
I do not assume we can tweak that ourselves?
no. create hidden desktop file for script you want and add it to powermenu.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#65
Okay, got it.

Took me quite some time to get used (again) to dbus commands and that there is still /com/nokia/mce

Is there a wiki for jolla like the N9x0 phone control wiki?
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#66
Code:
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_trigger_powerkey_event uint32:0
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#67
Originally Posted by coderus View Post
Code:
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_trigger_powerkey_event uint32:0
Thanks. That would have been to easy.
I did not want to ask but find on my own (but was very close to ask as I could not find useful info on the net. Except the hint about qdbus here ).

I already have a script which more or less fades out (instead of immediately blanking). But the following behaves differently when called from desktop icon or via powermenu. That is the reason for same command called twice. Any idea?

Code:
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce
.request.req_tklock_mode_change string:"locked"
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce
.request.req_display_state_on
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce
.request.req_display_state_dim
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce
.request.req_display_state_lpm
sleep 1
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce
.request.req_display_state_lpm
sleep 1
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce
.request.req_display_state_off
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#68
No problem here. Did you checked first pages with no-invoker desktop file example?
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#69
Yep.
[Desktop Entry]
#/home/nemo/.local/share/applications
Type=Application
X-Nemo-Application-Type=no-invoker
Name=cLockScreen
Exec=/usr/share/custom-scripts/tklock.sh
Comment=Custom action to lock the screen
#Icon=icon-l-terminal
Icon=icon-launcher-default
Above version of script is working (more or less).
I tried with tklock_mode_change and req_display_state_lpm only and that did not work at all.
But not worth to investigate as above works okay.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#70
 

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


 
Forum Jump


All times are GMT. The time now is 21:57.