View Single Post
Morpog's Avatar
Posts: 956 | Thanked: 2,628 times | Joined on Nov 2011
#23
Instruction for Flash script:

Create a flash.sh file in /home/nemo/ with content:

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
Make the script executable:
chmod +x /home/nemo/flash.sh

Create a flash.desktop file in /home/nemo/.local/share/applications/ with content:

Code:
[Desktop Entry]
Type=Application
X-Nemo-Application-Type=no-invoker
Name=Flash
Icon=icon-launcher-default
Exec=/home/nemo/flash.sh
Open powermenu --> configuration --> choose prefered action and set it to "Application" and select Flash app. Works in locked and unlocked state.

Edit: fixed typo in desktop file code
Edit2: changed desktop file code with suggestion from coderus
Edit3: more fixes by coderus

Last edited by Morpog; 2014-08-19 at 07:46.
 

The Following 3 Users Say Thank You to Morpog For This Useful Post: