libera/#maemo/ Wednesday, 2022-12-14

siceloI will still investigate this properly in the near future (next week?) , but I guess it won't hurt to ask here so long:17:23
sicelolp5523 - I'm playing with the engines and patterns. there's something that's either not explained or I'm missing in wiki and kernel documentation, namely  ... i can make the pattern work and blink as required17:24
sicelobut i don't see how to set color properly, e.g. orange needs r=127 and g=64 brightness. i don't know how to do that. I've read the documentation a couple of  times, and couldn't find it17:26
sicelotldr; how can i produce the *orange* battery charging pattern using the led engines facilities17:28
sicelosolved. the trick is in `led_current`. mainline has higher values, so the LED is much brighter, and shows different color as a result.23:17
L29Ahsicelo: do you mean it's commanding 100% to red but it turns out orange due to excessive current?23:24
siceloi found the problem with, `echo 100 | tee red/brightness | tee green/brightness`. on the two devices, the same command gave different colors. on the mainline device, it looked more green than orange, while on the maemo device it's orange23:26
siceloi'm not sure what sets the current in maemo, but at least i now know the led engines work fine23:27
sicelowith mainline, both leds (green and red) had 50mA. i guess the green overpowers the red. in maemo, green had 2, and red had 20. setting the same on mainline produces the expected color23:30
siceloactually, rtfm ... the wiki states this somewhat, but i guess in my rush, i didn't take note of the section that says:23:42
sicelo"So the driver init default "50" for all LEDs is 5 mA, and mce seems to set current to 0.2 mA (value 2 in the led_current sysnode) for B and G, and either to 0.2 mA or 0.8 mA for R."23:42

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!