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