电脑发热严重:禁用独立显卡(Nvidia)/ TLP解决cpu占用率大

2023-05-16

引言

CPU温度经常居高不下,每天风扇嗡嗡响,尝试过许多办法都没有解决,最后用了一个工具,并禁用独显,明显改善!
在这里插入图片描述

1.禁用独立显卡

参考(真正帮我解决问题的方法):

https://blog.csdn.net/weixin_41600500/article/details/90317196
https://www.jianshu.com/p/85cbb0258d32

你是不是也是因为linux 系统发热严重才找想把独显关了,网上的教程要不是用这种

cat /sys/kernel/debug/vgaswitcheroo/switch  #查看显卡开启状态
echo DIGD > /sys/kernel/debug/vgaswitcheroo/switch  #重启X后使用集成显卡进行输出
echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch  #重启X后使用独立显卡进行输出
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch  #重启X后,关闭不在使用的显卡

要不是用这种


sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia
sudo reboot

————————————————
版权声明:本文为CSDN博主「hotdog29」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_41600500/article/details/90317196

解决办法:

执行:

nvidia-settings

在PRIME Profiles 里面就能自由切换
然后

sudo reboot

效果:

在这里插入图片描述
在这里插入图片描述

2.TLP:

TLP的安装

sudo apt install tlp

TLP的配置

cd /etc/default/
cp tlp ~/tlp
sudo gedit tlp

可以按照文件中的注释修改配置。
我的配置:

# ------------------------------------------------------------------------------
# tlp - Parameters for power saving
# See full explanation: http://linrunner.de/en/tlp/docs/tlp-configuration.html

# Hint: some features are disabled by default, remove the leading # to enable
# them.

# Set to 0 to disable, 1 to enable TLP.
TLP_ENABLE=1

# Operation mode when no power supply can be detected: AC, BAT.
# Concerns some desktop and embedded hardware only.
TLP_DEFAULT_MODE=BAT

# Operation mode select: 0=depend on power source, 1=always use TLP_DEFAULT_MODE
# Hint: use in conjunction with TLP_DEFAULT_MODE=BAT for BAT settings on AC.
TLP_PERSISTENT_DEFAULT=1

# Seconds laptop mode has to wait after the disk goes idle before doing a sync.
# Non-zero value enables, zero disables laptop mode.
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2

# Dirty page values (timeouts in secs).
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60

# Hint: CPU parameters below are disabled by default, remove the leading #
# to enable them, otherwise kernel default values are used.

# Select a CPU frequency scaling governor.
# Intel Core i processor with intel_pstate driver:
#   powersave(*), performance.
# Older hardware with acpi-cpufreq driver:
#   ondemand(*), powersave, performance, conservative, schedutil.
# (*) is recommended.
# Hint: use tlp-stat -p to show the active driver and available governors.
# Important:
#   powersave for intel_pstate and ondemand for acpi-cpufreq are power
#   efficient for *almost all* workloads and therefore kernel and most
#   distributions have chosen them as defaults. If you still want to change,
#   you should know what you're doing! You *must* disable your distribution's
#   governor settings or conflicts will occur.
CPU_SCALING_GOVERNOR_ON_AC=powersave
CPU_SCALING_GOVERNOR_ON_BAT=powersave

# Set the min/max frequency available for the scaling governor.
# Possible values strongly depend on your CPU. For available frequencies see
# the output of tlp-stat -p.
#CPU_SCALING_MIN_FREQ_ON_AC=0
#CPU_SCALING_MAX_FREQ_ON_AC=0
#CPU_SCALING_MIN_FREQ_ON_BAT=0
#CPU_SCALING_MAX_FREQ_ON_BAT=0

# Set energy performance hints (HWP) for Intel P-state governor:
#   performance, balance_performance, default, balance_power, power
# Values are given in order of increasing power saving.
# Note: Intel Skylake or newer CPU and Kernel >= 4.10 required.
CPU_HWP_ON_AC=balance_performance
CPU_HWP_ON_BAT=power

# Set Intel P-state performance: 0..100 (%).
# Limit the max/min P-state to control the power dissipation of the CPU.
# Values are stated as a percentage of the available performance.
# Requires an Intel Core i processor with intel_pstate driver.
CPU_MIN_PERF_ON_AC=0
CPU_MAX_PERF_ON_AC=30
CPU_MIN_PERF_ON_BAT=0
CPU_MAX_PERF_ON_BAT=30

# Set the CPU "turbo boost" feature: 0=disable, 1=allow
# Requires an Intel Core i processor.
# Important:
# - This may conflict with your distribution's governor settings
# - A value of 1 does *not* activate boosting, it just allows it
#CPU_BOOST_ON_AC=1
#CPU_BOOST_ON_BAT=1

# Minimize number of used CPU cores/hyper-threads under light load conditions:
#   0=disable, 1=enable.
SCHED_POWERSAVE_ON_AC=1
SCHED_POWERSAVE_ON_BAT=1

# Kernel NMI Watchdog:
#   0=disable (default, saves power), 1=enable (for kernel debugging only).
NMI_WATCHDOG=0

# Change CPU voltages aka "undervolting" - Kernel with PHC patch required.
# Frequency voltage pairs are written to:
#   /sys/devices/system/cpu/cpu0/cpufreq/phc_controls
# CAUTION: only use this, if you thoroughly understand what you are doing!
#PHC_CONTROLS="F:V F:V F:V F:V"

# Set CPU performance versus energy savings policy:
#   performance, balance-performance, default, balance-power, power.
# Values are given in order of increasing power saving.
# Requires kernel module msr and x86_energy_perf_policy from linux-tools.
ENERGY_PERF_POLICY_ON_AC=performance
ENERGY_PERF_POLICY_ON_BAT=power

# Disk devices; separate multiple devices with spaces (default: sda).
# Devices can be specified by disk ID also (lookup with: tlp diskid).
DISK_DEVICES="sda sdb"

# Disk advanced power management level: 1..254, 255 (max saving, min, off).
# Levels 1..127 may spin down the disk; 255 allowable on most drives.
# Separate values for multiple disks with spaces. Use the special value 'keep'
# to keep the hardware default for the particular disk.
DISK_APM_LEVEL_ON_AC="keep keep"
DISK_APM_LEVEL_ON_BAT="1 1"

# Hard disk spin down timeout:
#   0:        spin down disabled
#   1..240:   timeouts from 5s to 20min (in units of 5s)
#   241..251: timeouts from 30min to 5.5 hours (in units of 30min)
# See 'man hdparm' for details.
# Separate values for multiple disks with spaces. Use the special value 'keep'
# to keep the hardware default for the particular disk.
DISK_SPINDOWN_TIMEOUT_ON_AC="240 240"
DISK_SPINDOWN_TIMEOUT_ON_BAT="120 120"

# Select IO scheduler for the disk devices: cfq, deadline, noop (Default: cfq).
# Separate values for multiple disks with spaces. Use the special value 'keep'
# to keep the kernel default scheduler for the particular disk.
DISK_IOSCHED="cfq cfq"

# AHCI link power management (ALPM) for disk devices:
#   min_power, med_power_with_dipm(*), medium_power, max_performance.
# (*) Kernel >= 4.15 required, then recommended.
# Multiple values separated with spaces are tried sequentially until success.
SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"

# Exclude host devices from AHCI link power management.
# Separate multiple hosts with spaces.
#SATA_LINKPWR_BLACKLIST="host1"

# Runtime Power Management for AHCI host and disks devices:
#   on=disable, auto=enable.
# EXPERIMENTAL ** WARNING: auto will most likely cause system lockups/data loss.
#AHCI_RUNTIME_PM_ON_AC=on
#AHCI_RUNTIME_PM_ON_BAT=on

# Seconds of inactivity before disk is suspended.
AHCI_RUNTIME_PM_TIMEOUT=15

# PCI Express Active State Power Management (PCIe ASPM):
#   default, performance, powersave.
PCIE_ASPM_ON_AC=powersave
PCIE_ASPM_ON_BAT=powersave

# Radeon graphics clock speed (profile method): low, mid, high, auto, default;
# auto = mid on BAT, high on AC; default = use hardware defaults.
RADEON_POWER_PROFILE_ON_AC=low
RADEON_POWER_PROFILE_ON_BAT=low

# Radeon dynamic power management method (DPM): battery, performance.
RADEON_DPM_STATE_ON_AC=battery
RADEON_DPM_STATE_ON_BAT=battery

# Radeon DPM performance level: auto, low, high; auto is recommended.
RADEON_DPM_PERF_LEVEL_ON_AC=low
RADEON_DPM_PERF_LEVEL_ON_BAT=low

# WiFi power saving mode: on=enable, off=disable; not supported by all adapters.
WIFI_PWR_ON_AC=on
WIFI_PWR_ON_BAT=on

# Disable wake on LAN: Y/N.
WOL_DISABLE=Y

# Enable audio power saving for Intel HDA, AC97 devices (timeout in secs).
# A value of 0 disables, >=1 enables power saving (recommended: 1).
SOUND_POWER_SAVE_ON_AC=0
SOUND_POWER_SAVE_ON_BAT=1

# Disable controller too (HDA only): Y/N.
SOUND_POWER_SAVE_CONTROLLER=Y

# Power off optical drive in UltraBay/MediaBay: 0=disable, 1=enable.
# Drive can be powered on again by releasing (and reinserting) the eject lever
# or by pressing the disc eject button on newer models.
# Note: an UltraBay/MediaBay hard disk is never powered off.
BAY_POWEROFF_ON_AC=0
BAY_POWEROFF_ON_BAT=0
# Optical drive device to power off (default sr0).
BAY_DEVICE="sr0"

# Runtime Power Management for PCI(e) bus devices: on=disable, auto=enable.
RUNTIME_PM_ON_AC=on
RUNTIME_PM_ON_BAT=auto

# Exclude PCI(e) device adresses the following list from Runtime PM
# (separate with spaces). Use lspci to get the adresses (1st column).
#RUNTIME_PM_BLACKLIST="bb:dd.f 11:22.3 44:55.6"

# Exclude PCI(e) devices assigned to the listed drivers from Runtime PM.
# Default when unconfigured is "amdgpu nouveau nvidia radeon" which
# prevents accidential power-on of dGPU in hybrid graphics setups.
# Use "" to disable the feature completely.
# Separate multiple drivers with spaces.
#RUNTIME_PM_DRIVER_BLACKLIST="amdgpu nouveau nvidia radeon"

# Set to 0 to disable, 1 to enable USB autosuspend feature.
USB_AUTOSUSPEND=1

# Exclude listed devices from USB autosuspend (separate with spaces).
# Use lsusb to get the ids.
# Note: input devices (usbhid) are excluded automatically
#USB_BLACKLIST="1111:2222 3333:4444"

# Bluetooth devices are excluded from USB autosuspend:
#   0=do not exclude, 1=exclude.
USB_BLACKLIST_BTUSB=0

# Phone devices are excluded from USB autosuspend:
#   0=do not exclude, 1=exclude (enable charging).
USB_BLACKLIST_PHONE=0

# Printers are excluded from USB autosuspend:
#   0=do not exclude, 1=exclude.
USB_BLACKLIST_PRINTER=1

# WWAN devices are excluded from USB autosuspend:
#   0=do not exclude, 1=exclude.
USB_BLACKLIST_WWAN=1

# Include listed devices into USB autosuspend even if already excluded
# by the blacklists above (separate with spaces).
# Use lsusb to get the ids.
#USB_WHITELIST="1111:2222 3333:4444"

# Set to 1 to disable autosuspend before shutdown, 0 to do nothing
# (workaround for USB devices that cause shutdown problems).
#USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN=1

# Restore radio device state (Bluetooth, WiFi, WWAN) from previous shutdown
# on system startup: 0=disable, 1=enable.
# Hint: the parameters DEVICES_TO_DISABLE/ENABLE_ON_STARTUP/SHUTDOWN below
#   are ignored when this is enabled!
RESTORE_DEVICE_STATE_ON_STARTUP=0

# Radio devices to disable on startup: bluetooth, wifi, wwan.
# Separate multiple devices with spaces.
#DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"

# Radio devices to enable on startup: bluetooth, wifi, wwan.
# Separate multiple devices with spaces.
#DEVICES_TO_ENABLE_ON_STARTUP="wifi"

# Radio devices to disable on shutdown: bluetooth, wifi, wwan.
# (workaround for devices that are blocking shutdown).
#DEVICES_TO_DISABLE_ON_SHUTDOWN="bluetooth wifi wwan"

# Radio devices to enable on shutdown: bluetooth, wifi, wwan.
# (to prevent other operating systems from missing radios).
#DEVICES_TO_ENABLE_ON_SHUTDOWN="wwan"

# Radio devices to enable on AC: bluetooth, wifi, wwan.
#DEVICES_TO_ENABLE_ON_AC="bluetooth wifi wwan"

# Radio devices to disable on battery: bluetooth, wifi, wwan.
#DEVICES_TO_DISABLE_ON_BAT="bluetooth wifi wwan"

# Radio devices to disable on battery when not in use (not connected):
#   bluetooth, wifi, wwan.
#DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE="bluetooth wifi wwan"

# Battery charge thresholds (ThinkPad only, tp-smapi or acpi-call kernel module
# required). Charging starts when the remaining capacity falls below the
# START_CHARGE_THRESH value and stops when exceeding the STOP_CHARGE_THRESH value.
# Main / Internal battery (values in %)
#START_CHARGE_THRESH_BAT0=75
#STOP_CHARGE_THRESH_BAT0=80
# Ultrabay / Slice / Replaceable battery (values in %)
#START_CHARGE_THRESH_BAT1=75
#STOP_CHARGE_THRESH_BAT1=80

# Restore charge thresholds when AC is unplugged: 0=disable, 1=enable.
#RESTORE_THRESHOLDS_ON_BAT=1

# ------------------------------------------------------------------------------
# tlp-rdw - Parameters for the radio device wizard
# Possible devices: bluetooth, wifi, wwan.

# Hints:
# - Parameters are disabled by default, remove the leading # to enable them
# - Separate multiple radio devices with spaces

# Radio devices to disable on connect.
#DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
#DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"
#DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi"

# Radio devices to enable on disconnect.
#DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan"
#DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT=""
#DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=""

# Radio devices to enable/disable when docked.
#DEVICES_TO_ENABLE_ON_DOCK=""
#DEVICES_TO_DISABLE_ON_DOCK=""

# Radio devices to enable/disable when undocked.
#DEVICES_TO_ENABLE_ON_UNDOCK="wifi"
#DEVICES_TO_DISABLE_ON_UNDOCK=""

网络上别人的配置

# tlp - Parameters for power saving

# See full explanation: http://linrunner.de/en/tlp/docs/tlp-configuration.html



# Hint: some features are disabled by default, remove the

leading # to enable

# them.



# Set to 0 to disable, 1 to enable TLP.

TLP_ENABLE=1



# Operation mode when no power supply can be detected: AC, BAT.

# Concerns some desktop and embedded hardware only.

TLP_DEFAULT_MODE=AC



# Operation mode select: 0=depend on power source, 1=always

use TLP_DEFAULT_MODE

# Hint: use in conjunction with TLP_DEFAULT_MODE=BAT for BAT

settings on AC.

TLP_PERSISTENT_DEFAULT=0



# Seconds laptop mode has to wait after the disk goes idle

before doing a sync.

# Non-zero value enables, zero disables laptop mode.

DISK_IDLE_SECS_ON_AC=0

DISK_IDLE_SECS_ON_BAT=2



# Dirty page values (timeouts in secs).

MAX_LOST_WORK_SECS_ON_AC=15

MAX_LOST_WORK_SECS_ON_BAT=60



# Hint: CPU parameters below are disabled by default, remove

the leading #

# to enable them, otherwise kernel default values are used.



# Select a CPU frequency scaling governor.

# Intel Core i processor with intel_pstate driver:

#  powersave(*),performance.

# Older hardware with acpi-cpufreq driver:

#  ondemand(*),powersave, performance, conservative, schedutil.

# (*) is recommended.

# Hint: use tlp-stat -p to show the active driver and

available governors.

# Important:

#  powersave forintel_pstate and ondemand for acpi-cpufreq are power

#  efficient for*almost all* workloads and therefore kernel and most

#  distributions havechosen them as defaults. If you still want to change,

#  you should knowwhat you're doing! You *must* disable your distribution's

#  governor settingsor conflicts will occur.

CPU_SCALING_GOVERNOR_ON_AC=powersave

CPU_SCALING_GOVERNOR_ON_BAT=powersave



# Set the min/max frequency available for the scaling

governor.

# Possible values strongly depend on your CPU. For available

frequencies see

# the output of tlp-stat -p.

#CPU_SCALING_MIN_FREQ_ON_AC=0

#CPU_SCALING_MAX_FREQ_ON_AC=0

#CPU_SCALING_MIN_FREQ_ON_BAT=0

#CPU_SCALING_MAX_FREQ_ON_BAT=0



# Set energy performance hints (HWP) for Intel P-state

governor:

#  performance,balance_performance, default, balance_power, power

# Values are given in order of increasing power saving.

# Note: Intel Skylake or newer CPU and Kernel >= 4.10

required.

CPU_HWP_ON_AC=balance_performance

CPU_HWP_ON_BAT=power



# Set Intel P-state performance: 0..100 (%).

# Limit the max/min P-state to control the power dissipation

of the CPU.

# Values are stated as a percentage of the available

performance.

# Requires an Intel Core i processor with intel_pstate

driver.

CPU_MIN_PERF_ON_AC=0

CPU_MAX_PERF_ON_AC=100

CPU_MIN_PERF_ON_BAT=0

CPU_MAX_PERF_ON_BAT=10



# Set the CPU "turbo boost" feature: 0=disable,

1=allow

# Requires an Intel Core i processor.

# Important:

# - This may conflict with your distribution's governor

settings

# - A value of 1 does *not* activate boosting, it just allows

it

#CPU_BOOST_ON_AC=1

#CPU_BOOST_ON_BAT=0



# Minimize number of used CPU cores/hyper-threads under light

load conditions:

#  0=disable,1=enable.

SCHED_POWERSAVE_ON_AC=0

SCHED_POWERSAVE_ON_BAT=1



# Kernel NMI Watchdog:

#  0=disable (default,saves power), 1=enable (for kernel debugging only).

NMI_WATCHDOG=0



# Change CPU voltages aka "undervolting" - Kernel

with PHC patch required.

# Frequency voltage pairs are written to:

#  /sys/devices/system/cpu/cpu0/cpufreq/phc_controls

# CAUTION: only use this, if you thoroughly understand what

you are doing!

#PHC_CONTROLS="F:V F:V F:V F:V"



# Set CPU performance versus energy savings policy:

#  performance,balance-performance, default, balance-power, power.

# Values are given in order of increasing power saving.

# Requires kernel module msr and x86_energy_perf_policy from

linux-tools.

ENERGY_PERF_POLICY_ON_AC=balance-performance

ENERGY_PERF_POLICY_ON_BAT=power



# Disk devices; separate multiple devices with spaces

(default: sda).

# Devices can be specified by disk ID also (lookup with: tlp

diskid).

DISK_DEVICES="sda sdb"



# Disk advanced power management level: 1..254, 255 (max

saving, min, off).

# Levels 1..127 may spin down the disk; 255 allowable on most

drives.

# Separate values for multiple disks with spaces. Use the

special value 'keep'

# to keep the hardware default for the particular disk.

DISK_APM_LEVEL_ON_AC="keep keep"

DISK_APM_LEVEL_ON_BAT="1 1"



# Hard disk spin down timeout:

#  0:        spin down disabled

#  1..240:  timeouts from 5s to 20min (in units of 5s)

#  241..251: timeoutsfrom 30min to 5.5 hours (in units of 30min)

# See 'man hdparm' for details.

# Separate values for multiple disks with spaces. Use the

special value 'keep'

# to keep the hardware default for the particular disk.

DISK_SPINDOWN_TIMEOUT_ON_AC="240 240"

DISK_SPINDOWN_TIMEOUT_ON_BAT="120 120"



# Select IO scheduler for the disk devices: cfq, deadline,

noop (Default: cfq).

# Separate values for multiple disks with spaces. Use the

special value 'keep'

# to keep the kernel default scheduler for the particular

disk.

#DISK_IOSCHED="cfq cfq"



# AHCI link power management (ALPM) for disk devices:

#  min_power,med_power_with_dipm(*), medium_power, max_performance.

# (*) Kernel >= 4.15 required, then recommended.

# Multiple values separated with spaces are tried

sequentially until success.

SATA_LINKPWR_ON_AC="med_power_with_dipm

max_performance"

SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"



# Exclude host devices from AHCI link power management.

# Separate multiple hosts with spaces.

#SATA_LINKPWR_BLACKLIST="host1"



# Runtime Power Management for AHCI host and disks devices:

#  on=disable,auto=enable.

# EXPERIMENTAL ** WARNING: auto will most likely cause system

lockups/data loss.

#AHCI_RUNTIME_PM_ON_AC=on

#AHCI_RUNTIME_PM_ON_BAT=on



# Seconds of inactivity before disk is suspended.

AHCI_RUNTIME_PM_TIMEOUT=15



# PCI Express Active State Power Management (PCIe ASPM):

#  default,performance, powersave.

PCIE_ASPM_ON_AC=performance

PCIE_ASPM_ON_BAT=powersave



# Radeon graphics clock speed (profile method): low, mid,

high, auto, default;

# auto = mid on BAT, high on AC; default = use hardware

defaults.

#RADEON_POWER_PROFILE_ON_AC=high

#RADEON_POWER_PROFILE_ON_BAT=low



# Radeon dynamic power management method (DPM): battery,

performance.

#RADEON_DPM_STATE_ON_AC=performance

#RADEON_DPM_STATE_ON_BAT=battery



# Radeon DPM performance level: auto, low, high; auto is

recommended.

#RADEON_DPM_PERF_LEVEL_ON_AC=auto

#RADEON_DPM_PERF_LEVEL_ON_BAT=auto



# WiFi power saving mode: on=enable, off=disable; not

supported by all adapters.

WIFI_PWR_ON_AC=off

WIFI_PWR_ON_BAT=on



# Disable wake on LAN: Y/N.

WOL_DISABLE=Y



# Enable audio power saving for Intel HDA, AC97 devices

(timeout in secs).

# A value of 0 disables, >=1 enables power saving

(recommended: 1).

SOUND_POWER_SAVE_ON_AC=0

SOUND_POWER_SAVE_ON_BAT=1



# Disable controller too (HDA only): Y/N.

SOUND_POWER_SAVE_CONTROLLER=Y



# Power off optical drive in UltraBay/MediaBay: 0=disable,

1=enable.

# Drive can be powered on again by releasing (and

reinserting) the eject lever

# or by pressing the disc eject button on newer models.

# Note: an UltraBay/MediaBay hard disk is never powered off.

BAY_POWEROFF_ON_AC=0

BAY_POWEROFF_ON_BAT=0

# Optical drive device to power off (default sr0).

BAY_DEVICE="sr0"



# Runtime Power Management for PCI(e) bus devices:

on=disable, auto=enable.

RUNTIME_PM_ON_AC=on

RUNTIME_PM_ON_BAT=auto



# Exclude PCI(e) device adresses the following list from

Runtime PM

# (separate with spaces). Use lspci to get the adresses (1st

column).

#RUNTIME_PM_BLACKLIST="bb:dd.f 11:22.3 44:55.6"



# Exclude PCI(e) devices assigned to the listed drivers from

Runtime PM.

# Default when unconfigured is "amdgpu nouveau nvidia

radeon" which

# prevents accidential power-on of dGPU in hybrid graphics

setups.

# Use "" to disable the feature completely.

# Separate multiple drivers with spaces.

#RUNTIME_PM_DRIVER_BLACKLIST="amdgpu nouveau nvidia

radeon"



# Set to 0 to disable, 1 to enable USB autosuspend feature.

USB_AUTOSUSPEND=1



# Exclude listed devices from USB autosuspend (separate with

spaces).

# Use lsusb to get the ids.

# Note: input devices (usbhid) are excluded automatically

#USB_BLACKLIST="1111:2222 3333:4444"



# Bluetooth devices are excluded from USB autosuspend:

#  0=do not exclude,1=exclude.

USB_BLACKLIST_BTUSB=0



# Phone devices are excluded from USB autosuspend:

#  0=do not exclude,1=exclude (enable charging).

USB_BLACKLIST_PHONE=0



# Printers are excluded from USB autosuspend:

#  0=do not exclude,1=exclude.

USB_BLACKLIST_PRINTER=1



# WWAN devices are excluded from USB autosuspend:

#  0=do not exclude,1=exclude.

USB_BLACKLIST_WWAN=1



# Include listed devices into USB autosuspend even if already

excluded

# by the blacklists above (separate with spaces).

# Use lsusb to get the ids.

#USB_WHITELIST="1111:2222 3333:4444"



# Set to 1 to disable autosuspend before shutdown, 0 to do

nothing

# (workaround for USB devices that cause shutdown problems).

#USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN=1



# Restore radio device state (Bluetooth, WiFi, WWAN) from

previous shutdown

# on system startup: 0=disable, 1=enable.

# Hint: the parameters

DEVICES_TO_DISABLE/ENABLE_ON_STARTUP/SHUTDOWN below

#  are ignored whenthis is enabled!

RESTORE_DEVICE_STATE_ON_STARTUP=0



# Radio devices to disable on startup: bluetooth, wifi, wwan.

# Separate multiple devices with spaces.

#DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi

wwan"



# Radio devices to enable on startup: bluetooth, wifi, wwan.

# Separate multiple devices with spaces.

#DEVICES_TO_ENABLE_ON_STARTUP="wifi"



# Radio devices to disable on shutdown: bluetooth, wifi,

wwan.

# (workaround for devices that are blocking shutdown).

#DEVICES_TO_DISABLE_ON_SHUTDOWN="bluetooth wifi

wwan"



# Radio devices to enable on shutdown: bluetooth, wifi, wwan.

# (to prevent other operating systems from missing radios).

#DEVICES_TO_ENABLE_ON_SHUTDOWN="wwan"



# Radio devices to enable on AC: bluetooth, wifi, wwan.

#DEVICES_TO_ENABLE_ON_AC="bluetooth wifi wwan"



# Radio devices to disable on battery: bluetooth, wifi, wwan.

#DEVICES_TO_DISABLE_ON_BAT="bluetooth wifi wwan"



# Radio devices to disable on battery when not in use (not

connected):

#  bluetooth, wifi, wwan.

#DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE="bluetooth wifi

wwan"



# Battery charge thresholds (ThinkPad only, tp-smapi or

acpi-call kernel module

# required). Charging starts when the remaining capacity

falls below the

# START_CHARGE_THRESH value and stops when exceeding the

STOP_CHARGE_THRESH value.

# Main / Internal battery (values in %)

#START_CHARGE_THRESH_BAT0=75

#STOP_CHARGE_THRESH_BAT0=80

# Ultrabay / Slice / Replaceable battery (values in %)

#START_CHARGE_THRESH_BAT1=75

#STOP_CHARGE_THRESH_BAT1=80



# Restore charge thresholds when AC is unplugged: 0=disable,

1=enable.

#RESTORE_THRESHOLDS_ON_BAT=1



#

------------------------------------------------------------------------------

# tlp-rdw - Parameters for the radio device wizard

# Possible devices: bluetooth, wifi, wwan.



# Hints:

# - Parameters are disabled by default, remove the leading #

to enable them

# - Separate multiple radio devices with spaces



# Radio devices to disable on connect.

#DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"

#DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"

#DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi"



# Radio devices to enable on disconnect.

#DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan"

#DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT=""

#DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=""



# Radio devices to enable/disable when docked.

#DEVICES_TO_ENABLE_ON_DOCK=""

#DEVICES_TO_DISABLE_ON_DOCK=""



# Radio devices to enable/disable when undocked.

#DEVICES_TO_ENABLE_ON_UNDOCK="wifi"

#DEVICES_TO_DISABLE_ON_UNDOCK=""


启动TLP

sudo tlp start

(如果需要关闭tlp,则在tlp的配置文件中修改即可)

效果

sudo tlp stat

可以看到tlp已经开始工作

过一会后运行:

sudo tlp stat -t

会发现CPU温度已经明显改善

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

电脑发热严重:禁用独立显卡(Nvidia)/ TLP解决cpu占用率大 的相关文章

  • 制作Ghost备份与还原

    用Ghost手动备份系统 用Ghost手动备份系统 xff0c 主要是针对组装电脑而言 xff0c 至于品牌机 xff0c 它都会有自己的系统恢复工具 xff0c 所以不在此列 现在很多人对在使用电脑中出现系统崩溃的故障 xff0c 都会采
  • Docker 安装部署 neo4j

    Neo4j是一个高性能的 NOSQL图形数据库 xff0c 本身就支持集群部署 xff0c 今天要搭建的就是neo4j的因果集群 xff0c 其中分为 xff1a 核心节点 xff1a core server xff0c 可以对数据进行读写
  • 【FTP工具】FileZila安装以及使用详解

    一 FTP概念 安装FTP主要是为了传输文件 xff0c FTP是持久的 xff0c 只有一次认证过程 xff0c 传输多个文件都是使用同一个连接 因为FTP就是为远程文件交互而设计的 xff0c 有些时候只是为了单纯做一个文件传输 xff
  • 【.dll 没有被指定在windows上运行】

    修复 xff08 重新注册DLL xff09 的具体步骤如下 xff1a 方法一 xff1a 1 快捷键win 43 r打开 运行 输入cmd 点击确定打开命令提示符窗口 2 复制 xff1a for 1 in windir system3
  • 在 Centos7 安装 Docker 详细命令行

    Docker 要求 CentOS 系统的内核版本高于 3 10 xff0c 查看本页面的前提条件来验证你的CentOS 版本是否支持 Docker 一 yum源安装docker 1 通过 uname r 命令查看你当前的内核版本 2 使用
  • 怎样将虚拟机文件拷贝至另一台虚拟机?

    1 想要将Master虚拟机中hadoop账户的zookeeper文件拷贝至Slave1虚拟机中 2 将文件打包 3 在Master虚拟机的主文件夹中有着打包好的zookeeper压缩包 4 将压缩包发送至Slave1虚拟机的hadoop账
  • linux 将某个文件夹移动到另一个文件夹下

    若要将某个文件夹整体移动到其它文件夹下 xff0c 可以使用如下命令 mv dir1 dir2 比如我要将上一级目录下的 data 文件夹移动到当前目录下 xff0c 可以使用下面命令 mv data 说明 其中 dir1 参数为 data
  • nextcloud 没有安装 “smbclient“. 无法挂载 “SMB / CIFS“

    Centos7安装apt get 第一步就是下载apt get curl https raw githubusercontent com dvershinin apt get centos master apt get sh o usr l
  • RedHat/CentOS8【OpenSSL】制作自签证书和 HTTPS 配置

    1 OpenSSL 制作自签名证书 1 1 第一阶段 xff1a 制作 CA 根证书 1 2 第二阶段 xff1a 制作服务器证书 1 3 第三阶段 xff1a 制作客户端证书 xff08 双向认证使用 xff09 2 Web 容器配置 H
  • centos安装horizon client

    https blog 51cto com chelaoer 4741839 CentOS 6 6安装Horizon View Client3 4 转载 圪蹴哈么2021 12 03 14 33 40博主文章分类 xff1a 运维 文章标签c
  • 构造函数的4种使用方式总结

    我们无法像调用成员函数那样使用对象来调用构造函数 xff0c 因为在构造函数构造出对象之前 xff0c 对象是不存在的 xff0c 因此构造函数被用来创建对象 xff0c 而不能通过对象来调用 C 43 43 提供了多种使用构造函数初始化创
  • 干线协议(802.1q/ISL)

    干线协议 802 1q交换机针对vlan tag数据帧的处理 ISL 802 1q 一台交换机收到一个数据帧 需要判断其属于哪一个vlan 有两种方法 1 让数据帧带上vlan tag 通过识别tag得知所属vlan 2 给交换机一张表 表
  • Python使用集合将txt文件重复行去除

    最近爬取了百度百科一些关键词的infobox xff0c 由于关键词也是从百度百科页面大量爬取的 xff0c 其中有诸多重复 xff0c 于是使用集合将重复的关键词去掉 xff0c 此方法也适用于其他类型重复行的去除 span class
  • Linux常用命令之软件包管理

    软件包管理 软件包分类 源码包 直接可以看到源码 需要手动编译 安装速度慢 脚本安装包 xff08 部分源码包将安装过程写成脚本 xff0c 交互式安装 xff09 二进制文件包 RPM 系统默认包 已经编译好 安装速度快 rpm命令管理
  • 【Windows11】麦克风不能用、扬声器不能用的解决办法

    这是一个目录0 0 前言扬声器不能用的解决办法麦克风不能用的解决办法 前言 最近笔者刚买的麦克风和扬声器 xff0c 插到电脑上居然不能用 一通排查之后发现原来是Windows系统内的一个设置不对 xff0c 下面是具体解决办法 xff08
  • python django mysql语句增删改查+报错execute() takes from 2 to 3 positional arguments but 4 were given

    python django框架 xff0c 进行增删改查语句 xff1a 1 查询 xff08 1 xff09 正确的写法如下 xff0c cursor execute那句 sql的所有参数 xff0c 应该都写到中括号里面 xff0c 以
  • 方法的形参和实参

    引用博客 博客 何为形参 实参 xff1a 方法定义时的参数称为形式参数 xff0c 简称形参 xff1b 方法调用时的传入参数称为实际参数 xff0c 简称实参 xff1b 实参和形参的类型要一致或兼容 个数 顺序必须一致 例如 span
  • 在linux(debian/ubuntu)中idea的插件默认安装位置和配置文件在哪里?亲测可用

    在 home 当前用户名 config JetBrains IntelliJIdea2020 具体版本号 options 目录下 我的debian10 其他的linux系统应该也在相同的位置
  • 中国电信修改光猫路由模式为桥接模式

    首先 需要搞到超级管理员的账号和密码 可以上网根据光猫型号查找 也可以直接跟安宽带的工作人员要 第一步 准备超级管理员账号和密码 可以自行根据光猫型号搜索 也可以直接跟安宽带的工作人员要 第二步 使用超级管理员账密登录网关管理页面 光猫 一
  • maven官网应该下载binary还是sources

随机推荐

  • Linux(Debian11)iptables放行所有端口

    iptables P INPUT ACCEPT iptables P OUTPUT ACCEPT iptables P FORWARD ACCEPT
  • mysql日期加一天

    使用函数 date add 日期 interval 1 day 即可 select DATE ADD 39 2022 02 24 09 03 36 39 INTERVAL 1 DAY select DATE ADD 39 2022 02 2
  • Debian安装mysql

    Debian 10系统中默认使用了MariaDB xff0c 在APT的软件源中并没有mysql 所以 xff0c Debian 10 如果要安装mysql xff0c 需要下载安装Mysql APT Repository xff0c 更新
  • mysql设置忽略大小写

    在连接数据库的时候发现库里有表的名字只是大小写不一样 xff0c 但就是连不上 xff0c 我用的是mysql5 7 8 默认没有开启忽略大小写 xff0c 这里记录一下 1 查看数据库大小写配置 show variables like 3
  • Linux(debian)常用代理设置

    不管实在开发还是在日常使用中 xff0c 梯子是必不可少的工具 xff0c 但是在linux系统中 xff0c 有时候操作起来不是那么方便 xff0c 于是在此做个笔记 0x01 环境变量设置 设置代理 xff1b echo 39 expo
  • linux(Debian11)安装后安装无线网卡等驱动

    在工作和生活中 xff0c 我们经常会用到linux系统 xff0c debian作为一个老牌的程序员常用发行版 xff0c 自然成为我们的首选 下面记录一下 xff0c 安装无线网卡的过程 首先 xff0c 可以通过命令查看自己所需要的驱
  • 基于深度学习的知识追踪研究进展 Research Advances in the Knowledge Tracing Based on Deep Learning

    8 基于深度学习的知识追踪研究进展 Research Advances in the Knowledge Tracing Based on Deep Learning 摘要 xff1a 知识追踪是教育数据挖掘领域的一个重要研究方向 xff0
  • Tomcat控制台弱密码漏洞

    文章目录 一 漏洞介绍1 1 漏洞原理1 2 影响版本1 3 触发条件 二 环境搭建2 1 环境信息2 2 tomcat配置2 3 配置漏洞环境 三 攻击过程3 1 控制台弱密码3 2 冰蝎控制 四 漏洞修复 一 漏洞介绍 1 1 漏洞原理
  • linux(debian11)系统安装那些事儿--没有无线网需要安装无线网卡驱动双显卡等问题

    linux在日常的工作和生活中是经常用到的 xff0c 在安装的时候 xff0c 和windows不太一样 xff0c 有些驱动是需要我们自己手动安装的 xff0c 但是也并不麻烦 这里记录一下 xff0c 一种很简单的安装intel无线网
  • java线程编排CompletableFuture

    在开发中偶尔也会需要用到线程编排 比如查询商品数据 查询商品规格信息和商品图片耗时分别是1 2s和5s 如果是异步执行 那么就可以使用5s完成查询了 而不是6 2s 这里记录一下 CompletableFuture完成线程编排 import
  • dump数据库导表线上服务无响应

    有时候 有些场景下 我们需要拷贝线上的数据 进行本地测试 如果你用的是dbeaver工具操作数据库 在拷贝数据库的时候容易导致服务器没响应 看服务正常运行 但是前端访问就是没反应 服务器也没欠费 这是什么情况呢 就是mysql在进行dump
  • 多线程之如何设计线程数量

    创建多少线程合适 xff0c 要看多线程具体的应用场景 一般来说 xff0c 我们可以将程序分为 xff1a CPU密集型程序和I O密集型程序 xff0c 而针对于CPU密集型程序和I O密集型程序 xff0c 其计算最佳线程数的方法是不
  • P1825 [USACO11OPEN]Corn Maze S 题解

    这道题就是一道普通的搜索题 xff0c 非常非常普通 xff0c 普通的不能再普通那种 xff0c 和以前的bfs一样 xff0c 不过这个bfs要注意一个特判 xff0c 当弹出的那个元素的是大写字母的时候 xff0c 要窜梭到对应的大写
  • 向CentOS7虚拟机中复制文件报错error when getting information

    xff08 安装过程中 xff0c 所有询问 xff0c 都是 yes 或者按 Enter 同意默认路径 xff0c 其中的一个要注意的见下图 xff09
  • 程序设计思维与实践week12作业

    文章目录 A 必做题 1 HDU 1029描述输入输出样例想法代码 B 必做题 2 POJ 2251描述输入输出样例想法代码 C 必做题 3 HDU 1024描述东东每个学期都会去寝室接受扫楼的任务 xff0c 并清点每个寝室的人数 输入输
  • nginx安装时/ngx_murmurhash.c:37:11: error: this statement may fall through [-Werror=implicit-fallthroug

    nginx安装时 ngx murmurhash c 37 11 error this statement may fall through Werror 61 implicit fallthroug如图报错 nginx 1 8 objs M
  • vmware如何把虚拟机和本地主机如何设置在同一网段

    我的本地系统是win10系统 xff0c 其它系统方法没试过 xff0c 应该差不多 一 前提是你此时已经安装好了vmware与操作系统了 二 首先在本地系统上操作 xff1a 1 2 3 4 右键该选择查看属性 ip4 不用做其它操作 5
  • 树莓派3B+指南(十五)omxplayer的安装与使用

    omxplayer的安装与使用 需要用python来控制播放视频 xff0c 所以就找到了这个播放器 xff0c 很好用 看了官网文档 xff0c 安装使用都写的比较明白了 官网地址 xff1a https python omxplayer
  • 使用ffmpeg将实时流保存为AVI

    项目中需要将编码器编码出的H264数据保存为avi格式文件 使用ffmpeg接口进行实现 ffmpeg一般是直接打开本地视频文件 如avi mp4等 或者网络视频流 如 xff1a rtmp流媒体等 xff0c 只需要直接将本地视频文件名或
  • 电脑发热严重:禁用独立显卡(Nvidia)/ TLP解决cpu占用率大

    引言 CPU温度经常居高不下 xff0c 每天风扇嗡嗡响 xff0c 尝试过许多办法都没有解决 xff0c 最后用了一个工具 xff0c 并禁用独显 xff0c 明显改善 xff01 1 禁用独立显卡 参考 xff08 真正帮我解决问题的方