LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-15-2015, 02:02 PM   #1
jvermeulen
Member
 
Registered: Nov 2014
Posts: 91

Rep: Reputation: Disabled
VodafoneK4203 ( Huawei) on Centos7


Hello,

I'm having trouble getting a 3g usb dongle to work on Centos7.
This is a standard, new Centos7 install.

The machine detects the device:
[root@jvermeulen jvermeulen]# dmesg | tail -n15
[ 502.189442] usb 2-2: new high-speed USB device number 8 using ehci-pci
[ 502.304508] usb 2-2: New USB device found, idVendor=12d1, idProduct=14fb
[ 502.304520] usb 2-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 502.304528] usb 2-2: Product: HUAWEI Mobile
[ 502.304535] usb 2-2: Manufacturer: HUAWEI Technology

On Centos6 it gets mounted on Media and I can install the software.
On Fedora21 the device gets switched by usb_modeswitch and works out of the box.

On Centos7 the usb gets mounted on /run/media/user but I cannot install it.
Whatever I try, I get the message " the software must be installed as root".

So I installed ModemManager,usb_modeswitch and usb-modeswitch-data and added this line to /lib/udev/rules.d/40-usb_modeswitch.rules:

# vodafone from hell
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1f1c", RUN+="/usr/sbin/usb_modeswitch -d -v 12d1 -p 1f1c -u 2"

Now the device gets switched, but I see this EM:

May 15 21:01:06 jvermeulen kernel: usb usb2-port2: disabled by hub (EMI?), re-enabling...
May 15 21:01:06 jvermeulen kernel: usb 2-2: USB disconnect, device number 9
May 15 21:01:06 jvermeulen kernel: usb 2-2: bind() failure
May 15 21:01:06 jvermeulen systemd-udevd: '/usr/sbin/usb_modeswitch -d -v 12d1 -p 1f1c -u 2' [3643] terminated by signal 6 (Aborted)

then this message:

May 15 21:01:49 jvermeulen kernel: option 2-2:1.0: GSM modem (1-port) converter detected
May 15 21:01:49 jvermeulen kernel: usb 2-2: GSM modem (1-port) converter now attached to ttyUSB0
May 15 21:01:49 jvermeulen kernel: option 2-2:1.1: GSM modem (1-port) converter detected
May 15 21:01:49 jvermeulen kernel: usb 2-2: GSM modem (1-port) converter now attached to ttyUSB1
May 15 21:01:49 jvermeulen mtp-probe: checking bus 2, device 15: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2"
May 15 21:01:49 jvermeulen mtp-probe: bus: 2, device: 15 was not an MTP device
May 15 21:01:49 jvermeulen ModemManager[1044]: <warn> (ttyUSB0): port attributes not fully set
May 15 21:02:19 jvermeulen ModemManager[1044]: <info> Creating modem with plugin 'Huawei' and '2' ports
May 15 21:02:19 jvermeulen ModemManager[1044]: <warn> Could not grab port (tty/ttyUSB1): 'Cannot add port 'tty/ttyUSB1', unhandled serial type'
May 15 21:02:19 jvermeulen ModemManager[1044]: <warn> Could not grab port (tty/ttyUSB0): 'Cannot add port 'tty/ttyUSB0', unhandled serial type'
May 15 21:02:19 jvermeulen ModemManager[1044]: <warn> Couldn't create modem for device at '/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2': Failed to find primary AT port

I have no clue on what to try next.
Any advise would be greatly appreciated.

greetings, Johan
 
Old 05-16-2015, 08:56 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
uninstall modemmanager, try wvdial.
wvdial has saved many frustrated dongle users.
 
Old 05-16-2015, 01:43 PM   #3
jvermeulen
Member
 
Registered: Nov 2014
Posts: 91

Original Poster
Rep: Reputation: Disabled
Hello Ondoho,

thanks very much for the reply.
I didn't get around to configuring wvdial today.
Instead I disabled usb_modeswitch again and had another crack at installing the software
on the usb stick.
And that finaly worked.
Since I always got the message " you must install as root user, I commented out this part of the install script:

#if [ `id | awk '{print $1}'` != "uid=0(root)" ]
#then
# echo "You must run the install process by root." | tee -a ${LOG_PATH}
# install_exit
#fi

and I installed these packages:
libstdc++.so.6
libusb-0.1.so.4

That's it. It now works immediately after plug in.

Greetings, Johan
 
Old 05-19-2015, 12:48 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
nice to hear.
so the stick has linux software on it.
i didn't quite catch that before.

anyhow, could you mark this solved now? under "Thread tools" iirc.
 
Old 05-20-2015, 02:37 AM   #5
jvermeulen
Member
 
Registered: Nov 2014
Posts: 91

Original Poster
Rep: Reputation: Disabled
Hello,

as mentioned above:

On Centos6 it gets mounted on Media and I can install the software.
On Fedora21 the device gets switched by usb_modeswitch and works out of the box.

On Centos7 I expected it to behave like on Fedora21, with the help of usb_modeswitch.
But as often, the answer was hidden in a script.

Greetings, Johan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring squid on Centos7 aihaike Linux - Server 1 05-10-2015 04:00 PM
I have virtualbox running on centos7 now... sigint-ninja Linux - Newbie 3 04-22-2015 07:10 AM
dual boot windows7 with with centos7 md.saleem Linux - Newbie 3 04-03-2015 01:09 AM
Does CentOS7 support MHVTL hello_0 Linux - Newbie 1 10-09-2014 07:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration