Intel Ultrabook tweaks on Ubuntu 12.04
By Leo Gaggl
After upgrading my Toshiba Z830 Ultrabook to 12.04 (Precise Pangolin) I noticed that the ability to control the screen back-light was not working using the Toshiba Fn F6/F7 keys.
Thanks to http://www.linlap.com/wiki/acer+aspire+s3 the solution was found quite quickly.
sudo vim /etc/default/grub
This will open the grub configuration file. (Grub is the initial boot selection software)
To be able to dim the screen brightness, You’ve got to modify the line:
GRUB_CMDLINE_LINUX=""
to these two lines:
pcie_aspm=force<br></br>GRUB_CMDLINE_LINUX="quiet splash pcie_aspm=force i915.i915_enable_rc6=1 i915.lvds_downclock=1 acpi_osi=Linux acpi_backlight=vendor elevator=noop"
Another neat tip: intel-gpu-tools can be used to control brightness from the commandline.
# will set brightness at 50%<br></br>intel_backlight 50
EDIT [2012-08-24]: to avoid issues on resume you need to add a script to the
sudo vim /etc/pm/sleep.d/20_wakeup
Add the following:
#!/bin/bash<br></br>case "$1" in<br></br>suspend|hibernate)<br></br>#do nothing<br></br>;;<br></br>resume|thaw)<br></br>echo 7 > /sys/class/backlight/toshiba/brightness<br></br>;;<br></br>*)<br></br>exit 1<br></br>;;<br></br>esac<br></br>exit 0
Mark the file as executable
sudo chmod +x /etc/pm/sleep.d/20_wakeup