Barry and mount as drive problems

I’m using the latest barry from malcolmlewis’s repo (download.opensuse.org/repositories/home:/malcolmlewis/openSUSE_11.2/).The problem I’m having is actually two fold. The first is probably an easy YES/NO answer. Does barry/opensync sync with google? I have not been able to get it to work correctly.

The second issue is a little harder. When barry is installed, my computer can see the Blackberry, but it will not allow me to mount it. I mount the Blackberry to transfer photos off of it and to transfer music to it. When barry is installed I can no longer do it. Once I remove barry (and it’s dependencies) it works just fine. The issue is with barry or one of it’s dependents.

I have searched through the forums and google but nothing I have tried has worked. I would like to be able to use barrybackup, etc and transfer my other stuff.

Forgot to mention my system: I’m on suse 11.2 x64, kernel 1.6.31.12-0.2

Hi
For the first question, I don’t think it’s possible. I suggest asking
direct to netdirect;

Can you post the output without barry installed when you plug the
device in.

Then install barry, plug the device in and run dmesg again and post
that output.

You could also look at using the usb_modeswitch which is for toggling
from one to the other. My blackberry doesn’t have storage (8703e) so
haven’t tried the switch routine.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 14 days 5:11, 4 users, load average: 1.12, 0.99, 0.59
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Without barry

[106718.555068] usb 1-6: new high speed USB device using ehci_hcd and address 20
[106718.672633] usb 1-6: New USB device found, idVendor=0fca, idProduct=8004
[106718.672669] usb 1-6: New USB device strings: Mfr=1, Product=15, SerialNumber=13
[106718.672685] usb 1-6: Product: RIM Composite Device
[106718.672698] usb 1-6: Manufacturer: Unknown String
[106718.672709] usb 1-6: SerialNumber: 10EB09F3A7BC1C998B1043E934064EE2527698C3
[106718.672987] usb 1-6: configuration #1 chosen from 1 choice
[106718.678118] scsi38 : SCSI emulation for USB Mass Storage devices
[106718.678377] usb-storage: device found at 20
[106718.678387] usb-storage: waiting for device to settle before scanning
[106719.680179] scsi 38:0:0:0: Direct-Access     RIM      BlackBerry SD    0003 PQ: 0 ANSI: 4 CCS
[106719.680629] sd 38:0:0:0: Attached scsi generic sg8 type 0
[106719.682677] scsi 38:0:0:1: Direct-Access     RIM      BlackBerry       1003 PQ: 0 ANSI: 4 CCS
[106719.683255] sd 38:0:0:1: Attached scsi generic sg9 type 0
[106719.686265] usb-storage: device scan complete
[106719.686338] sd 38:0:0:0: [sdg] Attached SCSI removable disk
[106719.695551] sd 38:0:0:1: [sdh] Attached SCSI removable disk
[106722.252800] sd 38:0:0:0: [sdg] 15523840 512-byte logical blocks: (7.94 GB/7.40 GiB)
[106722.253487] sd 38:0:0:1: [sdh] 1801209 512-byte logical blocks: (922 MB/879 MiB)
[106722.256043] sd 38:0:0:0: [sdg] Assuming drive cache: write through
[106722.258065] sd 38:0:0:1: [sdh] Assuming drive cache: write through
[106722.264036] sd 38:0:0:0: [sdg] Assuming drive cache: write through
[106722.264066]  sdg:
[106722.266045] sd 38:0:0:1: [sdh] Assuming drive cache: write through
[106722.266092]  sdh: sdg1
[106722.289118]

with barry

[106817.747845] usb 1-6: USB disconnect, address 20
[106972.552092] usb 1-6: new high speed USB device using ehci_hcd and address 21
[106972.680971] usb 1-6: New USB device found, idVendor=0fca, idProduct=8004
[106972.680993] usb 1-6: New USB device strings: Mfr=1, Product=15, SerialNumber=13
[106972.681000] usb 1-6: Product: RIM Composite Device
[106972.681028] usb 1-6: Manufacturer: Unknown String
[106972.681036] usb 1-6: SerialNumber: 10EB09F3A7BC1C998B1043E934064EE2527698C3
[106972.681243] usb 1-6: configuration #1 chosen from 1 choice
[106972.728374] scsi39 : SCSI emulation for USB Mass Storage devices
[106972.728642] usb-storage: device found at 21
[106972.728648] usb-storage: waiting for device to settle before scanning
[106972.729239] usb 1-6: usbfs: interface 1 claimed by usb-storage while 'bcharge' sets config #1
[106973.834049] usb 1-6: reset high speed USB device using ehci_hcd and address 21

I tried usb_modeswitch before, but could not get it to work. I think it was user error. rotfl!

you know looking through dmesg, it would appear that bcharge is interfering with usb-storage and SCSI. Like bcharge is taking control of the Blackberry and not letting go or stopping SCSI from a direct connection.I just don’t where or how to fix this.

Hi
What commands did you try?

Try;


usb_modeswitch -v 0fca -p 8004

Can you post the output from


usb_modeswitch -W


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 14 days 5:46, 5 users, load average: 0.15, 0.36, 0.44
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

 * usb_modeswitch: tool for controlling "flip flop" mode USB devices
 * Version 0.9.6 (C) Josua Dietze 2009                              
 * Works with libusb 0.1.12 and probably other versions             

DefaultVendor=0x0
DefaultProduct=0x0
TargetVendor=0x0  
TargetProduct=0x0
TargetClass=0x0
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
MessageEndpoint=0x0
MessageContent=""
Interface=0x0

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 005 on 002
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 002
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 021 on 001
usb_os_find_devices: Couldn't open /dev/bus/usb/001/007
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device

No default vendor/product ID given. Aborting

Here is the error I got with usb_modeswitch -v 0fca -p 8004

 * usb_modeswitch: tool for controlling "flip flop" mode USB devices
 * Version 0.9.6 (C) Josua Dietze 2009                              
 * Works with libusb 0.1.12 and probably other versions             

Looking for default devices
 Found default devices (1) 
Prepare switching, accessing latest device
Looking for active default driver to detach it
 No driver found. Device probably not initialized. Trying to continue ...
Setting up communication with device                                     
No MessageContent given. Sending nothing 

Hi
Correct, it’s the udev rule in /etc/udev/rules.d/ 65-blackberry.rules


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 14 days 6:02, 4 users, load average: 0.02, 0.19, 0.36
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

any clue on what to change?

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ACTION=="add", \
	ATTR{idVendor}=="0fca", ATTR{idProduct}=="8004", \
	RUN="/usr/sbin/bcharge -p %p"

I’m not sure how to write udev rules. I’ve trying to get around to reading up on it.

Hi
On the blackberry device is it set to Auto enable mass storage? I think
you need to change that to prompt you.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 14 days 6:22, 4 users, load average: 0.23, 0.29, 0.36
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

I set it to prompt and plugged it back. It did NOT prompt me to enable mass storage.

Hi
Can you mv the following two files and see how it goes;


cd
sudo mv /etc/modprobe.d/blacklist-berry_charge.conf .
sudo mv /etc/udev/rules.d/65-blackberry.rules .


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 14 days 13:16, 4 users, load average: 0.11, 0.35, 0.36
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Sorry it took so long to get back to you. I moved those two files and it works. I moved the blacklist file back and it still works!

The problem appears to be the 65-blackberry.rules. I put that one back and it does not work anymore.

Hi
But do you get the prompt on your phone?

Are you able to perform a barrybackup ok?

Can you confirm the blackberry is charging?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 15 days 0:53, 4 users, load average: 0.20, 0.17, 0.25
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Barrybackup works and it is charging. I can mount the internal memory and transfer files to and from the blackberry.

To verify the charge I just did bcharge and it gives this:

Scanning for Blackberry devices...
Found device #012...already at 500mA...adjusting Pearl mode to dualDetecting possible kernel driver conflict, trying to resolve...
...done

And the blackberry is showing a charge and the battery level is increasing.

Hi
So it looks like your good to go without the udev rule then, just keep
the blacklist :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 15 days 6:11, 4 users, load average: 1.02, 1.06, 0.67
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Thanks for your help!