Page 1 of 1

Powering off

Posted: 2019/06/18 14:20:26
by sohailisonline
Hi,

I am using CentOS 7 on a Desktop Computer and I am facing issue in powering off the system. I tried to shutdown the system by using Shutdown button from GUI and also by using following commands but in all cases system could not be powered off properly. When the system is going to shutdown, all the services properly shutdown as the [OK] message labeled with them and last message showed as "Powering off" and system stopped/hanged here. Then I have to use the Power Button of the CPU or directly turn off the power electricity to turn off the system.

sudo systemctl poweroff
sudo shutdown
sudo shutdown now

Following is the log that the system created when the power off command run. There is nothing that can be caused of this hang.

-------------------------------------------------------------
systemd: Created slice User Slice of root.
systemd: Started Session 7 of user root.
cube systemd: Removed slice User Slice of root.
systemd: Stopping Session 1 of user Sohail.
systemd: Removed slice system-selinux\x2dpolicy\x2dmigrate\x2dlocal\x2dchanges.slice.
systemd: Stopping LVM2 PV scan on device 8:2...
systemd: Stopped Dump dmesg to /var/log/dmesg.
systemd: Stopped Stop Read-Ahead Data Collection 10s After Completed Startup.
systemd: Stopped target Sound Card.
systemd: Stopping Availability of block devices...
systemd: Stopping Session 5 of user Sohail.
systemd: Stopping Thunderbolt system service...
systemd: Closed LVM2 poll daemon socket.
systemd: Stopping RPC bind service...
systemd: Stopping Daemon for power management...
systemd: Stopping PackageKit Daemon...
systemd: Stopped target RPC Port Mapper.
systemd: Stopped target Login Prompts (Pre).
systemd: Stopped target Graphical Interface.
systemd: Stopping RealtimeKit Scheduling Policy Service...
ModemManager[3499]: <info> Caught signal, shutting down...
journal: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
systemd: Stopping Disk Manager...
systemd: Stopped target Multi-User System.
NetworkManager[3620]: <info> [1560860450.1128] modem-manager: ModemManager no longer available
systemd: Stopping Job spooling tools...
ModemManager[3499]: <info> ModemManager is shut down
systemd: Stopped target Login Prompts.
journal: udisks daemon version 2.7.3 exiting
-------------------------------------------------------------

Can you please let me know what is the issue as I cannot reinstall the CentOS7 and all requiring things?

Thanks,

Re: Powering off

Posted: 2019/06/18 15:29:32
by TrevorH
What is the output from the command uname -a ?

Re: Powering off

Posted: 2019/06/19 12:40:23
by sohailisonline
Following is the output of uname -a

Linux cube 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Re: Powering off

Posted: 2019/06/19 13:26:57
by aks
It sounds like just before the the operating system stops it calls out to the BIOS layer to power off - this is the bit that's not working. Ask your vendor.

Re: Powering off

Posted: 2019/06/19 17:45:54
by sohailisonline
Before the CentOS 7, there was Windows 7 installed on the same system and it was working fine.

Re: Powering off

Posted: 2019/06/24 01:35:49
by aks
In the recent past (in Linux) we have discovered that things are not always the same as they seem. The Kernel developers implemented power saving according to the specification. It did not work It id not work reliably. Yet it seemed to work on Windows on the same hardware. After a lot of head ache it turned out that Microsoft had a bug in their original implementation and hardware vendors worked around that, thus breaking the spec. Once that was discovered the implementation was adjusted to suit.
You're probably in that space now.
Ask your vendor.