Pilotlight, a way to save power during long audio playback
#1
keeping the pilotlight lit, normally when listening to an audiobook or music playlist the Pinephone locks it's screen after a minute and suspends the OS after a few more minutes as set by the user.
This suspend action makes it possible to carry a pinephone all day ready ro receive incoming telephone calls and still have battery if the phone is not used for more than 45min to an hour a day.
Every time the system suspends the audio stream is killed, even after wakeup most of the time the audio playback app needs to be killed and restarted for it to output audio.
I want a way to keep a tightly controlled and minimized audio app running while using minimal CPU waste power, and without the bloat of the system processes.
I only want the pilotlight lit, not the whole furnace.

I have several ideas that might be able to be implemented with only scripts, but I will need a LOT of help making this work if I run into bugs.
The idea works like this:
1- when an audio app is running we get the audio pause/skip controls on the lockscreen, there are already processes which load when audio is started
2- when audio mode is detected a special suspend mode is activated or enabled
   A- an exception is made to the suspend mode script, perhaps an alternate suspend mode
       a- the process running the audio is moved to one awake cpu core and the lowest voltage and mhz possible is engaged, only enough to allow for the audio stream to continue
       b- if possible audio is buffered into hardware audio acceleration chip and even the audio app CPU is suspended until 10-20 sec before the buffer runs out,
       c- buffer refills, suspend special audio process, repeating
    B- when system is taken out of suspend the audio app and special settings for single CPU are ended

An alternative would be to add an audio buffer playback system to the programs running on the modem module, perhaps a virtual serial audio device fed over the data connection line.  The modem module has its own Android based no-GUI OS, memory, and CPU, it is always awake and waiting for incoming calls and texts, which results in it sending a de-suspend command to the Pinephone, as running its own OS processes.

Currently unless there is USB power in the Pinephone pro can get at most around two hours of audio playback even though the the screen is dark and locked as all processes continue to run at full power.
  Reply


Messages In This Thread
Pilotlight, a way to save power during long audio playback - by biketool - 01-04-2025, 01:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with audio via bluetooth connect to car zkajdan 1 1,489 06-18-2024, 12:51 AM
Last Post: qcomment
Lightbulb Article: Experiments for super low PinePhone power consumption with Genode Surehand53 1 2,606 12-27-2022, 02:21 PM
Last Post: Samurai_Crow
  Most Power Efficient OS Image jwinarske 0 1,081 07-05-2022, 07:05 PM
Last Post: jwinarske
  Keyboard Case Power Management Daemon estokes 2 2,690 04-16-2022, 04:15 PM
Last Post: estokes
  No call audio despite confirmed capability GrapeJuice 1 1,815 02-07-2022, 05:19 PM
Last Post: gab
  Diagnosing power usage with ZZZtop biketool 1 2,203 10-21-2021, 01:23 PM
Last Post: tllim
  Reviewing our Forebearer's Work re:Power Consumption biketool 0 1,390 10-20-2021, 09:51 AM
Last Post: biketool
  Phosh - config within Settings does not save after reboot antitheos 0 1,736 09-24-2021, 04:30 PM
Last Post: antitheos
  PSA: WiFi driver is broken - Unload kernel module to save lots of power Trbl 3 4,811 06-23-2021, 02:28 AM
Last Post: Merc
Music Running textbased spotify client with a spotify daemon for native playback yeold 0 3,493 02-12-2021, 04:48 AM
Last Post: yeold

Forum Jump:


Users browsing this thread: 3 Guest(s)