Google
  Web www.spinics.net

Re: Charging blackberry under linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Mon, 20 Nov 2006, Boky Test wrote:

> Hi.
> 
> Sadly, none of the tricks worked.
> 
> On 11/18/06, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
> > On Sat, 18 Nov 2006, [UTF-8] Boky wrote:
> >
> > > Is there any way to discover which bConfigurationValues are supported by
> > > the Blackberry?
> >
> > Run "lsusb -v" or look in /proc/bus/usb/devices.
> >
> 
> This replies only with:
>  Configuration Descriptor:
>     bLength                 9
>     bDescriptorType         2
>     wTotalLength           46
>     bNumInterfaces          1
>     bConfigurationValue     1
>     iConfiguration          0
>     bmAttributes         0x80
>     MaxPower              100mA
> 
> I have checked and "bConfigurationValue" in /sys/.. is set to "1".
> Don't have any other idea, what to set it to. This is the only
> "Configuration Descriptor" block and there are no other
> bConfigurationValues for this device (at least when calling lsusb
> -vvv).

Then 1 is correct.  If there are no other configurations, the Blackberry
is claiming that it will never draw more than 100 mA of current.

> > Well, for the moment you don't need a driver.  And even later, you won't
> > really need a driver as such.  It would be sufficient to run a shell
> > command like this:
> >
> >         sleep 3600 </dev/usbdevN.M &
> >
> > where N and M are the bus number and address of the Blackberry.  The mere
> > fact that the program holds the device file open would be enough to
> > prevent the system from suspending the device.
> >
> 
> Tried that also. I have the following devices:
> crw-rw---- 1 root root 442, 2059 nov 20 17:44 usbdev2.12_ep00
> crw-rw---- 1 root root 442, 2059 nov 20 17:48 usbdev2.12_ep02
> crw-rw---- 1 root root 442, 2059 nov 20 17:48 usbdev2.12_ep04
> crw-rw---- 1 root root 442, 2059 nov 20 17:48 usbdev2.12_ep81
> crw-rw---- 1 root root 442, 2059 nov 20 17:48 usbdev2.12_ep83
> 
> When doing "sleep" on any of these I get "No such device or address."

Those are the wrong device files anyway.  Perhaps the one you want is in
/proc/bus/usb/002/012 or under /dev/usb/.  Also bear in mind the
permissions on the file; if you aren't the superuser then you won't be
able to open it.

> Blackberry is connected to 2.12 for sure.

It's possible that the Windows program doesn't change the settings of 
the USB port but instead tells the Blackberry to start drawing more 
current to recharge itself.  You can find out what commands Windows sends 
to the Blackberry by using one of the USB Snoop programs available on the 
web.

Alan Stern


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Linux-usb-users@xxxxxxxxxxxxxxxxxxxxx
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

[Linux USB]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Video Projectors]     [PDAs]     [Free Online Dating]     [Hacking TiVo]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Devices]     [Big List of Linux Books]     [16.7MP]

Powered by Linux