View Full Version : Power button
gfairbanks
2008-12-10, 20:26
I've got Ubuntu 8.04 configured so that it shuts down when I press the power button, and this has been working ok for months. Recently, probably around the time that the final version of XBMC came out, I started having troubles.
Sometimes pressing the power button shuts down the computer, sometimes it brings up the XBMC shutdown menu. My question is: What is the intended behavior? Is this a race condition where both Ubuntu and XBMC are looking for the button press?
My preference is to be able to just press the button on the front of the computer and not think about it again.
I've got Ubuntu 8.04 configured so that it shuts down when I press the power button, and this has been working ok for months. Recently, probably around the time that the final version of XBMC came out, I started having troubles.
Sometimes pressing the power button shuts down the computer, sometimes it brings up the XBMC shutdown menu. My question is: What is the intended behavior? Is this a race condition where both Ubuntu and XBMC are looking for the button press?
My preference is to be able to just press the button on the front of the computer and not think about it again.
Well XBMC is registering the button press. and is it not fighting it at all, it is mainly getting an event and brings up ShutdownMenu (this is intended behaviour). So Xubuntu shouldnt even know about XBMC getting this event as its purely broadcast events.
So my first guess is probably that Xubuntu is failing you, and more specific Im guessing the power manager is failing. Although what powermanager xubuntu have I dont know (might be gnome). Anyhow it might be wise to put an advanced setting that will trigger shutdown when pressing the powerbutton.
This is a related ticket I posted a while back to not forget about it were I proposed pressing the powerbutton twice to shutdown the computer.
http://xbmc.org/trac/ticket/5222
gfairbanks
2008-12-10, 21:16
Thanks for the info. I should have mentioned that this is running straight Ubuntu 8.04 with gnome.
Oh sry, I though you said Xubuntu :) anyway if your using ubuntu then its definatly gnome-powermanager.
Are you certain your not logged in via ssh, because you cant shutdown the computer while more than one user is logged in (ssh counts as one and ordinary on the computer as one, so this sums to 2 even if its the same account)
gfairbanks
2008-12-10, 21:41
I bet the ssh login is it. I'm often logged in to do transcodes or transfer files, so that would explain the inconsistency. I'll test that. Thanks!
This is also in this ticket incase you have some thoughts about it
http://xbmc.org/trac/ticket/5356