SpriteOvO / AirPodsDesktop

☄️ AirPods desktop user experience enhancement program, for Windows and Linux (WIP)
GNU General Public License v3.0
1.47k stars 87 forks source link

[Feature Request] Perfect, but - Battery Drain Issue - #114

Closed dreambold closed 5 months ago

dreambold commented 7 months ago

I have been using this app for months and it's working great. Thanks for the great job! The only issue I find at the moment is the increased battery drain issue while using this app. I think it tries to keep the connection all the time with the Airpods [pro version I have] and it drastically increases the battery usage. Is real-time monitoring required? If not, why don't we make it just to keep the connection once in a minute or tens of seconds? I think it's something that can be adjusted by the configuration of the variables. :) Looking forward to hearing from you!

dreambold commented 7 months ago

These are from the logs file, why do we need these many logs? The app will try to connect with Airpods at the same time, right?

VALUE **
[2024-02-05 03:17:35.922] [Main] [info] [Settings.cpp:263] Save key succeeded. Key: 'tray_icon_battery', Value: 1
[2024-02-05 03:17:35.922] [Main] [info] [Settings.cpp:263] Save key succeeded. Key: 'battery_on_taskbar', Value: 1
[2024-02-05 03:17:35.922] [Main] [info] [Settings.cpp:291] ApplyChangedFieldsOnlyWithoutLock
[2024-02-05 03:17:35.922] [Main] [info] [Settings.cpp:295] Changed field: battery_on_taskbar
[2024-02-05 03:17:35.922] [Main] [info] [Settings.cpp:116] OnApply_battery_on_taskbar: 1
[2024-02-05 03:17:36.898] [Main] [info] [Settings.cpp:263] Save key succeeded. Key: 'abi_version', Value: 1
[2024-02-05 03:17:36.898] [Main] [info] [Settings.cpp:263] Save key succeeded. Key: 'language_locale', Value: 
[2024-02-05 03:17:36.898] [Main] [info] [Settings.cpp:263] Save key succeeded. Key: 'auto_run', Value: true
[2024-02-05 03:17:36.898] [Main] [info] [Settings.cpp:263] Save key succeeded. Key: 'low_audio_latency', Value: false
[2024-02-05 03:17:36.898] [Main] [info] [Settings.cpp:263] Save key succeeded. Key: 'automatic_ear_detection', Value: false
[2024-02-05 03:17:36.898] [Main] [info] [Settings.cpp:263] Save key succeeded. Key: 'skipped_version', Value: 
[2024-02-05 03:17:36.898] [Main] [info] [Settings.cpp:263] Save key succeeded. Key: 'rssi_min', Value: -64
[2024-02-05 03:17:36.898] [Main] [info] [Settings.cpp:250] Remove deprecated key succeeded. Key: 'reduce_loud_sounds'
[2024-02-05 03:17:36.898] [Main] [info] [Settings.cpp:250] Remove deprecated key succeeded. Key: 'loud_volume_level'
[2024-02-05 03:17:36.898] [Main] [info] [Settings.cpp:267] Save key succeeded. Key: 'device_address', Value: ** MAYBE HAVE
SpriteOvO commented 7 months ago

I'm assuming you're talking about your computer battery not your AirPods battery, because AirPodsDesktop doesn't actively monitor AirPods, but passively receives Bluetooth advertisements sent from AirPods.

Can you observe the same high CPU usage as #88 reported?

dreambold commented 6 months ago

Hi @SpriteOvO

Thank you for your reply, as I use desktop PC, the CPU usage is kind of high, but not that much.

image

but when I turn on AirPodsDesktop, the AirPods battery seems to be running out much more quickly. Is there any work around on this to modify some config variables? I just want to monitor the battery level... It would be great if you could just add an option to monitor battery level only without any other features... Just curious, the app size is a bit large, 30MB, can you decrease the size, if possible?

SpriteOvO commented 6 months ago

@dreambold Please check if low audio latency is enabled in AirPodsDesktop settings, it can significantly increase the battery consumption of AirPods. Try turning it off.

Just curious, the app size is a bit large, 30MB, can you decrease the size, if possible?

Not an easy task on Windows. This app is based on Qt framework.

dreambold commented 6 months ago

image @SpriteOvO Is this value for the Bluetooth range of AirPods or laptops?

SpriteOvO commented 6 months ago

Is this value for the Bluetooth range of AirPods or laptops?

This value is only used in AirPodsDesktop to filter Bluetooth signals that are far away to minimize misidentifying other people's AirPods. Its technical name is RSSI (Received signal strength indicator). This setting does not affect battery consumption.