[GH-ISSUE #227] linux: add hearing aid feature #104

Closed
opened 2026-03-02 12:03:30 +03:00 by kerem · 14 comments
Owner

Originally created by @ressiwage on GitHub (Oct 8, 2025).
Original GitHub issue: https://github.com/kavishdevar/librepods/issues/227

i have a small feature request, is it possible to add hearing aid support to linux? for me it is highly important and i think there are many people who suffer from hearing loss but struggle to root their device. As for me cool ui is unneccessary, just sliders or number inputs would be enough. Installing librepods on linux is much easier than install it on rooted android

Originally created by @ressiwage on GitHub (Oct 8, 2025). Original GitHub issue: https://github.com/kavishdevar/librepods/issues/227 i have a small feature request, is it possible to add hearing aid support to linux? for me it is highly important and i think there are many people who suffer from hearing loss but struggle to root their device. As for me cool ui is unneccessary, just sliders or number inputs would be enough. Installing librepods on linux is much easier than install it on rooted android
kerem 2026-03-02 12:03:30 +03:00
Author
Owner

@kavishdevar commented on GitHub (Oct 15, 2025):

Sure thing! There's just one small caveat- if you change the DID profile info in the BlueZ config to Apple’s, you might get connection issues with AirPods. If AirPods know it's an Apple device, it allows multiple devices to connect and then your Apple device does something that can cause Linux to disconnect unless some specific information is sent to the iDevice.

Also, do you have an audiogram result available? Because I don't have any ideas on how to implement hearing tests as it needs much more precision and accuracy.

<!-- gh-comment-id:3404539417 --> @kavishdevar commented on GitHub (Oct 15, 2025): Sure thing! There's just one small caveat- if you change the DID profile info in the BlueZ config to Apple’s, you might get connection issues with AirPods. If AirPods know it's an Apple device, it allows multiple devices to connect and then your Apple device does something that can cause Linux to disconnect unless some specific information is sent to the iDevice. Also, do you have an audiogram result available? Because I don't have any ideas on how to implement hearing tests as it needs much more precision and accuracy.
Author
Owner

@kavishdevar commented on GitHub (Oct 15, 2025):

also, I might be making it a different Python script. I don't want to mess with the main app because this requires a different connection (ATT) than the one used for controlling other stuff (AACP).

can't do that because enabling hearing aid needs AACP, and so does "Swipe to control amplification".

<!-- gh-comment-id:3404542656 --> @kavishdevar commented on GitHub (Oct 15, 2025): ~also, I might be making it a different Python script. I don't want to mess with the main app because this requires a different connection (ATT) than the one used for controlling other stuff (AACP).~ can't do that because enabling hearing aid needs AACP, and so does "Swipe to control amplification".
Author
Owner

@ressiwage commented on GitHub (Oct 15, 2025):

do you have an audiogram result available?

yes i do, from a hearing therapist. it looks like that

Image

If you ask me what is primary, I would say that a hearing test is less necessary than manual hearing aid regulation because, in my opinion, people with hearing issues usually already have an audiogram.

<!-- gh-comment-id:3405611316 --> @ressiwage commented on GitHub (Oct 15, 2025): > do you have an audiogram result available? yes i do, from a hearing therapist. it looks like that <img width="1280" height="722" alt="Image" src="https://github.com/user-attachments/assets/232bbcef-ccf6-43b0-9564-02ea8f10e1e6" /> If you ask me what is primary, I would say that a hearing test is less necessary than manual hearing aid regulation because, in my opinion, people with hearing issues usually already have an audiogram.
Author
Owner

@kavishdevar commented on GitHub (Oct 15, 2025):

Ah, alright. I added the adjustments, and a toggle for hearing aid (linux/hearing-aid branch) because that's what I had already implemented in Android. I am yet to add the loss information. I'll add it in a few (~8-10) hours.

<!-- gh-comment-id:3405631252 --> @kavishdevar commented on GitHub (Oct 15, 2025): Ah, alright. I added the adjustments, and a toggle for hearing aid (linux/hearing-aid branch) because that's what I had already implemented in Android. I am yet to add the _loss_ information. I'll add it in a few (~8-10) hours.
Author
Owner

@kavishdevar commented on GitHub (Oct 15, 2025):

Also, I am not sure how the bone and air info is sent to the AirPods. I have seen only a single set of data sent per ear. I am also in a region where the feature's not supported, so can't test myself.

<!-- gh-comment-id:3405640677 --> @kavishdevar commented on GitHub (Oct 15, 2025): Also, I am not sure how the bone and air info is sent to the AirPods. I have seen only a single set of data sent per ear. I am also in a region where the feature's not supported, so can't test myself.
Author
Owner

@ressiwage commented on GitHub (Oct 15, 2025):

I am also in a region where the feature's not supported

i heard that you can change the region in apple id just entering some random address, didn't check it out, maybe you can try

<!-- gh-comment-id:3406075597 --> @ressiwage commented on GitHub (Oct 15, 2025): > I am also in a region where the feature's not supported i heard that you can change the region in apple id just entering some random address, didn't check it out, maybe you can [try](https://www.browserstack.com/free-tools/random-address-generator)
Author
Owner

@kavishdevar commented on GitHub (Oct 15, 2025):

@ressiwage, done! will add it to the main app later, but for now, it's a python script in the linux folder. Run it with the MAC of your AirPods.

<!-- gh-comment-id:3407977221 --> @kavishdevar commented on GitHub (Oct 15, 2025): @ressiwage, done! will add it to the main app later, but for now, it's a python script in the linux folder. Run it with the MAC of your AirPods.
Author
Owner

@kavishdevar commented on GitHub (Oct 15, 2025):

forgot to mention this earlier- you need to change the DeviceID in BlueZ config at /etc/bluetooth/main.conf to bluetooth:004C:0000:0000 for this to work.

<!-- gh-comment-id:3407999774 --> @kavishdevar commented on GitHub (Oct 15, 2025): forgot to mention this earlier- you need to change the `DeviceID` in BlueZ config at `/etc/bluetooth/main.conf` to `bluetooth:004C:0000:0000` for this to work.
Author
Owner

@ressiwage commented on GitHub (Oct 15, 2025):

kinda strange, i do not notice changes with any values of sliders and loss inputs. Tried in different modes (adaptive, transparency, noise reduction), i think the error may be in message "read data too short for sending settings".

Image Image Image

log:

python3 hearing-aid-adjustments.py 38:C4:3A:26:11:CE
2025-10-15 20:16:29,014 - INFO - Starting app with MAC: 38:C4:3A:26:11:CE
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
2025-10-15 20:16:29,086 - INFO - ATTManager initialized for MAC: 38:C4:3A:26:11:CE
2025-10-15 20:16:29,089 - INFO - HearingAidApp initialized
2025-10-15 20:16:29,089 - DEBUG - Initializing UI
2025-10-15 20:16:29,130 - DEBUG - UI initialized
2025-10-15 20:16:29,131 - INFO - Connecting to ATT in UI
2025-10-15 20:16:29,131 - INFO - Attempting to connect to ATT socket
2025-10-15 20:16:29,187 - INFO - Starting notification listener thread
2025-10-15 20:16:29,188 - INFO - Connected to ATT socket
2025-10-15 20:16:29,188 - DEBUG - Sending CCCD write request for handle HEARING_AID: 122b000100
2025-10-15 20:16:29,188 - DEBUG - Sent PDU: 122b000100
2025-10-15 20:16:29,215 - DEBUG - Received PDU: 13
2025-10-15 20:16:29,215 - DEBUG - Response received: 
2025-10-15 20:16:29,216 - DEBUG - CCCD write response received for handle HEARING_AID
2025-10-15 20:16:29,216 - INFO - Enabled notifications for handle HEARING_AID
2025-10-15 20:16:29,216 - DEBUG - Registered listener for handle 42
2025-10-15 20:16:29,216 - DEBUG - Sending read request for handle HEARING_AID: 0a2a00
2025-10-15 20:16:29,219 - DEBUG - Sent PDU: 0a2a00
2025-10-15 20:16:29,247 - DEBUG - Received PDU: 010a2a000e
2025-10-15 20:16:29,247 - DEBUG - Response received: 0a2a000e
2025-10-15 20:16:29,247 - DEBUG - Read response for handle HEARING_AID: 0a2a000e
2025-10-15 20:16:29,247 - DEBUG - Parsing hearing aid settings from data: 0a2a000e
2025-10-15 20:16:29,247 - WARNING - Data too short for parsing
2025-10-15 20:16:31,535 - DEBUG - UI value changed, starting debounce
2025-10-15 20:16:31,631 - INFO - Sending settings from UI
2025-10-15 20:16:31,631 - DEBUG - HearingAidSettings created: amp=0.5, balance=0.5, tone=0.5, anr=0.0, conv=True
2025-10-15 20:16:31,632 - INFO - Sending hearing aid settings
2025-10-15 20:16:31,632 - DEBUG - Sending read request for handle HEARING_AID: 0a2a00
2025-10-15 20:16:31,632 - DEBUG - Sent PDU: 0a2a00
2025-10-15 20:16:31,694 - DEBUG - Received PDU: 010a2a000e
2025-10-15 20:16:31,695 - DEBUG - Response received: 0a2a000e
2025-10-15 20:16:31,696 - DEBUG - Read response for handle HEARING_AID: 0a2a000e
2025-10-15 20:16:31,696 - ERROR - Read data too short for sending settings
2025-10-15 20:16:32,360 - DEBUG - UI value changed, starting debounce
2025-10-15 20:16:32,368 - DEBUG - UI value changed, starting debounce
2025-10-15 20:16:32,373 - DEBUG - UI value changed, starting debounce
2025-10-15 20:16:32,383 - DEBUG - UI value changed, starting debounce
2025-10-15 20:16:32,401 - DEBUG - UI value changed, starting debounce
2025-10-15 20:16:32,403 - DEBUG - UI value changed, starting debounce
2025-10-15 20:16:32,405 - DEBUG - UI value changed, starting debounce
2025-10-15 20:16:32,408 - DEBUG - UI value changed, starting debounce
2025-10-15 20:16:32,410 - DEBUG - UI value changed, starting debounce
2025-10-15 20:16:32,411 - DEBUG - UI value changed, starting debounce
2025-10-15 20:16:32,421 - DEBUG - UI value changed, starting debounce
2025-10-15 20:16:32,422 - DEBUG - UI value changed, starting debounce
2025-10-15 20:16:32,431 - DEBUG - UI value changed, starting debounce
2025-10-15 20:16:32,433 - DEBUG - UI value changed, starting debounce
2025-10-15 20:16:32,528 - INFO - Sending settings from UI
2025-10-15 20:16:32,529 - DEBUG - HearingAidSettings created: amp=1.0, balance=0.5, tone=0.5, anr=0.0, conv=True
2025-10-15 20:16:32,530 - INFO - Sending hearing aid settings
2025-10-15 20:16:32,530 - DEBUG - Sending read request for handle HEARING_AID: 0a2a00
2025-10-15 20:16:32,531 - DEBUG - Sent PDU: 0a2a00
2025-10-15 20:16:32,584 - DEBUG - Received PDU: 010a2a000e
2025-10-15 20:16:32,587 - DEBUG - Response received: 0a2a000e
2025-10-15 20:16:32,587 - DEBUG - Read response for handle HEARING_AID: 0a2a000e
2025-10-15 20:16:32,588 - ERROR - Read data too short for sending settings
...
debounce
2025-10-15 20:17:34,191 - DEBUG - UI value changed, starting debounce
2025-10-15 20:17:34,297 - INFO - Sending settings from UI
2025-10-15 20:17:34,298 - DEBUG - HearingAidSettings created: amp=1.0, balance=1.0, tone=1.0, anr=1.0, conv=True
2025-10-15 20:17:34,298 - INFO - Sending hearing aid settings
2025-10-15 20:17:34,299 - DEBUG - Sending read request for handle HEARING_AID: 0a2a00
2025-10-15 20:17:34,299 - DEBUG - Sent PDU: 0a2a00
2025-10-15 20:17:35,203 - DEBUG - Received PDU: 010a2a000e
2025-10-15 20:17:35,205 - DEBUG - Response received: 0a2a000e
2025-10-15 20:17:35,205 - DEBUG - Read response for handle HEARING_AID: 0a2a000e
2025-10-15 20:17:35,205 - ERROR - Read data too short for sending settings
<!-- gh-comment-id:3408073774 --> @ressiwage commented on GitHub (Oct 15, 2025): kinda strange, i do not notice changes with any values of sliders and loss inputs. Tried in different modes (adaptive, transparency, noise reduction), i think the error may be in message "read data too short for sending settings". <img width="795" height="505" alt="Image" src="https://github.com/user-attachments/assets/888c3234-b422-466c-a0d5-ea74c4e56e3a" /> <img width="1093" height="594" alt="Image" src="https://github.com/user-attachments/assets/e96ea692-fb9e-48e6-b90f-a91fcd8827c4" /> <img width="783" height="496" alt="Image" src="https://github.com/user-attachments/assets/c4b464a8-603b-4f62-8882-ff8846933646" /> log: ``` python3 hearing-aid-adjustments.py 38:C4:3A:26:11:CE 2025-10-15 20:16:29,014 - INFO - Starting app with MAC: 38:C4:3A:26:11:CE Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. 2025-10-15 20:16:29,086 - INFO - ATTManager initialized for MAC: 38:C4:3A:26:11:CE 2025-10-15 20:16:29,089 - INFO - HearingAidApp initialized 2025-10-15 20:16:29,089 - DEBUG - Initializing UI 2025-10-15 20:16:29,130 - DEBUG - UI initialized 2025-10-15 20:16:29,131 - INFO - Connecting to ATT in UI 2025-10-15 20:16:29,131 - INFO - Attempting to connect to ATT socket 2025-10-15 20:16:29,187 - INFO - Starting notification listener thread 2025-10-15 20:16:29,188 - INFO - Connected to ATT socket 2025-10-15 20:16:29,188 - DEBUG - Sending CCCD write request for handle HEARING_AID: 122b000100 2025-10-15 20:16:29,188 - DEBUG - Sent PDU: 122b000100 2025-10-15 20:16:29,215 - DEBUG - Received PDU: 13 2025-10-15 20:16:29,215 - DEBUG - Response received: 2025-10-15 20:16:29,216 - DEBUG - CCCD write response received for handle HEARING_AID 2025-10-15 20:16:29,216 - INFO - Enabled notifications for handle HEARING_AID 2025-10-15 20:16:29,216 - DEBUG - Registered listener for handle 42 2025-10-15 20:16:29,216 - DEBUG - Sending read request for handle HEARING_AID: 0a2a00 2025-10-15 20:16:29,219 - DEBUG - Sent PDU: 0a2a00 2025-10-15 20:16:29,247 - DEBUG - Received PDU: 010a2a000e 2025-10-15 20:16:29,247 - DEBUG - Response received: 0a2a000e 2025-10-15 20:16:29,247 - DEBUG - Read response for handle HEARING_AID: 0a2a000e 2025-10-15 20:16:29,247 - DEBUG - Parsing hearing aid settings from data: 0a2a000e 2025-10-15 20:16:29,247 - WARNING - Data too short for parsing 2025-10-15 20:16:31,535 - DEBUG - UI value changed, starting debounce 2025-10-15 20:16:31,631 - INFO - Sending settings from UI 2025-10-15 20:16:31,631 - DEBUG - HearingAidSettings created: amp=0.5, balance=0.5, tone=0.5, anr=0.0, conv=True 2025-10-15 20:16:31,632 - INFO - Sending hearing aid settings 2025-10-15 20:16:31,632 - DEBUG - Sending read request for handle HEARING_AID: 0a2a00 2025-10-15 20:16:31,632 - DEBUG - Sent PDU: 0a2a00 2025-10-15 20:16:31,694 - DEBUG - Received PDU: 010a2a000e 2025-10-15 20:16:31,695 - DEBUG - Response received: 0a2a000e 2025-10-15 20:16:31,696 - DEBUG - Read response for handle HEARING_AID: 0a2a000e 2025-10-15 20:16:31,696 - ERROR - Read data too short for sending settings 2025-10-15 20:16:32,360 - DEBUG - UI value changed, starting debounce 2025-10-15 20:16:32,368 - DEBUG - UI value changed, starting debounce 2025-10-15 20:16:32,373 - DEBUG - UI value changed, starting debounce 2025-10-15 20:16:32,383 - DEBUG - UI value changed, starting debounce 2025-10-15 20:16:32,401 - DEBUG - UI value changed, starting debounce 2025-10-15 20:16:32,403 - DEBUG - UI value changed, starting debounce 2025-10-15 20:16:32,405 - DEBUG - UI value changed, starting debounce 2025-10-15 20:16:32,408 - DEBUG - UI value changed, starting debounce 2025-10-15 20:16:32,410 - DEBUG - UI value changed, starting debounce 2025-10-15 20:16:32,411 - DEBUG - UI value changed, starting debounce 2025-10-15 20:16:32,421 - DEBUG - UI value changed, starting debounce 2025-10-15 20:16:32,422 - DEBUG - UI value changed, starting debounce 2025-10-15 20:16:32,431 - DEBUG - UI value changed, starting debounce 2025-10-15 20:16:32,433 - DEBUG - UI value changed, starting debounce 2025-10-15 20:16:32,528 - INFO - Sending settings from UI 2025-10-15 20:16:32,529 - DEBUG - HearingAidSettings created: amp=1.0, balance=0.5, tone=0.5, anr=0.0, conv=True 2025-10-15 20:16:32,530 - INFO - Sending hearing aid settings 2025-10-15 20:16:32,530 - DEBUG - Sending read request for handle HEARING_AID: 0a2a00 2025-10-15 20:16:32,531 - DEBUG - Sent PDU: 0a2a00 2025-10-15 20:16:32,584 - DEBUG - Received PDU: 010a2a000e 2025-10-15 20:16:32,587 - DEBUG - Response received: 0a2a000e 2025-10-15 20:16:32,587 - DEBUG - Read response for handle HEARING_AID: 0a2a000e 2025-10-15 20:16:32,588 - ERROR - Read data too short for sending settings ... debounce 2025-10-15 20:17:34,191 - DEBUG - UI value changed, starting debounce 2025-10-15 20:17:34,297 - INFO - Sending settings from UI 2025-10-15 20:17:34,298 - DEBUG - HearingAidSettings created: amp=1.0, balance=1.0, tone=1.0, anr=1.0, conv=True 2025-10-15 20:17:34,298 - INFO - Sending hearing aid settings 2025-10-15 20:17:34,299 - DEBUG - Sending read request for handle HEARING_AID: 0a2a00 2025-10-15 20:17:34,299 - DEBUG - Sent PDU: 0a2a00 2025-10-15 20:17:35,203 - DEBUG - Received PDU: 010a2a000e 2025-10-15 20:17:35,205 - DEBUG - Response received: 0a2a000e 2025-10-15 20:17:35,205 - DEBUG - Read response for handle HEARING_AID: 0a2a000e 2025-10-15 20:17:35,205 - ERROR - Read data too short for sending settings ```
Author
Owner

@kavishdevar commented on GitHub (Oct 15, 2025):

@ressiwage sorry, forgot to mention- you need to restart the bluetooth service with sudo systemctl restart bluetooth, and then probably re-pair your AirPods because they cache this information and do not check for it every connection.

<!-- gh-comment-id:3408146099 --> @kavishdevar commented on GitHub (Oct 15, 2025): @ressiwage sorry, forgot to mention- you need to restart the bluetooth service with `sudo systemctl restart bluetooth`, and then probably re-pair your AirPods because they cache this information and do not check for it every connection.
Author
Owner

@ressiwage commented on GitHub (Oct 15, 2025):

@kavishdevar now the output is different, but sadly no changes. the app initializes with 0.00 values every time, which can indicate that settings are not saved

python3 hearing-aid-adjustments.py 38:C4:3A:26:11:CE
2025-10-15 20:38:11,537 - INFO - Starting app with MAC: 38:C4:3A:26:11:CE
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
2025-10-15 20:38:11,604 - INFO - ATTManager initialized for MAC: 38:C4:3A:26:11:CE
2025-10-15 20:38:11,605 - INFO - HearingAidApp initialized
2025-10-15 20:38:11,605 - DEBUG - Initializing UI
2025-10-15 20:38:11,650 - DEBUG - UI initialized
2025-10-15 20:38:11,650 - INFO - Connecting to ATT in UI
2025-10-15 20:38:11,651 - INFO - Attempting to connect to ATT socket
2025-10-15 20:38:11,767 - INFO - Starting notification listener thread
2025-10-15 20:38:11,768 - INFO - Connected to ATT socket
2025-10-15 20:38:11,768 - DEBUG - Sending CCCD write request for handle HEARING_AID: 122b000100
2025-10-15 20:38:11,769 - DEBUG - Sent PDU: 122b000100
2025-10-15 20:38:11,780 - DEBUG - Received PDU: 13
2025-10-15 20:38:11,781 - DEBUG - Response received: 
2025-10-15 20:38:11,782 - DEBUG - CCCD write response received for handle HEARING_AID
2025-10-15 20:38:11,782 - INFO - Enabled notifications for handle HEARING_AID
2025-10-15 20:38:11,782 - DEBUG - Registered listener for handle 42
2025-10-15 20:38:11,782 - DEBUG - Sending read request for handle HEARING_AID: 0a2a00
2025-10-15 20:38:11,782 - DEBUG - Sent PDU: 0a2a00
2025-10-15 20:38:11,820 - DEBUG - Received PDU: 0b020060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f
2025-10-15 20:38:11,821 - DEBUG - Response received: 020060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f
2025-10-15 20:38:11,823 - DEBUG - Read response for handle HEARING_AID: 020060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f
2025-10-15 20:38:11,823 - DEBUG - Parsing hearing aid settings from data: 020060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f
2025-10-15 20:38:11,823 - INFO - Parsing hearing aid settings, starting read at offset 4, value: 00
2025-10-15 20:38:11,824 - DEBUG - HearingAidSettings created: amp=0.0, balance=0.0, tone=0.0, anr=0.0, conv=False
2025-10-15 20:38:11,824 - INFO - Parsed settings: amp=0.0, balance=0.0
2025-10-15 20:38:11,824 - DEBUG - Updating UI with settings
2025-10-15 20:38:11,824 - DEBUG - UI value changed, starting debounce
2025-10-15 20:38:11,824 - DEBUG - UI value changed, starting debounce
2025-10-15 20:38:11,824 - DEBUG - UI value changed, starting debounce
2025-10-15 20:38:11,825 - DEBUG - UI value changed, starting debounce
2025-10-15 20:38:11,825 - DEBUG - UI value changed, starting debounce
...
2025-10-15 20:39:30,355 - DEBUG - UI value changed, starting debounce
2025-10-15 20:39:30,355 - INFO - Initial settings loaded
2025-10-15 20:39:30,451 - INFO - Sending settings from UI
2025-10-15 20:39:30,451 - DEBUG - HearingAidSettings created: amp=0.0, balance=0.0, tone=0.0, anr=0.0, conv=False
2025-10-15 20:39:30,453 - INFO - Sending hearing aid settings
2025-10-15 20:39:30,453 - DEBUG - Sending read request for handle HEARING_AID: 0a2a00
2025-10-15 20:39:30,454 - DEBUG - Sent PDU: 0a2a00
2025-10-15 20:39:30,481 - DEBUG - Received PDU: 0b020060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f
2025-10-15 20:39:30,482 - DEBUG - Response received: 020060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f
2025-10-15 20:39:30,482 - DEBUG - Read response for handle HEARING_AID: 020060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f
2025-10-15 20:39:30,483 - DEBUG - Sending write request for handle HEARING_AID: 122a00020064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f
2025-10-15 20:39:30,483 - DEBUG - Sent PDU: 122a00020064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f
2025-10-15 20:39:30,512 - DEBUG - Received PDU: 13
2025-10-15 20:39:30,513 - DEBUG - Response received: 
2025-10-15 20:39:30,513 - DEBUG - Write response received for handle HEARING_AID
2025-10-15 20:39:30,513 - INFO - Hearing aid settings sent

<!-- gh-comment-id:3408201605 --> @ressiwage commented on GitHub (Oct 15, 2025): @kavishdevar now the output is different, but sadly no changes. the app initializes with 0.00 values every time, which can indicate that settings are not saved ``` python3 hearing-aid-adjustments.py 38:C4:3A:26:11:CE 2025-10-15 20:38:11,537 - INFO - Starting app with MAC: 38:C4:3A:26:11:CE Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. 2025-10-15 20:38:11,604 - INFO - ATTManager initialized for MAC: 38:C4:3A:26:11:CE 2025-10-15 20:38:11,605 - INFO - HearingAidApp initialized 2025-10-15 20:38:11,605 - DEBUG - Initializing UI 2025-10-15 20:38:11,650 - DEBUG - UI initialized 2025-10-15 20:38:11,650 - INFO - Connecting to ATT in UI 2025-10-15 20:38:11,651 - INFO - Attempting to connect to ATT socket 2025-10-15 20:38:11,767 - INFO - Starting notification listener thread 2025-10-15 20:38:11,768 - INFO - Connected to ATT socket 2025-10-15 20:38:11,768 - DEBUG - Sending CCCD write request for handle HEARING_AID: 122b000100 2025-10-15 20:38:11,769 - DEBUG - Sent PDU: 122b000100 2025-10-15 20:38:11,780 - DEBUG - Received PDU: 13 2025-10-15 20:38:11,781 - DEBUG - Response received: 2025-10-15 20:38:11,782 - DEBUG - CCCD write response received for handle HEARING_AID 2025-10-15 20:38:11,782 - INFO - Enabled notifications for handle HEARING_AID 2025-10-15 20:38:11,782 - DEBUG - Registered listener for handle 42 2025-10-15 20:38:11,782 - DEBUG - Sending read request for handle HEARING_AID: 0a2a00 2025-10-15 20:38:11,782 - DEBUG - Sent PDU: 0a2a00 2025-10-15 20:38:11,820 - DEBUG - Received PDU: 0b020060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f 2025-10-15 20:38:11,821 - DEBUG - Response received: 020060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f 2025-10-15 20:38:11,823 - DEBUG - Read response for handle HEARING_AID: 020060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f 2025-10-15 20:38:11,823 - DEBUG - Parsing hearing aid settings from data: 020060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f 2025-10-15 20:38:11,823 - INFO - Parsing hearing aid settings, starting read at offset 4, value: 00 2025-10-15 20:38:11,824 - DEBUG - HearingAidSettings created: amp=0.0, balance=0.0, tone=0.0, anr=0.0, conv=False 2025-10-15 20:38:11,824 - INFO - Parsed settings: amp=0.0, balance=0.0 2025-10-15 20:38:11,824 - DEBUG - Updating UI with settings 2025-10-15 20:38:11,824 - DEBUG - UI value changed, starting debounce 2025-10-15 20:38:11,824 - DEBUG - UI value changed, starting debounce 2025-10-15 20:38:11,824 - DEBUG - UI value changed, starting debounce 2025-10-15 20:38:11,825 - DEBUG - UI value changed, starting debounce 2025-10-15 20:38:11,825 - DEBUG - UI value changed, starting debounce ... 2025-10-15 20:39:30,355 - DEBUG - UI value changed, starting debounce 2025-10-15 20:39:30,355 - INFO - Initial settings loaded 2025-10-15 20:39:30,451 - INFO - Sending settings from UI 2025-10-15 20:39:30,451 - DEBUG - HearingAidSettings created: amp=0.0, balance=0.0, tone=0.0, anr=0.0, conv=False 2025-10-15 20:39:30,453 - INFO - Sending hearing aid settings 2025-10-15 20:39:30,453 - DEBUG - Sending read request for handle HEARING_AID: 0a2a00 2025-10-15 20:39:30,454 - DEBUG - Sent PDU: 0a2a00 2025-10-15 20:39:30,481 - DEBUG - Received PDU: 0b020060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f 2025-10-15 20:39:30,482 - DEBUG - Response received: 020060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f 2025-10-15 20:39:30,482 - DEBUG - Read response for handle HEARING_AID: 020060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f 2025-10-15 20:39:30,483 - DEBUG - Sending write request for handle HEARING_AID: 122a00020064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f 2025-10-15 20:39:30,483 - DEBUG - Sent PDU: 122a00020064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f 2025-10-15 20:39:30,512 - DEBUG - Received PDU: 13 2025-10-15 20:39:30,513 - DEBUG - Response received: 2025-10-15 20:39:30,513 - DEBUG - Write response received for handle HEARING_AID 2025-10-15 20:39:30,513 - INFO - Hearing aid settings sent ```
Author
Owner

@kavishdevar commented on GitHub (Oct 15, 2025):

Could you please try setting some random values for each, amplification, balance etc. and see what it sends? Not sure why it's sending everything set to zero. For me, I reset the value to all zeroes, and then restarted the script and changed a frequency and it seems to be sending the correct data.

<!-- gh-comment-id:3408214221 --> @kavishdevar commented on GitHub (Oct 15, 2025): Could you please try setting some random values for each, amplification, balance etc. and see what it sends? Not sure why it's sending everything set to zero. For me, I reset the value to all zeroes, and then restarted the script and changed a frequency and it seems to be sending the correct data.
Author
Owner

@kavishdevar commented on GitHub (Oct 16, 2025):

closed by #230

<!-- gh-comment-id:3409417134 --> @kavishdevar commented on GitHub (Oct 16, 2025): closed by #230
Author
Owner

@leotor13 commented on GitHub (Oct 26, 2025):

Also having the issue that entering any values return data being too short unfortunatly. Tried setting them all to 0 and also resetting bluetooth adapter and unpairing airpods.

ERROR - Read data too short for sending settings

<!-- gh-comment-id:3448067205 --> @leotor13 commented on GitHub (Oct 26, 2025): Also having the issue that entering any values return data being too short unfortunatly. Tried setting them all to 0 and also resetting bluetooth adapter and unpairing airpods. ERROR - Read data too short for sending settings
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librepods#104
No description provided.