Configure PM_CONFIG /etc/nvpmodel.conf doesn't work

It’s ok sudo nvpmodel -m 0.

but configure PM_CONFIG DEFAULT=0 in /etc/nvpmodel.conf, and reboot, it doesn’t wok, show only 4 cpus are working.

mandatory section to configure the default power mode

< PM_CONFIG DEFAULT=0 >

thanks.

hello os.kernel,

were you able to change the power mode via command-line, i.e. $ sudo /usr/sbin/nvpmodel -m 0

sudo /usr/sbin/nvpmodel -m 0 is ok.

We need customize the rootfs. so the config file is what we want.
But modify the /etc/nvpmodel.conf doesn’t work.

how to achieve it?

thanks.

hello os.kernel,

please narrow down the issue,
could you please try configure with different modes in nvpmodel.conf.
thanks

I tried PM_CONFIG DEFAULT=3 and reboot

root@localhost:/# nvpmodel --query
NV Fan Mode:quiet
NV Power Mode: MODE_15W_DESKTOP
7
root@localhost:/# cat /etc/nvpmodel.conf | grep PM_CONFIG

< PM_CONFIG DEFAULT=default_mode >

< PM_CONFIG DEFAULT=3 >

hello os.kernel,

it looks like a bug, could you please enable verbose log and sharing all logs for reference,

$ nvpmodel --help
...
--verbose:
        Enable verbose log.
-p, --parse:
        Parse the config file only. Recommended to enable verbose log.

for example, $ nvpmodel --verbose -p -f nvpmodel.conf.

x@localhost:~$ sudo nvpmodel --verbose -p -f nvpmodel.conf
NVPM VERB: Config file: nvpmodel.conf
NVPM ERROR: null input file!
NVPM ERROR: Failed to parse nvpmodel.conf
NVPM ERROR: Invalid power mode set in /var/lib/nvpmodel/status, using default settings.
keda@localhost:~$ sudo nvpmodel --verbose -p -f /etc/nvpmodel.conf
NVPM VERB: Config file: /etc/nvpmodel.conf
NVPM VERB: parsing done for /etc/nvpmodel.conf
succeed to parse file /etc/nvpmodel.conf.
NVPM VERB: PM_CONFIG: DEFAULT=MODE_30W_2CORE(6)
NVPM VERB: PARAM TYPE=FILE NAME=CPU_ONLINE
NVPM VERB: CORE_0 /sys/devices/system/cpu/cpu0/online
NVPM VERB: CORE_1 /sys/devices/system/cpu/cpu1/online
NVPM VERB: CORE_2 /sys/devices/system/cpu/cpu2/online
NVPM VERB: CORE_3 /sys/devices/system/cpu/cpu3/online
NVPM VERB: CORE_4 /sys/devices/system/cpu/cpu4/online
NVPM VERB: CORE_5 /sys/devices/system/cpu/cpu5/online
NVPM VERB: CORE_6 /sys/devices/system/cpu/cpu6/online
NVPM VERB: CORE_7 /sys/devices/system/cpu/cpu7/online
NVPM VERB: PARAM TYPE=FILE NAME=TPC_POWER_GATING
NVPM VERB: TPC_PG_MASK /sys/devices/gpu.0/tpc_pg_mask
NVPM VERB: PARAM TYPE=FILE NAME=GPU_POWER_CONTROL_ENABLE
NVPM VERB: GPU_PWR_CNTL_EN /sys/devices/gpu.0/power/control
NVPM VERB: PARAM TYPE=FILE NAME=GPU_POWER_CONTROL_DISABLE
NVPM VERB: GPU_PWR_CNTL_DIS /sys/devices/gpu.0/power/control
NVPM VERB: PARAM TYPE=CLOCK NAME=CPU_DENVER_0
NVPM VERB: FREQ_TABLE /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
NVPM VERB: MAX_FREQ /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
NVPM VERB: MIN_FREQ /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
NVPM VERB: PARAM TYPE=CLOCK NAME=CPU_DENVER_1
NVPM VERB: FREQ_TABLE /sys/devices/system/cpu/cpu2/cpufreq/scaling_available_frequencies
NVPM VERB: MAX_FREQ /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
NVPM VERB: MIN_FREQ /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
NVPM VERB: PARAM TYPE=CLOCK NAME=CPU_DENVER_2
NVPM VERB: FREQ_TABLE /sys/devices/system/cpu/cpu4/cpufreq/scaling_available_frequencies
NVPM VERB: MAX_FREQ /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq
NVPM VERB: MIN_FREQ /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq
NVPM VERB: PARAM TYPE=CLOCK NAME=CPU_DENVER_3
NVPM VERB: FREQ_TABLE /sys/devices/system/cpu/cpu6/cpufreq/scaling_available_frequencies
NVPM VERB: MAX_FREQ /sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq
NVPM VERB: MIN_FREQ /sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq
NVPM VERB: PARAM TYPE=CLOCK NAME=GPU
NVPM VERB: FREQ_TABLE /sys/devices/17000000.gv11b/devfreq/17000000.gv11b/available_frequencies
NVPM VERB: MAX_FREQ /sys/devices/17000000.gv11b/devfreq/17000000.gv11b/max_freq
NVPM VERB: MIN_FREQ /sys/devices/17000000.gv11b/devfreq/17000000.gv11b/min_freq
NVPM VERB: PARAM TYPE=CLOCK NAME=EMC
NVPM VERB: MAX_FREQ /sys/kernel/nvpmodel_emc_cap/emc_iso_cap
NVPM VERB: PARAM TYPE=CLOCK NAME=DLA_CORE
NVPM VERB: MAX_FREQ /sys/kernel/nvpmodel_emc_cap/nafll_dla
NVPM VERB: PARAM TYPE=CLOCK NAME=DLA_FALCON
NVPM VERB: MAX_FREQ /sys/kernel/nvpmodel_emc_cap/nafll_dla_falcon
NVPM VERB: PARAM TYPE=CLOCK NAME=PVA_VPS
NVPM VERB: MAX_FREQ /sys/kernel/nvpmodel_emc_cap/nafll_pva_vps
NVPM VERB: PARAM TYPE=CLOCK NAME=PVA_CORE
NVPM VERB: MAX_FREQ /sys/kernel/nvpmodel_emc_cap/nafll_pva_core
NVPM VERB: PARAM TYPE=CLOCK NAME=CVNAS
NVPM VERB: MAX_FREQ /sys/kernel/nvpmodel_emc_cap/nafll_cvnas
NVPM VERB:
NVPM VERB: POWER_MODEL: ID=0 NAME=MAXN
NVPM VERB: CPU_ONLINE CORE_0 1
NVPM VERB: CPU_ONLINE CORE_1 1
NVPM VERB: CPU_ONLINE CORE_2 1
NVPM VERB: CPU_ONLINE CORE_3 1
NVPM VERB: CPU_ONLINE CORE_4 1
NVPM VERB: CPU_ONLINE CORE_5 1
NVPM VERB: CPU_ONLINE CORE_6 1
NVPM VERB: CPU_ONLINE CORE_7 1
NVPM VERB: TPC_POWER_GATING TPC_PG_MASK 0
NVPM VERB: GPU_POWER_CONTROL_ENABLE GPU_PWR_CNTL_EN on
NVPM VERB: CPU_DENVER_0 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_0 MAX_FREQ 2147483647
NVPM VERB: CPU_DENVER_1 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_1 MAX_FREQ 2147483647
NVPM VERB: CPU_DENVER_2 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_2 MAX_FREQ 2147483647
NVPM VERB: CPU_DENVER_3 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_3 MAX_FREQ 2147483647
NVPM VERB: GPU MIN_FREQ 318750000
NVPM VERB: GPU MAX_FREQ 2147483647
NVPM VERB: GPU_POWER_CONTROL_DISABLE GPU_PWR_CNTL_DIS auto
NVPM VERB: EMC MAX_FREQ 0
NVPM VERB: DLA_CORE MAX_FREQ 2147483647
NVPM VERB: DLA_FALCON MAX_FREQ 2147483647
NVPM VERB: PVA_VPS MAX_FREQ 2147483647
NVPM VERB: PVA_CORE MAX_FREQ 2147483647
NVPM VERB: CVNAS MAX_FREQ 2147483647
NVPM VERB:
NVPM VERB: POWER_MODEL: ID=1 NAME=MODE_10W
NVPM VERB: CPU_ONLINE CORE_0 1
NVPM VERB: CPU_ONLINE CORE_1 1
NVPM VERB: CPU_ONLINE CORE_2 0
NVPM VERB: CPU_ONLINE CORE_3 0
NVPM VERB: CPU_ONLINE CORE_4 0
NVPM VERB: CPU_ONLINE CORE_5 0
NVPM VERB: CPU_ONLINE CORE_6 0
NVPM VERB: CPU_ONLINE CORE_7 0
NVPM VERB: TPC_POWER_GATING TPC_PG_MASK 5
NVPM VERB: GPU_POWER_CONTROL_ENABLE GPU_PWR_CNTL_EN on
NVPM VERB: CPU_DENVER_0 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_0 MAX_FREQ 1200000
NVPM VERB: GPU MIN_FREQ 318750000
NVPM VERB: GPU MAX_FREQ 520000000
NVPM VERB: GPU_POWER_CONTROL_DISABLE GPU_PWR_CNTL_DIS auto
NVPM VERB: EMC MAX_FREQ 1065600000
NVPM VERB: DLA_CORE MAX_FREQ 550000000
NVPM VERB: DLA_FALCON MAX_FREQ 330000000
NVPM VERB: PVA_VPS MAX_FREQ 115200000
NVPM VERB: PVA_CORE MAX_FREQ 115200000
NVPM VERB: CVNAS MAX_FREQ 601600000
NVPM VERB:
NVPM VERB: POWER_MODEL: ID=2 NAME=MODE_15W
NVPM VERB: CPU_ONLINE CORE_0 1
NVPM VERB: CPU_ONLINE CORE_1 1
NVPM VERB: CPU_ONLINE CORE_2 1
NVPM VERB: CPU_ONLINE CORE_3 1
NVPM VERB: CPU_ONLINE CORE_4 0
NVPM VERB: CPU_ONLINE CORE_5 0
NVPM VERB: CPU_ONLINE CORE_6 0
NVPM VERB: CPU_ONLINE CORE_7 0
NVPM VERB: TPC_POWER_GATING TPC_PG_MASK 0
NVPM VERB: GPU_POWER_CONTROL_ENABLE GPU_PWR_CNTL_EN on
NVPM VERB: CPU_DENVER_0 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_0 MAX_FREQ 1200000
NVPM VERB: CPU_DENVER_1 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_1 MAX_FREQ 1200000
NVPM VERB: GPU MIN_FREQ 318750000
NVPM VERB: GPU MAX_FREQ 670000000
NVPM VERB: GPU_POWER_CONTROL_DISABLE GPU_PWR_CNTL_DIS auto
NVPM VERB: EMC MAX_FREQ 1331200000
NVPM VERB: DLA_CORE MAX_FREQ 750000000
NVPM VERB: DLA_FALCON MAX_FREQ 450000000
NVPM VERB: PVA_VPS MAX_FREQ 550000000
NVPM VERB: PVA_CORE MAX_FREQ 385000000
NVPM VERB: CVNAS MAX_FREQ 716800000
NVPM VERB:
NVPM VERB: POWER_MODEL: ID=3 NAME=MODE_30W_ALL
NVPM VERB: CPU_ONLINE CORE_0 1
NVPM VERB: CPU_ONLINE CORE_1 1
NVPM VERB: CPU_ONLINE CORE_2 1
NVPM VERB: CPU_ONLINE CORE_3 1
NVPM VERB: CPU_ONLINE CORE_4 1
NVPM VERB: CPU_ONLINE CORE_5 1
NVPM VERB: CPU_ONLINE CORE_6 1
NVPM VERB: CPU_ONLINE CORE_7 1
NVPM VERB: TPC_POWER_GATING TPC_PG_MASK 0
NVPM VERB: GPU_POWER_CONTROL_ENABLE GPU_PWR_CNTL_EN on
NVPM VERB: CPU_DENVER_0 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_0 MAX_FREQ 1200000
NVPM VERB: CPU_DENVER_1 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_1 MAX_FREQ 1200000
NVPM VERB: CPU_DENVER_2 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_2 MAX_FREQ 1200000
NVPM VERB: CPU_DENVER_3 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_3 MAX_FREQ 1200000
NVPM VERB: GPU MIN_FREQ 318750000
NVPM VERB: GPU MAX_FREQ 900000000
NVPM VERB: GPU_POWER_CONTROL_DISABLE GPU_PWR_CNTL_DIS auto
NVPM VERB: EMC MAX_FREQ 1600000000
NVPM VERB: DLA_CORE MAX_FREQ 1050000000
NVPM VERB: DLA_FALCON MAX_FREQ 630000000
NVPM VERB: PVA_VPS MAX_FREQ 760000000
NVPM VERB: PVA_CORE MAX_FREQ 532000000
NVPM VERB: CVNAS MAX_FREQ 1011200000
NVPM VERB:
NVPM VERB: POWER_MODEL: ID=4 NAME=MODE_30W_6CORE
NVPM VERB: CPU_ONLINE CORE_0 1
NVPM VERB: CPU_ONLINE CORE_1 1
NVPM VERB: CPU_ONLINE CORE_2 1
NVPM VERB: CPU_ONLINE CORE_3 1
NVPM VERB: CPU_ONLINE CORE_4 1
NVPM VERB: CPU_ONLINE CORE_5 1
NVPM VERB: CPU_ONLINE CORE_6 0
NVPM VERB: CPU_ONLINE CORE_7 0
NVPM VERB: TPC_POWER_GATING TPC_PG_MASK 0
NVPM VERB: GPU_POWER_CONTROL_ENABLE GPU_PWR_CNTL_EN on
NVPM VERB: CPU_DENVER_0 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_0 MAX_FREQ 1450000
NVPM VERB: CPU_DENVER_1 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_1 MAX_FREQ 1450000
NVPM VERB: CPU_DENVER_2 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_2 MAX_FREQ 1450000
NVPM VERB: GPU MIN_FREQ 318750000
NVPM VERB: GPU MAX_FREQ 900000000
NVPM VERB: GPU_POWER_CONTROL_DISABLE GPU_PWR_CNTL_DIS auto
NVPM VERB: EMC MAX_FREQ 1600000000
NVPM VERB: DLA_CORE MAX_FREQ 1050000000
NVPM VERB: DLA_FALCON MAX_FREQ 630000000
NVPM VERB: PVA_VPS MAX_FREQ 760000000
NVPM VERB: PVA_CORE MAX_FREQ 532000000
NVPM VERB: CVNAS MAX_FREQ 1011200000
NVPM VERB:
NVPM VERB: POWER_MODEL: ID=5 NAME=MODE_30W_4CORE
NVPM VERB: CPU_ONLINE CORE_0 1
NVPM VERB: CPU_ONLINE CORE_1 1
NVPM VERB: CPU_ONLINE CORE_2 1
NVPM VERB: CPU_ONLINE CORE_3 1
NVPM VERB: CPU_ONLINE CORE_4 0
NVPM VERB: CPU_ONLINE CORE_5 0
NVPM VERB: CPU_ONLINE CORE_6 0
NVPM VERB: CPU_ONLINE CORE_7 0
NVPM VERB: TPC_POWER_GATING TPC_PG_MASK 0
NVPM VERB: GPU_POWER_CONTROL_ENABLE GPU_PWR_CNTL_EN on
NVPM VERB: CPU_DENVER_0 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_0 MAX_FREQ 1780000
NVPM VERB: CPU_DENVER_1 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_1 MAX_FREQ 1780000
NVPM VERB: GPU MIN_FREQ 318750000
NVPM VERB: GPU MAX_FREQ 900000000
NVPM VERB: GPU_POWER_CONTROL_DISABLE GPU_PWR_CNTL_DIS auto
NVPM VERB: EMC MAX_FREQ 1600000000
NVPM VERB: DLA_CORE MAX_FREQ 1050000000
NVPM VERB: DLA_FALCON MAX_FREQ 630000000
NVPM VERB: PVA_VPS MAX_FREQ 760000000
NVPM VERB: PVA_CORE MAX_FREQ 532000000
NVPM VERB: CVNAS MAX_FREQ 1011200000
NVPM VERB:
NVPM VERB: POWER_MODEL: ID=6 NAME=MODE_30W_2CORE
NVPM VERB: CPU_ONLINE CORE_0 1
NVPM VERB: CPU_ONLINE CORE_1 1
NVPM VERB: CPU_ONLINE CORE_2 0
NVPM VERB: CPU_ONLINE CORE_3 0
NVPM VERB: CPU_ONLINE CORE_4 0
NVPM VERB: CPU_ONLINE CORE_5 0
NVPM VERB: CPU_ONLINE CORE_6 0
NVPM VERB: CPU_ONLINE CORE_7 0
NVPM VERB: TPC_POWER_GATING TPC_PG_MASK 0
NVPM VERB: GPU_POWER_CONTROL_ENABLE GPU_PWR_CNTL_EN on
NVPM VERB: CPU_DENVER_0 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_0 MAX_FREQ 2100000
NVPM VERB: GPU MIN_FREQ 318750000
NVPM VERB: GPU MAX_FREQ 900000000
NVPM VERB: GPU_POWER_CONTROL_DISABLE GPU_PWR_CNTL_DIS auto
NVPM VERB: EMC MAX_FREQ 1600000000
NVPM VERB: DLA_CORE MAX_FREQ 1050000000
NVPM VERB: DLA_FALCON MAX_FREQ 630000000
NVPM VERB: PVA_VPS MAX_FREQ 760000000
NVPM VERB: PVA_CORE MAX_FREQ 532000000
NVPM VERB: CVNAS MAX_FREQ 1011200000
NVPM VERB:
NVPM VERB: POWER_MODEL: ID=7 NAME=MODE_15W_DESKTOP
NVPM VERB: CPU_ONLINE CORE_0 1
NVPM VERB: CPU_ONLINE CORE_1 1
NVPM VERB: CPU_ONLINE CORE_2 1
NVPM VERB: CPU_ONLINE CORE_3 1
NVPM VERB: CPU_ONLINE CORE_4 0
NVPM VERB: CPU_ONLINE CORE_5 0
NVPM VERB: CPU_ONLINE CORE_6 0
NVPM VERB: CPU_ONLINE CORE_7 0
NVPM VERB: TPC_POWER_GATING TPC_PG_MASK 0
NVPM VERB: GPU_POWER_CONTROL_ENABLE GPU_PWR_CNTL_EN on
NVPM VERB: CPU_DENVER_0 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_0 MAX_FREQ 2188800
NVPM VERB: CPU_DENVER_1 MIN_FREQ 1200000
NVPM VERB: CPU_DENVER_1 MAX_FREQ 2188800
NVPM VERB: GPU MIN_FREQ 318750000
NVPM VERB: GPU MAX_FREQ 670000000
NVPM VERB: GPU_POWER_CONTROL_DISABLE GPU_PWR_CNTL_DIS auto
NVPM VERB: EMC MAX_FREQ 1331200000
NVPM VERB: DLA_CORE MAX_FREQ 115200000
NVPM VERB: DLA_FALCON MAX_FREQ 115200000
NVPM VERB: PVA_VPS MAX_FREQ 115200000
NVPM VERB: PVA_CORE MAX_FREQ 115200000
NVPM VERB: CVNAS MAX_FREQ 115200000
NVPM VERB:
x@localhost:~$
x@localhost:~$ sudo nvpmodel -q
NV Fan Mode:quiet
NV Power Mode: MODE_15W_DESKTOP
7
x@localhost:~$ cat /etc/nvpmodel.conf | grep PM_CONFIG
< PM_CONFIG DEFAULT=6 >

hello os.kernel,

this is expected behavior, and it’s done on purpose to have persistent power mode settings over reboot.
on the first boot “PM_CONFIG DEFAULT” setting will be used from the nvpmodel.conf file. and this mode will be saved in a status file, /var/lib/nvpmodel/status.
thus, after the first boot you can only change the power mode by using the command-line, $ sudo nvpmodel -m <x>.

hence, you may delete the status file to accomplish your use-case.
please have a try to modify the default setting, then delete /var/lib/nvpmodel/status before reboot the system.
thanks

1 Like

delete /var/lib/nvpmodel/status is ok.

although it is a little confuse.

thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.