baumi's blog

baumi's personal blog … Linux, OS X, Windows, Random things, …

Elementary OS “Freya” on Mid-2012 MacBook Pro 15″ – Improving battery life …

this blog entry is about elementary OS.

#!/bin/bash
echo '1' > '/sys/devices/system/cpu/intel_pstate/no_turbo'; # disable turbo CPU speeds
echo '1' > '/sys/devices/system/cpu/intel_pstate/min_perf_pct'; # set minimum CPU speed
echo '100' > '/sys/devices/system/cpu/intel_pstate/max_perf_pct'; # set maximum CPU speed to 100%

Screenshot: GNOME Power Statistics:
Bildschirmfoto vom 2016-02-16 21:54:21

#!/bin/bash
echo 'min_power' > '/sys/class/scsi_host/host0/link_power_management_policy';
echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs';
echo '0' > '/proc/sys/kernel/nmi_watchdog';
echo '1' > '/sys/module/snd_hda_intel/parameters/power_save';
#echo 'auto' > '/sys/bus/usb/devices/2-1.8.2/power/control';
#echo 'auto' > '/sys/bus/usb/devices/2-1.8.1.3/power/control';
#echo 'auto' > '/sys/bus/usb/devices/2-1.8.1.1/power/control';
#echo 'auto' > '/sys/bus/usb/devices/2-1.8.1.2/power/control';

echo 'auto' > '/sys/bus/pci/devices/0000:00:00.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:01:00.1/power/control';
#echo 'auto' > '/sys/bus/pci/devices/0000:03:00.1/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:14.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:02.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:01.1/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:01.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:03:00.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:16.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.3/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.2/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:1d.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.1/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:1b.0/power/control';
#echo 'auto' > '/sys/bus/pci/devices/0000:00:01.2/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:1a.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control';

Comments are currently closed.