ThinkPad:ArchLinux: Difference between revisions
(Created page with "= Battery = Install TLP and related packages. {{Console|1=yaourt -S tlp tp_smapi acpi_call|2=sudo tlp start}} TLP status can be shown with the following: {{Co...") |
|||
Line 7: | Line 7: | ||
Install [//aur.archlinux.org/packages/thinkfan/ thinkfan], default configuration is installed into {{mono|/usr/lib/modprobe.d/thinkpad_acpi.conf}}. | Install [//aur.archlinux.org/packages/thinkfan/ thinkfan], default configuration is installed into {{mono|/usr/lib/modprobe.d/thinkpad_acpi.conf}}. | ||
{{Console|1=yaourt -S acpi lm_sensors thinkfan}} | {{Console|1=yaourt -S acpi lm_sensors thinkfan}} | ||
Then detect the hardware monitors chips that are available. | Then detect the hardware monitors chips that are available. Then re-enable the {{mono|thinkpad_acpi}} kernel module to update with the new config. | ||
{{Console|1=sudo sensors-detect}} | {{Console|1=sudo sensors-detect|2=sudo modprobe thinkpad_acpi}} | ||
To show the current thermal and cooling information use [[archwiki:ACPI Modules|acpi]]. | To show the current thermal and cooling information use [[archwiki:ACPI Modules|acpi]]. | ||
{{Console|1=sudo acpi -V}} | {{Console|1=sudo acpi -V}} | ||
Line 17: | Line 17: | ||
When finished it should look something like this: | When finished it should look something like this: | ||
{{Console|prompt=false|1=hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input<br/>hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input<br/>hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_input<br/>hwmon /sys/devices/virtual/hwmon/hwmon1/temp1_input<br/>tp_fan /proc/acpi/ibm/fan<br/><br/>(0, 0, 35)<br/>(1, 33, 38)<br/>(2, 36, 45)<br/>(3, 39, 49)<br/>(4, 46, 58)<br/>(5, 50, 62)<br/>(7, 56, 32767)}} | {{Console|prompt=false|1=hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input<br/>hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input<br/>hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_input<br/>hwmon /sys/devices/virtual/hwmon/hwmon1/temp1_input<br/>tp_fan /proc/acpi/ibm/fan<br/><br/>(0, 0, 35)<br/>(1, 33, 38)<br/>(2, 36, 45)<br/>(3, 39, 49)<br/>(4, 46, 58)<br/>(5, 50, 62)<br/>(7, 56, 32767)}} | ||
You can verify the config is written correctly with the following command. | |||
{{Console|1=sudo thinkfan -n}} | |||
Finally enable and start thinkfan. | |||
{{Console|1=sudo systemctl enable thinkfan|2=sudo systemctl start thinkfan}} |
Revision as of 20:02, 15 July 2017
Battery
Install TLP and related packages.
# yaourt -S tlp tp_smapi acpi_call # sudo tlp start |
TLP status can be shown with the following:
# sudo tlp-stat |
Fan Control
Install thinkfan, default configuration is installed into /usr/lib/modprobe.d/thinkpad_acpi.conf.
# yaourt -S acpi lm_sensors thinkfan |
Then detect the hardware monitors chips that are available. Then re-enable the thinkpad_acpi kernel module to update with the new config.
# sudo sensors-detect # sudo modprobe thinkpad_acpi |
To show the current thermal and cooling information use acpi.
# sudo acpi -V |
To show the current fan speed and level.
# sudo cat /proc/acpi/ibm/fan |
Make the changes to point it to the right temperature reading, you can use :r !sudo find /sys/devices -type f -name "temp*_input" in order to paste all the monitors into the file.
# sudo vim /etc/thinkfan.conf |
When finished it should look something like this:
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_input hwmon /sys/devices/virtual/hwmon/hwmon1/temp1_input tp_fan /proc/acpi/ibm/fan (0, 0, 35) (1, 33, 38) (2, 36, 45) (3, 39, 49) (4, 46, 58) (5, 50, 62) (7, 56, 32767) |
You can verify the config is written correctly with the following command.
# sudo thinkfan -n |
Finally enable and start thinkfan.
# sudo systemctl enable thinkfan # sudo systemctl start thinkfan |