Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.