Network Manager problem, PC not shutting down properly on Skylake hardware

My PC is not shutting down because the **** Network Manager, incredible! You can see here in my 30+ posts Arch thread https://bbs.archlinux.org/viewtopic.php?id=203161 , why I am so enthusiastic about this finding, didn’t figure it till last night. I switched back to openSUSE Leap (42.1), also kept my Arch install, and there were no problems in Leap with shutting down the machine. All fine, but I noticed I don’t have an icon for the networks connections. Going through Yast I see in the networks section that the method selected is “Wicked” (really have no idea what is it, I will start to read about it). So I switched to Network Manager to easily manage my networks, need some VPN connections. Lucky me, it was late, didn’t do anything else at that time with the system so it was quite easy to connect the dots; when trying to shutdown - guess what? The system doesn’t stop, with exactly the same sounds and steps experienced for a couple of months on this very new Skylake system: apparently it stops fine, to the point where you don’t get any info because all the services are (properly!) stopped, you can here the 2 HDDs parking heads, than the coolers start to blow at full speed, than if you really want to shut it down you have to press for seconds the power button… I tested it and it’s the Network Manager, both in openSUSE and Arch.
So the only thing we can do is to disable Network Manager. Maaaan, hated that **** for years, and when I start to love it… Is there any chance we can fix this, where should this be reported, and how can I get more info about what it’s happening given everything is… already shut down so journalctl doesn’t help? Except for the hardware itself, of course.

[FONT=monospace]**FakeMoth-PC:/home/fakemoth #** journalctl -p err -b

[/FONT]

-- Logs begin at Wed 2015-11-04 22:21:11 EET, end at Sat 2015-11-07 07:31:48 EET. --
Nov 07 06:58:49 FakeMoth-PC audispd[828]: **No plugins found, exiting**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device**
Nov 07 06:58:50 FakeMoth-PC kernel: **vgaarb: this pci device is not a vga device
**
**FakeMoth-PC:/home/fakemoth #** systemctl --failed
**0 loaded units listed.** Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

**FakeMoth-PC:/home/fakemoth #** screenfetch           
** ****! ****]] **QStandardPaths: wrong ownership on runtime directory /run/user/0, -2 instead of 0
** ****! ****]] **Qt: Session management error: networkIdsList argument is NULL
** ****! ****]] **"Session bus not found
To circumvent this problem try the following command (with Linux and bash)
export $(dbus-launch)"
**             .;ldkO0000Okdl;.                ****fakemoth****@****FakeMoth-PC**
**         .;d00xl:,'....';:ok00d;.           **** OS:** openSUSE 42.1
**       .d00l'                ,o00d.         **** Kernel:** x86_64 Linux 4.1.12-1-default
**     .d0Kd.**** :Okxol:;'.          ****:O0d.       **** Uptime:** 35m
**    'OK****KKK0kOKKKKKKKKKKOxo:'      ****lKO'      **** Packages:** 2292
**   ,0K****KKKKKKKKKKKKKKK0d:****,,,****:dx:****    ;00,     **** Shell:** bash 4.2.47
**  .OK****KKKKKKKKKKKKKKKk.****.oOkdl.****'0k.****   cKO.    **** Resolution:** 1920x1080
**  :KK****KKKKKKKKKKKKKKK: ****kKx..od ****lKd****   .OK:    **** DE:** KDE5
**  dKK****KKKKKKKKKOx0KKKd ****;0KKKO, ****kKKc****   dKd    **** WM:** KWin
**  dKK****KKKKKKKKKK;.;oOKx,..****'****..;kKKK0.****  dKd    **** CPU:** Intel Core i7-6700K CPU @ 4.001GHz
**  :KK****KKKKKKKKKK0o;...;cdxxOK0Oxc,.  ****.0K:    **** GPU:** AMD/ATI Hawaii PRO [Radeon R9 290], AMD/ATI Hawaii PRO [Radeon R9 290]
**   kKK****KKKKKKKKKKKKK0xl;'......,cdo  ****lKk     **** RAM:** 2039MiB / 15976MiB
**   '0K****KKKKKKKKKKKKKKKKKKKK00KKOo;  ****c00'     **
**    .kK****KKOxddxkOO00000Okxoc;'.   ****.dKk.      **
**      l0Ko.                    .c00l.       **
**       .l0Kk:.              .;xK0l.         **
**          ,lkK0xl:;,,,,;:ldO0kl,            **
**              .':ldxkkkkxdl:'.              **


Don’t ask me why I have two identical threads: I only pressed once, the only button…

Anyone else with the same problem?

You might try this…

First, try manually shutting down your network service before shutting down. You can run the following in a root console


systemctl stop network

Then, shutdown.

If that seems to solve your problem, then you might try executing the following once in a root console which should modify your shutdown to require a network shutdown explicitly

cp /usr/lib/systemd/system/network.service /etc/systemd/system/ &&
echo "PartOf=shutdown.target" >> /etc/systemd/system/network.service

Note that what I’m suggesting is totally untried and I can’t test because I’m not seeing what you describe.
To undo this proposed shutdown modification, run the following in a root console

rm /etc/systemd/system/network.service

Note also that something might be causing your network service (Gnome Network Manager is only a GUI shell) to not shut down in a timely manner. Some apps like MySQL might be configured to use web socket connections which might mean that MySQL would have to be shutdown properly (databases take a long time to shut down) before all networking can stop. If that is what is happening then what you’re seeing is proper behavior. To a certain degree, that might be revealed in my first test suggestion above… That test identifies whether the network service is just slow to shut down(generally for a good reason) or if there might be a timing issue

HTH,
TSU

Just wanted to be clear - this is not working. I did stop the network, first thing I tried to no avail - the logs are silent in this regard, it seems it has nothing to do with it; but it does as my experiments suggest. Here is my network card for further investigation:

FakeMoth-PC:/home/fakemoth # lspci
00:00.0 Host bridge: Intel Corporation Sky Lake Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Sky Lake PCIe Controller (x16) (rev 07)
00:01.1 PCI bridge: Intel Corporation Sky Lake PCIe Controller (x8) (rev 07)
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI #1 (rev 31)
00:17.0 SATA controller: Intel Corporation Device a102 (rev 31)
00:1b.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Root Port #17 (rev f1)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #1 (rev f1)
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #9 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31)
00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (2) I219-V (rev 31)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii PRO [Radeon R9 290]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii HDMI Audio
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii PRO [Radeon R9 290]
02:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii HDMI Audio
04:00.0 USB controller: ASMedia Technology Inc. ASM1142 USB 3.1 Host Controller

In an effort to make it work I updated:
-the kernel to 4.6;
-xorg - other reasons;
-dropped Catalyst and I am using Gallium - other reasons.
It was doing the same thing on both openSUSE and Arch as stated. After the update to kernel 4.6 I can properly shutdown the station, all hail Zalmoxis :slight_smile: So it was the kernel in the end and not systemd. Now another (maybe offtopic question): Is there a stable but up to date repo for the openSUSE kernel for 4.6 and above (don’t want to use Tumbleweed)? I mean… now it offers me an update to 4.7.rc2… I don’t want to be THAT much of a tester :slight_smile:

fakemoth@FakeMoth-PC:~> uname -a 
Linux FakeMoth-PC 4.6.0-4.g779b2fc-default #1 SMP PREEMPT Fri May 27 20:15:14 UTC 2016 (779b2fc) x86_64 x86_64 x86_64 GNU/Linux
fakemoth@FakeMoth-PC:~> zypper lr
#  | Alias                               | Name                                    | Enabled | GPG Check | Refresh
---+-------------------------------------+-----------------------------------------+---------+-----------+--------
 1 | download.opensuse.org-non-oss       | Main Repository (NON-OSS)               | Yes     | (r ) Yes  | Yes     
 2 | ftp.gwdg.de-suse                    | Packman Repository                      | Yes     | (r ) Yes  | Yes     
 3 | geeko.ioda.net-amd-fglrx            | AMD/ATI Graphics Drivers                | Yes     | (r ) Yes  | Yes     
 4 | http-download.opensuse.org-44d0b71f | X11:XOrg                                | Yes     | (r ) Yes  | Yes     
 5 | http-download.opensuse.org-49e9bece | X11:XOrg                                | Yes     | (r ) Yes  | Yes     
 6 | http-download.opensuse.org-758c3606 | home:mhnovell                           | Yes     | (r ) Yes  | Yes     
 7 | http-download.opensuse.org-8986ce35 | games:tools                             | Yes     | (r ) Yes  | Yes     
 8 | http-download.opensuse.org-95e969c9 | home:mhnovell                           | Yes     | (r ) Yes  | Yes     
 9 | http-download.opensuse.org-c7d96e69 | home:pontostroy:X11                     | Yes     | (r ) Yes  | Yes     
10 | linuxdownload.adobe.com-linux       | Adobe Flash Plugin                      | Yes     | ( p) Yes  | Yes     
11 | new-kernel-repo                     | new-kernel-repo                         | Yes     | (r ) Yes  | Yes     
12 | packman.inode.at-suse               | Packman Repository                      | Yes     | (r ) Yes  | Yes     
13 | repo-debug                          | openSUSE-Leap-42.1-Debug                | No      | ----      | Yes     
14 | repo-debug-non-oss                  | openSUSE-Leap-42.1-Debug-Non-Oss        | No      | ----      | Yes     
15 | repo-debug-update                   | openSUSE-Leap-42.1-Update-Debug         | No      | ----      | Yes     
16 | repo-debug-update-non-oss           | openSUSE-Leap-42.1-Update-Debug-Non-Oss | No      | ----      | Yes     
17 | repo-non-oss                        | openSUSE-Leap-42.1-Non-Oss              | Yes     | (r ) Yes  | Yes     
18 | repo-oss                            | openSUSE-Leap-42.1-Oss                  | Yes     | (r ) Yes  | Yes     
19 | repo-source                         | openSUSE-Leap-42.1-Source               | No      | ----      | Yes     
20 | repo-update                         | openSUSE-Leap-42.1-Update               | Yes     | (r ) Yes  | Yes     
21 | repo-update-non-oss                 | openSUSE-Leap-42.1-Update-Non-Oss       | Yes     | (r ) Yes  | Yes    

I use this one :
http://download.opensuse.org/repositories/Kernel:/stable/standard/
Usually after I get a kernel that works I turn off refresh of that repository.

Thanks! I just modified my previous repo :slight_smile: I also get xorg updates very often, and this will usually break something; is there any a “opensuse official/maintained” fresh xorg repo that you might point me to?

I’m not aware of such a repo. For xorg I always use what comes with the standard release and I don’t use tumbleweed.

Just stick to the distribution repos re. X. From what it looks like your Skylake CPU needs the newer kernel, so no way around that if you don’t want to run Tumbleweed.