AW: DBus / mce

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

Regards,
André

_______________________________________________
maemo-users mailing list
maemo-users@xxxxxxxxx
https://lists.maemo.org/mailman/listinfo/maemo-users


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux