Skip to content

This service is a systemd unit designed to manage Bluetooth functionality during system sleep and wake transitions. Specifically, it disables Bluetooth before the PC enters sleep mode using rfkill and re-enables it after the PC wakes up.

Notifications You must be signed in to change notification settings

glexposito/bluetooth-sleep-toggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Installation

This service is a systemd unit designed to manage Bluetooth functionality during system sleep and wake transitions. Specifically, it disables Bluetooth before the PC enters sleep mode using rfkill and re-enables it after the PC wakes up.

Why Use This Service?

Some Linux users experience issues with Bluetooth drivers when resuming from sleep, particularly with certain kernel versions. This problem manifests as a black screen, causing the system to hang. For example:

This service provides a workaround by ensuring Bluetooth is cleanly stopped before sleep and restarted after wake.

Installation

To install, execute the following command:

sudo sh install.sh

To uninstall, execute the following command:

sudo sh uninstall.sh

About

This service is a systemd unit designed to manage Bluetooth functionality during system sleep and wake transitions. Specifically, it disables Bluetooth before the PC enters sleep mode using rfkill and re-enables it after the PC wakes up.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages