{"issue":{"created_at":"2011-12-04T13:53:42Z","state":"open","updated_at":"2011-12-04T13:53:42Z","comments":0,"user":{"gravatar_id":"d88cd08813bef6e37d23f221916a6fcf","id":1098073,"url":"https://api.github.com/users/shianyow","avatar_url":"https://secure.gravatar.com/avatar/d88cd08813bef6e37d23f221916a6fcf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"shianyow"},"body":"Current QEMU sensor is not working, the logcat shows following error:\r\n      D/SensorService(   61): nuSensorService starting...\r\n      E/SensorService(   61): couldn't open device for module sensors (Invalid argument)\r\n\r\nThe reason is, QEMU sensor implementation sdk/emulator/sensors/sensors_qemu.c is using the deprecated HAL definition, it makes QEMU sensor registration failure.\r\n\r\nSensor HAL definition:\r\n   hardware/libhardware/include/hardware/sensors.h (use new structure: SENSORS_HARDWARE_POLL)  \r\nQEMU sensor implementation at HAL:\r\n  sdk/emulator/sensors/sensors_qemu.c (use deprecated structure: SENSORS_HARDWARE_CONTROL & SENSORS_HARDWARE_DATA)\r\n\r\nTo fix it, we need to update below 2 files from newer submodule sdk (branch tools_r13 or later).\r\n1) sdk/emulator/qemud/qemud.c\r\n2) sdk/emulator/sensors/sensors_qemu.c\r\n        \r\nCurrent submodule sdk is pointing to gingerbread-release of AOSP.  Updating it to tools_r13 or later unfortunately forced to update another submodule \"development\" as well, it's a big change!!\r\n\r\nA better approach maybe we maintain B2G's own submodule sdk with branch \"gingerbread-release-b2g\", and updating the 2 required files to make QEMU sensor working.\r\n\r\n","assignee":null,"id":2441934,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"number":72,"title":"QEMU sensor not working","closed_at":null,"html_url":"https://github.com/andreasgal/B2G/issues/72","url":"https://api.github.com/repos/andreasgal/B2G/issues/72","milestone":null},"action":"opened"}