This file is indexed.

/usr/share/laptop-mode-tools/modules/radeon-dpm 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
#! /bin/sh
# Laptop mode tools module to handle the DPM Profiles of a GPU (radeon driver only)
# 

RADEON_DPM_STATE="/sys/class/drm/card0/device/power_dpm_state"
RADEON_DPM_PERFORMANCE_LEVEL="/sys/class/drm/card0/device/power_dpm_force_performance_level"

if [ x$CONTROL_RADEON_DPM = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x$CONTROL_RADEON_DPM = xauto ]; then
	if [ -w $RADEON_DPM_STATE -a -w $RADEON_DPM_PERFORMANCE_LEVEL ]; then
		if [ $ON_AC -eq 1 ]; then
			if [ "$ACTIVATE" -eq 1 ]; then
				log "VERBOSE" "Radeon power saving enabled."
				echo battery > $RADEON_DPM_STATE
				echo auto > $RADEON_DPM_PERFORMANCE_LEVEL
			else
				log "VERBOSE" "Radeon power saving disabled"
				echo performance > $RADEON_DPM_STATE
				echo auto > $RADEON_DPM_PERFORMANCE_LEVEL
			fi
		else
			log "VERBOSE" "Radeon power saving enabled."
			echo battery > $RADEON_DPM_STATE
			echo low > $RADEON_DPM_PERFORMANCE_LEVEL
       		fi
	else
		log "VERBOSE" "Radeon Power Saving is not available on this system."
	fi
fi