Thinkpad P16V

From Geitenpad
Revision as of 17:36, 13 April 2025 by Rijk (talk | contribs) (Created page with "=== Wifi === https://forums.lenovo.com/t5/Other-Linux-Discussions/QCNFA765-Linux-ath11k-wifi-crippled-high-latency-packet-loss-frequent-disassociations-T14s-AMD/m-p/5252399?page=1 sudo iw dev wlan0 set power_save off === Fancontrol === yay -S thinkfan-git sudo cp /usr/share/doc/thinkfan/thinkfan.yaml /etc/thinkfan.conf modprobe thinkpad_acpi sudo systemctl enable thinkfan cat /etc/thinkfan.conf ################################################################...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Wifi

https://forums.lenovo.com/t5/Other-Linux-Discussions/QCNFA765-Linux-ath11k-wifi-crippled-high-latency-packet-loss-frequent-disassociations-T14s-AMD/m-p/5252399?page=1

sudo iw dev wlan0 set power_save off

Fancontrol

yay -S thinkfan-git
sudo cp /usr/share/doc/thinkfan/thinkfan.yaml /etc/thinkfan.conf
modprobe thinkpad_acpi
sudo systemctl enable thinkfan
cat /etc/thinkfan.conf
  1. Sensor Drivers and Temperature Inputs
  2. =====================================
  3. ATTENTION: The order in which sensors are specified here is significant when
  4. specifying the fan speeds further below!
  5. There are multiple ways in which a temperature input can be specified. An
  6. example for each is given below.
  7. The "correction:" and "optional:" keywords may be specified on any type of
  8. sensor.

sensors:

 # LM Sensors
 # ==========
 # Temperatures can be read directly from Linux drivers through the LM sensors.
 #
 # To configure this, install "lm-sensors" and "libsensors", then
 # run "sensors-detect", then run "sensors".
 # To build thinkfan from sources, you'll also need to install "libsensors-dev"
 # or equivalent package for your distribution.
 #
 # For example, the following output of "sensors":
 # ...
 # thinkpad-isa-0000
 # Adapter: ISA adapter
 # fan1:        2618 RPM
 # fan2:        2553 RPM
 # CPU:          +63.0 C  
 # GPU 1:        +55.0 C  
 # temp3:        +68.0 C  
 # temp4:         +0.0 C  
 # temp5:        +60.0 C  
 # temp6:        +64.0 C  
 # temp7:        +67.0 C  
 # temp8:         +0.0 C  
 # ...
 # would result in the following configuration:
 - chip: thinkpad-isa-0000
   ids: [ CPU, temp3, temp4, temp5, temp6, temp7 ]
 # hwmon: Full path to a temperature file (single sensor).
 # =======================================================
 # Disadvantage is that the index in "hwmon0" depends on the load order of
 # the driver modules, which may change across bootups on some systems.
  1. - hwmon: /sys/class/hwmon/hwmon0/temp1_input
 # hwmon: Path to a complete driver folder
 # =======================================
 # Individual sensors need to be picked out with the "indices:" keyword.
 # This can be used with a stable path that does not depend on driver load
 # order. However certain drivers may not appear under such a stable path.
  1. - hwmon: /sys/devices/pci0000:00/0000:00:03.1/0000:27:00.0/hwmon
  2. indices: [1, 2, 5, 6] # adds 4 temperature sensors
  3. correction: [0, 0, 0, -5] # add -5 °C to temp6_input
 # hwmon: Base path with name-based search
 # =======================================
 # Thinkfan will search under the given path for a hwmon driver that has a
 # file called "name" which contains the given name. This method should work
 # with all hwmon drivers and is robust against driver load order.
  1. - hwmon: /sys/class/hwmon
  2. name: k10temp
  3. indices: [1]
 # Sensors can also be optional, e.g. in case of removable hardware
  1. - hwmon: /sys/class/block/sdc/device/hwmon
  2. indices: [1]
  3. optional: true # don't exit if the sensor can't be read
 # atasmart: Read the temperature from a hard disk via S.M.A.R.T
 # =============================================================
 # Note that this is unreasonably CPU-intensive. Since Linux 5.6, the kernel
 # can report the temperatures of hard disks via the hwmon interface (see the
 # example above), which should be preferred if available.
 #
 # This is only available if thinkfan was compiled with USE_ATASMART enabled.
  1. - atasmart: /dev/sda
 # tpacpi: Legacy interface to the thinkpad_acpi driver
 # ====================================================
 # Particularly on older Thinkpad laptops, this interface may give access to
 # 8-16 temperature sensors, but it may be hard to tell where/what exactly
 # they measure.
 # Some documentation for older models may be found at the thinkpad wiki:
 # https://www.thinkwiki.org/wiki/Thermal_Sensors
 #
 # Note that the hwmon interface is to be preferred nowadays.
  1. - tpacpi: /proc/acpi/ibm/thermal
   # Some of the temperature entries in /proc/acpi/ibm/thermal may be
   # irrelevant or unused, so individual ones can be selected:
  1. indices: [1, 2, 3, 4]
 # nvml: The proprietary nVidia driver
 # ===================================
 # Temperatures can be read directly from nVidia GPUs that run with the
 # proprietary driver. The "nvml:" entry must specify the PCI bus ID of the
 # GPU (can be found with lspci)
 #
 # Note that this does not work with the open-source "nouveau" driver. Open
 # source drivers should support the hwmon interface instead (see above).
  1. - nvml: 27:00.0


  1. Fan Drivers
  2. ===========
  3. Currently, thinkfan supports only one fan, but support for multiple fans is
  4. in development and will be released soon. For the time being, the examples
  5. given below are mutually exclusive.

fans:

 # hwmon: Full path to a PWM file
 # ==============================
 # Also subject to the potential problem with driver load order (see above)
  1. - hwmon: /sys/class/hwmon/hwmon0/pwm1
 # hwmon: Path to a complete driver folder
 # =======================================
  1. - hwmon: /sys/class/graphics/fb0/device/hwmon
  2. indices: [1] # Use pwm1
 # hwmon: Base path with name-based search
 # =======================================
  1. - hwmon: /sys/class/hwmon
  2. name: amdgpu
  3. indices: [1]
 # tpacpi: Thinkpad-specific fan interface
 # =======================================
 # Currently, this is the only way to use disengaged and automatic mode on
 # thinkpads.
 - tpacpi: /proc/acpi/ibm/fan


  1. Fan Speeds (simple mode)
  2. ========================
  3. In simple mode, each entry is a [FANSPEED, LOWER_LIMIT, UPPER_LIMIT] tuple.
  4. This is a quick way to configure a small system like a laptop, where the
  5. temperature ratings for all monitored devices are similar. Only the highest
  6. temperature found across all sensors will be compared against these limits.
  7. All other temperatures are ignored.
  8. Correction values on individual sensors (see above) may be used to equalize
  9. small discrepancies in temperature ratings.
  10. The FANSPEED values in this example are valid for the thinkpad_acpi fan
  11. driver only (see above)

levels:

 - [0, 0, 50]
 - ["level auto", 45, 75]
 - ["level disengaged", 70, 255]


  1. Fan Speeds (detailed mode)
  2. ==========================
  3. It is generally advisable to configure the temperature limits for each
  4. sensor individually.
  5. The speed values used here range from 0 to 255, which is valid for the PWM
  6. control files used by hwmon-based drivers.
  7. The temperatures specified in upper_limit and lower_limit apply to the
  8. sensors in the same order in which they were specified in the "sensors:"
  9. section above, and their length must match the total number of sensors that
  10. have been configured.
  11. levels:
  12. - speed: 0
  13. upper_limit: [50, 50, 50]
  14. - speed: 100
  15. lower_limit: [45, 45, 45]
  16. upper_limit: [65, 65, 65]
  17. - speed: 255
  18. lower_limit: [60, 60, 60]