30 lines
		
	
	
	
		
			402 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
		
		
			
		
	
	
			30 lines
		
	
	
	
		
			402 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| 
								 | 
							
								---
							 | 
						||
| 
								 | 
							
								tags:
							 | 
						||
| 
								 | 
							
								  - Linux
							 | 
						||
| 
								 | 
							
								  - networking
							 | 
						||
| 
								 | 
							
								---
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# Bluetooth 
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								## Connect to devices with `bluetoothctl`
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								```bash
							 | 
						||
| 
								 | 
							
								# Start bluetooth first
							 | 
						||
| 
								 | 
							
								bluetoothctl power on
							 | 
						||
| 
								 | 
							
								```
							 | 
						||
| 
								 | 
							
								Then: 
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								```bash
							 | 
						||
| 
								 | 
							
								# Launch bluetoothctl 
							 | 
						||
| 
								 | 
							
								bluetoothctl
							 | 
						||
| 
								 | 
							
								```
							 | 
						||
| 
								 | 
							
								This initiates `[bluetooth] #` prompt. Then follow this sequence: 
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								```bash
							 | 
						||
| 
								 | 
							
								[bluetooth]# agent on
							 | 
						||
| 
								 | 
							
								[bluetooth]# default-agent
							 | 
						||
| 
								 | 
							
								[bluetooth]# scan on
							 | 
						||
| 
								 | 
							
								pair [device_code]
							 | 
						||
| 
								 | 
							
								connect [device_code]
							 | 
						||
| 
								 | 
							
								```
							 |