Ubuntu

ACPI events to shutdown/reboot don't generate a popup like after logging in

Reported by Timo Aaltonen on 2012-01-12
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
lightdm (Ubuntu)
Low
Robert Ancell

Bug Description

There was a bug against virt-manager* where sending a "reboot" or "shutdown" event to a client seemingly doesn't do anything. Turns out that this only happens on the login screen, inside a session you get a popup asking what to do after the power button has been pushed. So something is wrong on the lightdm session, that prevents the popup from happening.

This happens on real hw as well; if you hit the power button while looking at the login screen, nothing happens.

* bug 228690

Perhaps robert-ancel can take a look and see if he wants to address these sorts of bugs, if he hasn't already.

Changed in lightdm (Ubuntu):
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
Martin Pitt (pitti) on 2012-01-19
Changed in lightdm (Ubuntu):
status: New → Triaged
assignee: Canonical Desktop Team (canonical-desktop-team) → Robert Ancell (robert-ancell)
importance: Undecided → Low
Martin Pitt (pitti) wrote :

If we don't want to introduce UI for that in lightdm, we can also adjust /etc/acpi/power.sh (or rather CheckPolicy() in /usr/share/acpi-support/policy-funcs) to just shut down the machine if you press the power button.

Martin Pitt (pitti) wrote :

... however, acpi-support is deprecated, and I think Steve Langasek might get rid of it entirely, so maybe it is better to react to the evdev event in lightdm after all.

Paul Crawford (psc-sat) wrote :

There should be no requirement to log-in in order to shut the machine down if you have physical access, the power button should initiate this in an orderly manner (warning/prompting as required).

Basically, if the person at the power button wants to, they can hold the button in for 5 sec and power off brutally, or pull the AC supply!

Hence the system should be designed with this in mind and offer them the option, without super-user rights being needed, to shut down in as orderly a manner as possible even if others were logged in. Having been warned of that just in case. Remember, they are physically at the machine's power supply control and can/will use that if it won't respond!

Michael Morris (mbmorrisjr) wrote :

This or something similar to this existed in Ubuntu 10.04 LTS, and the behavior was spot on.

In 10.04 at the login screen (not sure if it was lightdm back then), when the computer's power button was pressed, a popup was displayed. The popup propmted the user with shutdown options: shutdown, restart, cancel, ... . The popup also contained a 60 second countdown, that when exceeded shutdown the computer.

The countdown was benifical on two fronts. The first allowed the user to cancel the shutdown if the computer's power button had been inadverntaly pressed. The second allowed the user to shutdown the system without typing or mouse clicking. The latter is particullay useful if the computer is used primarliy as a server and occasionaly as a desktop.

Paul Crawford (psc-sat) wrote :

So is anyone addressing the issue of power button function at the log-in screen?

Erik Sornes (ejs-m) wrote :

Just want to say that it would be nice to have this fixed. We have a lot of VM's on which we cannot du ACPI poweroff without a hack.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers