Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using Ubuntu 13.10 on an Zenbook UX21E. In order to apply all suggestions programmatically, that Powertop gives to save power, I created a script in: /etc/pm/power.d/zenbook

containing:

# Powertop tunables

case $1 in
        true)
                ## VM writeback timeout
                echo 1500 > /proc/sys/vm/dirty_writeback_centisecs

                ## Autosuspend for USB devices

                ### USB2.0-CRW (Generic)
                echo auto > /sys/bus/usb/devices/1-1.7/power/level

                ### Bluetooth USB Host Controller (Atheros Communications)
                echo auto > /sys/bus/usb/devices/1-1.8/power/level

                ## Runtime PM for PCI devices

                ### Atheros Communications Inc. AR9485 Wireless Network Adapter
                echo auto > /sys/bus/pci/devices/0000:02:00.0/power/control

                ### Fresco Logic Device 1009
                #echo auto > /sys/bus/pci/devices/0000:03:00.0/power/control
                # Currently this turns the USB3 port off, awaiting response

                ### Intel Corporation 6 Series/C200 Series Chipset Family
                ### 6 port SATA AHCI Controller
                echo auto > /sys/bus/pci/devices/0000:00:1f.2/power/control

                ### Intel Corporation 6 Series/C200 Series Chipset Family
                ### USB Enhanced Host Controller #1
                # echo auto > /sys/bus/pci/devices/0000:00:1d.0/power/control
                # Causes machine to freeze on shutdown, should work with kernels 3.0.11, 3.1.3 or newer

                ### Intel Corporation 2nd Generation Core Processor Family
                ### DRAM Controller
                echo auto > /sys/bus/pci/devices/0000:00:00.0/power/control

                ### Intel Corporation 6 Series/C200 Series Chipset Family
                ### MEI Controller #1
                echo auto > /sys/bus/pci/devices/0000:00:16.0/power/control

                ### Intel Corporation 6 Series/C200 Series Chipset Family
                ### High Definition Audio Controller
                echo auto > /sys/bus/pci/devices/0000:00:1b.0/power/control

                ### Intel Corporation 6 Series/C200 Series Chipset Family
                ### PCI Express Root Port 1
                echo auto > /sys/bus/pci/devices/0000:00:1c.0/power/control

                ### Intel Corporation 6 Series/C200 Series Chipset Family
                ### PCI Express Root Port 2
                echo auto > /sys/bus/pci/devices/0000:00:1c.1/power/control

                ### Intel Corporation 6 Series/C200 Series Chipset Family
                ### PCI Express Root Port 4
                echo auto > /sys/bus/pci/devices/0000:00:1c.3/power/control

                ### Intel Corporation 2nd Generation Core Processor Family
                ### Integrated Graphics Controller
                echo auto > /sys/bus/pci/devices/0000:00:02.0/power/control

                ## SATA link power management
                echo min_power > /sys/class/scsi_host/host0/link_power_management_policy

                # 50% screen brightness on battery
                echo 5 > /sys/bus/pci/devices/0000:00:02.0/backlight/acpi_video0/brightness

                # Set powersave CPU governor
                for i in 0 1 2 3; do
                    echo powersave > /sys/devices/system/cpu/cpu${i}/cpufreq/scaling_governor
                done
        ;;
        false)
                # 90% screen brightness on AC
                echo 9 > /sys/bus/pci/devices/0000:00:02.0/backlight/acpi_video0/brightness

                # Set ondemand CPU governor
                for i in 0 1 2 3; do
                    echo ondemand > /sys/devices/system/cpu/cpu${i}/cpufreq/scaling_governor
                done
        ;;
esac

exit 0

This used to work very well in Ubuntu 12.04 up to 13.04, but after I upgraded to 13.10 it does not work any more.

How can I apply this power saving option programmatically in Ubuntu 13.10? For what reason it does not work any more?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.