This file is indexed.

/usr/lib/pm-utils/power.d/usb_bluetooth is in pm-utils 1.4.1-16.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh

#
# This script adjusts the USB bluetooth device settings via the USB
# power control.  This simply sets this to "auto" for power saving and to "on"
# for non-power saving.   This has been shown to save about 1W on some
# systems.
#
# According to http://www.usb.org/developers/defined_class
#   USB wireless bluetooth devices have baseclass 0xe0, subclass 0x01,
#   protocol 0x01
#

USB_BLUETOOTH_PM_ENABLE="${USB_BLUETOOTH_PM_ENABLE:-true}"

set_usb_bluetooth()
{
	for dev in /sys/bus/usb/devices/* ; do
		if [ -e $dev/bDeviceClass -a \
		     -e $dev/bDeviceSubClass -a \
		     -e $dev/bDeviceProtocol -a \
		     -e $dev/power/control ]; then
			if [ x`cat $dev/bDeviceClass` = xe0 -a \
		     	x`cat $dev/bDeviceSubClass` = x01 -a \
		     	x`cat $dev/bDeviceProtocol` = x01 ]; then
				echo Setting $dev to $1
				echo $1 > $dev/power/control
			fi
		fi
	done
}

case "$1" in
	true) # powersaving on
		[ "$USB_BLUETOOTH_PM_ENABLE" = true ] && set_usb_bluetooth "auto"
		;;
	false) # powersaving off
		[ "$USB_BLUETOOTH_PM_ENABLE" = true ] && set_usb_bluetooth "on"
		;;
	*)
		exit 254
		;;
esac

exit 0