![]() |
2017-03-02
, 20:03
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#152
|
![]() |
2018-01-02
, 16:01
|
|
Posts: 645 |
Thanked: 519 times |
Joined on Apr 2012
@ Finland
|
#153
|
#!/bin/bash # Toggle Flash dbus-send --type=method_call --print-reply --dest=com.jolla.settings.system.flashlight /com/jolla/settings/system/flashlight com.jolla.settings.system.flashlight.toggleFlashlight
Instruction for Flash script:
Create a flash.sh file in /home/nemo/ with content:
Make the script executable:Code:#!/bin/bash # Toggle Flash STATUS=$(cat /home/nemo/flash.txt) if [ $STATUS == "0" ] then echo 1 > /home/nemo/flash.txt;echo 1 > /sys/kernel/debug/flash_adp1650/mode else echo 0 > /home/nemo/flash.txt;echo 0 > /sys/kernel/debug/flash_adp1650/mode fi
chmod +x /home/nemo/flash.sh
Create a flash.desktop file in /home/nemo/.local/share/applications/ with content:
Open powermenu --> configuration --> choose prefered action and set it to "Application" and select Flash app. Works in locked and unlocked state.Code:[Desktop Entry] Type=Application X-Nemo-Application-Type=no-invoker Name=Flash Icon=icon-launcher-default Exec=/home/nemo/flash.sh
The Following 2 Users Say Thank You to Mikkosssss For This Useful Post: | ||
![]() |
2018-06-11
, 17:10
|
Posts: 479 |
Thanked: 1,284 times |
Joined on Jan 2012
@ Enschede, The Netherlands
|
#154
|
The Following User Says Thank You to Fuzzillogic For This Useful Post: | ||
After OS updated to 2.1.0.9(Using Terminal), PowerMenu2 is not working.
Help me to uninstall and installing steps to make it work.
Thanks in advance.