I'm going to assume not enough people know a about the devs only thread, that or we have an extremely low number of devs that code themselves. Anywho, as we all know, the nexus 6 should be able to manage LEDS itself at the kernel level and indeed the qpnp-led drivers are in the kernel source. As far as actually adding the support and led features to the kernel, this is done by editing the dts files in the arch/arm/boot/dts and arch/arm/boot/dts/qcom and by editing them to support the gpio led drivers does indeed enable leds and led management auto managed by the kernel I'll link to the edits I made on git at the end.
Unfortunately getting full support isn't so cut and dry, for example charging red led will turn on if I turn on my display while charging (instead of off) but the green indicator for full charge works fine. Before someone replies linking me to the light app devs thread or liquids ROM which both control LEDs at the sysfs level, realize that, but I want to enable auto managed leds from the kernel itself the way it's supposed to be.
were not really going to echo commands into sysfs to control this are we? With all the talent we have here I'm sure we can solve this.
here's the git I'm working from https://github.com/Surge1223/android...commits/master
if anyone has any ideas on dts edits that could help that would be awesome.
I'm using the purified_shamu_defconfig and currently I have red charging led only when charging when screen on, green led kicks in when charge is complete though.
ramdisk is stock, I have not messed with writing sysfs values via editing ramdisk because it should not be needed. We should fix the basic issue instead of using work arounds.
I half way expect no other devs to reply here either, so is the nature of the beast, but hey maybe (hopefully?) I'm wrong and we can set an example of how open source and community efforts can effect a device.
I'm going to ask moderators to strictly limit posts to development only.
This is a nexus dev forum, let's start acting like it and fix this issue together.
Unfortunately getting full support isn't so cut and dry, for example charging red led will turn on if I turn on my display while charging (instead of off) but the green indicator for full charge works fine. Before someone replies linking me to the light app devs thread or liquids ROM which both control LEDs at the sysfs level, realize that, but I want to enable auto managed leds from the kernel itself the way it's supposed to be.
were not really going to echo commands into sysfs to control this are we? With all the talent we have here I'm sure we can solve this.
here's the git I'm working from https://github.com/Surge1223/android...commits/master
if anyone has any ideas on dts edits that could help that would be awesome.
I'm using the purified_shamu_defconfig and currently I have red charging led only when charging when screen on, green led kicks in when charge is complete though.
ramdisk is stock, I have not messed with writing sysfs values via editing ramdisk because it should not be needed. We should fix the basic issue instead of using work arounds.
I half way expect no other devs to reply here either, so is the nature of the beast, but hey maybe (hopefully?) I'm wrong and we can set an example of how open source and community efforts can effect a device.
I'm going to ask moderators to strictly limit posts to development only.
This is a nexus dev forum, let's start acting like it and fix this issue together.
Aucun commentaire:
Enregistrer un commentaire