You are not logged in.

#1 2011-01-02 19:32:19

rocktale
Member
From: Munich, Germany
Registered: 2009-03-18
Posts: 24

XBMC and suspend via power button

Hi,

since the newest release of xbmc (10.0-2) using the suspend function via power button stopped working for me. With 10.0-1 everything was fine. I guess it has something to do with disabling HAL and using upower instead (I read that in the svn log). At first suspend from xbmc did not work at all but after I installed upower, I can suspend via xbmc's menu. However, pressing the power button does nothing. Any ideas? And does somebody know why they switched from HAL to upower anyway?

Another funny thing I've noticed is that even when I enable the suspend action for the power button in the xfce-power-manager (I've had it disabled before since xbmc had taken care of it), it doesn't work while xbmc is running. On the other hand, without xbmc running everything works as expected.

Kind regards,
Karsten

Offline

#2 2011-01-02 19:51:20

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: XBMC and suspend via power button

Cool thanks, i was missing upower, now i can suspend. tongue

About your questions: hal is being deprecated as a whole, it is replaced by other frameworks. Did you check xbmc.log to see which command is issued when you press the power button of your remote?


ᶘ ᵒᴥᵒᶅ

Offline

#3 2011-01-02 19:56:39

rocktale
Member
From: Munich, Germany
Registered: 2009-03-18
Posts: 24

Re: XBMC and suspend via power button

I should have stated this more precisely. I meant the power button of my computer case not the one on the remote. I do not have a remote (yet?).

Offline

#4 2011-01-02 20:14:36

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: XBMC and suspend via power button

Right, but does the xbmc log say anything when you press the power button?


ᶘ ᵒᴥᵒᶅ

Offline

#5 2011-01-02 20:21:26

rocktale
Member
From: Munich, Germany
Registered: 2009-03-18
Posts: 24

Re: XBMC and suspend via power button

When I press the power button I get the following line in the debug log:

DEBUG: SDLKeyboard: scancode: 124, sym: 0, unicode: 0, modifier: 0

But nothing more...

Offline

#6 2011-01-02 20:27:28

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: XBMC and suspend via power button

Do you have pm-utils installed? Can you run pm-suspend while xbmc is running?


ᶘ ᵒᴥᵒᶅ

Offline

#7 2011-01-02 20:34:28

rocktale
Member
From: Munich, Germany
Registered: 2009-03-18
Posts: 24

Re: XBMC and suspend via power button

I have pm-utils installed and pm-suspend works while xbmc is running. But I think that's not the problem since I can suspend by choosing the right menu entry within xbmc as well. But it seems as it does not react on the power button anymore.

Offline

#8 2011-01-02 20:37:21

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: XBMC and suspend via power button

rocktale wrote:

I have pm-utils installed and pm-suspend works while xbmc is running. But I think that's not the problem since I can suspend by choosing the right menu entry within xbmc as well. But it seems as it does not react on the power button anymore.

Yes, but in this case you might be able to trigger a normal acpi suspend. Have you checked with the logger in handler.sh if it is still receiving calls for the power button when xbmc is running?


ᶘ ᵒᴥᵒᶅ

Offline

#9 2011-01-02 20:45:51

rocktale
Member
From: Munich, Germany
Registered: 2009-03-18
Posts: 24

Re: XBMC and suspend via power button

I do not have the acpid installed since xfce brings its own power-manager handling all the events and usually it works fine. With xbmc running however, it seems to ignore the power button. Anyway, I'd prefer xbmc's shutdown method over an external approach since it seems to me that xbmc "likes" it much better that way (especially when resuming).

Offline

#10 2011-01-02 20:55:09

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: XBMC and suspend via power button

It seems to be a more widespread problem, this is the most useful post i see about it at the moment: http://forum.xbmc.org/showpost.php?p=49 … stcount=33


ᶘ ᵒᴥᵒᶅ

Offline

#11 2011-01-02 21:01:24

rocktale
Member
From: Munich, Germany
Registered: 2009-03-18
Posts: 24

Re: XBMC and suspend via power button

Thank you for your patience and for the link. Well, it seems I'm stuck for the moment. I could use a custom build with HAL enabled or find some kind of workaround. Both options do not seem very appealing... :-/

Offline

Board footer

Powered by FluxBB