View Single Post
Old 01-01-2007, 02:37 PM   #5 (permalink)
rivviepop
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by titetanium
Do a google search or search on sourceforge.net for barry. That utility uses libusb to change the charging rate from 100mA to 500mA. There are packages in .deb, rpm, and tgz formats. Happy charging without rebooting!
Thanks! They just released 0.1 of "bcharge" on the 29th:

SourceForge.net: Barry's bcharge version 1.0 released

It doesn't work out-of-the-box with the Pearl, since the idProduct is different; I made a quick patch and it's at least now trying to work:

Code:
$ bcharge 
Scanning for Blackberry devices...
Found...attempting to adjust charge setting.
1 device adjusted.
Here's the small patch for anyone interested:

Code:
--- barry-0.1/10-blackberry.rules.orig  2007-01-01 11:23:09.000000000 -0800
+++ barry-0.1/10-blackberry.rules       2007-01-01 11:23:37.000000000 -0800
@@ -1,3 +1,3 @@
 # Blackberry devices
 #
-BUS=="usb", ACTION=="add", SYSFS{idVendor}=="0fca", SYSFS{idProduct}=="0001", SYMLINK+="bb-%k", RUN="/usr/sbin/bcharge"
+BUS=="usb", ACTION=="add", SYSFS{idVendor}=="0fca", SYSFS{idProduct}=="0006", SYMLINK+="bb-%k", RUN="/usr/sbin/bcharge"
--- barry-0.1/bcharge.cc.orig   2007-01-01 11:23:26.000000000 -0800
+++ barry-0.1/bcharge.cc        2007-01-01 11:23:52.000000000 -0800
@@ -26,7 +26,7 @@
 #include <unistd.h>
 
 #define VENDOR_RIM             0x0fca
-#define PRODUCT_RIM_BLACKBERRY 0x0001
+#define PRODUCT_RIM_BLACKBERRY 0x0006
 
 #define BLACKBERRY_INTERFACE           0
 #define BLACKBERRY_CONFIGURATION       1
Houston, we have contact.
Offline