didn't the dev for lightflow get something working? I was looking for that thread when I found this one.
Looks like this is a result of a device commit to LiquidSmooth, I believe it's this one:Validus ROM has the notification lights working.
Sent from my Nexus 6 using XDA Premium 4 mobile app
Android 5 is by no means a disappointment. It has nothing at all to do with the lack of lights on N6. N6 is a showcase device -- Google is using it to show off the on-screen notification system.I just want to say I really hope you can get the notification lights back without having to root. I have zero idea how to do that. And no desire to ruin my phone learning. I just want my notification LED back.
Thank you for working on this. Lollipop and the N6 are a real disappointment.![]()
Wonder why they aren't using the charging LED for charger notifications?Looks like this is a result of a device commit to LiquidSmooth, I believe it's this one:
https://github.com/LiquidSmooth-Dev...mmit/47a8f67950ebfb300d466a7b6094dea34d6a08d1
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_kernel_moto_shamu/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.
I am not 100% sure how we can do this, but if you need some help poking around and testing modifications I am here and am willing to fork your repo to work on this.
A real question is, where is the samsung code? Could we not look at this since it's the same hardware? There must be something that can at least be looked at from that side, I think at leastAwesome good to see fellow kernel devs interested in helping
So this is what im doing I'm basically looking at qcoms commits here and here trying to understand their methodology and what they found/changed and for what reason. Theres more than a few commits directly referring to LED capability and enabling/disabling functions and indeed implementing some edits does effect the way the LEDS are controlled and shown, for example I have 8 entries in /sys/class/leds and I have gotten the charging LED to work (albeit, somewhat backwards in implementation)
The way I see it, I think having the right combo of edits/fixs in dts and the qpnp-led drivers will result in full functionality. Take a look at the commits in the link and let me know what you think
More specifically this link
This looks promising. Not that I'm a coder or anything, but I can at least see the similarities & differences between these to sources. My question is, can you have more than one entry for each device. i.e will enabling, say the blue led for notifications cause that device to be unavailable for any other function?A real question is, where is the samsung code? Could we not look at this since it's the same hardware? There must be something that can at least be looked at from that side, I think at least
I also just saw this https://www.codeaurora.org/cgit/qui...e&id=c4bf9abc80b74cc53e3d6565a259a83b541d8c3a
Definitely something to look at since it's enabling LED on an 8084 variant.
I was thinking even a generic color for notifications would be fine(blinking) with a charge light. I think surge was testing this in his source, I am just awaiting his feedbackThis looks promising. Not that I'm a coder or anything, but I can at least see the similarities & differences between these to sources. My question is, can you have more than one entry for each device. i.e will enabling, say the blue led for notifications cause that device to be unavailable for any other function?
This is what I was thinking also. Blue for notifications makes sense. Then red/green for battery states. i.e red=low bat, red&green(orange kinda)=charging, green=charged. I can sort of see how you could implement this, but how to add heartbeat. I think I remember, while scouring the kernel source that these triggers and blink functions were implemented at a higher level somewhere.I was thinking even a generic color for notifications would be fine(blinking) with a charge light. I think surge was testing this in his source, I am just awaiting his feedback
Look at the code I presented, that's what I believe is the note 4 LED code. It specifically has a notification setting for one of them. I am thinking we can maybe port that over somehow. If you wish to discuss further it might be easier to hangout me.This is what I was thinking also. Blue for notifications makes sense. Then red/green for battery states. i.e red=low bat, red&green(orange kinda)=charging, green=charged. I can sort of see how you could implement this, but how to add heartbeat. I think I remember, while scouring the kernel source that these triggers and blink functions were implemented at a higher level somewhere.
Looks like the code you presented is shamu code. PM'd you.Look at the code I presented, that's what I believe is the note 4 LED code. It specifically has a notification setting for one of them. I am thinking we can maybe port that over somehow. If you wish to discuss further it might be easier to hangout me.
I responded but got nothing from you yetLooks like the code you presented is shamu code. PM'd you.