Skip to content

Sony WH-1000XM4 Test2 cotninued #6

@maniacx

Description

@maniacx

Hello @Int-Circuit

Let’s continue our discussion and testing here.
It seems that socket communication is now working.

I think it is better to use a test script instead of the GNOME extension to solve socket communication issues.
The reason is that it is easier and safer to test the script as extension if bug can crash gnome-shell.
Also, when we make changes to the script, we can relaunch it immediately without reinstalling or logging out and back in, like with the extension.

Step 1: Disable Sony support in the extension preferences to avoid both the extension and the script trying to use the same RFCOMM port (which would cause a conflict).

Image

Step 2: Download and extract the repository from the sony branch.

https://github.com/maniacx/test-bluetooth-battery-meter

Step 3: Open the file main.js in a text editor and add your MAC address on line 29:

const devicePath = '/org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX';

Then save the file.

Step 5: Run the script

Launch the script using this command:

gjs-console -m ~/Downloads/test-bluetooth-battery-meter-sony/main.js

Step 5: You will see an application window. It shows the current status, mode controls, and a real-time log display.

Logs are also saved in the folder named logs. You can compress (zip) them and upload them here for review.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions