libera/#maemo/ Friday, 2021-04-23

sunshavioff topic.00:52
sunshaviany alternative for knowing if a bluetooth dongle is00:52
sunshavi            connected?. bt-adapter -l takes a lot of time (30s) on my machine00:52
sunshavi            for a "core dump" when no bluetooth dongle is connected00:52
sunshavisicelo: https://termbin.com/uyz102:37
siceloThanks. I also had in mind to write him03:45
brolin_empeysunshavi: Can you use lsusb or lspci or similar for the bus used to connect the Bluetooth controller to check if the Bluetooth controller is present?10:13
sunshavibrolin_empey: I ended used this one: systemctl list-units -t device | grep hci016:58
brolin_empeysunshavi: OK.  Is systemctl part of systemd?18:57
sunshaviYes. It is18:58
brolin_empeyOK, I thought so.  I am not very familiar with systemd so did not think of using it.19:00
sunshavibt-adapter is part of bluez-tools19:05
sunshaviBut bt-adapter core dumps when no bluetooth dongle is present19:05
sunshaviI needed a different and simple way of detecting if bluetooth dongle is present at boot time.19:06
brolin_empeyOK.19:26
KotCzarnysunshavi: how about lsusb?19:43
KotCzarnyor hciconfig ?19:43
sunshaviKotCzarny: hciconfig is not present on mainline :(19:52
KotCzarnyare you sure?19:52
sunshaviKotCzarny: lsusb I tried it by I could have different manufacturers for the bluetooth dongle.19:53
KotCzarnyhciconfig is part of bluez package19:53
KotCzarnyat least on devuan ascii19:54
sunshavinot so sure. But at the moment on archlinux-arm with mainline no hciconfig19:54
KotCzarnyis there some equivalent of 'apt-file search' in archlinux?19:54
sunshavipacman -Qs perhaps19:55
sunshavihttps://termbin.com/n7fo19:55
KotCzarnyhttps://old.reddit.com/r/archlinux/comments/5x9yle/where_has_hciconfig_gone/19:56
KotCzarnyheh19:56
KotCzarnyif you dont mind installing bluez-utils-compat, you should be able to see any hciX device present19:56
sunshavipacman -Qs bluez19:57
sunshavihttps://termbin.com/l82d19:59
sunshavibluez-utils-compat. It would need to be compiled manually or with yaourt. No package is available by default. But It could do the job19:59
KotCzarnyi suspect grepping dmesg or checking for files somewhere in /sys could do the job too20:00
sunshaviYes. But having and uptime of months on opi+2e could affect it?20:01
KotCzarnyaffect what?20:01
KotCzarnyi must have missed original question/problem20:01
sunshaviI was usig at boottime bt-adapter -l for detecting if bluetooth dongle is present20:02
KotCzarnysomething along the lines: Feb 20 15:00:24 hostname bluetoothd[4568]: HCI dev 0 registered20:02
KotCzarnyor btmgmt info20:02
sunshaviBut on my compaq n600c machine. It took 30s when booting for showing a "core dump" message20:02
KotCzarnyyou can disable bt service20:03
KotCzarnythen run it manually20:03
sunshaviYou are right about 'btmgmt info'20:03
sunshaviwhen bt dongle is present It should  connect to a bt-NAP server present in the room :)20:04
sunshaviI think btmgmt info is the 'one'20:04
KotCzarnytbh i grabbed that command from: https://wiki.archlinux.org/index.php/bluetooth20:05
KotCzarnyyou should really read docs :)20:05
sunshaviI just need to check if it core dumps when bt dongle is not present and It should be ok20:05
KotCzarnyarchlinux has quite a nice documentation20:05
sunshaviYes. You are right. I missed that. my fault20:06
sunshavithx. I am going to check if it works in a few minutes20:06
sunshaviIt worked. for detecting when bluetooth dongle is not present "btmgmt info | grep '0 items'"20:20
KotCzarnyit will fail with 10 items etc20:37
KotCzarny:)20:37
KotCzarnyunlikely situation but..20:37
sunshavi:)20:42
sunshaviI just have nine usb-ports ;)20:43
KotCzarnyusb hubs exist20:44
sunshaviI have two usb-hubs. That's the reason I have nine usb-ports on opi+2e20:44
KotCzarny:)20:45

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!