ubuntu bluetooth not working after suspend
#!/bin/bash
#Code from http://ubuntuforums.org/showthread.php?t=1387211
. /usr/lib/pm-utils/functions
case "$1" in
hibernate|suspend)
rfkill block bluetooth
;;
thaw|resume)
rfkill unblock bluetooth
;;
*)
;;
esac
exitcd /etc/pm/sleep.d
sudo touch 10_bluetooth
sudo chmod 0755 10_bluetooth
sudo kate 10_bluetooth#!/bin/sh
# sudo nano /lib/systemd/system-sleep/bt
# Paste in this script:
case $1 in
post)
modprobe -r btusb
sleep 1
service bluetooth restart
sleep 1
modprobe btusb
;;
esac
# An finally make it executable
chmod +x /lib/systemd/system-sleep/bt
Also in C++:
- install sdl msys2
- conda install tensorflow windows
- git prune
- update branch with master
- install apt-get
- how to access bashrc on linux
- check ram arch linux
- boot pendrive cmd
- linux crée utilisateur sudo
- linux autohide cursor
- powershell new file
- path too long while extracting zip file
- create a new file in git bash
- importerror cannot import name 'monitoring' from 'tensorflow python eager
- Failed to start nginx.service: Unit nginx.service not found.
- write a program in shell script to find factorial of a number
- How many CPUs and memory do you allocate to your Linux machine?
- debian install java
- view to path powershell
- mongoalchemy flask
- install laravel on windows 10
- change git default editor to vscode
- Skipping acquire of configured file 'multiverse/binary-1386/Packages' as repository 'http://archive.ubuntu.com/ubuntu focal-security InRelease' doesn't support architecture '1386'
- delete branches in bulk git