markbaaijens / rpmusicserver

Transform a Raspberry Pi in a music server with LMS (Squeezebox), Samba, transcoder, etc.
GNU General Public License v3.0
5 stars 0 forks source link

Detect voltage-problems #214

Open markbaaijens opened 2 years ago

markbaaijens commented 2 years ago

A Pi can be under-powered to the point it is bearly useable. Many of the problems origins from an under-powered power-suppy. We must detect this situation and warn a user in the RPMS-interface.

Code to determine if there are power-problems: dmesg | grep -i undervoltage

Under Home, under Uptime:

Implement as a stand-alone API-function GetPowerQuality => boolean

Background

Research

mimefly commented 1 week ago

Pi4b 4gb, booting from sd card (RPMS), 2 usbsticks, and a wireless dongle (keyboard)

mimefly commented 12 hours ago

Pi4b 4gb, booting from sd card (RPMS), 2 usbsticks, and a wireless dongle (keyboard)

  • Official power supply + cable: works (dmesg | grep -i undervoltage -> no result)
  • OnePlus 3T power supply (turbo charging) + cable: appears to work (dmesg | grep -i undervoltage -> no result)
  • official Samsung S10+ power supply + cable: appears to work (dmesg | grep -i undervoltage -> no result)

Some off brand power supplies do not work (e.g. Action)

markbaaijens commented 4 hours ago

Nice.. So by now you can start writing the code for this issue while having the opportunity to test the code yourself.