Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Shutdown and Restart Hangs

Report Bugs, Issues and non- package Requests
Post Reply
User avatar
wu-shu
Forum Novice
Forum  Novice
Posts: 4
Joined: Sun Aug 04, 2019 6:36 am

Shutdown and Restart Hangs

#1

Post by wu-shu » Mon Aug 12, 2019 4:58 am

Hi all,

I am now "using" MX-18.3_x64 for about a month now but have a huge problem.
When I want to shut down or reboot my Laptop it hangs nearly every time. It is a Clevo. Don't know which exactly. If this plays a role I will look it up.
It started when I tried to mount a NFS drive in /etc/fstab. I immediatly removed my mount from /etc/fstab, but the shutdown problem still remains.

I spotted that it hangs on a wireless-tools script somewhere in /etc/networking.
After I deleted it my system did a few shutdowns, but now hangs on the last message before shutdown (<info> system shuts down now) or from time to time on smbd script or other scripts.
Could it be that there is somewhere an infinite loop which prevents my system from shutting down?

How can I track the shutdown process even better?
Hope I must not switch the distro :rolleyes:

User avatar
Eadwine Rose
Administrator
Posts: 8970
Joined: Wed Jul 12, 2006 2:10 am

Re: Shutdown and Restart Hangs

#2

Post by Eadwine Rose » Mon Aug 12, 2019 5:03 am

Please post the content of MX Tools - quick system info.



Just paste, don't format anything.
MX-18.3_x64 May 26 2019 * 4.19.0-5-amd64 ext4 Xfce 4.12.3 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 390.116 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy5030

User avatar
wu-shu
Forum Novice
Forum  Novice
Posts: 4
Joined: Sun Aug 04, 2019 6:36 am

Re: Shutdown and Restart Hangs

#3

Post by wu-shu » Mon Aug 12, 2019 10:33 am

Code: Select all

System:    Host: ant Kernel: 4.19.0-5-amd64 x86_64 bits: 64 compiler: gcc v: 6.3.0 
           Desktop: Xfce 4.12.3 Distro: MX-18.3_x64 Continuum May 26  2019 
           base: Debian GNU/Linux 9 (stretch) 
Machine:   Type: Laptop System: Notebook product: N15_17RD v: N/A serial: <filter> 
           Mobo: Notebook model: N15_17RD serial: <filter> UEFI [Legacy]: American Megatrends 
           v: 5.11 date: 09/16/2015 
Battery:   ID-1: BAT0 charge: 49.4 Wh condition: 54.6/62.2 Wh (88%) model: Notebook BAT 
           status: Charging 
CPU:       Topology: Quad Core model: Intel Core i7-6700HQ bits: 64 type: MT MCP arch: Skylake-S 
           rev: 3 L2 cache: 6144 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 41472 
           Speed: 800 MHz min/max: 800/3500 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 
           5: 800 6: 800 7: 800 8: 800 
Graphics:  Device-1: Intel HD Graphics 530 vendor: CLEVO/KAPOK driver: i915 v: kernel 
           bus ID: 00:02.0 
           Device-2: NVIDIA GM107M [GeForce GTX 960M] vendor: CLEVO/KAPOK driver: nouveau 
           v: kernel bus ID: 01:00.0 
           Display: x11 server: X.Org 1.19.2 driver: modesetting,nouveau unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 530 (Skylake GT2) v: 4.5 Mesa 18.2.6 
           direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-H HD Audio vendor: CLEVO/KAPOK driver: snd_hda_intel 
           v: kernel bus ID: 00:1f.3 
           Sound Server: ALSA v: k4.19.0-5-amd64 
Network:   Device-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter 
           vendor: Bigfoot Networks Killer N1525 Wireless-AC driver: ath10k_pci v: kernel 
           port: e000 bus ID: 02:00.0 
           IF: wlan0 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: CLEVO/KAPOK 
           driver: r8169 v: kernel port: d000 bus ID: 03:00.1 
           IF: eth0 state: down mac: <filter> 
           Device-3: Atheros AR3012 Bluetooth 4.0 type: USB driver: btusb bus ID: 1-10:3 
           IF-ID-1: usb0 state: down mac: <filter> 
Drives:    Local Storage: total: 494.68 GiB used: 22.38 GiB (4.5%) 
           ID-1: /dev/mmcblk0 model: SA32G size: 28.91 GiB 
           ID-2: /dev/sda vendor: Samsung model: SSD 840 EVO 500GB size: 465.76 GiB 
Partition: ID-1: / size: 455.45 GiB used: 22.38 GiB (4.9%) fs: ext4 dev: /dev/sda1 
           ID-2: swap-1 size: 2.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2 
Sensors:   System Temperatures: cpu: 51.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Repos:     Active apt repos in: /etc/apt/sources.list.d/antix.list 
           1: deb http://iso.mxrepo.com/antix/stretch stretch main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://ftp.de.debian.org/debian/ stretch-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://ftp.de.debian.org/debian/ stretch main contrib non-free
           2: deb http://security.debian.org/ stretch/updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ stretch main non-free
           Active apt repos in: /etc/apt/sources.list.d/sublime-text.list 
           1: deb https://download.sublimetext.com/ apt/stable/
           Active apt repos in: /etc/apt/sources.list.d/teamviewer.list 
           1: deb http://linux.teamviewer.com/deb stable main
           No active apt repos in: /etc/apt/sources.list.d/various.list 
Info:      Processes: 250 Uptime: 6m Memory: 15.58 GiB used: 1.10 GiB (7.1%) Init: SysVinit 
           runlevel: 5 Compilers: gcc: 6.3.0 Shell: bash v: 4.4.12 inxi: 3.0.33 

User avatar
fehlix
Developer
Posts: 4639
Joined: Wed Apr 11, 2018 5:09 pm

Re: Shutdown and Restart Hangs

#4

Post by fehlix » Mon Aug 12, 2019 12:06 pm

wu-shu wrote:
Mon Aug 12, 2019 4:58 am
After I deleted it my system did a few shutdowns, but now hangs on the last message before shutdown (<info> system shuts down now) or from time to time on smbd script or other scripts.
Perhaps try to deactivate/disable any of those added scripts/apps you are starting.
A good candidate for not shutting down properly (sometimes) might be teamviewer daemon. If you don't use teamviewer every day consider to disable the daemon running all the time - and only enable when you need to.
Also have look into mx-tweak ... -> Intel ( don't remember the exact name of that tweak right now )
and this: /etc/modprobe.d/hang-on-shutdown.conf
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
wu-shu
Forum Novice
Forum  Novice
Posts: 4
Joined: Sun Aug 04, 2019 6:36 am

Re: Shutdown and Restart Hangs

#5

Post by wu-shu » Wed Aug 14, 2019 3:49 pm

now I uninstalled teamviewer, checked that mx-tweak Intel Driver checkbox and uncommented both lines in /etc/modprobe.d/hang-on-shutdown.conf like described.
Still it hangs on shutdown. What else could I try?

User avatar
dolphin_oracle
Developer
Posts: 12211
Joined: Sun Dec 16, 2007 1:17 pm

Re: Shutdown and Restart Hangs

#6

Post by dolphin_oracle » Wed Aug 14, 2019 4:06 pm

if it started with an NFS mount, could you post

Code: Select all

/etc/fstab
and

Code: Select all

/etc/exports
you also mentioned that you deleted a script? what script did you delete?
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-18.3
lenovo s21e - antiX-19 beta 2 (live-USB)
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
fehlix
Developer
Posts: 4639
Joined: Wed Apr 11, 2018 5:09 pm

Re: Shutdown and Restart Hangs

#7

Post by fehlix » Wed Aug 14, 2019 4:52 pm

wu-shu wrote:
Wed Aug 14, 2019 3:49 pm
What else could I try?
Add this boot option the line starting with linux by editing the Grub-menu (press "e" for edit):

Code: Select all

nouveau.modeset=0
At least it helped me sometimes to stop a hanger with those intel/nvidia duals.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
wu-shu
Forum Novice
Forum  Novice
Posts: 4
Joined: Sun Aug 04, 2019 6:36 am

Re: Shutdown and Restart Hangs

#8

Post by wu-shu » Fri Aug 16, 2019 12:41 pm

/etc/fstab:

Code: Select all

# Pluggable devices are handled by uDev, they are not in fstab
UUID=f856dca2-ec3d-4b1c-b42a-8e5cbe406e7a / ext4 defaults,noatime 1 1
UUID=111ac3c9-f404-4c0c-b53f-e061de2f8921 swap swap defaults 0 0
/etc/exports:

Code: Select all

# /etc/exports: the access control list for filesystems which may be exported
#		to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#
the file I deleted was:
/etc/network/if-post-down.d/wireless-tools:

Code: Select all

#!/bin/sh

IWCONFIG=/sbin/iwconfig

if [ ! -x $IWCONFIG ]; then
	exit 0
fi

# check if this is a 802.11 device we're supposed to be effecting
case "${IF_WIRELESS:-enable}" in
	wireless-tools|iwconfig)
		# *we* and not some other 802.11 tool should be used
	;;
	true|yes|enable|1)
		# 802.11 should be used on this device, check for extensions
		$IWCONFIG $IFACE >/dev/null 2>&1 || exit 0
	;;
	*)
		exit 0
	;;
esac

apply_settings()
{
	if [ -n "$IF_WIRELESS_MODE" ]; then
		$IWCONFIG "$IFACE" mode auto
	fi

	if [ -n "$IF_WIRELESS_AP" ]; then
		$IWCONFIG "$IFACE" ap off
	fi

	if [ -n "$IF_WIRELESS_RATE" ]; then
		$IWCONFIG "$IFACE" rate auto
	fi

	if [ -n "$IF_WIRELESS_RTS" ]; then
		$IWCONFIG "$IFACE" rts auto
	fi

	if [ -n "$IF_WIRELESS_FRAG" ]; then
		$IWCONFIG "$IFACE" frag auto
	fi

	if [ -n "$IF_WIRELESS_POWER" ]; then
		$IWCONFIG "$IFACE" power off
	fi

	if [ -n "$IF_WIRELESS_TXPOWER" ]; then
		$IWCONFIG "$IFACE" txpower auto
	fi

	if [ -n "$IF_WIRELESS_ENC" ]; then
		$IWCONFIG "$IFACE" enc off
	fi

	if [ -n "$IF_WIRELESS_KEY" ]; then
		$IWCONFIG "$IFACE" key off
	fi

	if [ -n "$IF_WIRELESS_DEFAULTKEY" ]; then
		$IWCONFIG "$IFACE" key off
	fi

	if [ -n "$IF_WIRELESS_NWID" ]; then
		$IWCONFIG "$IFACE" nwid off
	fi

	if [ -n "$IF_WIRELESS_ESSID" ]; then
		$IWCONFIG "$IFACE" essid any
	fi

	if [ -n "$IF_WIRELESS_COMMIT" ]; then
		$IWCONFIG "$IFACE" commit
	fi
}

apply_settings 2>/dev/null
fehlix wrote:Add this boot option the line starting with linux by editing the Grub-menu (press "e" for edit):
will this be permanent? If no, how can I make it permanent?

User avatar
fehlix
Developer
Posts: 4639
Joined: Wed Apr 11, 2018 5:09 pm

Re: Shutdown and Restart Hangs

#9

Post by fehlix » Fri Aug 16, 2019 1:03 pm

wu-shu wrote:
Fri Aug 16, 2019 12:41 pm
fehlix wrote:Add this boot option the line starting with linux by editing the Grub-menu (press "e" for edit):
will this be permanent?
The change made manually when editing the GRUB menu is only temporary.
Does it work? Does it stop the shutdown hanger?
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Huckleberry
Forum Regular
Forum Regular
Posts: 347
Joined: Sat Jun 22, 2019 8:35 am

Re: Shutdown and Restart Hangs

#10

Post by Huckleberry » Fri Aug 16, 2019 2:55 pm

fehlix wrote:
Wed Aug 14, 2019 4:52 pm
... those intel/nvidia duals.
I was just about to write "may it be related to this ? ":

Code: Select all

Device-1: Intel HD Graphics 530 vendor: CLEVO/KAPOK driver: i915 v: kernel 
Device-2: NVIDIA GM107M [GeForce GTX 960M] vendor: CLEVO/KAPOK driver: nouveau
Maybe you'd like to try installing the appropriate Nvidia driver and/or try other kernels ( 5.2.3 newest and 4.9.186 in stable repo). (MX Tools for both)
When asking for help, please first : Menu => MX Tools => Quick System Info
Even no need to select & copy. The output will get in the clipboard automatically, just paste.


MX 18.3 - 32bit 5.2.8-antix.1-686-smp-pae

Post Reply

Return to “Bugs and Non-Package Requests Forum”