martin f krafft wrote: > Package: powersaved > Severity: important > > I am making this an important bug because I just lost some data > thanks to powersaved, which I installed not to powersave, but > because I am working on acpid and needed to test some interaction. > > Due to unfortunate circumstances, I touched the power button, and > the next thing I knew were all my processes being SIGTERM'd. Please > do *not* do that. > > Other operating systems display confirmation boxes. Unless you can > do the same across all X and non-X machines, I suggest you rather > disable that "feature" (or use debconf to find out whether the user > wants to have it enabled). >
Never got a complaint because of this. Seems people are expecting that the computer simply shuts down on pressing the power button. If you don't like this behaviour you could disable it by editing /etc/powersave/events and setting EVENT_BUTTON_POWER="ignore" but this is probably not what you want. If you look a /usr/lib/powersave/scripts/wm_shutdown you will see that powersaved already tries to gracefully terminate and save the running session and not simply kill all running processes, e.g. the dcop ksmserver call in kde_shutdown() signals all KDE applications to save and exit. Unfortunately Linux has some many different desktop environments and window managers that it will be impossible to support them all. Still I'm reluctant to disable this feature because it's what most users do expect. acpid btw. has the same behaviour (/etc/acpi/powerbtn.sh) and gnome-power-manager too. There was a nice discussion on the ubuntu-devel m-l about the same topic. It seems that the ubuntu-devs changed the behaviour and presented the logout dialog if the power button is pressed (so people could cancel the shutdown) but some didn't like it because it needed manual intervention others argued it is a little bit more cumbersome but safer. It will also be hard to support DEs besides KDE and Gnome. So you see it will be hard to please everyone. Michael [1] https://lists.ubuntu.com/archives/ubuntu-devel/2006-May/018402.html -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature