<p>The script should "do the right thing." The bug may not be an issue on a default install, but only by sheer luck. Upowerd should be given the chance to catch and process the power event. At the moment upowerd works correctly only in the presence of a display manager. If the display manager is removed, and the user chooses to run a startx session from the terminal, upower will not function correctly. There is no dependency listed on the upower package for a display manager.</p>

<p>Would you like me to open this as a bug against upower? It is clearly something that should be fixed here, but it affects the upower package.</p>
<p>The change required is also very small. Only a check for upower needs to be made. This would not adversely affect behavior on any "standard" Debian system, but it would handle more corner cases correctly.</p>

<p>-Yury<br>
</p>
<div class="gmail_quote">On Jan 16, 2013 9:21 AM, "Michael Meskes" <<a href="mailto:meskes@debian.org">meskes@debian.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> > CheckUPolicy checks if upowerd is running. If upowerd is running, this<br>
> > means there is probably some freedesktop  compliant desktop environment<br>
> > running. It should be given the option to respond to the power button<br>
> > event. For this reason I believe CheckUPolicy should be added to the script.<br>
<br>
The keyword here is "probably". Why should we check for upowerd and just guess<br>
that there may be a power manager running for the desktop when we can check for<br>
that power manager instead and know or sure?<br>
<br>
Michael<br>
--<br>
Michael Meskes<br>
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)<br>
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org<br>
Jabber: michael.meskes at gmail dot com<br>
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL<br>
</blockquote></div>