笔记本风扇如何启用最高速的级别

用了一段时间的4k显示器,发现了一个问题,风扇好像不管怎么吃cpu,都无法开启最高级别的转速,正常情况下看一个1080p的电影,win下是可以听到风扇呼的很大的声音的,但是arch下就是一般的风扇转速,要仔细听才能听到声音,而且就算画面掉帧了,风扇也不会加速,感觉这样对散热很不好啊,有什么办法解决呢?

你用 sensors 命令看一下温度?
另外注意一下掉帧的时候是不是 CPU 用满了。看一下内核日志,是不是因为过热降频了。

8月 01 10:29:06 cm-pc google-chrome.desktop[1358]: [1448:1455:0801/102906.726515:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
8月 01 10:29:18 cm-pc google-chrome.desktop[1358]: [1448:1455:0801/102918.462477:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
8月 01 10:29:21 cm-pc google-chrome.desktop[1358]: [1448:1455:0801/102921.877428:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
8月 01 10:29:22 cm-pc google-chrome.desktop[1358]: [1448:1455:0801/102922.090019:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
8月 01 10:29:23 cm-pc google-chrome.desktop[1358]: [1448:1455:0801/102923.497522:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
8月 01 10:29:28 cm-pc google-chrome.desktop[1358]: [1448:1455:0801/102928.699956:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
8月 01 10:29:42 cm-pc google-chrome.desktop[1358]: [4605:27:0801/102942.085515:ERROR:stun_port.cc(96)] Binding request timed out from 0.0.0.x:36729 (any)
8月 01 10:29:42 cm-pc google-chrome.desktop[1358]: [4605:27:0801/102942.086201:ERROR:stun_port.cc(96)] Binding request timed out from 0.0.0.x:36729 (any)
8月 01 10:29:56 cm-pc google-chrome.desktop[1358]: [1448:1455:0801/102956.011657:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
8月 01 10:30:01 cm-pc google-chrome.desktop[1358]: [4605:27:0801/103001.087329:ERROR:stun_port.cc(96)] Binding request timed out from 0.0.0.x:58966 (any)
8月 01 10:30:01 cm-pc google-chrome.desktop[1358]: [4605:27:0801/103001.087833:ERROR:stun_port.cc(96)] Binding request timed out from 0.0.0.x:58966 (any)
8月 01 10:30:01 cm-pc google-chrome.desktop[1358]: [1448:1455:0801/103001.126298:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
8月 01 10:30:10 cm-pc google-chrome.desktop[1358]: [1448:1455:0801/103010.300718:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
8月 01 10:30:11 cm-pc google-chrome.desktop[1358]: [1448:1455:0801/103011.368027:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
8月 01 10:30:18 cm-pc google-chrome.desktop[1358]: [1448:1455:0801/103018.465542:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
8月 01 10:30:33 cm-pc google-chrome.desktop[1358]: [1448:1455:0801/103033.770497:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
8月 01 10:30:42 cm-pc google-chrome.desktop[1358]: [1448:1455:0801/103042.088333:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
8月 01 10:30:49 cm-pc google-chrome.desktop[1358]: [1448:1455:0801/103049.131371:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -101
8月 01 10:30:49 cm-pc dbus-daemon[338]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.89' (uid=0 pid=4967 comm="sudo journalct>
8月 01 10:30:49 cm-pc dbus-daemon[338]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
8月 01 10:30:49 cm-pc sudo[4967]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
8月 01 10:30:49 cm-pc kernel: audit: type=1101 audit(1627785049.905:132): pid=4967 uid=1000 auid=1000 ses=4 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="cm" exe="/usr/bin/sudo" hostname=?>
8月 01 10:30:49 cm-pc audit[4967]: USER_ACCT pid=4967 uid=1000 auid=1000 ses=4 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="cm" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 r>
8月 01 10:30:49 cm-pc sudo[4967]:       cm : TTY=pts/0 ; PWD=/home/cm ; USER=root ; COMMAND=/usr/bin/journalctl
8月 01 10:30:49 cm-pc audit[4967]: CRED_REFR pid=4967 uid=1000 auid=1000 ses=4 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? termin>
8月 01 10:30:49 cm-pc audit[4967]: USER_START pid=4967 uid=1000 auid=1000 ses=4 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/>
8月 01 10:30:49 cm-pc sudo[4967]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
8月 01 10:30:49 cm-pc kernel: audit: type=1110 audit(1627785049.908:133): pid=4967 uid=1000 auid=1000 ses=4 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/s>
8月 01 10:30:49 cm-pc kernel: audit: type=1105 audit(1627785049.908:134): pid=4967 uid=1000 auid=1000 ses=4 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" host>
8月 01 10:30:58 cm-pc sudo[4967]: pam_unix(sudo:session): session closed for user root
8月 01 10:30:58 cm-pc kernel: audit: type=1106 audit(1627785058.888:135): pid=4967 uid=1000 auid=1000 ses=4 msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hos>
8月 01 10:30:58 cm-pc kernel: audit: type=1104 audit(1627785058.888:136): pid=4967 uid=1000 auid=1000 ses=4 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/s>
8月 01 10:30:58 cm-pc audit[4967]: USER_END pid=4967 uid=1000 auid=1000 ses=4 msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/p>
8月 01 10:30:58 cm-pc audit[4967]: CRED_DISP pid=4967 uid=1000 auid=1000 ses=4 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? termin>
8月 01 10:30:59 cm-pc dbus-daemon[338]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.90' (uid=0 pid=4971 comm="sudo journalct>
8月 01 10:30:59 cm-pc dbus-daemon[338]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
8月 01 10:30:59 cm-pc sudo[4971]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
8月 01 10:30:59 cm-pc audit[4971]: USER_ACCT pid=4971 uid=1000 auid=1000 ses=4 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="cm" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 r>
8月 01 10:30:59 cm-pc sudo[4971]:       cm : TTY=pts/0 ; PWD=/home/cm ; USER=root ; COMMAND=/usr/bin/journalctl
8月 01 10:30:59 cm-pc audit[4971]: CRED_REFR pid=4971 uid=1000 auid=1000 ses=4 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? termin>
8月 01 10:30:59 cm-pc kernel: audit: type=1101 audit(1627785059.711:137): pid=4971 uid=1000 auid=1000 ses=4 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="cm" exe="/usr/bin/sudo" hostname=?>
8月 01 10:30:59 cm-pc kernel: audit: type=1110 audit(1627785059.711:138): pid=4971 uid=1000 auid=1000 ses=4 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/s>
8月 01 10:30:59 cm-pc audit[4971]: USER_START pid=4971 uid=1000 auid=1000 ses=4 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal
ucsi_source_psy_USBC000:002-isa-0000
Adapter: ISA adapter
in0:           5.00 V  (min =  +5.00 V, max = +13.20 V)
curr1:         3.00 A  (max =  +3.06 A)

iwlwifi_1-virtual-0
Adapter: Virtual device
temp1:        +55.0°C  

thinkpad-isa-0000
Adapter: ISA adapter
fan1:        5025 RPM
CPU:          +60.0°C  
GPU:              N/A  
temp3:         +0.0°C  
temp4:         +0.0°C  
temp5:         +0.0°C  
temp6:         +0.0°C  
temp7:         +0.0°C  
temp8:            N/A  

nvme-pci-0400
Adapter: PCI adapter
Composite:    +54.9°C  (low  =  -5.2°C, high = +79.8°C)
                       (crit = +84.8°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +62.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:        +58.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:        +60.0°C  (high = +100.0°C, crit = +100.0°C)
Core 2:        +55.0°C  (high = +100.0°C, crit = +100.0°C)
Core 3:        +58.0°C  (high = +100.0°C, crit = +100.0°C)

ucsi_source_psy_USBC000:001-isa-0000
Adapter: ISA adapter
in0:           0.00 V  (min =  +0.00 V, max =  +0.00 V)
curr1:         3.00 A  (max =  +0.00 A)

BAT0-acpi-0
Adapter: ACPI interface
in0:          13.13 V  

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +60.0°C  (crit = +128.0°C)

我这是集显,不知道什么情况下用满,总之cpu到了500%多之后就不行了,然后画面卡住,掉帧

从日志可以看出,你的 Google Chrome 连不上网了……

不是大佬,斗胆回答。

首先,笔记本的风扇一般是不归CPU管的,它被规划到了笔记本的另一个芯片上,它的名字叫EC,它是一个独立于CPU工作的芯片。
具体的控制方式,嗯…,太过于复杂,不懂。

再次,貌似thinkpad的风扇控制在wiki上有写:
Fan speed control for ThinkPad_laptops

仙子大人不是也用thinkpad的么?

是啊,但是我的没感觉有什么问题啊。我也不喜欢风扇使劲转,太吵了。

驱动4k的显示屏,没有独立显卡的话,确实会很吃cpu,当然这个时候笔记本已经远离自己了,声音大点我还可以接受

我也4k显示器,UHD 630,挺安静的呀。浏览器播放视频会比较吃 CPU,用 mpv 就好了(开启硬件加速)。

怎么说呢,昨天对比了以下浏览器播放高清视频,win下确实流畅度要比linux下要高,而且除非一些弹幕特别多的视频,win下就没有发现掉帧问题,而二者最明显的区别就是2者的风扇转速不同

你配置了视频硬件加速没有?

没,具体怎么配呢?我主用谷歌浏览器

https://wiki.archlinux.org/index.php/Hardware_video_acceleration

额,有点没看懂我显卡是 Intel® Xe Graphics 应该是装intel-media-driver 这个把,完了我应该如何验证我看该视频是硬解还是软解呢?

sudo intel_gpu_top 看看有没有在使用「Video」功能。

e,好像没有用啊,intel-media-driver和libva-intel-driver 都装过了 vedio一直是0% 是有什么地方还要再配置下么?

ArchWiki 都有写呀。不光要装,还要配置的。

你好,我先用mpv试了下,发现还是没有启用硬件加速啊,请问是驱动装的有问题么?

$vainfo
vainfo: VA-API version: 1.12 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 21.2.3 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileNone                   :	VAEntrypointStats
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointFEI
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointFEI
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointFEI
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointFEI
      VAProfileHEVCMain               :	VAEntrypointEncSliceLP
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointEncSliceLP
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile1            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileVP9Profile3            :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointEncSlice
      VAProfileHEVCMain422_10         :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointEncSlice
      VAProfileHEVCMain422_12         :	VAEntrypointVLD
      VAProfileHEVCMain422_12         :	VAEntrypointEncSlice
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          :	VAEntrypointVLD
      VAProfileHEVCSccMain10          :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         :	VAEntrypointVLD
      VAProfileHEVCSccMain444         :	VAEntrypointEncSliceLP
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointEncSliceLP

$mpv --hwdec=auto-safe ./03.mp4
 (+) Video --vid=1 (*) (h264 1280x720 29.970fps)
 (+) Audio --aid=1 --alang=jpn (*) (aac 2ch 48000Hz)
File tags:
 Artist: T.H.X
[vo/gpu/wayland] GNOME's wayland compositor lacks support for the idle inhibit protocol. This means the screen can blank during playback.
[ffmpeg] AVHWDeviceContext: Failed to query surface attributes: 20 (the requested function is not implemented).
[vo/gpu/vaapi-egl] failed to retrieve libavutil frame constraints
Cannot load libcuda.so.1
AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 1280x720 yuv420p10
AV: 00:25:41 / 00:46:25 (55%) A-V:  0.000
Track switched:
 (+) Video --vid=1 (*) (h264 1280x720 29.970fps)
     Audio --aid=1 --alang=jpn (*) (aac 2ch 48000Hz)
V: 00:25:42 / 00:46:25 (55%)
Track switched:
 (+) Video --vid=1 (*) (h264 1280x720 29.970fps)
 (+) Audio --aid=1 --alang=jpn (*) (aac 2ch 48000Hz)
AO: [pulse] 48000Hz stereo 2ch float

你是 wayland 啊。使用 --hwdec=auto 和 --gpu-context=wayland 试试?

mpv --hwdec=auto --gpu-context=wayland ./03.mp4 这样子么? 对比了一下输出,并没有变。

风扇无法控制的主要原因是风扇不开源 这个我试过 最终man fancontrol始终解决不了风扇不识别的问题