**** BEGIN LOGGING AT Fri Apr 23 02:59:56 2021 Apr 23 09:13:29 sunshavi: 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? Apr 23 15:58:33 brolin_empey: I ended used this one: systemctl list-units -t device | grep hci0 Apr 23 17:57:44 sunshavi: OK. Is systemctl part of systemd? Apr 23 17:58:14 Yes. It is Apr 23 18:00:58 OK, I thought so. I am not very familiar with systemd so did not think of using it. Apr 23 18:05:25 bt-adapter is part of bluez-tools Apr 23 18:05:37 But bt-adapter core dumps when no bluetooth dongle is present Apr 23 18:06:23 I needed a different and simple way of detecting if bluetooth dongle is present at boot time. Apr 23 18:26:50 OK. Apr 23 18:43:42 sunshavi: how about lsusb? Apr 23 18:43:45 or hciconfig ? Apr 23 18:52:16 KotCzarny: hciconfig is not present on mainline :( Apr 23 18:52:30 are you sure? Apr 23 18:53:16 KotCzarny: lsusb I tried it by I could have different manufacturers for the bluetooth dongle. Apr 23 18:53:47 hciconfig is part of bluez package Apr 23 18:54:06 at least on devuan ascii Apr 23 18:54:23 not so sure. But at the moment on archlinux-arm with mainline no hciconfig Apr 23 18:54:46 is there some equivalent of 'apt-file search' in archlinux? Apr 23 18:55:28 pacman -Qs perhaps Apr 23 18:55:43 https://termbin.com/n7fo Apr 23 18:56:12 https://old.reddit.com/r/archlinux/comments/5x9yle/where_has_hciconfig_gone/ Apr 23 18:56:19 heh Apr 23 18:56:54 if you dont mind installing bluez-utils-compat, you should be able to see any hciX device present Apr 23 18:57:23 pacman -Qs bluez Apr 23 18:59:09 https://termbin.com/l82d Apr 23 18:59:59 bluez-utils-compat. It would need to be compiled manually or with yaourt. No package is available by default. But It could do the job Apr 23 19:00:35 i suspect grepping dmesg or checking for files somewhere in /sys could do the job too Apr 23 19:01:24 Yes. But having and uptime of months on opi+2e could affect it? Apr 23 19:01:35 affect what? Apr 23 19:01:44 i must have missed original question/problem Apr 23 19:02:17 I was usig at boottime bt-adapter -l for detecting if bluetooth dongle is present Apr 23 19:02:34 something along the lines: Feb 20 15:00:24 hostname bluetoothd[4568]: HCI dev 0 registered Apr 23 19:02:55 or btmgmt info Apr 23 19:02:56 But on my compaq n600c machine. It took 30s when booting for showing a "core dump" message Apr 23 19:03:34 you can disable bt service Apr 23 19:03:38 then run it manually Apr 23 19:03:42 You are right about 'btmgmt info' Apr 23 19:04:33 when bt dongle is present It should connect to a bt-NAP server present in the room :) Apr 23 19:04:51 I think btmgmt info is the 'one' Apr 23 19:05:04 tbh i grabbed that command from: https://wiki.archlinux.org/index.php/bluetooth Apr 23 19:05:20 you should really read docs :) Apr 23 19:05:25 I just need to check if it core dumps when bt dongle is not present and It should be ok Apr 23 19:05:29 archlinux has quite a nice documentation Apr 23 19:06:17 Yes. You are right. I missed that. my fault Apr 23 19:06:46 thx. I am going to check if it works in a few minutes Apr 23 19:20:48 It worked. for detecting when bluetooth dongle is not present "btmgmt info | grep '0 items'" Apr 23 19:37:27 it will fail with 10 items etc Apr 23 19:37:28 :) Apr 23 19:37:42 unlikely situation but.. Apr 23 19:42:49 :) Apr 23 19:43:57 I just have nine usb-ports ;) Apr 23 19:44:07 usb hubs exist Apr 23 19:44:53 I have two usb-hubs. That's the reason I have nine usb-ports on opi+2e Apr 23 19:45:14 :) **** ENDING LOGGING AT Sat Apr 24 03:00:29 2021