ThinkPad:ArchLinux: Difference between revisions
mNo edit summary |
|||
Line 1: | Line 1: | ||
= Traditional Network Interface Names = | = Customization = | ||
=== Keeping the Boot Log on TTY1 === | |||
In order to stop Arch Linux from clearing the screen on boot we can add the {{mono|i915}} module to {{mono|MODULES}} inside of {{mono|/etc/mkinitcpio.conf}} and then regenerate our kernel images. | |||
{{Console|1=sudo sed -i -r 's/^MODULES="([a-z0-9 _-]+)"/MODULES="\1 i915"/' /etc/mkinitcpio.conf|2=sudo mkinitcpio -p linux}} | |||
Then create a directory for getty overrides and create one with the following. | |||
{{Console|1=sudo mkdir /etc/systemd/system/getty@tty1.service.d|2=sudo vim /etc/systemd/system/getty@tty1.service.d/noclear.conf}}<br/> | |||
{{Console|prompt=false|1=[Service]<br/>TTYVTDisallocate{{=}}no}} | |||
=== Traditional Network Interface Names === | |||
To translate the predictable network interface names back into traditional ones, can create the following. You can use the vim command {{mono|:r !cat /sys/class/net/wlp3s0/address}}, replacing the device node respectively, in order to get the MAC Address of each device. | To translate the predictable network interface names back into traditional ones, can create the following. You can use the vim command {{mono|:r !cat /sys/class/net/wlp3s0/address}}, replacing the device node respectively, in order to get the MAC Address of each device. | ||
{{Console|1=vim /etc/udev/rules.d/10-network.rules}}<br/> | {{Console|1=vim /etc/udev/rules.d/10-network.rules}}<br/> | ||
{{Console|prompt=false|1=SUBSYSTEM{{=}}{{=}}"net", ACTION{{=}}{{=}}"add", ATTR{address}{{=}}{{=}}"MAC_ADDRESS_FOR_NIC", NAME{{=}}{{=}}"eth0"<br/>SUBSYSTEM{{=}}{{=}}"net", ACTION{{=}}{{=}}"add", ATTR{address}{{=}}{{=}}"MAC_ADDRESS_FOR_WIFI", NAME{{=}}{{=}}"wlan0"}} | {{Console|prompt=false|1=SUBSYSTEM{{=}}{{=}}"net", ACTION{{=}}{{=}}"add", ATTR{address}{{=}}{{=}}"MAC_ADDRESS_FOR_NIC", NAME{{=}}{{=}}"eth0"<br/>SUBSYSTEM{{=}}{{=}}"net", ACTION{{=}}{{=}}"add", ATTR{address}{{=}}{{=}}"MAC_ADDRESS_FOR_WIFI", NAME{{=}}{{=}}"wlan0"}} | ||
= Battery = | = Hardware = | ||
=== Battery === | |||
Install [[archwiki:TLP|TLP]] and related packages. | Install [[archwiki:TLP|TLP]] and related packages. | ||
{{Console|1=yaourt -S tlp tp_smapi acpi_call|2=sudo tlp start}} | {{Console|1=yaourt -S tlp tp_smapi acpi_call|2=sudo tlp start}} | ||
TLP status can be shown with the following: | TLP status can be shown with the following: | ||
{{Console|1=sudo tlp-stat}} | {{Console|1=sudo tlp-stat}} | ||
= Fan Control = | === Fan Control === | ||
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}} |
Revision as of 21:14, 15 July 2017
Customization
Keeping the Boot Log on TTY1
In order to stop Arch Linux from clearing the screen on boot we can add the i915 module to MODULES inside of /etc/mkinitcpio.conf and then regenerate our kernel images.
# sudo sed -i -r 's/^MODULES="([a-z0-9 _-]+)"/MODULES="\1 i915"/' /etc/mkinitcpio.conf # sudo mkinitcpio -p linux |
Then create a directory for getty overrides and create one with the following.
# sudo mkdir /etc/systemd/system/getty@tty1.service.d # sudo vim /etc/systemd/system/getty@tty1.service.d/noclear.conf |
[Service] TTYVTDisallocate=no |
Traditional Network Interface Names
To translate the predictable network interface names back into traditional ones, can create the following. You can use the vim command :r !cat /sys/class/net/wlp3s0/address, replacing the device node respectively, in order to get the MAC Address of each device.
# vim /etc/udev/rules.d/10-network.rules |
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="MAC_ADDRESS_FOR_NIC", NAME=="eth0" SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="MAC_ADDRESS_FOR_WIFI", NAME=="wlan0" |
Hardware
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 |