Skip to content

Bluetooth state reset after wake #477

@newor0599

Description

@newor0599

System Information

Ignis 0.5.1
Branch: 
Commit: 50bea7b144329b3ef07ad336cfff1880a4e2855a (version: bump to 0.5.1)
Current desktop: mango

os-release:
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo

Description

After system wake up, all Bluetooth device connected value is set to False

How to reproduce

from ignis.services.bluetooth import BluetoothService


def print_data(devices):
    for i in devices.devices:
        print(i.alias, i.connected)
    print("------------")


bt = BluetoothService.get_default()
bt.connect("notify::devices", lambda x, y: print_data(x))

Run this program, you can see some connected Bluetooth device.

Baseus F01B 5.0 True
------------

Now do systemctl sleep to make system sleep. After waking up, you'll see all previously connected Bluetooth device are now stated as not connected

Baseus F01B 5.0 False
------------

ignis reload will be required for Bluetooth service to return back to normal

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions