-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can communicate with modem via USB but cannot get connection #7
Comments
I have a similar problem with mine (Thinkad X1 Yoga 3). After running ./xmm2usb, I run the 3 AT commands for MBIM switch (currently it seems to boot back into MBIM mode when I start the computer, so I'm not sure if I need them any more). Then I run the "FCC unlock" at command, but it doesn't appear to change much. I have a very similar picture and output to yours above. Then I tried the following (I copied the APN from Windows):
After doing that, I played with just setting AT+CFUN=1 (which has failed previously with error 4) while writing this message, but now it didn't complain about anything and I could suddenly connect using the standard XFCE menu. The main difference I can see now from mmcli -m 0 is is:
I'll try a few more things to see if I can make a reproducible sequence of actions. Thanks to @abrasive for figuring this out and sharing with the rest of us! |
I get essentially the same output.
and
|
New experiment. I tried resetting the modem with xmm2usb and with a complete powerdown and boot. Both cases worked. The key difference was AT+CFUN=1 to switch the modem from flight mode (4) to on (mode=1). The complete sequence was:
I now get an ip address and route from the modem. A couple of changes from the README:
|
Thanks @jmbjorndalen Yet
Maybe there is an issue with the SIM card, which I did insert, according to /var/log/daemon.log`:
|
I thought that rebooting the system might help to get my SIM card recognized (or whatever the problem is), but it did not. As one could expect, after the reboot the modem was back to its original state, so I had to re-do
yet also this time this was not sufficient. Via the
and
|
After issuing
|
fun fact: if i wait 20min after issuing this commands suddenly the device comes up and conncects 💃 |
@DDvO : I haven't had a chance to play with it since the weekend. Have you tried completely powering it off and on again after Did you get it to connect in the end? |
Hi, I have a X1 Carbon gen6 and got it (almost) working with AT+CFUN=1 together with the other AT commands. Then I did: mmcli -m 0 --simple-connect='pin=5555,apn=foo.bar.com' Now "mmcli -b 0" shows a lot of things including "IPv4 configuration" with IPs but nigher "ip addr" or "ip route" show any information related to the address(es). Do I have to do some more to actually address active in Linux? Regards, |
After hibernate & resume, the modem disappers.
Update: BTW, I'm meanwhile using the kernel module variant of @abrasive's script: |
After powering off & reboot, the behavior is still as I wrote on Oct 20,
No, e.g., on
which must be somewhat misleading since this happens regardless if a SIM card is inserted (and detected) or not. |
Interestingly,
i.e. the device ID 8087:095a for the modem, which I got before, has disappeared. |
Meanwhile I'm sure the SIM card is recognized - for instance,
Yet
Update: the latter happens also when the modem has been connected via the ModemManager. |
After many hours of frustrating trial and error, I was about to replace the modem hardware of the ThinkPad X390 with the one of a ThinkPad Yoga 370: a Sierra Wireless EM7455, which works out of the box. But then I did a last experiment, which finally gave success: Yet still I could not start a connection via
It turns out that the ModemManager interferes with Just a shame that other, more modern and convenient, higher-level ways of connecting do not (yet) work. Update: |
@DDvO It may be that after a hibernate-resume cycle, the power is not properly restored to the card. I had this happen when I booted the laptop without the card present. Does kicking the If not, try and find the power off/on ACPI methods, as described in this comment - power cycling the card may be more successful. |
Thanks @abrasive for the hint, but At least in some situations the modem is disabled after resume from hibernation, and then I cannot get a connection even with suspend&resume. |
Wait, what? The |
Well, it looks like When I then use your script,
do not complain but
|
Ah, of course. You might dump your ACPI tables and disassemble them with |
AT+CFUN? |
Thanks again @abrasive for your great hack to switch the modem to USB mode!
In my case the modem does respond properly to AT commands.
BTW, do I need the command
at+gtusbmode=7
you gave? At least it worked.Yet for some reason the ModemManager still cannot use the modem properly:
nmcli connection up UMTS
(using my connection UMTS) yieldsand on
/var/log/messages
I obtainThe output of
mmcli -m 0
isThe text was updated successfully, but these errors were encountered: