3g modem switching problem

Issues Related to Hardware (Sound, Video, Printers, Scanners, Webcams, Touchpads, Keyboards, Sensors, Drives, GRUB, etc.)

Moderator: Moderators

3g modem switching problem

Postby aegir » Tue Jul 29, 2014 17:56

Im new to Sabayon so I'm probably doing something stupid :?

Code: Select all
$ lsusb | grep Huawei
Bus 002 Device 006: ID 12d1:1c0b Huawei Technologies Co., Ltd. E173s 3G broadband stick (modem off)


On arch i usually do this and it works but here...

Code: Select all
$ usb_modeswitch -c /usr/share/usb_modeswitch/12d1\:1c0b -v 12d1 -p 1c0b
bash: usb_modeswitch: command not found

:shock:

usb_modeswitch is installed and that should work so my question is why it doesnt ? :O

Code: Select all
$ emerge -p usb_modeswitch

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/usb_modeswitch-2.2.0_p20140529

Thought there's something wrong with equo so i emerged it..

I also made sure modemmanger is turned on and that usbutils is installed.
aegir
Baby Hen
 
Posts: 1
Joined: Tue Jul 29, 2014 17:40

Re: 3g modem switching problem

Postby Fitzcarraldo » Thu Jul 31, 2014 16:52

You have to run the command as root user. Look at the following:

Code: Select all
[email protected] ~ $ usb_modeswitch ---help
bash: usb_modeswitch: command not found
[email protected] ~ $

Now run the same command as root user:

Code: Select all
[email protected] ~ $ su
Password:
sabayon fitzcarraldo # usb_modeswitch --help                 

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.2.0 (C) Josua Dietze 2014
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !


Usage: usb_modeswitch [<params>] [-c filename]

 -h, --help                    this help
 -e, --version                 print version information and exit
 -j, --find-mbim               return config no. with MBIM interface, exit

 -v, --default-vendor NUM      vendor ID of original mode (mandatory)
 -p, --default-product NUM     product ID of original mode (mandatory)
 -V, --target-vendor NUM       target mode vendor ID (optional)
 -P, --target-product NUM      target mode product ID (optional)
 -C, --target-class NUM        target mode device class (optional)
 -b, --bus-num NUM             system bus number of device (for hard ID)
 -g, --device-num NUM          system device number (for hard ID)
 -m, --message-endpoint NUM    direct the message transfer there (optional)
 -M, --message-content <msg>   message to send (hex number as string)
 -2 <msg>, -3 <msg>            additional messages to send (-n recommended)
 -n, --need-response           read response to the message transfer (CSW)
 -r, --response-endpoint NUM   read response from there (optional)
 -K, --std-eject               send standard EJECT sequence
 -d, --detach-only             detach the active driver, no further action
 -H, --huawei-mode             apply a special procedure
 -J, --huawei-new-mode         apply a special procedure
 -S, --sierra-mode             apply a special procedure
 -O, --sony-mode               apply a special procedure
 -G, --gct-mode                apply a special procedure
 -N, --sequans-mode            apply a special procedure
 -A, --mobileaction-mode       apply a special procedure
 -T, --kobil-mode              apply a special procedure
 -L, --cisco-mode              apply a special procedure
 -B, --qisda-mode              apply a special procedure
 -E, --quanta-mode             apply a special procedure
 -R, --reset-usb               reset the device after all other actions
 -Q, --quiet                   don't show progress or error messages
 -W, --verbose                 print all settings and debug output
 -D, --sysmode                 specific result and syslog message
 -s, --success <seconds>       switching result check with timeout
 -I, --inquire                 retrieve SCSI attributes initially

 -c, --config-file <filename>  load long configuration from file

 -t, --stdinput                read long configuration from stdin

 -f, --long-config <text>      get long configuration from string

 -i, --interface NUM           select initial USB interface (default 0)
 -u, --configuration NUM       select USB configuration
 -a, --altsetting NUM          select alternative USB interface setting

And the configuration file does exist:

Code: Select all
sabayon fitzcarraldo # ls /usr/share/usb_modeswitch/12d1\:1c0b
/usr/share/usb_modeswitch/12d1:1c0b
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7985
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom


Return to Hardware

Who is online

Users browsing this forum: No registered users and 2 guests