**Background**

I have a Panasonic FZ-G1 MkIII Toughpad touchscreen tablet PC which is based on an x86-64bit Intel® Core™ i5-5300U CPU @ 2.30GHz, with 4Gb RAM.

This is dual-booted with Windows 10 Pro 64bit (build 1803) and Ubuntu 18.04.1 LTS 64bit.

The mobile sim is a standard giffgaff sim which works fine in Windows on this machine - it is recognised and internet access via it works, detected as LTE (4G). So this proves that the sim is working correctly with the WLAN modem hardware in this tablet.

However, when the same tablet is booted into Ubuntu 18.04.1 LTS 64bit, the same sim that worked in the Windows partition, does not work in Ubuntu. Error message: "`Connection Failed: Activation of network connection failed`" pops up when attempting connection via Settings. The IMEI is recognised and shown by the Settings. I tried with and without the default PIN 5555 (ref: <https://community.giffgaff.com/t5/Help-Support/default-SIM-PIN/td-p/10007119> )

Following advice elsewhere from searching, it would appear that the chipset hardware for the WLAN mobile broadband modem in this tablet is of the make Sierra Wireless (see output of commands below).

**The question**

How could I get Ubuntu 18.04.1 to work with this giffgaff sim in this WLAN modem hardware, please? Do I need to install different drivers or adjust configuration files or both?

**Command line output:**

```
robdavishome@FZ-G1-Ubuntu:~$ mmcli -m 0 

/org/freedesktop/ModemManager1/Modem/0 (device id 'df18453f01d7e92f51f80c09fa46982ba404aa31')
  -------------------------
  Hardware |   manufacturer: 'Sierra'
           |          model: 'MBIM [1199:9041]'
           |       revision: 'SWI9X15C_05.05'
           |      supported: 'gsm-umts, lte'
           |        current: 'gsm-umts, lte'
           |   equipment id: '354078070723885'
  -------------------------
  System   |         device: '/sys/devices/pci0000:00/0000:00:14.0/usb2/2-7'
           |        drivers: 'cdc_mbim'
           |         plugin: 'Sierra'
           |   primary port: 'cdc-wdm3'
           |          ports: 'wwp0s20u7c2i12 (net), cdc-wdm3 (mbim)'
  -------------------------
  Numbers  |           own : 'unknown'
  -------------------------
  Status   |           lock: 'none'
           | unlock retries: 'sim-pin2 (3)'
           |          state: 'registered'
           |    power state: 'on'
           |    access tech: 'lte'
           | signal quality: '77' (cached)
  -------------------------
  Modes    |      supported: 'allowed: 2g, 3g, 4g; preferred: none'
           |        current: 'allowed: 2g, 3g, 4g; preferred: none'
  -------------------------
  Bands    |      supported: 'unknown'
           |        current: 'unknown'
  -------------------------
  IP       |      supported: 'ipv4, ipv6, ipv4v6'
  -------------------------
  3GPP     |           imei: '354078070723885'
           |  enabled locks: 'fixed-dialing'
           |    operator id: '23410'
           |  operator name: 'giffgaff'
           |   subscription: 'unknown'
           |   registration: 'home'
  -------------------------
  SIM      |           path: '/org/freedesktop/ModemManager1/SIM/0'

  -------------------------
  Bearers  |          paths: '/org/freedesktop/ModemManager1/Bearer/0'

robdavishome@FZ-G1-Ubuntu:~$ mmcli -L

Found 1 modems:
    /org/freedesktop/ModemManager1/Modem/0 [Sierra] MBIM [1199:9041]

robdavishome@FZ-G1-Ubuntu:~$ 

```

**Annotated Research I did before asking this question**

* <https://unix.stackexchange.com/questions/436817/gsm-device-unavailable-in-networkmanager> - I my case, I think the sim is being 'seen' but a connection can't be made.
* <https://ubuntuforums.org/showthread.php?t=2393608> - WiFi problem so not relevant to my situation
* <https://ubuntuforums.org/showthread.php?t=370108> - suggestion to use diagnostic tool downloaded from forum, would prefer to wait until explored other possibilities. Reluctant at the moment to install a script from a forum source which is unofficial.
* ["connection failed. activation of network connection failed" mobile broadband ubuntu](https://askubuntu.com/questions/1052620/connection-failed-activation-of-network-connection-failed-mobile-broadband-ub?rq=1) - only answer is about checking the sim itself. Not relevant to my situation as I know the sim already works - when booted into Windows.
* [Huawei EC156 mobile broadband not working with Network manager on Ubuntu 14.04 LTS 64 bit](https://askubuntu.com/questions/454233/huawei-ec156-mobile-broadband-not-working-with-network-manager-on-ubuntu-14-04-l?rq=1) - not same hardware as mine
* [Huawei EC156 modem no longer detected after disconnected](https://askubuntu.com/questions/294249/huawei-ec156-modem-no-longer-detected-after-disconnected/316600#316600) - not same hardware as mine
* <https://docs.ubuntu.com/core/en/stacks/network/network-manager/docs/configure-cellular-connections> - this might help, but not yet fully read it through
* [Mobile Broadband do not work with Thinkpad T440p on Ubuntu 13.10](https://askubuntu.com/questions/408863/mobile-broadband-do-not-work-with-thinkpad-t440p-on-ubuntu-13-10) - different hardware. Answer suggests workarounds but I'm thinking these might only be relevant to that hardware
* <https://docs.ubuntu.com/core/en/stacks/network/modem-manager/docs/gathering-modem-information> - used this command to identify hardware
* <https://community.giffgaff.com/t5/Help-Support/How-to-get-giffgaff-sim-working-on-Ubuntu-tablet-PC-works-in/m-p/22440680#M8359245> - also asked the question on the dedicated giffgaff community though I do think it might be an issue with any operator's sim.

[GiffGaff](https://www.giffgaff.com/) are a [MVNO](https://en.wikipedia.org/wiki/Mobile_virtual_network_operator) that use the O2 network in the UK, owned by Telefonica. GiffGaff's parent company is O2 (at time of writing) ([Ref](https://en.wikipedia.org/wiki/Giffgaff)).

Thanks for reading. Please let me know if you can advise on my question.