I can not upload simple shell scripts. I had to compress it with gz. Upload the file to your device and in xterm enter gzip -d change_brightness.sh.gz
#!/bin/sh if [ dbus-send --system --type=method_call --dest=org.bluez $(dbus-send --system --print-reply --dest=org.bluez / org.bluez.manager.ListAdapter | awk -F "\"" "'/at/ {print $}') org.bluez.Adapter.SetProperty String: Powerd variant:boolean:true | echo "" ]; then if [ dbus-send --system --type=method_call --dest=org.bluez $(dbus-send --system --print-reply --dest=org.bluez / org.bluez.manager.ListAdapter | awk -F "\"" "'/at/ {print $}') org.bluez.Adapter.SetProperty String: Powerd variant:boolean:false | echo "" else if [ dbus-send --system --type=method_call --dest=org.bluez $(dbus-send --system --print-reply --dest=org.bluez / org.bluez.manager.ListAdapter | awk -F "\"" "'/at/ {print $}') org.bluez.Adapter.SetProperty String: Powerd variant:boolean:true | echo "" fi