Active Topics

 


Reply
Thread Tools
Posts: 318 | Thanked: 735 times | Joined on Oct 2009
#1
Hi,

is there any way to catch the press event of the powerkey?
I tried both with dbus and hal, but I didn't find anything useful.
Any hint?
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#2
Hi,

powerlock uses HAL as far as I know. Maybe you could check that out.

Daniel
 

The Following 3 Users Say Thank You to danielwilms For This Useful Post:
Posts: 318 | Thanked: 735 times | Joined on Oct 2009
#3
Originally Posted by danielwilms View Post
Hi,

powerlock uses HAL as far as I know. Maybe you could check that out.

Daniel
Yes, right but I was looking in the wrong way. I needed to simply add a call to libhal_ctx_set_device_condition() and all works as expected.
Thanks for your help!
 
Posts: 99 | Thanked: 325 times | Joined on Jul 2010
#4
Originally Posted by b0unc3 View Post
Yes, right but I was looking in the wrong way. I needed to simply add a call to libhal_ctx_set_device_condition() and all works as expected.
Thanks for your help!
Just a quick note: libhal_ctx_set_device_condition() won't fire the callback until you have a libhal_device_add_property_watch().
This is by libhal's design as it will only add a dbus watch rule if add a property watch even if you are only interested in the "conditions".
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:57.