Public bug reported: libhybris_0.1.0+git20131207+e452e83-0ubuntu17 includes a test program that uses the light sensors (for light notifications), but it fails to run as phablet user, as it lacks the needed permissions in /sys/class/leds.
The test works fine as root, and strace shows the files that the lights HAL tries to access: open("/sys/class/leds/red/brightness", O_RDWR|O_LARGEFILE) = 3 close(3) = 0 open("/sys/class/leds/green/brightness", O_RDWR|O_LARGEFILE) = 3 close(3) = 0 open("/sys/class/leds/blue/brightness", O_RDWR|O_LARGEFILE) = 3 close(3) = 0 open("/sys/class/leds/red/device/lock", O_RDWR|O_LARGEFILE) = 3 write(3, "1\n", 2) = 2 close(3) = 0 open("/sys/class/leds/red/brightness", O_RDWR|O_LARGEFILE) = 3 write(3, "255\n", 4) = 4 close(3) = 0 open("/sys/class/leds/green/brightness", O_RDWR|O_LARGEFILE) = 3 write(3, "255\n", 4) = 4 close(3) = 0 open("/sys/class/leds/blue/brightness", O_RDWR|O_LARGEFILE) = 3 write(3, "255\n", 4) = 4 close(3) = 0 open("/sys/class/leds/red/device/grpfreq", O_RDWR|O_LARGEFILE) = 3 write(3, "60\n", 3) = 3 close(3) = 0 open("/sys/class/leds/red/device/grppwm", O_RDWR|O_LARGEFILE) = 3 write(3, "170\n", 4) = 4 close(3) = 0 open("/sys/class/leds/red/device/blink", O_RDWR|O_LARGEFILE) = 3 write(3, "1\n", 2) = 2 close(3) = 0 open("/sys/class/leds/red/device/lock", O_RDWR|O_LARGEFILE) = 3 write(3, "0\n", 2) = 2 close(3) = 0 init.rc sets them as system:system 640, explaining why phablet is unable to reach them. We either need to open up the default permission or protect that with a group. ** Affects: android (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1331285 Title: phablet user is unable to use light sensors (lack of permission in /sys/class/leds) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/android/+bug/1331285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs