Disable buggy bluetooth driver before entering suspend
This commit is contained in:
		
							parent
							
								
									aa8513ba84
								
							
						
					
					
						commit
						7b3be0453a
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -210,6 +210,13 @@ configuresuspendsettingsandwakeupsources()
 | 
				
			||||||
		"1c19000.usb"
 | 
							"1c19000.usb"
 | 
				
			||||||
	);
 | 
						);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// Temporary hack to disable Bluetooth driver that crashes on suspend 1/5th the time
 | 
				
			||||||
 | 
						fprintf(stderr, "Disabling buggy Bluetooth driver\n");
 | 
				
			||||||
 | 
						writefile(
 | 
				
			||||||
 | 
							"/sys/bus/serial/drivers/hci_uart_h5/unbind",
 | 
				
			||||||
 | 
							"serial0-0"
 | 
				
			||||||
 | 
						);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// E.g. make sure we're using CRUST
 | 
						// E.g. make sure we're using CRUST
 | 
				
			||||||
	fprintf(stderr, "Flip mem_sleep setting to use crust\n");
 | 
						fprintf(stderr, "Flip mem_sleep setting to use crust\n");
 | 
				
			||||||
	writefile("/sys/power/mem_sleep", "deep");
 | 
						writefile("/sys/power/mem_sleep", "deep");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue