summaryrefslogtreecommitdiff
path: root/system/TLP/README.SLACKWARE
blob: 74e422cf2e6875076d68deb40d4ffbb2aac91309 (plain)
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
Some post installation tasks need to be done like the autostarting of tlp
via an entry /etc/rc.d/rc.local, and a post-installation script mentioned
at http://linrunner.de/en/tlp/docs/tlp-developer-documentation.html.

# Disable conflicting pm-utils hooks
for i in 95hdparm-apm disable_wol hal-cd-polling intel-audio-powersave \
  harddrive laptop-mode journal-commit pci_devices pcie_aspm readahead \
  sata_alpm sched-powersave usb_bluetooth wireless xfs_buffer; do
    if [ -x /usr/lib/pm-utils/power.d/$i ]; then
        ln -sf /usr/lib/tlp-pm/tlp-nop /etc/pm/power.d/$i
    fi
done

#Configure tlp to be run at startup
echo "/etc/rc.d/rc.tlp start" >> /etc/rc.d/rc.local

# Give execute permission to rc.tlp
chmod +x /etc/rc.d/rc.tlp

#Start the tlp service
/etc/rc.d/rc.tlp start

# Restart acpid
/etc/rc.d/rc.acpid restart

After removal of this package you need to revert the above changes.
Please make sure you stopped TLP service before removing TLP.