Bug 731551

Summary: openSUSE 12.1 system does not shutdown completely
Product: [openSUSE] openSUSE 12.1 Reporter: Philipp Niehues <philippniehues>
Component: BasesystemAssignee: Frederic Crozat <fcrozat>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P4 - Low CC: a.skembris, avsco, ecsos, f1she4rs, fermishell, forgotten_39_Sx3VmkZ, forgotten_6-bquBoZcb, forgotten_6nWxbLc9cL, hosa.chiguru, info, jdd, jgm, let0, Martin.Seidler, math.eber, melchiaros, mh, ootbs1, per, praise.tazio, t.rother, wolfgang.hahnl
Version: Final   
Target Milestone: ---   
Hardware: 64bit   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: logs - yast2,kdm,message,warn,xorg
UpdateLog

Description Philipp Niehues 2011-11-19 16:22:24 UTC
User-Agent:       Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2

my computer is an acer aspire one 531 h

when I shut down the computer, it does not shutdown completly. the screen is black, but the computer is still somewhat running (light indicator glowing)
no key reaction at all. pressing the off-button long, does shut it down finally.

what logs do you need from me?

Reproducible: Always

Steps to Reproduce:
1. start openSUSE 12.1
2. shut it down again

Actual Results:  
black screen but no complete halt

Expected Results:  
complete shutdown
Comment 1 Angelos Skembris 2011-11-20 20:30:52 UTC
I get a similar behaviour. Using the shutdown button starts the shutdown process, but the system halts at some point displaying the green screen with the gecko. While shutting down the eye moves, then a "click" from the HDD is heard and the eye stops moving. The system then freezes. If i switch to the command console prior to the halt, the final message is "System halted". I am using OpenSUSE 12.1 x64 after a distribution upgrade from 11.4. Using sysconfig editor to add options to shutdown or change the halt behaviour led me nowhere, though I am not sure I used the tool correctly. 

As a workaround, I created a script called "shutdown.sh" containing the following line: 

sudo /sbin/shutdown -h now 

and placed it in /home/Saverios/.kde4/shutdown/

with the password option for sudo disabled (yes, I know, security risks blah blah blah - just get the darn thing working and I will re-enable the password!).

Never had this problem with previous versions of OpenSUSE. Using an Gigabyte GA-MA790FXT-UD5P Motherboard with an AMD Phenom II X4 810.
Comment 2 Eric Schirra 2011-11-21 09:30:46 UTC
Have you update to 12.1 or new install?
When you has update then it is the same failure that i have.

In /usr/share/kde4/config/kdm/kdmrc is default
/sbin/halt

But in /usr/share/kde4/config/kdm/kdmrc.rpmnew it is default
/sbin/shutdown -h -P now

So suse 12.1 (new kde version from 12.1) need shutdown not halt.

Delete kdrmrc and rename kdmrc.rpmnew in kdmrc and restart.

For developers. For update this should be done automatic.
Comment 3 Philipp Niehues 2011-11-21 14:54:26 UTC
I did a new install. 
Of course no second file and in the first there is no "/sbin/halt" so should not be the cause of the problem on my netbook.
Comment 4 Forgotten User 6nWxbLc9cL 2011-11-22 17:04:55 UTC
I confirm this bug.
After updating to 12.1 I have the same symptoms.
I edited /usr/share/kde4/config/kdm/kdmrc, changed /sbin/halt to sbin/shutdown -h -P now.

In addition to the advice of Eric Schirra: my kdmrc.rpmnew only contains an empty lines.
[Shutdown]
# The command (subject to word splitting) to run to halt the system.
# Default is "/sbin/shutdown -h -P now"
#HaltCmd=
# The command (subject to word splitting) to run to reboot the system.
# Default is "/sbin/shutdown -r now"
#RebootCmd=
# Whether it is allowed to shut down the system via the global command socket.
# Default is false
#AllowFifo=true
# Whether it is allowed to abort active sessions when shutting down the
# system via the global command socket.
# Default is true
#AllowFifoNow=false
# The boot manager KDM should use for offering boot options in the
# shutdown dialog.
# "None" - no boot manager
# "Grub" - Grub boot manager
# "Grub2" - Grub2 boot manager
# "Lilo" - Lilo boot manager (Linux on i386 & x86-64 only)
# Default is Grub
#BootManager=Grub

So you can just comment out the line HaltCmd.
If this fails - add
HaltCmd=/sbin/shutdown -h -P now
Comment 5 melchiaros melchiaros 2011-11-27 11:54:20 UTC
Confirmed.

I have the same problems here on an customized AMD T1100 system.
-> So, it is not so dependent on which hardware we are using.

I remove "acer aspire one 531 h from the summary.

Logs of my system will be added.
Comment 6 melchiaros melchiaros 2011-11-27 12:05:34 UTC
Created attachment 464199 [details]
logs - yast2,kdm,message,warn,xorg
Comment 7 melchiaros melchiaros 2011-11-27 12:15:28 UTC
*** Bug 732327 has been marked as a duplicate of this bug. ***
Comment 8 Wolfgang Hahnl 2011-11-27 17:54:40 UTC
I had the following experience: I tried to upgrade my system from 11.4 to 12.1 via DVD iso, downloaded from openSUSE. 64 bit version KDE. The installation went well untill the system said something like:  I restart now. The PC began to shut down and suddenly the screen froze and became distorted, the whole system froze. Within >10 min nothing happened. I removed the DVD, pressed the reset button and started the system. 
Now the boot time of the whole system was always more then 6 minutes. I also got no access to kmail. 
My system: CPU AMD Athlon 64 X2 Dual Core Processor 6000+ Grafic: C77 [GeForce 8100 / nForce 720a]

Is this a new bug?
Comment 9 Huliyar Nataraj 2011-11-29 07:15:10 UTC
I have similar problem on my Macbook Pro 7.1 laptop with NIVIDIA graphic cards. After upgrading from 11.4 to 12.1 KDE 64bit, I can not able to shutdown unless I hard press the shutdown for long. The screen flickers hundreds of times and does not stop and does not shutdown. In 11.4 also, I had this problem of screen flickering before shutting down. This problem was not there in the earlier versions. Now, with 12.1 it is worse. 

PS : When I give 'shutdown -r now' command from the non-graphical mode (without starting X), then it shuts down neatly and swiftly. 

Has any of you found a fix ?

Thanks,
Comment 10 Olivier P 2011-12-10 09:31:11 UTC
Same problem here : /sbin/halt doesn't work.

Regards,
Olivier
Comment 11 Thomas Rother 2011-12-10 17:13:01 UTC
Confirming the same error for my recent update from 11.4 to 12.1 on a laptop. The change in kdmrc described in # 2 helps. This error is critical, especially for "normal" users, it should be fixed asap.
Comment 12 Urs Mueller 2011-12-30 23:33:02 UTC
Another four confirms...
Anybody working on that bug?
Comment 13 Michael Veretennikov 2012-01-09 06:00:22 UTC
KDE 4.7.2  "release 5", opensuse 12.1 from NET-installer x64, btrfs with lzo. similar behaviour on some Z68 m/b with internal graphics. Using sysVinit and failsafe options doesn't help.
( If reboot was chosen as an action, additional Ctrl-Alt-Del does the job.)
Comment 14 Veet Voojajig 2012-01-27 06:48:10 UTC
(In reply to comment #1)
> I get a similar behaviour. Using the shutdown button starts the shutdown
> process, but the system halts at some point displaying the green screen with
> the gecko. While shutting down the eye moves, then a "click" from the HDD is
> heard and the eye stops moving. The system then freezes. If i switch to the
> command console prior to the halt, the final message is "System halted". I am
> using OpenSUSE 12.1 x64 after a distribution upgrade from 11.4. Using sysconfig
> editor to add options to shutdown or change the halt behaviour led me nowhere,
> though I am not sure I used the tool correctly. 
> 
> As a workaround, I created a script called "shutdown.sh" containing the
> following line: 
> 
> sudo /sbin/shutdown -h now 
> 
> and placed it in /home/Saverios/.kde4/shutdown/
> 
> with the password option for sudo disabled (yes, I know, security risks blah
> blah blah - just get the darn thing working and I will re-enable the
> password!).
> 
> Never had this problem with previous versions of OpenSUSE. Using an Gigabyte
> GA-MA790FXT-UD5P Motherboard with an AMD Phenom II X4 810.

Yes.. This is exactly whats happening on my Notebook too... 

Unfortunately, the /sbin/shutdown -h now    command does the same
Comment 16 Forgotten User 39_Sx3VmkZ 2012-02-02 21:22:12 UTC
Also confirming this bug as described above. OpenSUSE upgraded from 11.4 to 12.1 (KDE). Nvidia GeForce 8500 graphics, AMD Phenom 9500 in a MCP61 motherboard.

Shutdown leaves green gecko screen on and front panel power light on.
/sbin/shutdown -h does fully shutdown.
Comment 17 Michael Veretennikov 2012-02-02 21:33:04 UTC
dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop

dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart

work fine.
Comment 18 john philpott 2012-02-10 07:44:03 UTC
Same problem for me with Intel G630, Asus P8H61-MX motherboard, Opensuse 12.1 running Gnome3 (all updates installed).
When I power off the system appears to shutdown completely but the power button stays lit (and the keyboard).

I have a dual-boot with Win7 and that OS shuts down properly (which disappoints me more than I can say).
Comment 19 Per Jessen 2012-03-01 08:12:31 UTC
Same problem here on IBM Thinkcentre and HP desktop machines.  Installations are both 12.1+updates.
Comment 20 Lars Müller 2012-03-03 10:05:34 UTC
Please check first if this also happens with sysvinit.  See http://en.opensuse.org/openSUSE:Most_annoying_bugs_12.1 section

Bug #725917

Problem: System is switched from sysvinit to systemd during upgrade.

Workaround: is to install the sysvinit-init package. As soon as its install gets acknowledged the removal of the systemd-sysvinit package will be suggested. 

About how to accomplish this.
Comment 21 Jean-Daniel Dodin 2012-03-03 10:06:11 UTC
I often have his behavior since several years, but may be caused by different sources. Anyway I could never get a solution.


Last time it was last week, with 12.1. went away yesterday (update?)


I also have a kde error bumping sometime at halt time and fogiving the halt, so next day I find the computer still running.


seems pretty ramdom
Comment 22 Per Jessen 2012-03-03 11:39:48 UTC
(In reply to comment #20)
> Please check first if this also happens with sysvinit.  See
> http://en.opensuse.org/openSUSE:Most_annoying_bugs_12.1 section
> 

I switched a 12.1 system to sysvinit - "halt" nows works as expected and also powers off the system.
Comment 23 Lars Müller 2012-03-03 13:46:18 UTC
While using systemd please ensure to use /sbin/poweroff

As I'm running several openSUSE 12.1 system driven by systemd I can confirm:

a) /sbin/poweroff works
b) independent of a fresh 12.1 install or an upgrade from 11.4 shutdown via my desktop environment (KDE) works too.

Do we need to document this better?  Or is this already part of one of the many - hint alert! the community should consider to merge the different articles about systems in the openSUSE wiki into one! - documents available?

Passing to Frederic to have this on his radar and to close with works for me, invalid, or who cares about systemd. ;)
Comment 24 Jean-Daniel Dodin 2012-03-03 17:54:30 UTC
my problems always come with kde, not tested recently from terminal (and can't as I don't have the problem anymore).

and I care about systemd, because I use it in my new servers (we no problem other than my lack of knowledge :-()

jdd
Comment 25 john philpott 2012-03-04 10:49:26 UTC
I've now exhaustively checked all combinations of the commands "halt", "poweroff" and "shutdown" with my 12.1 system running first systemd and then sysvinit.
No combination will make the system shutdown to the point where the power button light goes out.
This must be a software issue as Win7 is able to achieve a full power-off.
Comment 26 Frederic Crozat 2012-03-05 09:08:03 UTC
to do a poweroff, make sure to use "halt -p", not just "halt", it will not power off the system.
Comment 27 john philpott 2012-03-27 12:52:59 UTC
As of yesterday this bug is now gone from my system. I ran a bunch of updates which were mainly to do with Tumbleweed upgrading to KDE4.8 and now my system shuts down to a full OFF! I have this as my shutdown "/sbin/shutdown -h now" which is default, I think.
Anyway, hopefully that's the end for me.
Comment 28 Forgotten User 39_Sx3VmkZ 2012-03-27 15:22:34 UTC
Since noticeing this bug I have done a fresh install of 12.1. I now get a full shutdown - hardware is the same, so I assume this bug is related to upgrading from 11.4 to 12.1. However I did the same upgrade on two other machines and did not see this bug on them- so not sure what to make of it.
Comment 29 Joseph Mitzen 2012-05-19 22:12:36 UTC
I also encountered this after upgrading from 11.4 to 12.1 a few days ago. The solution was to change the kdmrc file as specified above so that it read

HaltCmd=/sbin/shutdown -h -P now

Otherwise the system wouldn't power off when shutting down or hibernating.
Comment 30 Forgotten User 6-bquBoZcb 2012-06-25 14:54:48 UTC
I have the same problem.

I installed "sysvinit-init" instead of "systemd-sysvinit", and updated system, but it doesn't work. In "/usr/share/kde4/config/kdm/kdmrc" shutdown section halt command is set to

HaltCmd=/sbin/shutdown -h -P now

But it still won't turn off.

Only shutdown scrpt in "/home/user/.kde4/shutdown/" helps as in first comment. But I don't like that I have to disable sudo pass for it.
Comment 31 Frederic Crozat 2012-06-25 15:08:35 UTC
if you have system not shutting down when not using systemd, it is a different bug.
Comment 32 Forgotten User 6-bquBoZcb 2012-06-25 15:42:16 UTC
Oh, sorry, I was confused.

It didn't work with systemd at first, that was the reason I installed sysvinit-init. Now I put systemd back, HaltCmd is set to "/sbin/shutdown -h -P now", and it's working.

Thank You
Comment 33 Mathias Ebermann 2012-08-16 19:22:04 UTC
Here, I have this behaviour on a Dell laptop (32 bit) since some update of 11.4, and it stays with 12.1.
I tried every possible combination of systemd / sysvinit with shutdown and all its parameters, with poweroff and halt.
My /usr/share/kde4/config/kdm/kdmrc is ok.
All the settings about shutdown are ok.
The BIOS is updated.
There is no way to power off the machine, even if I try all those commands as root in a terminal.

There must have been a change to the shutdown scripts and programs somewhere in 11.4.

Is there a way to get a version history of those changes, and see the old files? Maybe this would be a way to find out what causes the bug, comparing the old and new versions.
Comment 34 Mathias Ebermann 2012-08-17 18:05:01 UTC
Thinking about a still running process that might block the power-off, I tried some things and finally succeeded:
In /etc/sysconfig I changed System/Boot/HALT_NETWORK to 'yes'.

Now, the system is powered down on shutdown and s2disk like before.
Comment 35 Mathias Ebermann 2012-08-17 20:20:44 UTC
No, sometimes it works, sometimes it doesn't.
It is better than before, but this is not the solution.
Comment 36 Tazio Ceri 2012-09-16 17:26:23 UTC
I have been upgrading to OpenSUSE 12.2 and I have the same issue (which was observed with OpenSUSE 12.1 as well).
My laptop is a Precision M6500.
I am using systemd.
Comment 37 Frederic Crozat 2012-09-18 12:35:31 UTC
do you have the issue when sysvinit is used.

I'm pretty sure you have a kernel bug.

It isn't also very clear what are the last lines displayed when the system doesn't shutdown.
Comment 38 Mathias Ebermann 2012-09-18 18:32:32 UTC
Created attachment 506188 [details]
UpdateLog
Comment 39 Mathias Ebermann 2012-09-18 18:42:47 UTC
Sorry, the attachment went without the comment.

Here, this bug has gone (I really hope so!) since last week after some of the usual updates of Suse 12.1. The system is now shutting down correctly for 7 days.

The UpdateLog shows what has been changed last week. Maybe someone can guess if there is a process that might affect the shutdown...

Only a vague idea: Last week, there was an update of the nVidia graphics driver. And, if I remember correctly, there was a nVidia update around the time this trouble started, too. But I#m not sure.
Comment 40 Frederic Crozat 2012-09-19 09:38:10 UTC
closing as fixed then.
Comment 41 Miloslav Havrda 2012-10-03 18:05:35 UTC
(In reply to comment #29)
> I also encountered this after upgrading from 11.4 to 12.1 a few days ago. The
> solution was to change the kdmrc file as specified above so that it read
> 
> HaltCmd=/sbin/shutdown -h -P now
> 
> Otherwise the system wouldn't power off when shutting down or hibernating.

I had there:
HaltCmd=/sbin/halt

I commented it. Currently it is default.
# Default is "/sbin/shutdown -h -P now"
#HaltCmd=/sbin/halt

After one reboot. It works.

Thank you all for your tips.