I’m writing this post to be of some help, since this took me months to solve this issue, because the issue was random and happening only at shutdown and sometimes it seemed solved but it wasn’t.
I installed Manjaro Architect, a very basic installation, since I use it to run only a mac os virtual machine with qemu.
Issue was a Manjaro hang with shutdown (shutdown -h now).
This was only random, reboot command was always working well.
Nothing strange reported in the logs!
Sometimes, on shutdown -h now, the system hanged at:
reboot: Power down
or with a black screen with an underscore (with quiet in grub conf).
The only solution was long press the mechanical power button.
This is my actual system (dual boot with windows 10):
Kernel: 5.4.80-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0
Console: tty 1 Distro: Manjaro Linux
Type: Server Mobo: ASUSTeK model: Z9PE-D8 WS v: 1.0x serial:
UEFI: American Megatrends v: 5802 date: 06/10/2015
Info: 2x 8-Core model: 06/2d bits: 64 type: MCP SMP arch: Sandy Bridge
rev: 5 L2 cache: 40.0 MiB
flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 99763
Speed: 1204 MHz min/max: 1200/3800 MHz Core speeds (MHz): 1: 1207 2: 1205
3: 1204 4: 1204 5: 1204 6: 1204 7: 1204 8: 1204 9: 1204 10: 1204 11: 1204
12: 1260 13: 1214 14: 1204 15: 1204 16: 1205
Device-1: NVIDIA GF108GL [Quadro 600] driver: nouveau v: kernel
bus ID: 03:00.0
Device-2: NVIDIA GK110B [GeForce GTX TITAN Black] driver: vfio-pci v: 0.2
bus ID: 83:00.0
Display: server: No display server data found. Headless machine?
Message: Unable to show advanced data. Required tool glxinfo missing.
Device-1: Intel C600/X79 series High Definition Audio vendor: ASUSTeK
driver: vfio-pci v: 0.2 bus ID: 00:1b.0
Device-2: NVIDIA GF108 High Definition Audio driver: snd_hda_intel
v: kernel bus ID: 03:00.1
Device-3: NVIDIA GK110 High Definition Audio driver: vfio-pci v: 0.2
bus ID: 83:00.1
Sound Server: ALSA v: k5.4.80-2-MANJARO
Device-1: Intel 82574L Gigabit Network vendor: ASUSTeK driver: e1000e
v: 3.2.6-k port: 8000 bus ID: 06:00.0
IF: enp6s0 state: down mac:
Device-2: Intel 82574L Gigabit Network vendor: ASUSTeK driver: e1000e
v: 3.2.6-k port: 7000 bus ID: 07:00.0
IF: enp7s0 state: up speed: 100 Mbps duplex: full mac:
IF-ID-1: br0 state: up speed: N/A duplex: N/A mac:
IF-ID-2: br1 state: up speed: N/A duplex: N/A mac:
IF-ID-3: vnet0 state: unknown speed: 10 Mbps duplex: full mac:
IF-ID-4: vnet1 state: unknown speed: 10 Mbps duplex: full mac:
Local Storage: total: 8.19 TiB used: 3.36 TiB (41.0%)
ID-1: /dev/sda vendor: SanDisk model: SDSSDP256G size: 238.47 GiB
ID-2: /dev/sdb vendor: Crucial model: CT500MX500SSD1 size: 465.76 GiB
ID-3: /dev/sdc vendor: Western Digital model: WD20EZRX-00DC0B0
size: 1.82 TiB
ID-4: /dev/sdd vendor: Western Digital model: WD60EZRX-00MVLB1
size: 5.46 TiB
ID-5: /dev/sde vendor: Hitachi model: HTS542525K9SA00 size: 232.89 GiB
ID-1: / size: 227.74 GiB used: 3.50 GiB (1.5%) fs: ext4 dev: /dev/sde2
Alert: No Swap data was found.
System Temperatures: cpu: 29.0 C mobo: N/A gpu: nouveau temp: 48.0 C
Fan Speeds (RPM): N/A gpu: nouveau fan: 2820
Processes: 292 Uptime: 7m Memory: 62.92 GiB used: 32.76 GiB (52.1%)
Init: systemd Compilers: gcc: N/A Packages: 422 Shell: Bash v: 5.0.18
These were all my attempts to solve the issue:
- installed another gpu for host with free drivers and 2nd gpu bounded to vfio (at first I had only the gtx titan black bounded to nouveau for the host, then to vfio when passed through and again to nouveau on vm shutdown)
- installed another gpu for host with nvidia drivers (390xx) and 2nd gpu bounded to vfio (blacklist nouveau)
- blacklist ipmi (not recognized)
- blacklist webcam (error related to gspca_vc032x)
- blacklist wifi (rt2x00 and rt2800)
- added shutdown hook
- checked ehci is off in bios
- deleted quiet in grub conf
- added acpi=off in grub conf
- added reboot=bios in grub conf
- added reboot=pci in grub conf
- added intel_idle.max_cstate=1 in grub conf
- added acpi_osi=! acpi_osi=‘Windows 2018’ in grub conf
- added acpi_osi=! acpi_osi=‘Windows 2009’ in grub conf
- stopped, disabled and masked lvm2-lvmetad and lvm2-monitor
- added mei_me to the RUNTIME_PM_DRIVER_BLACKLIST configuration of TLP
- set networks to down before shutdown (2x ethernet)
- stopped smb/nmb before shutdown
- tried different kernels (from 5.4 LTS to 5.9)
- installed uefi manjaro (it was installed in legacy mode, and I had to disable CSM in bios to make manjaro installing as uefi)
- disabled secure boot
- Disabled XHCI in the bios (EHCI was already disabled)
- Disabled ASMEDIA USB 3.0 controller in bios
None of these solved the issue.
This was working for me:
adding nouveau.vram_pushbuf=1 apm=power_off acpi=force in grub conf
If you have the same issue it could worth a try.