SpriteOvO / AirPodsDesktop

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

Does not work with unoriginal AirPods #38

Open luine123 opened 2 years ago

luine123 commented 2 years ago

Does this only work for original AirPods?

SpriteOvO commented 2 years ago

Does this only work for original AirPods?

I don't know how you define "original". If an "unoriginal" AirPods can not be recognized on iOS, then this program should not work for it.

luine123 commented 2 years ago

This "unoriginal" AirPods I used for the program is recognisable in iOS, animations and all. Unfortunately the program only says "Disconnected" when I bound it (did this for several times, too). Any way to fix it?

SpriteOvO commented 2 years ago

This "unoriginal" AirPods I used for the program is recognisable in iOS, animations and all. Unfortunately the program only says "Disconnected" when I bound it (did this for several times, too). Any way to fix it?

Please make sure your AirPods are connected to your PC in the Windows Bluetooth settings. if so, start the program with --trace parameter and post its log file here.

luine123 commented 2 years ago

How do I do that? I'm sorry I'm so new to this coding thing so I still have no idea.

SpriteOvO commented 2 years ago

How do I do that? I'm sorry I'm so new to this coding thing so I still have no idea.

Open CMD or Powershell, cd to the location of this program, execute .\AirPodsDesktop.exe --trace and wait for program to be opened.

Then, connect your AirPods in Windowss Bluetooth settings. If this program is still shows "Disconnected", right-click the tray icon of this program, click on "Settings", click on "Open logs directory", upload the *.log files here.

luine123 commented 2 years ago

AirPodsDesktop.log Here's the .log file on the directory.

SpriteOvO commented 2 years ago

Guessing from the log you provided, your Bluetooth receiver device doesn't seem to be working, could you confirm that your AirPods can hear sound from your PC? Please try restarting your computer once.

luine123 commented 2 years ago

So, I restarted my PC, removed all peripherals (USB headset and external HDD), then did everything again and played some music. The music plays fine on the AirPods, yet the problem still persists.

Here's the current logs:

AirPodsDesktop.log

And here's from the PowerShell:

Warning: PowerShell detected that you might be using a screen reader and has disabled PSReadLine for compatibility purposes. If you want to re-enable it, run 'Import-Module PSReadLine'.

PS C:\Program Files (x86)\AirPodsDesktop> .\AirPodsDesktop.exe --trace PS C:\Program Files (x86)\AirPodsDesktop> [2022-07-12 20:33:00.568] [Main] [info] [Application.cpp:121] Launched. Version: '0.3.2' [2022-07-12 20:33:00.573] [Main] [info] [Application.cpp:123] Build git hash: '0b64ad3ed9dff1b09e6d3bef9cd3bcece49b8613' [2022-07-12 20:33:00.574] [Main] [info] [Application.cpp:128] Build configuration: Not Debug [2022-07-12 20:33:00.575] [Main] [info] [Application.cpp:131] Opts: { trace: true } [2022-07-12 20:33:00.577] [Main] [info] [Logger.cpp:93] Clean up old log file: 'AirPodsDesktop.1.log' doesn't exist, break the loop [2022-07-12 20:33:00.586] [Main] [warning] [Windows.h:170] Winrt initialize failed. Code: -0x7ffefefa, Message: Cannot change thread mode after it is set. [2022-07-12 20:33:00.587] [Main] [info] [Settings.cpp:163] Load key succeeded. Key: 'abi_version', Value: '1' [2022-07-12 20:33:00.588] [Main] [info] [Settings.cpp:163] Load key succeeded. Key: 'language_locale', Value: '' [2022-07-12 20:33:00.589] [Main] [info] [Settings.cpp:163] Load key succeeded. Key: 'auto_run', Value: 'true' [2022-07-12 20:33:00.590] [Main] [info] [Settings.cpp:163] Load key succeeded. Key: 'low_audio_latency', Value: 'true' [2022-07-12 20:33:00.591] [Main] [info] [Settings.cpp:163] Load key succeeded. Key: 'automatic_ear_detection', Value: 'true' [2022-07-12 20:33:00.592] [Main] [info] [Settings.cpp:163] Load key succeeded. Key: 'skipped_version', Value: '' [2022-07-12 20:33:00.603] [Main] [info] [Settings.cpp:163] Load key succeeded. Key: 'rssi_min', Value: '-80' [2022-07-12 20:33:00.604] [Main] [warning] [Settings.cpp:133] The setting key 'reduce_loud_sounds' not found. Current value 'false'. [2022-07-12 20:33:00.605] [Main] [warning] [Settings.cpp:133] The setting key 'loud_volume_level' not found. Current value '40'. [2022-07-12 20:33:00.607] [Main] [info] [Settings.cpp:167] Load key succeeded. Key: 'device_address', Value: ' MAYBE HAVE VALUE ' [2022-07-12 20:33:00.607] [Main] [info] [Settings.cpp:163] Load key succeeded. Key: 'tray_icon_battery', Value: '2' [2022-07-12 20:33:00.608] [Main] [info] [Application.cpp:236] currentLocale: en_PH [2022-07-12 20:33:00.610] [Main] [info] [Application.cpp:240] Locale from settings: '' [2022-07-12 20:33:00.612] [Main] [info] [Application.cpp:198] SetTranslator() locale: en_PH [2022-07-12 20:33:00.613] [Main] [warning] [Application.cpp:216] Try to set a untranslated language. locale name 'en_PH', ignore qt.qpa.fonts: Unable to enumerate family ' "Aristotelica Pro Display Condensed Trial" ' qt.qpa.fonts: Unable to enumerate family ' "Aristotelica Pro Text Condensed Trial" ' [2022-07-12 20:33:08.041] [Main] [info] [MainWindow.cpp:270] MainWindow::Unavailable [2022-07-12 20:33:08.048] [Main] [info] [Update.cpp:392] Checking update... [2022-07-12 20:33:08.917] [Main] [info] [LowAudioLatency.cpp:68] LowAudioLatency: Init successful. _enabled: false [2022-07-12 20:33:08.918] [Main] [info] [Settings.cpp:275] ApplyWithoutLock [2022-07-12 20:33:08.918] [Main] [info] [Settings.cpp:44] OnApply_language_locale: [2022-07-12 20:33:08.919] [Main] [info] [Application.cpp:198] SetTranslator() locale: en_PH [2022-07-12 20:33:08.919] [Main] [warning] [Application.cpp:216] Try to set a untranslated language. locale name 'en_PH', ignore [2022-07-12 20:33:08.919] [Main] [info] [Settings.cpp:52] OnApply_auto_run: true [2022-07-12 20:33:08.920] [Main] [info] [Settings.cpp:73] OnApply_low_audio_latency: true [2022-07-12 20:33:08.921] [Main] [info] [LowAudioLatency.cpp:79] LowAudioLatency::Controller Control: true, _inited: true [2022-07-12 20:33:08.922] [Main] [info] [Settings.cpp:80] OnApply_automatic_ear_detection: true [2022-07-12 20:33:08.923] [Main] [info] [Settings.cpp:88] OnApply_rssi_min: -80 [2022-07-12 20:33:08.924] [Main] [info] [Settings.cpp:95] OnApply_device_address: MAYBE HAVE VALUE [2022-07-12 20:33:08.925] [Main] [info] [MainWindow.cpp:293] MainWindow::Bind [2022-07-12 20:33:08.926] [Main] [info] [MainWindow.cpp:280] MainWindow::Disconnect [2022-07-12 20:33:08.932] [Main] [info] [AirPods.cpp:182] StateManager: Disconnect. [2022-07-12 20:33:08.933] [Main] [info] [AirPods.cpp:430] Bind a new device. [2022-07-12 20:33:08.960] [Main] [warning] [Bluetooth_win.cpp:227] BluetoothDevice::FromIdAsync() failed. 0xffffffff800710df (The device is not ready for use.) [2022-07-12 20:33:08.961] [Main] [warning] [Bluetooth_win.cpp:227] BluetoothDevice::FromIdAsync() failed. 0xffffffff800710df (The device is not ready for use.) [2022-07-12 20:33:08.964] [Main] [warning] [Bluetooth_win.cpp:227] BluetoothDevice::FromIdAsync() failed. 0xffffffff800710df (The device is not ready for use.) [2022-07-12 20:33:08.965] [Main] [warning] [Bluetooth_win.cpp:227] BluetoothDevice::FromIdAsync() failed. 0xffffffff800710df (The device is not ready for use.) [2022-07-12 20:33:08.967] [Main] [warning] [Bluetooth_win.cpp:227] BluetoothDevice::FromIdAsync() failed. 0xffffffff800710df (The device is not ready for use.) [2022-07-12 20:33:08.968] [Main] [error] [AirPods.cpp:434] Find device by address failed. [2022-07-12 20:33:08.969] [Main] [info] [Settings.cpp:109] OnApply_tray_icon_battery: 2 [2022-07-12 20:33:08.994] [Main] [warning] [Bluetooth_win.cpp:305] Start adv watcher exception: 0xffffffff800710df (The device is not ready for use.) [2022-07-12 20:33:08.995] [Main] [warning] [AirPods.cpp:384] Bluetooth AdvWatcher start failed. [2022-07-12 20:33:09.061] [Main] [info] [Update.cpp:123] ParseSRResponse: Asset name: 'AirPodsDesktop-0.3.2-win32.exe', size: 24903377, downloadUrl: 'https://github.com/SpriteOvO/AirPodsDesktop/releases/download/0.3.2/AirPodsDesktop-0.3.2-win32.exe'. [2022-07-12 20:33:09.062] [Main] [info] [Update.cpp:144] ParseSRResponse: Found matching file. [2022-07-12 20:33:09.065] [Main] [info] [Update.cpp:241] IsCurrentPreRelease: returns true. [2022-07-12 20:33:09.066] [Main] [info] [Update.cpp:276] Update: isCurrentPreRelease: 'true' [2022-07-12 20:33:10.291] [Main] [info] [Update.cpp:123] ParseSRResponse: Asset name: 'AirPodsDesktop-0.3.2-win32.exe', size: 24903377, downloadUrl: 'https://github.com/SpriteOvO/AirPodsDesktop/releases/download/0.3.2/AirPodsDesktop-0.3.2-win32.exe'. [2022-07-12 20:33:10.292] [Main] [info] [Update.cpp:144] ParseSRResponse: Found matching file. [2022-07-12 20:33:10.294] [Main] [info] [Update.cpp:287] Update: Latest version: '0.3.2' [2022-07-12 20:33:10.295] [Main] [info] [Update.cpp:289] Update: No need to update. [2022-07-12 20:35:09.967] [Main] [trace] [MainWindow.cpp:662] MainWindow: Show [2022-07-12 20:35:09.968] [Main] [trace] [MainWindow.cpp:493] ControlAutoHideTimer: start == 'true', _isVisible == 'true' [2022-07-12 20:35:12.056] [Main] [trace] [MainWindow.cpp:589] OnAppStateChanged: 'Qt::ApplicationState::ApplicationActive' [2022-07-12 20:35:12.075] [Main] [trace] [MainWindow.cpp:493] ControlAutoHideTimer: start == 'false', _isVisible == 'true' [2022-07-12 20:35:12.146] [Main] [trace] [MainWindow.cpp:642] MainWindow: Hide [2022-07-12 20:35:12.146] [Main] [trace] [MainWindow.cpp:493] ControlAutoHideTimer: start == 'false', _isVisible == 'false' [2022-07-12 20:35:12.667] [Main] [trace] [MainWindow.cpp:589] OnAppStateChanged: 'Qt::ApplicationState::ApplicationInactive' [2022-07-12 20:35:12.707] [Main] [trace] [MainWindow.cpp:493] ControlAutoHideTimer: start == 'true', _isVisible == 'false' [2022-07-12 20:35:16.398] [Main] [trace] [MainWindow.cpp:662] MainWindow: Show [2022-07-12 20:35:16.400] [Main] [trace] [MainWindow.cpp:493] ControlAutoHideTimer: start == 'true', _isVisible == 'true' [2022-07-12 20:35:23.730] [Main] [trace] [MainWindow.cpp:589] OnAppStateChanged: 'Qt::ApplicationState::ApplicationActive' [2022-07-12 20:35:23.731] [Main] [trace] [MainWindow.cpp:493] ControlAutoHideTimer: start == 'false', _isVisible == 'true' [2022-07-12 20:35:25.420] [Main] [trace] [MainWindow.cpp:589] OnAppStateChanged: 'Qt::ApplicationState::ApplicationInactive' [2022-07-12 20:35:25.426] [Main] [trace] [MainWindow.cpp:493] ControlAutoHideTimer: start == 'true', _isVisible == 'true' [2022-07-12 20:35:25.429] [Main] [trace] [MainWindow.cpp:589] OnAppStateChanged: 'Qt::ApplicationState::ApplicationActive' [2022-07-12 20:35:25.430] [Main] [trace] [MainWindow.cpp:493] ControlAutoHideTimer: start == 'false', _isVisible == 'true' [2022-07-12 20:35:36.428] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'abi_version', Value: 1 [2022-07-12 20:35:36.429] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'language_locale', Value: [2022-07-12 20:35:36.430] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'auto_run', Value: true [2022-07-12 20:35:36.431] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'low_audio_latency', Value: true [2022-07-12 20:35:36.432] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'automatic_ear_detection', Value: true [2022-07-12 20:35:36.434] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'skipped_version', Value: [2022-07-12 20:35:36.435] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'rssi_min', Value: -80 [2022-07-12 20:35:36.436] [Main] [info] [Settings.cpp:243] Remove deprecated key succeeded. Key: 'reduce_loud_sounds' [2022-07-12 20:35:36.437] [Main] [info] [Settings.cpp:243] Remove deprecated key succeeded. Key: 'loud_volume_level' [2022-07-12 20:35:36.440] [Main] [info] [Settings.cpp:260] Save key succeeded. Key: 'device_address', Value: MAYBE HAVE VALUE [2022-07-12 20:35:36.442] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'tray_icon_battery', Value: 2 [2022-07-12 20:35:36.443] [Main] [info] [Settings.cpp:284] ApplyChangedFieldsOnlyWithoutLock [2022-07-12 20:35:36.444] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'abi_version', Value: 1 [2022-07-12 20:35:36.445] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'language_locale', Value: [2022-07-12 20:35:36.446] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'auto_run', Value: true [2022-07-12 20:35:36.452] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'low_audio_latency', Value: true [2022-07-12 20:35:36.456] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'automatic_ear_detection', Value: true [2022-07-12 20:35:36.458] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'skipped_version', Value: [2022-07-12 20:35:36.459] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'rssi_min', Value: -80 [2022-07-12 20:35:36.460] [Main] [info] [Settings.cpp:243] Remove deprecated key succeeded. Key: 'reduce_loud_sounds' [2022-07-12 20:35:36.461] [Main] [info] [Settings.cpp:243] Remove deprecated key succeeded. Key: 'loud_volume_level' [2022-07-12 20:35:36.462] [Main] [info] [Settings.cpp:260] Save key succeeded. Key: 'device_address', Value: MAYBE HAVE VALUE [2022-07-12 20:35:36.466] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'tray_icon_battery', Value: 1 [2022-07-12 20:35:36.469] [Main] [info] [Settings.cpp:284] ApplyChangedFieldsOnlyWithoutLock [2022-07-12 20:35:36.471] [Main] [info] [Settings.cpp:288] Changed field: tray_icon_battery [2022-07-12 20:35:36.472] [Main] [info] [Settings.cpp:109] OnApply_tray_icon_battery: 1 [2022-07-12 20:35:42.002] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'abi_version', Value: 1 [2022-07-12 20:35:42.005] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'language_locale', Value: [2022-07-12 20:35:42.006] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'auto_run', Value: true [2022-07-12 20:35:42.008] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'low_audio_latency', Value: true [2022-07-12 20:35:42.009] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'automatic_ear_detection', Value: true [2022-07-12 20:35:42.010] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'skipped_version', Value: [2022-07-12 20:35:42.011] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'rssi_min', Value: -80 [2022-07-12 20:35:42.012] [Main] [info] [Settings.cpp:243] Remove deprecated key succeeded. Key: 'reduce_loud_sounds' [2022-07-12 20:35:42.013] [Main] [info] [Settings.cpp:243] Remove deprecated key succeeded. Key: 'loud_volume_level' [2022-07-12 20:35:42.016] [Main] [info] [Settings.cpp:260] Save key succeeded. Key: 'device_address', Value: MAYBE HAVE VALUE [2022-07-12 20:35:42.020] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'tray_icon_battery', Value: 1 [2022-07-12 20:35:42.021] [Main] [info] [Settings.cpp:284] ApplyChangedFieldsOnlyWithoutLock [2022-07-12 20:35:42.023] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'abi_version', Value: 1 [2022-07-12 20:35:42.025] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'language_locale', Value: [2022-07-12 20:35:42.027] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'auto_run', Value: true [2022-07-12 20:35:42.028] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'low_audio_latency', Value: true [2022-07-12 20:35:42.032] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'automatic_ear_detection', Value: true [2022-07-12 20:35:42.036] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'skipped_version', Value: [2022-07-12 20:35:42.036] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'rssi_min', Value: -80 [2022-07-12 20:35:42.038] [Main] [info] [Settings.cpp:243] Remove deprecated key succeeded. Key: 'reduce_loud_sounds' [2022-07-12 20:35:42.039] [Main] [info] [Settings.cpp:243] Remove deprecated key succeeded. Key: 'loud_volume_level' [2022-07-12 20:35:42.040] [Main] [info] [Settings.cpp:260] Save key succeeded. Key: 'device_address', Value: MAYBE HAVE VALUE [2022-07-12 20:35:42.042] [Main] [info] [Settings.cpp:256] Save key succeeded. Key: 'tray_icon_battery', Value: 2 [2022-07-12 20:35:42.044] [Main] [info] [Settings.cpp:284] ApplyChangedFieldsOnlyWithoutLock [2022-07-12 20:35:42.047] [Main] [info] [Settings.cpp:288] Changed field: tray_icon_battery [2022-07-12 20:35:42.050] [Main] [info] [Settings.cpp:109] OnApply_tray_icon_battery: 2 [2022-07-12 20:35:42.912] [Main] [trace] [MainWindow.cpp:589] OnAppStateChanged: 'Qt::ApplicationState::ApplicationInactive' [2022-07-12 20:35:42.916] [Main] [trace] [MainWindow.cpp:493] ControlAutoHideTimer: start == 'true', _isVisible == 'true' [2022-07-12 20:35:52.923] [Main] [trace] [MainWindow.cpp:642] MainWindow: Hide [2022-07-12 20:35:53.007] [Main] [trace] [MainWindow.cpp:493] ControlAutoHideTimer: start == 'false', _isVisible == 'false'

SpriteOvO commented 2 years ago

Could you please type winver in the Start menu and enter, then take a screenshot and upload it here?

luine123 commented 2 years ago

Here:

image

SpriteOvO commented 2 years ago

That's a little strange. Sorry, I have no idea why it doesn't work for you right now either. I will try to investigate it later. Thank you for the information you provided! That would be very useful.

luine123 commented 2 years ago

Thank you! Will also monitor here on my side in case there might be any development. It's also an AirPods Pro model, in case I forgot to mention previously.