Difference between revisions of "ASUS UL30A"

From ArchWiki
Jump to: navigation, search
(Alternate Powersaving)
Line 12: Line 12:
 
== Compatibility ==
 
== Compatibility ==
  
Everything in this laptop is linux compatible, therefor you will not have any issues installing linux. I recommend [http://wiki.archlinux.org/index.php/Xbindkeys Xbindkeys] for sound buttons. Every other fn-X button works. Suspend, wifi, brightness works. The video out button does not work, use xrandr instead. Testet. HDMI works as well. The battery is properly read. Use [http://wiki.archlinux.org/index.php/Laptop#Laptop_mode_tools laptop-mode-tools] for power saving. You can run xorg without config file. xf86-video-intel is the package you need. I could not run x with vesa on this chipset, it just froze completely. HDMI and VGA out works, but not via fn-F8. You can use lxrandr, GUI for xrandr for setting up video out. You can make fn-f8 work by configuring [http://wiki.archlinux.org/index.php/Acpid Acpid].  
+
Everything in this laptop is linux compatible, therefor you will not have any issues installing linux. I recommend [http://wiki.archlinux.org/index.php/Xbindkeys Xbindkeys] for sound buttons. Every other fn-X button works. Suspend, wifi, brightness works. The video out button does not work, use xrandr instead. Testet. HDMI works as well. The battery is properly read. Use [http://wiki.archlinux.org/index.php/Laptop#Laptop_mode_tools laptop-mode-tools] for power saving. You can run xorg without config file. xf86-video-intel is the package you need. I could not run x with vesa on this chipset, it just froze completely. HDMI and VGA out works, but not via fn-F8. You can use lxrandr, GUI for xrandr for setting up video out. You can make fn-f8 work by configuring [http://wiki.archlinux.org/index.php/Acpid Acpid].
 +
 
 +
== Alternate Powersaving ==
 +
Written by [https://bbs.archlinux.org/profile.php?id=17059 lswest] (please contact me via my forum profile if you have any questions or problems with this description).
 +
 
 +
If you can't get laptop-mode-tools adjusting power the way you'd like (I've had many problems with it), you can get the same functionality using pm-powersave, acpi, and acpi-support.  Install these packages (acpi-support can be found in the AUR), and rename the file /etc/acpi/sleep.sh to sleep.sh.bak, or move it do a different directory.  If you leave it, I've found that my laptop tends to suspend, resume, and suspend, then get stuck.  If you find suspend doesn't work without it, feel free to add that information to this section.  Also, add acpi and acpi-support to the DAEMONS array, and asus-laptop to your MODULES array of your rc.conf.
 +
 
 +
As for custom powersaving scripts, you just need to create a bash script within the /etc/pm/power.d/ directory, using a bash case statement with true for on battery, and false for on AC, and then your settings.  Make sure they're executable. Below I have a list of files (and their contents) located in my /etc/pm/power.d/ directory, which should cover all basic functionality of laptop-mode-tools (I get between 10 and 12 hours using these scripts depending on my usage).
 +
 
 +
'''Note''': You will need to double-check any file paths to ensure they're correct for your system before using these scripts.  They were written for a German Asus UL30A, with a slightly different set of hardware from a UL30Vt.
 +
 
 +
'''Audio'''
 +
#!/bin/bash
 +
case "$1" in
 +
      true)
 +
          echo 10 >> /sys/module/snd_hda_intel/parameters/power_save
 +
      ;;
 +
      false)
 +
          echo 0 >> /sys/module/snd_hda_intel/parameters/power_save
 +
      ;;
 +
esac
 +
exit 0
 +
 
 +
'''Bluetooth'''
 +
#!/bin/sh
 +
case "$1" in
 +
      true)
 +
          hciconfig hci0 down;
 +
          /etc/rc.d/bluetooth stop;
 +
          rmmod hci_usb;
 +
      ;;
 +
      false)
 +
            modprobe hci_usb;
 +
            hciconfig hci0 up;
 +
            /etc/rc.d/bluetooth start;
 +
      ;;
 +
esac
 +
exit 0
 +
 
 +
'''Brightness'''
 +
#!/bin/sh
 +
case "$1" in
 +
    true)
 +
        echo 2 >> /sys/devices/platform/asus_laptop/backlight/asus_laptop/brightness
 +
    ;;
 +
    false)
 +
        echo 15 >> /sys/devices/platform/asus_laptop/backlight/asus_laptop/brightness
 +
    ;;
 +
esac
 +
exit 0
 +
 
 +
'''Ethernet'''
 +
#!/bin/bash
 +
case "$1" in
 +
      true)
 +
            ifconfig eth0 down
 +
      ;;
 +
      false)
 +
            ifconfig eth0 up
 +
      ;;
 +
esac
 +
exit 0
 +
 
 +
'''Performance'''
 +
#!/bin/bash
 +
minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
 +
maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
 +
setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
 +
case "$1" in
 +
      true)
 +
          echo 1500 >> /proc/sys/vm/dirty_writeback_centisecs;
 +
          echo min_power >> /sys/class/scsi_host/host0/link_power_management_policy;
 +
          echo -n $minspeed > $setspeed;
 +
      ;;
 +
      false)
 +
          echo 500 >> /proc/sys/vm/dirty_writeback_centisecs
 +
          echo max_performance >> /sys/class/scsi_host/host0/link_power_management_policy
 +
          echo -n $maxspeed > $setspeed;
 +
      ;;
 +
esac
 +
exit 0
 +
 
 +
You can find out a bit more about pm-powersave in the [[Pm-utils]] section.
 +
 
  
 
== Fun ==
 
== Fun ==
 
This computer has an extra power button on the left, you can configure this with [http://wiki.archlinux.org/index.php/Xbindkeys Xbindkeys] and run something useful. Like I use it for switching songs. The extra button is originally for powering up with Asus Express gate.
 
This computer has an extra power button on the left, you can configure this with [http://wiki.archlinux.org/index.php/Xbindkeys Xbindkeys] and run something useful. Like I use it for switching songs. The extra button is originally for powering up with Asus Express gate.

Revision as of 22:01, 29 August 2010

About the laptop

  • 13.3" LED Screen 1366 x 768.
  • 4GB DDR3
  • 1.3Ghz Dual core.
  • 500GB HDD.
  • 8-cell battery 84wh.
  • HDMI


Compatibility

Everything in this laptop is linux compatible, therefor you will not have any issues installing linux. I recommend Xbindkeys for sound buttons. Every other fn-X button works. Suspend, wifi, brightness works. The video out button does not work, use xrandr instead. Testet. HDMI works as well. The battery is properly read. Use laptop-mode-tools for power saving. You can run xorg without config file. xf86-video-intel is the package you need. I could not run x with vesa on this chipset, it just froze completely. HDMI and VGA out works, but not via fn-F8. You can use lxrandr, GUI for xrandr for setting up video out. You can make fn-f8 work by configuring Acpid.

Alternate Powersaving

Written by lswest (please contact me via my forum profile if you have any questions or problems with this description).

If you can't get laptop-mode-tools adjusting power the way you'd like (I've had many problems with it), you can get the same functionality using pm-powersave, acpi, and acpi-support. Install these packages (acpi-support can be found in the AUR), and rename the file /etc/acpi/sleep.sh to sleep.sh.bak, or move it do a different directory. If you leave it, I've found that my laptop tends to suspend, resume, and suspend, then get stuck. If you find suspend doesn't work without it, feel free to add that information to this section. Also, add acpi and acpi-support to the DAEMONS array, and asus-laptop to your MODULES array of your rc.conf.

As for custom powersaving scripts, you just need to create a bash script within the /etc/pm/power.d/ directory, using a bash case statement with true for on battery, and false for on AC, and then your settings. Make sure they're executable. Below I have a list of files (and their contents) located in my /etc/pm/power.d/ directory, which should cover all basic functionality of laptop-mode-tools (I get between 10 and 12 hours using these scripts depending on my usage).

Note: You will need to double-check any file paths to ensure they're correct for your system before using these scripts. They were written for a German Asus UL30A, with a slightly different set of hardware from a UL30Vt.

Audio

#!/bin/bash
case "$1" in
     true)
         echo 10 >> /sys/module/snd_hda_intel/parameters/power_save
     ;;
     false)
         echo 0 >> /sys/module/snd_hda_intel/parameters/power_save
     ;;
esac
exit 0

Bluetooth

#!/bin/sh
case "$1" in
     true)
         hciconfig hci0 down;
         /etc/rc.d/bluetooth stop;
         rmmod hci_usb;
     ;;
     false)
           modprobe hci_usb;
           hciconfig hci0 up;
           /etc/rc.d/bluetooth start;
     ;;
esac
exit 0

Brightness

#!/bin/sh
case "$1" in
    true)
        echo 2 >> /sys/devices/platform/asus_laptop/backlight/asus_laptop/brightness
    ;;
    false)
        echo 15 >> /sys/devices/platform/asus_laptop/backlight/asus_laptop/brightness
    ;;
esac
exit 0

Ethernet

#!/bin/bash
case "$1" in
      true)
           ifconfig eth0 down
      ;;
      false)
           ifconfig eth0 up
      ;;
esac
exit 0

Performance

#!/bin/bash
minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
case "$1" in
     true)
          echo 1500 >> /proc/sys/vm/dirty_writeback_centisecs;
          echo min_power >> /sys/class/scsi_host/host0/link_power_management_policy;
          echo -n $minspeed > $setspeed;
     ;;
     false)
          echo 500 >> /proc/sys/vm/dirty_writeback_centisecs
          echo max_performance >> /sys/class/scsi_host/host0/link_power_management_policy
          echo -n $maxspeed > $setspeed;
     ;;
esac
exit 0

You can find out a bit more about pm-powersave in the Pm-utils section.


Fun

This computer has an extra power button on the left, you can configure this with Xbindkeys and run something useful. Like I use it for switching songs. The extra button is originally for powering up with Asus Express gate.