[SOLVED] Network Manager doesn't work

[SOLVED] Network Manager doesn't work

Postby artenaki » Sep 22nd, '20, 19:59

Hello. I installed Mageia 7.1 x86 LXDE from DVD. When installing, I put all the checkboxes in the "Desktop" section. I only have access to the Internet via a Nokia E51 mobile phone connected via a USB cable in modem mode. Everything works in other Linux distributions. But in Mageia, I can't establish an internet connection.
I followed this instruction https://wiki.mageia.org/en/Switching_to_networkmanager
And
Code: Select all
sudo urpmi networkmanager networkmanager-applet ppp openvpn usbutils (from DVD)

However, the ModemManager package was not in the local DVD repository and I installed it manually by downloading the rpm's from the dual boot Ubuntu 16.04
https://mirror.yandex.ru/mageia/distrib ... e/release/
Code: Select all
sudo rpm -i libmbim-utils.rpm libmbim-glib4.rpm
sudo rpm -i libqmi-utils.rpm libqmi-glib5.rpm
sudo rpm -i modemmanager.rpm

Rebooted
Code: Select all
sudo systemctl status ModemManager.service
sudo systemctl status NetworkManager.service

Services are active, but the Network Manager is empty (no mobile network support). I created a connection manually but it won't connect (no matching devices).
Note that other Linux distributions have no problem with my modem. Moreover, I used to run it in Mageia 7.1 as well, but I don't remember how (then I reinstalled the system).

I managed to get online only via the console wvdial. This package was not on the DVD either, so I downloaded the rpm's and installed it manually:
Code: Select all
sudo rpm -i libwvstreams.rpm
sudo rpm -i uniconf.rpm
sudo rpm -i wvdial.rpm
sudo wvdial


But, I would like to configure Network Manager to understand what is the cause of the problem.
As you can see, the ModemManager is working. The problem is in NetworkManager. After examining the logs, I believe that the matter is in DBus or freedesktop.
Next, I attach the logs (from Mageia 7.1 and Ubuntu 16.04, where no problem):

Code: Select all
lsusb
Bus 005 Device 002: ID 0421:0042 Nokia Mobile Phones E51 (PC Suite mode)


Code: Select all
ifconfig -a
lo        Link encap:Локальная петля (Loopback)
usbpn0    Link encap:UNSPEC


Mageia:
Code: Select all
sudo comgt -d /dev/ttyUSB0
Can't open device /dev/ttyUSB0

Code: Select all
sudo comgt -d /dev/ttyACM0
SIM ready
Waiting for Registration..(120 sec max)
Registered on Home network:
Failed to register

Code: Select all
sudo comgt -d /dev/ttyACM1
Error @139, line 8, Could not write to COM device. (1)

Code: Select all
sudo comgt -d /dev/ttyACM2
Can't open device /dev/ttyACM2


Ubuntu (after system load):
Code: Select all
sudo comgt -d /dev/ttyACM0
 ***SIM ERROR***
Check device port configuration.
Check SIM is inserted
Test SIM in a mobile phone?

Ubuntu (Network active):
Code: Select all
sudo comgt -d /dev/ttyACM0
Error @74, line 4, Could not write to COM device. (1)


journalctl | grep ModemManager > log https://pastebin.com/raw/MzWAdwCN
journalctl (full) > log https://pastebin.com/raw/0xmvggRm

wvdial working config (/etc/wvdial.conf):
Code: Select all
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Phone = *99#
Password = 9180******
Username = 9180******
Init3 = AT+CGDCONT=1,"IP","internet.yota"
Last edited by artenaki on Sep 24th, '20, 02:56, edited 1 time in total.
User avatar
artenaki
 
Posts: 6
Joined: Sep 21st, '20, 21:54
Location: France

Re: Network Manager doesn't work

Postby doktor5000 » Sep 23rd, '20, 01:20

Do you have usb_modeswitch installed ?

And could you post the output as root of
Code: Select all
ll /dev/tty[ASU]*
mmcli -L
mmcli -m 0

(that is, before you establish a connection with wvdial) Also the full output at that point of

Code: Select all
systemctl status NetworkManager.service -n150
systemctl status ModemManager.service -al -n150

would probably be helpful.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 16072
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Network Manager doesn't work

Postby artenaki » Sep 23rd, '20, 05:06

doktor5000 wrote:Do you have usb_modeswitch installed?

Yes. It was installed by default.

doktor5000 wrote:And could you post the output as root of

Code: Select all
sudo ll /dev/tty[ASU]*
command not found


Code: Select all
sudo mmcli -L
    /org/freedesktop/ModemManager1/Modem/0 [Nokia] Nokia E51

Code: Select all
sudo mmcli -m 0
  --------------------------
  General  |      dbus path: /org/freedesktop/ModemManager1/Modem/0
           |      device id: ce0ade3ab6f6ed7b22b102c287cbc0cc90f235d8
  --------------------------
  Hardware |   manufacturer: Nokia
           |          model: Nokia E51
           |       revision: V ICPR71_09w14.3
           |                 17-02-10
           |                 RM-244
           |                 (c) Nokia
           |                 
           |                 410.34.001
           |      supported: gsm-umts
           |        current: gsm-umts
           |   equipment id: 357************
  --------------------------
  System   |         device: /sys/devices/pci0000:00/0000:00:10.3/usb5/5-1
           |        drivers: cdc_acm, cdc_phonet
           |         plugin: Nokia
           |   primary port: ttyACM0
           |          ports: ttyACM0 (at)
  --------------------------
  Status   |          state: disabled
           |    power state: on
           | signal quality: 0% (cached)
  --------------------------
  Modes    |      supported: allowed: 2g; preferred: none
           |        current: allowed: 2g; preferred: none
  --------------------------
  IP       |      supported: ipv4, ipv6
  --------------------------
  3GPP     |           imei: 357************
  --------------------------
  SIM      |      dbus path: /org/freedesktop/ModemManager1/SIM/0

^ These three commands show the same in Ubuntu. Except that the modem is on there. ^
Code: Select all
*****Ubuntu*****
  -------------------------
  Status   |           lock: 'none'
           | unlock retries: 'unknown'
           |          state: 'registered'
           |    power state: 'on'
           |    access tech: 'unknown'
           | signal quality: '41' (recent)
  -------------------------
  3GPP     |           imei: '357************'
           |  enabled locks: 'none'
           |    operator id: '25002'
           |  operator name: 'MegaFon'
           |   subscription: 'unknown'
           |   registration: 'home'
  -------------------------
*****Mageia*****
  --------------------------
  Status   |          state: disabled
           |    power state: on
           | signal quality: 0% (cached)
  --------------------------
  3GPP     |           imei: 357************
  --------------------------

I tried to turn on modem with the command:
Code: Select all
sudo mmcli -m 0 --enable
sudo mmcli -m 0

And it became registered. However, nothing happened in the Network Manager.
Then I restarted the service:
Code: Select all
sudo systemctl restart NetworkManager.service

Nothing.
I restarted ModemManager service:
Code: Select all
sudo systemctl restart ModemManager.service
sudo mmcli -m 0

And modem became disabled.
ModemManager service turns off the modem by default in Mageia.
ModemManager service turns on and register the modem by default in Ubuntu.

Code: Select all
sudo systemctl status NetworkManager.service -n150
sudo systemctl status ModemManager.service -al -n150

After booting the system, no internet connection:
Mageia NM https://pastebin.com/SS8qHWuZ
Mageia MM https://pastebin.com/uRgucZRK
Ubuntu NM https://pastebin.com/vnFaTP68
Ubuntu MM https://pastebin.com/8cJikQAy
User avatar
artenaki
 
Posts: 6
Joined: Sep 21st, '20, 21:54
Location: France

Re: Network Manager doesn't work

Postby doktor5000 » Sep 23rd, '20, 12:02

artenaki wrote:
doktor5000 wrote:And could you post the output as root of

Code: Select all
sudo ll /dev/tty[ASU]*
command not found


Yeah sorry, the alias won't work for root. You can either run that as your user or as root you'd have to write it out
Code: Select all
sudo ls-al /dev/tty[ASU]*


Also please the output of
Code: Select all
rfkill list all
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 16072
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Network Manager doesn't work

Postby artenaki » Sep 23rd, '20, 16:58

Code: Select all
sudo ls -al /dev/tty[ASU]*
crw-rw---- 1 root dialout 166,  0 сен 23 21:16 /dev/ttyACM0
crw-rw---- 1 root dialout 166,  1 сен 23 21:16 /dev/ttyACM1
crw-rw---- 1 root dialout   4, 64 сен 23 21:16 /dev/ttyS0
crw-rw---- 1 root dialout   4, 65 сен 23 21:16 /dev/ttyS1
crw-rw---- 1 root dialout   4, 66 сен 23 21:16 /dev/ttyS2
crw-rw---- 1 root dialout   4, 67 сен 23 21:16 /dev/ttyS3


Code: Select all
rfkill list all

shows nothing
User avatar
artenaki
 
Posts: 6
Joined: Sep 21st, '20, 21:54
Location: France

Re: Network Manager doesn't work

Postby doktor5000 » Sep 23rd, '20, 18:41

Pretty hard to tell remotely what the issue is. You could compare if your Ubuntu user is member of the dialout group or the equivalent for write access to the virtual serial devices /dev/tty[ASU]*
Could also be an issue in the phonet plugin in nm or mm, you would have to enable debug mode and check yourself what the cause might be. Or maybe our networkmanager is missing a preference to enable found modems by default.

You can also try to manually enable the modem via mmcli or via AT commands, have a look at the examples in e.g. https://github.com/xmm7360/xmm7360-usb- ... h/issues/7
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 16072
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Network Manager doesn't work

Postby artenaki » Sep 23rd, '20, 18:56

The problem has been solved. I reinstalled the packages and it worked.
Code: Select all
sudo urpme networkmanager networkmanager-applet networkmanager-wifi ppp wvdial usb_modeswitch usb_modeswitch-data modemmanager
sudo urpmi --allow-recommends networkmanager networkmanager-applet networkmanager-wifi ppp wvdial usb_modeswitch usb_modeswitch-data modemmanager
sudo systemctl enable NetworkManager.service
sudo systemctl enable ModemManager.service

Previously, I added the network repositories and updated the index, of course. Therefore, some packages were downloaded from Update repository.
Working log https://pastebin.com/raw/zx95aQhs
Suspected cause of the problem: rpm doesn't install packages correctly. You need to use urpmi. Or some packages were missing (from recommended list).

Then I got this problem viewtopic.php?f=25&t=13441 and solved it like this:
Code: Select all
hostnamectl set-hostname localhost && /usr/bin/drakconf
User avatar
artenaki
 
Posts: 6
Joined: Sep 21st, '20, 21:54
Location: France

Re: Network Manager doesn't work

Postby doktor5000 » Sep 23rd, '20, 22:38

Please mark the thread accordingly by editing the topic of the first post and prefix it by [DONE], thanks
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 16072
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Network Manager doesn't work

Postby artenaki » Sep 24th, '20, 02:58

doktor5000 wrote:Please mark the thread accordingly by editing the topic of the first post

Ok. Thanks for the help.
I suggest you add ModemManager and NetworkManager in the next release of Mageia 8.
User avatar
artenaki
 
Posts: 6
Joined: Sep 21st, '20, 21:54
Location: France


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest