gconftool-2 -s -t int /apps/osso/status-area-applet-battery/use_design_capacity 0
echo dedicated > cat /sys/class/power_supply/bq24150a-0/mode
echo auto > cat /sys/class/power_supply/bq24150a-0/mode
#! /bin/sh sudo echo dedicated > cat /sys/class/power_supply/bq24150a-0/mode # edit unshorted charge mode time below in seconds 21600=6 hours sleep 21600 sudo echo auto > cat /sys/class/power_supply/bq24150a-0/mode exit
#! /bin/sh #Does not kill Qi charge script which will continue to run, only reverts BME state to auto mode early sudo echo auto > cat /sys/class/power_supply/bq24150a-0/mode
sudo chmod +x /usr/local/bin/qi_charge
sudo chmod +x /usr/local/bin/normal_charge
[Desktop Entry] Encoding=UTF-8 Type=Application Name=qi_charge Comment=charge for a set time at full speed from an unshorted data pins dumb USB charger like the universal Qi ones and then reload BME to get battery meter back Exec=Exec=/usr/local/bin/qi_charge Icon=make a PNG and put the path here
[Desktop Entry] Encoding=UTF-8 Type=Application Name=qi_charge Comment=early reload BME to get battery meter back(does not kill first Qi script) Exec=Exec=/usr/local/bin/normal_charge Icon=make a PNG and put the path here
#!/bin/sh sudo stop bme sudo modprobe bq2415x_charger # edit dumb mode charge mode time below in seconds sleep 21600 sudo rmmod bq2415x_charger sudo start bme exit
#! /bin/sh sudo rmmod bq2415x_charger sudo start bme
sudo chmod +x /usr/local/bin/bme_charge
[Desktop Entry] Encoding=UTF-8 Type=Application Name=qi_charge Comment=charge for a set time at full speed from an unshorted data pins dumb USB charger like the universal Qi ones and then reload BME to get battery meter back Exec=/usr/local/bin/qi_charge Icon=make a PNG and put the path here
[Desktop Entry] Encoding=UTF-8 Type=Application Name=qi_charge Comment=charge for a set time at full speed from an unshorted data pins dumb USB charger like the universal Qi ones and then reload BME to get battery meter back Exec=/usr/local/bin/bme_charge Icon=make a PNG and put the path here
cat <<ETX >/etc/sudoers.d/qicharger1.sudoers: user ALL = NOPASSWD: /sbin/stop bme user ALL = NOPASSWD: /sbin/modprobe bq2415x_charger user ALL = NOPASSWD: /sbin/rmmod bq2415x_charger user ALL = NOPASSWD: /sbin/start bme ETX
update-sudoers