| Server IP : 162.253.224.18 / Your IP : 216.73.216.135 Web Server : Apache System : Linux s18.infinitysrv.com 3.10.0-962.3.2.lve1.5.89.el7.x86_64 #1 SMP Thu Jul 9 15:55:31 UTC 2026 x86_64 User : dejavumk ( 1184) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/lib64/pm-utils/sleep.d/ |
Upload File : |
#!/bin/sh
# IBM specific hack to disable/enable bluetooth.
# TODO: Doesn't the working USB suspend/resume functionality
# make this code more or less obsolete?
. "${PM_FUNCTIONS}"
[ -f /proc/acpi/ibm/bluetooth ] || exit $NA
suspend_bluetooth()
{
if grep -q enabled /proc/acpi/ibm/bluetooth; then
savestate ibm_bluetooth enable
echo disable > /proc/acpi/ibm/bluetooth
else
savestate ibm_bluetooth disable
fi
}
resume_bluetooth()
{
state_exists ibm_bluetooth || return
restorestate ibm_bluetooth > /proc/acpi/ibm/bluetooth
}
case "$1" in
hibernate|suspend)
suspend_bluetooth
;;
thaw|resume)
resume_bluetooth
;;
*) exit $NA
;;
esac