Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
keevill
Posts: 12
Joined: 02 Feb 2011, 14:09

SOLVED Error: Could not find file /etc/usb-modeswitch.conf

Post by keevill » 10 Feb 2011, 14:35

I think I am just about to give up getting my device to work and switch back to Win.
Earlier ( about 7 days ago) I started another thread and got some ideas from Josh but got nowhere.
So, I re-installed Ubuntu 10.04 and installed Usb_Modeswitch ( from the repository - it's new enough ) and when I try to run the prog I get
" Error: Could not find file /etc/usb-modeswitch.conf".
My understanding is that this file should have been created with the other files when I installed the program.
My device is shown in lsusb as a Philips ID 0471:1210 and did briefly work on the last install but not now.
In fact, after chasing around to get it working, I think I broke the network-manager applet so I will not go too deep this time.
If anyone can assist, I will be delighted.
Thx,
-keevill-
Last edited by keevill on 11 Feb 2011, 06:08, edited 1 time in total.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 10 Feb 2011, 20:19

Nothing that you say you did in your previous attempts would have screwed up NetworkManager.

I will repeat again: turn on logging if the device is not switched automatically. Did you do that ?

If so, what is the content of the log ?

keevill
Posts: 12
Joined: 02 Feb 2011, 14:09

Post by keevill » 11 Feb 2011, 03:15

Josh wrote:Nothing that you say you did in your previous attempts would have screwed up NetworkManager.

I will repeat again: turn on logging if the device is not switched automatically. Did you do that ?

If so, what is the content of the log ?
Hi Josh,
I did say that I do not have any file in /etc called usb_modeswitch.conf which is a new problem from the previous install.

In the last thread you asked me for the output of ls -l /usr/lib/libusb*
If this helps in this case, then here it is below on the new install.
Also, I would re-iterate that the install of UsbM is made from the Synaptics and not from a make install command
Thx again
-keevill-

lrwxrwxrwx 1 root root 20 2011-02-10 12:37 /usr/lib/libusb-0.1.so.4 -> /lib/libusb-0.1.so.4
lrwxrwxrwx 1 root root 20 2011-02-10 18:55 /usr/lib/libusb-1.0.so.0 -> /lib/libusb-1.0.so.0
-rw-r--r-- 1 root root 33062 2010-07-12 16:59 /usr/lib/libusb.a
-rw-r--r-- 1 root root 807 2010-07-12 16:59 /usr/lib/libusb.la
lrwxrwxrwx 1 root root 19 2011-02-10 18:55 /usr/lib/libusbmuxd.so.1 -> libusbmuxd.so.1.0.0
-rw-r--r-- 1 root root 17836 2010-04-09 15:26 /usr/lib/libusbmuxd.so.1.0.0
lrwxrwxrwx 1 root root 24 2011-02-10 17:01 /usr/lib/libusb.so -> /lib/libusb-0.1.so.4.4.4

keevill
Posts: 12
Joined: 02 Feb 2011, 14:09

SOLVED

Post by keevill » 11 Feb 2011, 06:07

OK I finally got it working.
The synaptic version does not seem to work for me so I uninstalled it and downloaded the tar files from the website. I then followed the instructions for install. My modem was showed up correctly and whilst it did not connect automatically I used the following command .
sudo usb_modeswitch -W -c /etc/usb_modeswitch.d/0471:1210 ( obviously the last part of that command is the ID of my modem.
After that, I used the network manager to make the connection.
Rather suprisingly, after enabling logging, I can see the logs saying that the process looked to have failed.
However, it has not. I can live with manually making the command to connect.
If it is of any interest Josh, I paste below the log file which I believe says that the process failed.
Thx,

-keevill-
____________



USB_ModeSwitch log from Fri Feb 11 10:05:35 ICT 2011

raw args from udev: /2-1:1.0

Using global config file: /etc/usb_modeswitch.conf
Bus ID for device not given by udev.
Trying to determine it from kernel name (2-1:1.0) ...
USB dir exists: /sys/bus/usb/devices/2-1
----------------
USB values from sysfs:
manufacturer Wisue Technology
product Mass Storage
serial 000000-00-000000
----------------
SCSI attributes not needed, moving on
checking config: /etc/usb_modeswitch.d/0471:1210
ConfigGet returns /etc/usb_modeswitch.d/0471:1210
! matched, now switching
(running command: /usr/sbin/usb_modeswitch -I -W -c /etc/usb_modeswitch.d/0471:1210)

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are expected in the process)
--------------------------------
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 005
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 002 on 005
usb_os_find_devices: Found 001 on 005
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 010 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 013 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 012 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 011 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 010 on 001
usb_os_find_devices: Found 009 on 001
usb_os_find_devices: Found 008 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 007 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 006 on 001
skipping descriptor 0xB
skipped 1 class/vendor specific endpoint descriptors
skipped 5 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 6 class/vendor specific interface descriptors
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 002 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
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device

Reading config file: /etc/usb_modeswitch.d/0471:1210

* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.6 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x0471
DefaultProduct= 0x1210
TargetVendor= 0x1dbc
TargetProduct= 0x0005
TargetClass= not set
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
KobilMode=0
MessageEndpoint= not set
MessageContent="5553424312345678000000000000061b000000020000000000000000000000"
NeedResponse=1
ResponseEndpoint= not set
Interface=0x00

InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode enabled


Looking for target devices ...
searching devices, found USB ID 147e:2016
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0471:1210
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 044e:3012
searching devices, found USB ID 044e:3013
searching devices, found USB ID 044e:3010
searching devices, found USB ID 044e:3011
searching devices, found USB ID 1410:2120
searching devices, found USB ID 046d:c315
searching devices, found USB ID 046d:c03d
searching devices, found USB ID 05ca:183a
searching devices, found USB ID 0409:005a
searching devices, found USB ID 054c:02d5
searching devices, found USB ID 05e3:0605
searching devices, found USB ID 1d6b:0002
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 147e:2016
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0471:1210
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 044e:3012
searching devices, found USB ID 044e:3013
searching devices, found USB ID 044e:3010
searching devices, found USB ID 044e:3011
searching devices, found USB ID 1410:2120
searching devices, found USB ID 046d:c315
searching devices, found USB ID 046d:c03d
searching devices, found USB ID 05ca:183a
searching devices, found USB ID 0409:005a
searching devices, found USB ID 054c:02d5
searching devices, found USB ID 05e3:0605
searching devices, found USB ID 1d6b:0002
Found devices in default mode, class or configuration (1)
Accessing device 010 on bus 002 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Ambiguous Class/InterfaceClass: 0x02/0x08
Using endpoints 0x03 (out) and 0x83 (in)
Using endpoints 0x03 (out) and 0x83 (in)

USB description data (for identification)
-------------------------
Manufacturer: Wisue Technology
Product: Mass Storage
Serial No.: 000000-00-000000
-------------------------
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Setting up communication with interface 0 ...
Using endpoint 0x03 for message sending ...
Trying to send message 1 to endpoint 0x03 ...
OK, message successfully sent
Reading the response to the message (CSW) ...
OK, response successfully read (13 bytes).
Resetting response endpoint 0x83
Resetting message endpoint 0x03

Checking for mode switch (max. 20 times, once per second) ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Original device still present after the timeout

Mode switch most likely failed. Bye.

fail:
--------------------------------
(end of usb_modeswitch output)


All done, exiting

Post Reply