newAM / idasen

Python API and CLI for the ikea IDÅSEN desk.
MIT License
119 stars 20 forks source link

Desk is not connected automatically on command execution #317

Closed Norbiox closed 11 months ago

Norbiox commented 1 year ago

Hi, Thank you for this awesome program! I use it for about a year and I really can't live without it. I've integrated it with dmenu and use without even thinking about it - it's just like signal about need to change position goes straight from my body to hands and hands are typing right keyboard shortcut without even engaging my consciousness. That leads my to my issue. From some of latest updates application does not automatically connect with my desk. I have to manually connect to desk via bluetooth after executing "idasen" command and only then position would be changed and laptop disconnected from desk afterwards. Without my interference program just hangs. It's really annoing. Do you have any idea what could be the source of this problem? I use Arco linux with bluez-utils-compat.

newAM commented 1 year ago

Unfortunately I don't know what could be causing this, bluetooth on Linux is still a bit of a mystery to me.

I'm running an up-to-date version of NixOS with bluez 5.66.

What does it show if you run with BLEAK_LOGGING=1 idasen ...?

Norbiox commented 1 year ago
norbert@precel:~$ BLEAK_LOGGING=1 idasen stand
2023-07-28 09:37:49,374 bleak.backends.bluezdbus.client MainThread DEBUG: Connecting to device @ E5:67:DC:82:F1:3E
2023-07-28 09:37:49,383 bleak.backends.bluezdbus.manager MainThread DEBUG: initial properties: {'/org/bluez': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.AgentManager1': {}, 'org.bluez.ProfileManager1': {}}, '/org/bluez/hci0': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.Adapter1': {'Address': 'EC:63:D7:8D:8E:74', 'AddressType': 'public', 'Name': 'precel', 'Alias': 'precel', 'Class': 8126732, 'Powered': True, 'Discoverable': False, 'DiscoverableTimeout': 180, 'Pairable': True, 'PairableTimeout': 0, 'Discovering': False, 'UUIDs': ['00001133-0000-1000-8000-00805f9b34fb', '0000110e-0000-1000-8000-00805f9b34fb', '00001105-0000-1000-8000-00805f9b34fb', '00001132-0000-1000-8000-00805f9b34fb', '00001200-0000-1000-8000-00805f9b34fb', '00001104-0000-1000-8000-00805f9b34fb', '00005005-0000-1000-8000-0002ee000001', '00001108-0000-1000-8000-00805f9b34fb', '0000110c-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000112f-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000110b-0000-1000-8000-00805f9b34fb', '00001800-0000-1000-8000-00805f9b34fb', '0000111f-0000-1000-8000-00805f9b34fb', '0000110a-0000-1000-8000-00805f9b34fb', '00001106-0000-1000-8000-00805f9b34fb'], 'Modalias': 'usb:v1D6Bp0246d0544', 'Roles': ['central', 'peripheral']}, 'org.freedesktop.DBus.Properties': {}, 'org.bluez.GattManager1': {}, 'org.bluez.Media1': {'SupportedUUIDs': ['0000110a-0000-1000-8000-00805f9b34fb', '0000110b-0000-1000-8000-00805f9b34fb']}, 'org.bluez.NetworkServer1': {}, 'org.bluez.LEAdvertisingManager1': {'ActiveInstances': 0, 'SupportedInstances': 12, 'SupportedIncludes': ['tx-power', 'appearance', 'local-name'], 'SupportedSecondaryChannels': ['1M', '2M', 'Coded']}}, '/org/bluez/hci0/dev_AC_12_2F_D2_1B_84': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.Device1': {'Address': 'AC:12:2F:D2:1B:84', 'AddressType': 'public', 'Name': 'Soundcore Life Q35', 'Alias': 'Soundcore Life Q35', 'Class': 2360324, 'Icon': 'audio-headset', 'Paired': True, 'Bonded': True, 'Trusted': True, 'Blocked': False, 'LegacyPairing': False, 'Connected': True, 'UUIDs': ['00001101-0000-1000-8000-00805f9b34fb', '0000110b-0000-1000-8000-00805f9b34fb', '0000110c-0000-1000-8000-00805f9b34fb', '0000110d-0000-1000-8000-00805f9b34fb', '0000110e-0000-1000-8000-00805f9b34fb', '0000111e-0000-1000-8000-00805f9b34fb', '00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0128f5da-0000-1000-8000-00805f9b34fb', '66666666-6666-6666-6666-666666666666', '86868686-8686-8686-8686-868686868686'], 'Adapter': '/org/bluez/hci0', 'ManufacturerData': {4780: bytearray(b'/\xd2\x1b\x84\x00\x00')}, 'ServicesResolved': False}, 'org.freedesktop.DBus.Properties': {}, 'org.bluez.MediaControl1': {'Connected': True}}, '/org/bluez/hci0/dev_AC_12_2F_D2_1B_84/fd6': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.MediaTransport1': {'Device': '/org/bluez/hci0/dev_AC_12_2F_D2_1B_84', 'UUID': '0000110a-0000-1000-8000-00805f9b34fb', 'Codec': 255, 'Configuration': bytearray(b'-\x01\x00\x00\xaa\x00\x04\x01'), 'State': 'active', 'Delay': 1500, 'Volume': 64}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_AC_12_2F_D2_1B_84/sep6': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.MediaEndpoint1': {'UUID': '0000110b-0000-1000-8000-00805f9b34fb', 'Codec': 255, 'Capabilities': bytearray(b'-\x01\x00\x00\xaa\x004\x07'), 'Device': '/org/bluez/hci0/dev_AC_12_2F_D2_1B_84', 'DelayReporting': True}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_AC_12_2F_D2_1B_84/sep5': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.MediaEndpoint1': {'UUID': '0000110b-0000-1000-8000-00805f9b34fb', 'Codec': 2, 'Capabilities': bytearray(b'\x80\x01\x8c\x84\t\xb6'), 'Device': '/org/bluez/hci0/dev_AC_12_2F_D2_1B_84', 'DelayReporting': True}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_AC_12_2F_D2_1B_84/sep4': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.MediaEndpoint1': {'UUID': '0000110b-0000-1000-8000-00805f9b34fb', 'Codec': 0, 'Capabilities': bytearray(b'?\xf7\x024'), 'Device': '/org/bluez/hci0/dev_AC_12_2F_D2_1B_84', 'DelayReporting': True}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_B4_52_A9_BB_8D_08': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.Device1': {'Address': 'B4:52:A9:BB:8D:08', 'AddressType': 'public', 'Name': 'AnnePro2', 'Alias': 'AnnePro2', 'Appearance': 961, 'Icon': 'input-keyboard', 'Paired': True, 'Bonded': True, 'Trusted': True, 'Blocked': False, 'LegacyPairing': False, 'Connected': False, 'UUIDs': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '00001812-0000-1000-8000-00805f9b34fb', '00001813-0000-1000-8000-00805f9b34fb'], 'Modalias': 'bluetooth:v000DpF0E0d0110', 'Adapter': '/org/bluez/hci0', 'ServicesResolved': False}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E7_63_90_86_04_3E': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.Device1': {'Address': 'E7:63:90:86:04:3E', 'AddressType': 'random', 'Name': 'Expert Wireless TB', 'Alias': 'Expert Wireless TB', 'Appearance': 962, 'Icon': 'input-mouse', 'Paired': True, 'Bonded': True, 'Trusted': True, 'Blocked': False, 'LegacyPairing': False, 'Connected': False, 'UUIDs': ['00001530-1212-efde-1523-785feabcd123', '00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '00001812-0000-1000-8000-00805f9b34fb'], 'Modalias': 'bluetooth:v047Dp8019d0001', 'Adapter': '/org/bluez/hci0', 'ServicesResolved': False}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.Device1': {'Address': 'E5:67:DC:82:F1:3E', 'AddressType': 'random', 'Name': 'Desk 1758', 'Alias': 'Desk 1758', 'Paired': True, 'Bonded': True, 'Trusted': True, 'Blocked': False, 'LegacyPairing': False, 'Connected': False, 'UUIDs': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '99fa0001-338a-1024-8a49-009c0215f78a', '99fa0010-338a-1024-8a49-009c0215f78a', '99fa0020-338a-1024-8a49-009c0215f78a', '99fa0030-338a-1024-8a49-009c0215f78a'], 'Adapter': '/org/bluez/hci0', 'ServicesResolved': False}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0020': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattService1': {'UUID': '99fa0030-338a-1024-8a49-009c0215f78a', 'Device': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E', 'Primary': True, 'Includes': []}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0020/char0021': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattCharacteristic1': {'UUID': '99fa0031-338a-1024-8a49-009c0215f78a', 'Service': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0020', 'Value': bytearray(b''), 'Flags': ['write-without-response', 'write'], 'WriteAcquired': False}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0018': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattService1': {'UUID': '99fa0020-338a-1024-8a49-009c0215f78a', 'Device': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E', 'Primary': True, 'Includes': []}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0018/char001e': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattCharacteristic1': {'UUID': '99fa002a-338a-1024-8a49-009c0215f78a', 'Service': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0018', 'Value': bytearray(b''), 'Flags': ['read']}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0018/char001c': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattCharacteristic1': {'UUID': '99fa0029-338a-1024-8a49-009c0215f78a', 'Service': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0018', 'Value': bytearray(b''), 'Flags': ['read']}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0018/char0019': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattCharacteristic1': {'UUID': '99fa0021-338a-1024-8a49-009c0215f78a', 'Service': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0018', 'Value': bytearray(b'~\x11@\x15'), 'Notifying': False, 'Flags': ['read', 'notify'], 'NotifyAcquired': False}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0018/char0019/desc001b': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattDescriptor1': {'UUID': '00002902-0000-1000-8000-00805f9b34fb', 'Characteristic': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0018/char0019', 'Value': bytearray(b'')}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0014': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattService1': {'UUID': '99fa0010-338a-1024-8a49-009c0215f78a', 'Device': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E', 'Primary': True, 'Includes': []}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0014/char0015': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattCharacteristic1': {'UUID': '99fa0011-338a-1024-8a49-009c0215f78a', 'Service': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0014', 'Value': bytearray(b''), 'Notifying': False, 'Flags': ['read', 'write-without-response', 'write', 'notify'], 'WriteAcquired': False, 'NotifyAcquired': False}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0014/char0015/desc0017': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattDescriptor1': {'UUID': '00002902-0000-1000-8000-00805f9b34fb', 'Characteristic': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service0014/char0015', 'Value': bytearray(b'')}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service000e': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattService1': {'UUID': '99fa0001-338a-1024-8a49-009c0215f78a', 'Device': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E', 'Primary': True, 'Includes': []}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service000e/char0011': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattCharacteristic1': {'UUID': '99fa0003-338a-1024-8a49-009c0215f78a', 'Service': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service000e', 'Value': bytearray(b''), 'Notifying': False, 'Flags': ['read', 'notify'], 'NotifyAcquired': False}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service000e/char0011/desc0013': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattDescriptor1': {'UUID': '00002902-0000-1000-8000-00805f9b34fb', 'Characteristic': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service000e/char0011', 'Value': bytearray(b'')}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service000e/char000f': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattCharacteristic1': {'UUID': '99fa0002-338a-1024-8a49-009c0215f78a', 'Service': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service000e', 'Value': bytearray(b''), 'Flags': ['write-without-response', 'write'], 'WriteAcquired': False}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service000a': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattService1': {'UUID': '00001801-0000-1000-8000-00805f9b34fb', 'Device': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E', 'Primary': True, 'Includes': []}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service000a/char000b': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattCharacteristic1': {'UUID': '00002a05-0000-1000-8000-00805f9b34fb', 'Service': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service000a', 'Value': bytearray(b''), 'Notifying': False, 'Flags': ['indicate']}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service000a/char000b/desc000d': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattDescriptor1': {'UUID': '00002902-0000-1000-8000-00805f9b34fb', 'Characteristic': '/org/bluez/hci0/dev_E5_67_DC_82_F1_3E/service000a/char000b', 'Value': bytearray(b'')}, 'org.freedesktop.DBus.Properties': {}}, '/org/bluez/hci0/dev_E8_EC_A3_0E_95_5E': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.Device1': {'Address': 'E8:EC:A3:0E:95:5E', 'AddressType': 'public', 'Name': 'Haylou-GT1_R', 'Alias': 'Haylou-GT1_R', 'Class': 2360344, 'Icon': 'audio-headphones', 'Paired': True, 'Bonded': True, 'Trusted': True, 'Blocked': False, 'LegacyPairing': False, 'Connected': False, 'UUIDs': ['00001108-0000-1000-8000-00805f9b34fb', '0000110b-0000-1000-8000-00805f9b34fb', '0000110c-0000-1000-8000-00805f9b34fb', '0000110d-0000-1000-8000-00805f9b34fb', '0000110e-0000-1000-8000-00805f9b34fb', '0000111e-0000-1000-8000-00805f9b34fb', '00001200-0000-1000-8000-00805f9b34fb'], 'Modalias': 'bluetooth:v005Dp223Bd0100', 'Adapter': '/org/bluez/hci0', 'ServicesResolved': False}, 'org.freedesktop.DBus.Properties': {}, 'org.bluez.MediaControl1': {'Connected': False}}, '/org/bluez/hci0/dev_9C_19_C2_7D_1F_C8': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.Device1': {'Address': '9C:19:C2:7D:1F:C8', 'AddressType': 'public', 'Name': 'Haylou GT1', 'Alias': 'Haylou GT1', 'Class': 2360344, 'Icon': 'audio-headphones', 'Paired': True, 'Bonded': True, 'Trusted': True, 'Blocked': False, 'LegacyPairing': False, 'Connected': False, 'UUIDs': ['00001101-0000-1000-8000-00805f9b34fb', '00001108-0000-1000-8000-00805f9b34fb', '0000110b-0000-1000-8000-00805f9b34fb', '0000110c-0000-1000-8000-00805f9b34fb', '0000110d-0000-1000-8000-00805f9b34fb', '0000110e-0000-1000-8000-00805f9b34fb', '0000111e-0000-1000-8000-00805f9b34fb', '00001200-0000-1000-8000-00805f9b34fb'], 'Modalias': 'bluetooth:v005Dp223Bd0100', 'Adapter': '/org/bluez/hci0', 'ServicesResolved': False}, 'org.freedesktop.DBus.Properties': {}, 'org.bluez.MediaControl1': {'Connected': False}}}
2023-07-28 09:37:49,398 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
2023-07-28 09:37:50,282 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded (/): ['/org/bluez/hci0/dev_8C_EA_48_67_0B_83', {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.Device1': {'Address': <dbus_fast.signature.Variant ('s', 8C:EA:48:67:0B:83)>, 'AddressType': <dbus_fast.signature.Variant ('s', public)>, 'Alias': <dbus_fast.signature.Variant ('s', 8C-EA-48-67-0B-83)>, 'Paired': <dbus_fast.signature.Variant ('b', False)>, 'Bonded': <dbus_fast.signature.Variant ('b', False)>, 'Trusted': <dbus_fast.signature.Variant ('b', False)>, 'Blocked': <dbus_fast.signature.Variant ('b', False)>, 'LegacyPairing': <dbus_fast.signature.Variant ('b', False)>, 'RSSI': <dbus_fast.signature.Variant ('n', -94)>, 'Connected': <dbus_fast.signature.Variant ('b', False)>, 'UUIDs': <dbus_fast.signature.Variant ('as', [])>, 'Adapter': <dbus_fast.signature.Variant ('o', /org/bluez/hci0)>, 'ManufacturerData': <dbus_fast.signature.Variant ('a{qv}', {117: <dbus_fast.signature.Variant ('ay', bytearray(b'B\x04\x01\x80f\x8c\xeaHg\x0b\x83\x8e\xeaHg\x0b\x82\x01G\xeb\x00\x00\x00\x00'))>})>, 'ServicesResolved': <dbus_fast.signature.Variant ('b', False)>}, 'org.freedesktop.DBus.Properties': {}}]
2023-07-28 09:37:51,683 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0/dev_8C_EA_48_67_0B_83): ['org.bluez.Device1', {'RSSI': <dbus_fast.signature.Variant ('n', -97)>}, []]
2023-07-28 09:37:56,333 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0/dev_8C_EA_48_67_0B_83): ['org.bluez.Device1', {'RSSI': <dbus_fast.signature.Variant ('n', -95)>}, []]
2023-07-28 09:37:58,206 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0/dev_8C_EA_48_67_0B_83): ['org.bluez.Device1', {'RSSI': <dbus_fast.signature.Variant ('n', -93)>}, []]
2023-07-28 09:37:59,523 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0/dev_8C_EA_48_67_0B_83): ['org.bluez.Device1', {}, ['RSSI']]
2023-07-28 09:37:59,524 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesRemoved (/): ['/org/bluez/hci0/dev_8C_EA_48_67_0B_83', ['org.freedesktop.DBus.Properties', 'org.freedesktop.DBus.Introspectable', 'org.bluez.Device1']]
2023-07-28 09:37:59,524 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', False)>}, []]
2023-07-28 09:37:59,824 bleak.backends.bluezdbus.client MainThread DEBUG: Connecting to device @ E5:67:DC:82:F1:3E
2023-07-28 09:37:59,838 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
2023-07-28 09:38:09,851 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', False)>}, []]
2023-07-28 09:38:10,452 bleak.backends.bluezdbus.client MainThread DEBUG: Connecting to device @ E5:67:DC:82:F1:3E
2023-07-28 09:38:10,473 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
2023-07-28 09:38:16,489 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded (/): ['/org/bluez/hci0/dev_8C_EA_48_67_0B_83', {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.Device1': {'Address': <dbus_fast.signature.Variant ('s', 8C:EA:48:67:0B:83)>, 'AddressType': <dbus_fast.signature.Variant ('s', public)>, 'Alias': <dbus_fast.signature.Variant ('s', 8C-EA-48-67-0B-83)>, 'Paired': <dbus_fast.signature.Variant ('b', False)>, 'Bonded': <dbus_fast.signature.Variant ('b', False)>, 'Trusted': <dbus_fast.signature.Variant ('b', False)>, 'Blocked': <dbus_fast.signature.Variant ('b', False)>, 'LegacyPairing': <dbus_fast.signature.Variant ('b', False)>, 'RSSI': <dbus_fast.signature.Variant ('n', -92)>, 'Connected': <dbus_fast.signature.Variant ('b', False)>, 'UUIDs': <dbus_fast.signature.Variant ('as', [])>, 'Adapter': <dbus_fast.signature.Variant ('o', /org/bluez/hci0)>, 'ManufacturerData': <dbus_fast.signature.Variant ('a{qv}', {117: <dbus_fast.signature.Variant ('ay', bytearray(b'B\x04\x01\x80f\x8c\xeaHg\x0b\x83\x8e\xeaHg\x0b\x82\x01G\xeb\x00\x00\x00\x00'))>})>, 'ServicesResolved': <dbus_fast.signature.Variant ('b', False)>}, 'org.freedesktop.DBus.Properties': {}}]
2023-07-28 09:38:19,744 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0/dev_8C_EA_48_67_0B_83): ['org.bluez.Device1', {'RSSI': <dbus_fast.signature.Variant ('n', -92)>}, []]
2023-07-28 09:38:20,504 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0/dev_8C_EA_48_67_0B_83): ['org.bluez.Device1', {}, ['RSSI']]
2023-07-28 09:38:20,505 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesRemoved (/): ['/org/bluez/hci0/dev_8C_EA_48_67_0B_83', ['org.freedesktop.DBus.Properties', 'org.freedesktop.DBus.Introspectable', 'org.bluez.Device1']]
2023-07-28 09:38:20,505 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', False)>}, []]
2023-07-28 09:38:21,405 bleak.backends.bluezdbus.client MainThread DEBUG: Connecting to device @ E5:67:DC:82:F1:3E
2023-07-28 09:38:21,422 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
2023-07-28 09:38:25,618 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded (/): ['/org/bluez/hci0/dev_8C_EA_48_67_0B_83', {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.Device1': {'Address': <dbus_fast.signature.Variant ('s', 8C:EA:48:67:0B:83)>, 'AddressType': <dbus_fast.signature.Variant ('s', public)>, 'Alias': <dbus_fast.signature.Variant ('s', 8C-EA-48-67-0B-83)>, 'Paired': <dbus_fast.signature.Variant ('b', False)>, 'Bonded': <dbus_fast.signature.Variant ('b', False)>, 'Trusted': <dbus_fast.signature.Variant ('b', False)>, 'Blocked': <dbus_fast.signature.Variant ('b', False)>, 'LegacyPairing': <dbus_fast.signature.Variant ('b', False)>, 'RSSI': <dbus_fast.signature.Variant ('n', -93)>, 'Connected': <dbus_fast.signature.Variant ('b', False)>, 'UUIDs': <dbus_fast.signature.Variant ('as', [])>, 'Adapter': <dbus_fast.signature.Variant ('o', /org/bluez/hci0)>, 'ManufacturerData': <dbus_fast.signature.Variant ('a{qv}', {117: <dbus_fast.signature.Variant ('ay', bytearray(b'B\x04\x01\x80f\x8c\xeaHg\x0b\x83\x8e\xeaHg\x0b\x82\x01G\xeb\x00\x00\x00\x00'))>})>, 'ServicesResolved': <dbus_fast.signature.Variant ('b', False)>}, 'org.freedesktop.DBus.Properties': {}}]
2023-07-28 09:38:30,113 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0/dev_8C_EA_48_67_0B_83): ['org.bluez.Device1', {'RSSI': <dbus_fast.signature.Variant ('n', -93)>}, []]
2023-07-28 09:38:31,456 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0/dev_8C_EA_48_67_0B_83): ['org.bluez.Device1', {}, ['RSSI']]
2023-07-28 09:38:31,456 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesRemoved (/): ['/org/bluez/hci0/dev_8C_EA_48_67_0B_83', ['org.freedesktop.DBus.Properties', 'org.freedesktop.DBus.Introspectable', 'org.bluez.Device1']]
2023-07-28 09:38:31,456 bleak.backends.bluezdbus.manager MainThread DEBUG: received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', False)>}, []]
CRITICAL idasen [E5:67:DC:82:F1:3E] Connection failed
tommy-gilligan commented 1 year ago

i think i'm seeing the same issue on macos

% BLEAK_LOGGING=1 idasen height
2023-09-04 13:06:54,766 bleak.backends.corebluetooth.CentralManagerDelegate Dummy-1 DEBUG: centralManagerDidUpdateState_
2023-09-04 13:06:54,767 bleak.backends.corebluetooth.CentralManagerDelegate Dummy-1 DEBUG: Bluetooth powered on
2023-09-04 13:06:54,767 bleak.backends.corebluetooth.CentralManagerDelegate MainThread DEBUG: 'isScanning' changed
2023-09-04 13:06:54,828 bleak.backends.corebluetooth.CentralManagerDelegate Dummy-1 DEBUG: centralManager_didDiscoverPeripheral_advertisementData_RSSI_
2023-09-04 13:06:54,829 bleak.backends.corebluetooth.CentralManagerDelegate MainThread DEBUG: Discovered device D9F5C393-E014-5A2B-B16F-17883801C32E: Desk 1891 @ RSSI: -69 (kCBAdvData <nsdict_keys(['kCBAdvDataTimestamp', 'kCBAdvDataRxPrimaryPHY', 'kCBAdvDataRxSecondaryPHY', 'kCBAdvDataTxPowerLevel', 'kCBAdvDataIsConnectable'])>) and Central: <CBCentralManager: 0x600001d8c000>
2023-09-04 13:06:54,829 bleak.backends.corebluetooth.CentralManagerDelegate Dummy-1 DEBUG: centralManager_didDiscoverPeripheral_advertisementData_RSSI_
2023-09-04 13:06:54,829 bleak.backends.corebluetooth.CentralManagerDelegate MainThread DEBUG: 'isScanning' changed
2023-09-04 13:06:54,829 bleak.backends.corebluetooth.client MainThread DEBUG: CentralManagerDelegate  at <CentralManagerDelegate: 0x124f95e00>
2023-09-04 13:06:54,829 bleak.backends.corebluetooth.client MainThread DEBUG: Connecting to BLE device @ D9F5C393-E014-5A2B-B16F-17883801C32E
2023-09-04 13:06:54,830 bleak.backends.corebluetooth.CentralManagerDelegate MainThread DEBUG: Discovered device D9F5C393-E014-5A2B-B16F-17883801C32E: Desk 1891 @ RSSI: -68 (kCBAdvData <nsdict_keys(['kCBAdvDataLocalName', 'kCBAdvDataTimestamp', 'kCBAdvDataRxPrimaryPHY', 'kCBAdvDataRxSecondaryPHY', 'kCBAdvDataTxPowerLevel', 'kCBAdvDataIsConnectable'])>) and Central: <CBCentralManager: 0x600001d8c000>
2023-09-04 13:07:04,831 bleak.backends.corebluetooth.CentralManagerDelegate MainThread DEBUG: Connection timed out after 10.0 seconds.
2023-09-04 13:07:04,832 bleak.backends.corebluetooth.CentralManagerDelegate Dummy-1 DEBUG: centralManager_didDisconnectPeripheral_error_
2023-09-04 13:07:04,833 bleak.backends.corebluetooth.CentralManagerDelegate MainThread DEBUG: Peripheral Device disconnected!
2023-09-04 13:07:05,135 bleak.backends.corebluetooth.client MainThread DEBUG: CentralManagerDelegate  at <CentralManagerDelegate: 0x124f95e00>
2023-09-04 13:07:05,135 bleak.backends.corebluetooth.client MainThread DEBUG: Connecting to BLE device @ D9F5C393-E014-5A2B-B16F-17883801C32E
2023-09-04 13:07:15,137 bleak.backends.corebluetooth.CentralManagerDelegate MainThread DEBUG: Connection timed out after 10.0 seconds.
2023-09-04 13:07:15,138 bleak.backends.corebluetooth.CentralManagerDelegate Dummy-2 DEBUG: centralManager_didDisconnectPeripheral_error_
2023-09-04 13:07:15,139 bleak.backends.corebluetooth.CentralManagerDelegate MainThread DEBUG: Peripheral Device disconnected!
2023-09-04 13:07:15,741 bleak.backends.corebluetooth.client MainThread DEBUG: CentralManagerDelegate  at <CentralManagerDelegate: 0x124f95e00>
2023-09-04 13:07:15,741 bleak.backends.corebluetooth.client MainThread DEBUG: Connecting to BLE device @ D9F5C393-E014-5A2B-B16F-17883801C32E
2023-09-04 13:07:25,743 bleak.backends.corebluetooth.CentralManagerDelegate MainThread DEBUG: Connection timed out after 10.0 seconds.
2023-09-04 13:07:25,744 bleak.backends.corebluetooth.CentralManagerDelegate Dummy-1 DEBUG: centralManager_didDisconnectPeripheral_error_
2023-09-04 13:07:25,744 bleak.backends.corebluetooth.CentralManagerDelegate MainThread DEBUG: Peripheral Device disconnected!
2023-09-04 13:07:26,646 bleak.backends.corebluetooth.client MainThread DEBUG: CentralManagerDelegate  at <CentralManagerDelegate: 0x124f95e00>
2023-09-04 13:07:26,646 bleak.backends.corebluetooth.client MainThread DEBUG: Connecting to BLE device @ D9F5C393-E014-5A2B-B16F-17883801C32E
2023-09-04 13:07:36,648 bleak.backends.corebluetooth.CentralManagerDelegate MainThread DEBUG: Connection timed out after 10.0 seconds.
2023-09-04 13:07:36,650 bleak.backends.corebluetooth.CentralManagerDelegate Dummy-2 DEBUG: centralManager_didDisconnectPeripheral_error_
2023-09-04 13:07:36,650 bleak.backends.corebluetooth.CentralManagerDelegate MainThread DEBUG: Peripheral Device disconnected!
CRITICAL idasen [D9F5C393-E014-5A2B-B16F-17883801C32E] Connection failed
tommy-gilligan commented 1 year ago

i just needed to pair >.< on macos this is maybe less obvious because the desk does not appear in the list of discoverable devices in macos bluetooth settings. an exta tool is needed to pair. this worked for me https://github.com/jnross/Bluetility

newAM commented 1 year ago

i just needed to pair >.< on macos this is maybe less obvious because the desk does not appear in the list of discoverable devices in macos bluetooth settings. an exta tool is needed to pair. this worked for me https://github.com/jnross/Bluetility

That's good to know! Someone did recently add a pair command to the CLI (>=0.10.0)

Norbiox commented 11 months ago

Just wanted to announce that this issue is no more valid for me. After system update everything works as it should. (Bluez 5.69-1)

newAM commented 11 months ago

Thanks for the update!

I'm going to close to issue then, but feel free to re-open!