Originally Posted by Mike_M
I used to have the same issue before I disabled bluetooth completely on my laptop (I only very rarely use it).
To work around this I wrote the following script:
# In order to help save power on my laptop, I want the Bluetooth radio
# to be disabled unless I need to use it. I already turn it off at boot
# time from rc.local. But it is re-enabled after a resume from suspend.
case "$1" in
# Nothing to do during suspend
# Wait a few seconds for the system to resume, otherwise one of
# the other scripts may keep the Bluetooth radio enabled. No
# doubt there is a more elegant solution to this.
/usr/sbin/rfkill block bluetooth
*) exit $NA
I saved that as /etc/pm/sleep.d/00disable_bluetooth and made it executable. This turned the bluetooth radio off after a resume, but still allowed me to turn it on via the bluetooth applet when I needed it.
Searching the forum, I found this post as the closest to my problem.
I also want to take some actions after the resume takes place. I used your solution when I hibernated my system with the pm-hibernate command. That worked ok.
However, for some reason I cannot find, pm-hibernate does not work at my system any more and I use this command to hibernate my system:
echo disk > /sys/power/state
However, since now pm-hibernate is not used, the solution offered does not work. Do you have anything else to suggest?
I use opesuse 12.1 MileStone 3 (Asparagus)