Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# /etc/rc.local: Local multi-user startup script.
# set screen brightness
echo 10 > /sys/class/backlight/acpi_video0/brightness
chown ciarlill /sys/kernel/debug/vgaswitcheroo/switch
# set active card based on power state
grep -q "1" $POWER_CHECK
if [ "$?" -eq "0" ]; then
/usr/bin/envy-video ac-on boot
/usr/bin/envy-video ac-off boot
# set auto power management
echo auto > /sys/class/drm/card0/device/power_profile
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment