-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLaptop.txt
90 lines (63 loc) · 2.02 KB
/
Laptop.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.4
Creation-Date: 2016-10-23T20:14:39+02:00
====== Laptop ======
Created søndag 23 oktober 2016
**Some useful Laptop tools for power management ex.**
===== TLP =====
**# Advanced power management, not much setup is required**
$ pacman -S tlp
**# Enable its two services **
$ systemctl enable tlp.service
$ systemctl enable tlp-sleep.service
**# And disable **//rfkill//
$ systemctl disable systemd-rfkill.service
== Usage ==
**# Status report with configuration and active settings**
$ tlp-stat
**# Verbose information**
$ tlp-stat -v
**# Show warnings**
$ tlp-stat -w
**# Battery information**
$ tlp-stat -b
**# Disk data**
$ tlp-stat -d
**# USB devices**
$ tlp-stat -u
**# PCI devices**
$ tlp-stat -e
**# CPU data**
$ tlp-stat -p
**# Temperature**
$ tlp-stat -t
**# Radio devices (wifi, bluetooth etc)**
$ tlp-stat -r
**# System information (bios & system a.a.)**
$ tlp-stat -s
== Configuration ==
**# **//TLP//** keeps all its configuration in **///etc/default/tlp//
**# Disk I/O Scheduler**
**# Using the Zen-kernel, the **//bfq//** scheduler is preferred**
**# Search for **//DISK_IOSCHED=//** outcomment and change its value to **//bfq cfq//
{{{code: lang="texinfo" linenumbers="True"
DISK_IOSCHED="bfq cfq"
}}}
===== Powertop =====
**# **//Powertop//** is a intel tool that can help us with power suggestion,**
**# system information** **and show apps with high power consumption.**
$ pacman -S powertop
**# To get a report**
$ powertop --html=powerreport.html
**# This will create a **//powerreport.html//** file, open this and examine the suggestions etc.**
===== Disable Power/Suspend/Hibernate Buttons =====
**# Systemd can handle the ACPI events **
**# Edit **///etc/systemd/logind.conf//
**# Outcomment and define **//ignore//** to these 4 events (power, hibernation, suspend and lid-close)**
{{{code: lang="texinfo" linenumbers="True"
HandlePowerKey=ignore
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore
}}}
**# Changes will take affect after next reboot**