PINE64
Green power LED not working - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Hardware (https://forum.pine64.org/forumdisplay.php?fid=122)
+--- Thread: Green power LED not working (/showthread.php?tid=13026)



Green power LED not working - Zebulon Walton - 02-07-2021

The green power LED on my Pinephone has stopped working though the phone works normally otherwise. It's been a while since I had this thing apart - are the LEDs integrated into the mainboard? I'm wondering if it could be a loose connection, but if soldered to the mainboard I assume the LED just went bad. It's only a minor nuisance since everything else seems to work OK, aside from the vibrator which I'd posted about previously.

No power light, no vibrator... maybe the battery will last a wee bit longer. Big Grin


RE: Green power LED not working - dukla2000 - 02-07-2021

It seems to be licorice allsorts depending which release you have. On the one hand Arch does a red LED during boot, then a vibrate and a blue LED for notifications. It even has some sort of haptic feedback on squeakboard when I am prodding away with 1 finger.

Mobian used to have an LED during boot (green?) and vibrate, neither of which I am getting at the moment. But I do get a blue notification LED.

In both cases I update daily, so this is a current status that may change shortly.


RE: Green power LED not working - Zebulon Walton - 02-07-2021

Used to be though the green LED would light up when powering up the Pinephone before the OS loaded, so I don't think it's an OS issue. That LED just stopped indicating power on status at some point.


RE: Green power LED not working - scholbert - 02-08-2021

Hi,

this should be moved to the Mobian Software folder...
Anyway, got the same here. No LED on Mobian at startup.

Normally the LED should get triggered by the bootloader (u-boot should do this).
Looking at the patch sets, LED support had been added a while ago:
https://gitlab.com/mobian1/devices/sunxi64-u-boot/-/commit/81ff1fd5eb0f2c9fcfaf56eac79ee09a916d6cec#75a266fd098ab4c2c4da3434c426e0d5227cbadc

Maybe something went wrong here... they also changed the release to 2021.

EDIT:
https://gitlab.com/mobian1/devices/sunxi64-u-boot/-/blob/sunxi64-2021.01/configs/pinephone_defconfig

This should be added: CONFIG_PINEPHONE_LEDS=y

As the different distributution use different source trees as their code base, the state of these low-level packages may vary.
Same goes for the kernel.

It may take a while to get things sorted out nicely and add all the patches for the pinephone here and then.

Regards,
scholbert


RE: Green power LED not working - Zebulon Walton - 02-08-2021

Ah, didn't realize it was u-boot triggering the LED, thought it was a hardware thing. As you say I'm sure it will ultimately get sorted out and it's not really a vital issue.


RE: Green power LED not working - kqlnut - 02-08-2021

You can also test your LEDs by manually turning them on: Write 1 to /sys/class/devices/platform/leds/leds/[color]:indicator/brightness to turn on the desired color and 0 to turn it back off.


RE: Green power LED not working - Zebulon Walton - 02-10-2021

(02-08-2021, 08:28 AM)kqlnut Wrote: You can also test your LEDs by manually turning them on: Write 1 to /sys/class/devices/platform/leds/leds/[color]:indicator/brightness to turn on the desired color and 0 to turn it back off.

Thanks, I tried that and the light is indeed working so it is just a software issue. (Tested all the lights that way and they're all working.)


RE: Green power LED not working - fernando_c_m - 02-12-2021

(02-07-2021, 07:26 AM)Zebulon Walton Wrote: The green power LED on my Pinephone has stopped working though the phone works normally otherwise. It's been a while since I had this thing apart - are the LEDs integrated into the mainboard? I'm wondering if it could be a loose connection, but if soldered to the mainboard I assume the LED just went bad. It's only a minor nuisance since everything else seems to work OK, aside from the vibrator which I'd posted about previously.

No power light, no vibrator... maybe the battery will last a wee bit longer. Big Grin
The green LED signals the start of the boot up process again after the u-boot update from yesterday in Mobian.


RE: Green power LED not working - Zebulon Walton - 02-12-2021

(02-12-2021, 01:00 AM)fernando_c_m Wrote: The green LED signals the start of the boot up process again after the u-boot update from yesterday in Mobian.

Yes, I installed Mobian updates this morning and the green LED is back at boot time. Nice to have that visual confirmation of power-up since my vibration motor is not working.


RE: Green power LED not working - Zebulon Walton - 02-18-2021

A followup on the vibration motor, I've been thinking all this time that it was not working and that I must have damaged it while installing the replacement USB-C board. However it seems that it's just a Mobian software issue after all. I decided to run the PostmarketOS diagnostics and the first thing it did on powerup was to vibrate the phone! (Since Mobian now flashes the green LED on boot presumably at some point it will work the vibrator as well.)