Information Technology Grimoire

Version .0.0.1

IT Notes from various projects because I forget, and hopefully they help you too.

bluetooth

Bluetooth Service

sudo systemctl status bluetooth
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service  

Bluetooth Drivers

lsmod | grep bluetooth
bluetooth             958464  29 btrtl,btmtk,btintel,btbcm,bnep,btusb
ecdh_generic           16384  2 bluetooth
rfkill                 36864  8 hp_wmi,iwlmvm,bluetooth,cfg80211
crc16                  16384  2 bluetooth,ext4

you could then run modinfo [somemodule]

bluetoothctl

bluetoothctl
Agent registered
[CHG] Controller AC:AC:AC:AC:AC:AC Pairable: yes
[bluetooth]# show
Controller AC:AC:AC:AC:AC:AC (public)
	Name: mybox
	Alias: mybox
	Class: 0x0000010c
	Powered: yes
	Discoverable: no
	DiscoverableTimeout: 0x000000b4
	Pairable: yes
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00605f9b34fc)
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00605f9b34fc)
	UUID: PnP Information           (00001200-0000-1000-8000-00605f9b34fc)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00605f9b34fc)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00605f9b34fc)
	UUID: Device Information        (0000180a-0000-1000-8000-00605f9b34fc)
	Modalias: usb:v1D6Bp0246d0514
	Discovering: no
	Roles: central
	Roles: peripheral
Advertising Features:
	ActiveInstances: 0x00 (0)
	SupportedInstances: 0x0c (12)
	SupportedIncludes: tx-power
	SupportedIncludes: appearance
	SupportedIncludes: local-name
	SupportedSecondaryChannels: 1M
	SupportedSecondaryChannels: 2M
	SupportedSecondaryChannels: Coded
[bluetooth]# list
Controller AC:AC:AC:AC:AC:AC mybox [default]
[bluetooth]# devices
[bluetooth]# exit

hciconfig

hciconfig -a
hci0:	Type: Primary  Bus: USB
	BD Address: AC:AC:AC:AC:AC:AC  ACL MTU: 1021:4  SCO MTU: 96:6
	UP RUNNING 
	RX bytes:20080 acl:0 sco:0 events:3189 errors:0
	TX bytes:785422 acl:0 sco:0 commands:3187 errors:0
	Features: 0xbf 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH SNIFF 
	Link mode: PERIPHERAL ACCEPT 
	Name: 'mybox'
	Class: 0x00010c
	Service Classes: Unspecified
	Device Class: Computer, Laptop
	HCI Version:  (0xc)  Revision: 0x356b
	LMP Version:  (0xc)  Subversion: 0x356b
	Manufacturer: Intel Corp. (2)

journalctl

journalctl -u bluetooth

btmgmt

btmgmt info
Index list with 1 item
hci0:	Primary controller
	addr AC:AC:AC:AC:AC:AC version 12 manufacturer 2 class 0x00010c
	supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising secure-conn debug-keys privacy configuration static-addr phy-configuration wide-band-speech 
	current settings: powered ssp br/edr le secure-conn 
	name victus
	short name 
hci0:	Configuration options
	supported options: public-address 
	missing options: