Bug 809610

Summary: shutdown is not working
Product: [openSUSE] openSUSE 12.3 Reporter: Robert Schweikert <rjschwei>
Component: XfceAssignee: E-mail List <bnc-team-xfce>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: lnussel, PVince81
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Robert Schweikert 2013-03-15 12:51:14 UTC
After logout clicking on the "light switch" icon in the upper right hand corner produces a drop down menu. Clicking "shutdown" creates a confirmation dialog. Clicking "Shutdown" in the confirmation dialog does not result in the expected behavior, the machine is not shutdown. To get the machine to turn off I have to push the power button.
Comment 1 Vincent Petry 2013-03-17 02:16:01 UTC
Similar issue here.

When I pick "Shutdown->Power off" in KDM or "Power off computer" when I'm on the KDE desktop, it seems to close the X session but doesn't power off the computer. After initiating shutdown, it stops after some point Only the first VT has a console on it, not the others, so I guess it did initiate the process but stopped at some point. I can still ping the machine and ssh into it.

The alternative is typing the command "sudo /sbin/halt -p" in a terminal, and that will shutdown correctly. 

Something might be broken when the shutdown is initiated from KDE/KDM.

My setup:
- openSUSE 12.3 x86_64 on a desktop machine
- Linux petry.ttv 3.7.10-1.1-desktop #1 SMP PREEMPT Thu Feb 28 15:06:29 UTC 2013 (82d3f21) x86_64 x86_64 x86_64 GNU/Linux
- NVIDIA proprietary drivers 310.32

Found a bug in the KDE tracker, not sure if related: https://bugs.kde.org/show_bug.cgi?id=313588
Comment 2 Forgotten User cAXlJ_FoSf 2013-03-17 09:26:12 UTC
(In reply to comment #0)
> After logout clicking on the "light switch" icon in the upper right hand corner
> produces a drop down menu. Clicking "shutdown" creates a confirmation dialog.
> Clicking "Shutdown" in the confirmation dialog does not result in the expected
> behavior, the machine is not shutdown. To get the machine to turn off I have to
> push the power button.

This is a regression introduced by a post-release maintenance update of polkit-default-privs (openSUSE-RU-2013:0366-1), it's the third time this year that this has been broken :(

The problem is that the polkit privilege overrides installed by lightdm don't work any more, a quick fix is to:

mv /usr/share/polkit-1/rules.d/50-lightdm.rules /usr/share/polkit-1/rules.d/40-lightdm.rules
Comment 3 Forgotten User cAXlJ_FoSf 2013-03-17 09:26:43 UTC
(In reply to comment #1)
> Similar issue here.

No, that is unrelated to this bug.
Comment 4 Forgotten User cAXlJ_FoSf 2013-03-17 09:28:22 UTC
@Ludwig:

What priority should filenames for package-installed overrides have, /usr/share/polkit-1/rules.d/40-*.rules?
Comment 5 Ludwig Nussel 2013-03-18 08:14:23 UTC
should have been fixed already (by bnc#807097). don't know why the fix didnt make it into 12.3. I've re-submitted polkit-default-privs for 12.3 now. You don't need to make any changes to lighdm. 50 is fine.
Comment 6 Ludwig Nussel 2013-03-18 08:14:37 UTC
closing as dup

*** This bug has been marked as a duplicate of bug 807097 ***