[maemo-users] AW: DBus / mce

From: André Hänsel andre at webkr.de
Date: Fri Apr 30 00:56:10 EEST 2010
Kimmo Hämäläinen schrieb:
> The signal is not sent always to save power. To get it, someone needs
> to
> be interested about it. See hd_app_mgr_mce_activate_accel_if_needed()
> in
> http://maemo.gitorious.org/fremantle-hildon-desktop/hildon-
> desktop/blobs/master/src/launcher/hd-app-mgr.c
> for an example how to subscribe to it.

I see, so it sends mce the MCE_ACCELEROMETER_ENABLE_REQ message which
enables the accelerometer by whatever means?

I have another similar question. I found out (HAL told me) that the
headphones button is /dev/input/event4 and that a message gets sent when it
is pressed referring to
/org/freedesktop/Hal/devices/computer_logicaldev_input_1. However when I
read from /dev/input/event4 I only get data when a phone call is in
progress. So I guess it needs to be enabled in a similar way as the
accelerometer does?

I see that some devices, as the proximity sensor, can be disabled by eg.
/sys/devices/platform/gpio-switch/proximity/disable. Does this actually
disable the sensor?


More information about the maemo-users mailing list