This file is indexed.

/usr/share/laptop-mode-tools/modules/pcie-aspm is in laptop-mode-tools 1.71-2ubuntu1.

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
#! /bin/sh
#
# Laptop mode tools module: PCIe Active State Power Management
#

if [ x$CONTROL_PCIE_ASPM = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x$CONTROL_PCIE_ASPM = xauto ]; then
	if [ $ON_AC -eq 1 ]; then
		log "VERBOSE" "On AC power: setting pcie_aspm to default"
		if [ -f /sys/module/pcie_aspm/parameters/policy ]; then
			echo default > /sys/module/pcie_aspm/parameters/policy 2>/dev/null
			if [ $? -eq 0 ]; then
				log "VERBOSE" "PCIe ASPM set to 'default'"
			else
				log "VERBOSE" "PCIe ASPM tweaking is prohibited by the kernel"
			fi
		else
			log "VERBOSE" "PCIe ASPM is not available"
		fi
	else
		log "VERBOSE" "On battery: setting pcie_aspm to powersave"
		if [ -f /sys/module/pcie_aspm/parameters/policy ]; then
			echo powersave > /sys/module/pcie_aspm/parameters/policy 2>/dev/null
			if [ $? -eq 0 ]; then
				log "VERBOSE" "PCIe ASPM set to 'powersave'"
			else
				log "VERBOSE" "PCIe ASPM tweaking is prohibited by the kernel"
			fi
		else
			log "VERBOSE" "PCIe ASPM is not available"
		fi
	fi
else
	log "VERBOSE" "PCIe ASPM power savings module is disabled"
fi