i2cset -y -m 0xff 2 0x6b 0x02 0x8c; # 0x8c = 3v5 + .640 + .040 + .020 = 4V200, BE CAREFUL and DON'T CHANGE # unless you know what you're doing. 4V2 is ABS MAX! i2cset -y -m 0xff 2 0x6b 0x01 0xc8; echo "Charing parameters set..."
#!/bin/sh # gain superuser rights. if [ `id -u` != 0 ] ; then exec sudo gainroot <<EOF exec sh $0 $* EOF exit $? fi # put your code below i2cset -y -m 0xff 2 0x6b 0x02 0x8c; # 0x8c = 3v5 + .640 + .040 + .020 = 4V200, BE CAREFUL and DON'T CHANGE # unless you know what you're doing. 4V2 is ABS MAX! i2cset -y -m 0xff 2 0x6b 0x01 0xc8; echo "Charing parameters set..."
[Desktop Entry] Encoding=UTF-8 Version=1.0 Terminal=true Type=Application Name=Adjust Current Categories=System;TerminalEmulator; X-HildonDesk-ShowInToolbar=true Exec=sh /home/user/adjust_current.sh Icon=/opt/usr/share/icons/hicolor/scalable/hildon/statusarea_battery_insufficient_charging.png