[Internal testing communication] 安装tlp电流管理,修改tlp参数,成功解决外置音箱电流声
Tofloor
poster avatar
qq4945286
deepin
2025-08-06 10:33
Author

没有安装tlp时,按到https://bbs.deepin.org.cn/post/286364这帖子能成功解决,音箱的电流声,但是安装好tlp电源管理。发现按https://bbs.deepin.org.cn/post/286364帖子的方法就不启作用了。每次进入系统前第一件事就是在终端输入

sudo sh -c "echo 0 > /sys/module/snd_hda_intel/parameters/power_save"

来暂时解决电流声。

今天终于通过修改tlp参数,解决了电流的声音。下面的是方法

到这里/etc/tlp.conf右键以管理员的身份打开

能后就可以用系统中的文本软件打开了

image.png

修改音频省电参数
在文件中找到以下参数(默认可能被注释,即前面带 #),按以下方式修改:

# 禁用交流电源(AC)下的音频省电模式
SOUND_POWER_SAVE_ON_AC=0
# 禁用电池(BAT)下的音频省电模式
SOUND_POWER_SAVE_ON_BAT=0

# 禁用音频控制器的省电(避免控制器关闭导致的问题)
SOUND_POWER_SAVE_CONTROLLER=N

修改好后,强制重启tlp服务

sudo systemctl restart tlp

验证配置

再次运行以下命令查看音频省电模式状态:

tlp-stat | grep -i "sound\|audio"

如果配置生效,会显示类似以下内容:

SOUND_POWER_SAVE_ON_AC=0
SOUND_POWER_SAVE_ON_BAT=0
SOUND_POWER_SAVE_CONTROLLER=N

到这里就应该解决了音箱电流的声音,我的是台式机

下面是我的修改好的tlp.conf

# ------------------------------------------------------------------------------
# /etc/tlp.conf - TLP user configuration (version 1.7.0)
# See full explanation: https://linrunner.de/tlp/settings
#
# Copyright (c) 2024 Thomas Koch  and others.
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Settings are read in the following order:
#
# 1. Intrinsic defaults
# 2. /etc/tlp.d/*.conf - Drop-in customization snippets
# 3. /etc/tlp.conf     - User configuration (this file)
#
# Notes:
# - In case of identical parameters, the last occurence has precedence
# - This also means, parameters enabled here will override anything else
# - However you may append values to a parameter already defined as intrinsic
#   default or in a previously read file: use PARAMETER+="add values"
# - IMPORTANT: all parameters here are disabled; remove the leading '#' if you
#   like to enable a feature without default or have a value different from the
#   default
# - Default *: intrinsic default that is effective when the parameter is missing
#   or disabled by a leading '#'; use PARAM="" to disable an intrinsic default
# - Default : do nothing or use kernel/hardware defaults
# - IMPORTANT: parameters must always be specified pairwise i.e. for
#   both AC and BAT. Omitting one of the two makes the set value effective for
#   both power sources, since a change only occurs when different values are
#   defined.
# ------------------------------------------------------------------------------
# tlp - Parameters for power saving

# (其他默认注释的参数保持不变,此处省略)

# Enable audio power saving for Intel HDA, AC97 devices (timeout in secs).
# A value of 0 disables, >= 1 enables power saving.
# Note: 1 is recommended for Linux desktop environments with PulseAudio,
# systems without PulseAudio may require 10.
# Default: 1

# 解除交流电源(AC)下的音频省电模式
SOUND_POWER_SAVE_ON_AC=0
# 解除电池(BAT)下的音频省电模式
SOUND_POWER_SAVE_ON_BAT=0

# Disable controller too (HDA only): Y/N.
# Note: effective only when SOUND_POWER_SAVE_ON_AC/BAT is activated.
# Default: Y

# 禁用音频控制器的省电功能(避免控制器关闭导致的问题)
SOUND_POWER_SAVE_CONTROLLER=N

# (其他默认注释的参数保持不变,此处省略)
Reply Favorite View the author
All Replies
a-bird
deepin
2025-08-06 11:26
#1

tlp究竟是什么东西啊?CPU发热和这个有关系吗???

Reply View the author
redeagle
deepin
2025-08-06 11:41
#2

linux 电源管理工具,通过调节硬件工作状态实现电池续航优化

Reply View the author
qq4945286
deepin
2025-08-06 12:46
#3
redeagle

linux 电源管理工具,通过调节硬件工作状态实现电池续航优化

你可以参考这个帖子https://bbs.deepin.org.cn/post/284598

Reply View the author