Choose style:

Author Topic: USB modem shenanigans(unsolved)  (Read 1136 times)

0 Members and 1 Guest are viewing this topic.

Offline Pikolo

  • Trusted User
  • Member
  • *****
  • Posts: 138
  • Karma: 25
    • View Profile
  • Peppermint version(s): 8
USB modem shenanigans(unsolved)
« on: July 20, 2016, 12:07:56 pm »
My USB moddem ceased to work. At first it got recognised quite quickly and the system presented me with the option to enable a broadband connection. The autodetected setup worked out of the box, which pleasantly suprised me.  8)
 I am sharing it and thus have to take it out quite often. The next day, as updates progressed, the time it took to recognise and activate the device got longer. and subsequently stopped happening. :(
 I never had problems with it on Windows, so it doesn't seem to be a hardware problem.
The way the problem proliferated is particualrly weird to me. At first, it just worked. Then, it only worked with a delay. Then it didn't work. The disc appeared in the devices menu without any issues, every time. Did mounting it have an effect, i.e. inform the system that it is just a storage device? ???

 :-\ On a side note, if anybody knows, how do you check mobile broadband status via the terminal? It doesn't pop up after using
Code: [Select]
rfkill list
But I only did that after it stopped activating, so that might have had an effect.

Edit: I was about to boot into windows to check for answers and decided I'll give it one last try. It worked, instananeously. But I have no idea wether it will work next time, so I'll leave this up, because any advice on manual modem control is appreciated
« Last Edit: July 22, 2016, 06:48:48 am by Pikolo »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25502
  • Karma: 2809
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: USB modem shenanigans
« Reply #1 on: July 20, 2016, 08:26:28 pm »
zerocd can be a pain in Linux .. it's gotten more reliable over the years but IMHO it's never switched from CD mode to Modem mode 100% reliably .. add the switch to systemd to the mix and it's probably gone backwards.

When it's working .. post the output from:
Code: [Select]
lsusb
and post it again when it's not working

then we can compare the outputs to see if it's simply that it's not mode-switching.

When it's not working, after copying the output from "lsusb" tto a text file so you can post it later .. try running:
Code: [Select]
eject
and see if that causes it to mode-switch and start working as a Modem
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Pikolo

  • Trusted User
  • Member
  • *****
  • Posts: 138
  • Karma: 25
    • View Profile
  • Peppermint version(s): 8
Re: USB modem shenanigans
« Reply #2 on: July 21, 2016, 01:12:14 pm »
After the horrible 10 attempts in row when it failed to connect it has passed into the other end of the spectrum - spotless record now.
So the working lsusb result is:
Code: [Select]
lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 058f:3821 Alcor Micro Corp.
Bus 001 Device 004: ID 8087:07da Intel Corp.
Bus 001 Device 003: ID 04f3:0084 Elan Microelectronics Corp.
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 003 Device 006: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
and I'll copy the lsusb when it fails to connect.
It shows in the devices list with a CD symbol even though my laptop doesn't even have a CD tray. Thank you for the "eject" command, I'll check if it works, even though I'd rather not have to ;)

Offline Pikolo

  • Trusted User
  • Member
  • *****
  • Posts: 138
  • Karma: 25
    • View Profile
  • Peppermint version(s): 8
Re: USB modem shenanigans(unsolved)
« Reply #3 on: July 22, 2016, 06:57:08 am »
It came back. It seems like PCNetSpec was right about the reason  :) but eject doesn't fix it. Here are the logs:
a) Not seeing a disc in the devices tab in Nemo:
Code: [Select]
pshem@PiLenovo ~ $ lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 058f:3821 Alcor Micro Corp.
Bus 001 Device 004: ID 8087:07da Intel Corp.
Bus 001 Device 003: ID 04f3:0084 Elan Microelectronics Corp.
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 003 Device 003: ID 12d1:14fe Huawei Technologies Co., Ltd. Modem (Mass Storage Mode)
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pshem@PiLenovo ~ $ eject
eject: unable to find or open device for: `cdrom'
b) Seeing the device in Nemo:
Code: [Select]
pshem@PiLenovo ~ $ lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 058f:3821 Alcor Micro Corp.
Bus 001 Device 004: ID 8087:07da Intel Corp.
Bus 001 Device 003: ID 04f3:0084 Elan Microelectronics Corp.
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 003 Device 006: ID 12d1:14fe Huawei Technologies Co., Ltd. Modem (Mass Storage Mode)
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pshem@PiLenovo ~ $ eject
pshem@PiLenovo ~ $ lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 058f:3821 Alcor Micro Corp.
Bus 001 Device 004: ID 8087:07da Intel Corp.
Bus 001 Device 003: ID 04f3:0084 Elan Microelectronics Corp.
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 003 Device 006: ID 12d1:14fe Huawei Technologies Co., Ltd. Modem (Mass Storage Mode)
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pshem@PiLenovo ~ $ eject 12d1:14fe
eject: unable to find or open device for: `12d1:14fe'
As you can see eject excutes, but there is no notable effect and trying to eject the modem in Storage Mode produces an error.

Sometimes the error gets fixed by opening the modem firmware on Windows, letting it run for some time and subsequently plugging it into Peppermint, but it is not a reliable method, which seems to suggest that the relationship is more of a coincidence than causation

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25502
  • Karma: 2809
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: USB modem shenanigans(unsolved)
« Reply #4 on: July 22, 2016, 08:07:52 am »
Yep it's not mode switching properly....

Here is is behaving like a USB stick (not working)
Bus 003 Device 003: ID 12d1:14fe Huawei Technologies Co., Ltd. Modem (Mass Storage Mode)
and here it is behaving like a modem (working)
Bus 003 Device 006: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard

When it's NOT working, can you post the output from:
Code: [Select]
mount

I do wish they'd just supply these damn things without a zerocd partition and with a disk for the Windows drivers .. so they didn't need to mode switch in the first place ::)

[EDIT]

Sometimes unplugging the device, then waiting a few seconds and replugging it can cause it to mode switch.
« Last Edit: July 22, 2016, 08:14:15 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Pikolo

  • Trusted User
  • Member
  • *****
  • Posts: 138
  • Karma: 25
    • View Profile
  • Peppermint version(s): 8
Re: USB modem shenanigans(unsolved)
« Reply #5 on: July 24, 2016, 03:17:11 pm »
Sorry for taking the time to answer - I can't really answer unless I solve this problem, and so the cycle goes...

Unfortunately, only your last suggestion works - modeswitch happens 20% of the time and I can check it after 10s with "lsusb"

I created a "mount.txt" file... and forgot to save the content.  ::)  I'll post it next time ;)