The Following 4 Users Say Thank You to biketool For This Useful Post: | ||
|
2014-08-23
, 21:38
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#22
|
echo dedicated > cat /sys/class/power_supply/bq24150a-0/mode
The Following 3 Users Say Thank You to Estel For This Useful Post: | ||
|
2014-08-24
, 04:24
|
Posts: 1,424 |
Thanked: 2,622 times |
Joined on Jan 2011
@ Touring
|
#23
|
echo auto > cat /sys/class/power_supply/bq24150a-0/mode
|
2014-08-24
, 05:55
|
Posts: 1,424 |
Thanked: 2,622 times |
Joined on Jan 2011
@ Touring
|
#24
|
The Following 3 Users Say Thank You to biketool For This Useful Post: | ||
|
2014-08-28
, 18:48
|
|
Posts: 2,222 |
Thanked: 12,651 times |
Joined on Mar 2010
@ SOL 3
|
#25
|
[...]
Put this in MyDocs so it is easy to use leafpad edit the wait time for how long you thing charging should last.
save the script name as qi_chargeCode:#!/bin/sh sudo gainroot stop bme modprobe bq2415x_charger # edit dumb mode charge mode time below in seconds wait 21600 rmmod bq2415x_charger start bme exit
make it executable
Code:sudo chmod +x qi_charge
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
jr@saturn:~> help wait
wait: wait [id]
Wait for process completion and return exit status.
Waits for the specified process and reports its termination status. If
PID is not given, all currently active child processes are waited for,
and the return code is zero. PID must be a process ID.
Exit Status:
Returns the status of ID; fails if ID is invalid or an invalid option is
given.
jr@saturn:~> LANG=C sleep --help
Usage: sleep NUMBER[SUFFIX]...
or: sleep OPTION
Pause for NUMBER seconds. SUFFIX may be 's' for seconds (the default),
'm' for minutes, 'h' for hours or 'd' for days. Unlike most implementations
that require NUMBER be an integer, here NUMBER may be an arbitrary floating
point number. Given two or more arguments, pause for the amount of time
specified by the sum of their values.
--help display this help and exit
--version output version information and exit
Report sleep bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
Code:[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=sudo /bin/sh /home/user/MyDocs/qi_charge Icon=make a PNG and put the path here
Exec=/usr/local/bin/qi_charge
|
2014-08-28
, 19:35
|
Posts: 1,424 |
Thanked: 2,622 times |
Joined on Jan 2011
@ Touring
|
#26
|
|
2014-08-28
, 20:18
|
|
Posts: 2,222 |
Thanked: 12,651 times |
Joined on Mar 2010
@ SOL 3
|
#27
|
make a file /etc/sudoers.d/qicharger1.sudoers
Code: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
execute the following in a shell with root permissions (you can copy&paste):
it creates a file /etc/sudoers.d/qicharger1.sudoers for you.Code: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
The Following User Says Thank You to joerg_rw For This Useful Post: | ||
|
2014-08-28
, 22:04
|
|
Posts: 6,447 |
Thanked: 20,981 times |
Joined on Sep 2012
@ UK
|
#28
|
This is regularly going to fail, you cannot chmod +x any file on MyDocs since MyDocs is a FAT fs.
~/MyDocs $ touch bla ~/MyDocs $ ls -l bla -rwxrwxrwx 1 user root 0 Aug 28 22:54 bla ~/MyDocs $ chmod +x bla ~/MyDocs $ ls -l bla -rwxrwxrwx 1 user root 0 Aug 28 22:54 bla ~/MyDocs $ chmod -x bla ~/MyDocs $ ls -l bla -rwxrwxrwx 1 user root 0 Aug 28 22:54 bla ~/MyDocs $
|
2014-08-28
, 22:12
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#29
|
The Following User Says Thank You to Estel For This Useful Post: | ||
Tags |
nokia n900, qi charging |
|
1-install(or have) up to date Kernel Power and CSSU testing
2-add repo
web address - http://maemo.merlin1991.at/cssu/bme-replacement/
distribution - fremantle
Components - free
3-apt-get update and upgrade(this will install the new upgraded BME)
4.run this command in command line
5. Reboot
6. charge to green light
7. let run until battery dies(battery is now calibrated)
8-enter command to BME for unshorted charging(coming soon)
thanks to Pali and Estel
Last edited by biketool; 2014-08-23 at 18:37.