Page 1 of 2 12 LastLast
Results 1 to 10 of 343

Thread: Experiences with Asus UL30

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Location
    Cagliari, Italy
    Beans
    58
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Asus UL30 anyone?


    These settings are tested for Ubuntu Lucid, it's possible that some scripts doesn't work with Ubuntu Maverick.
    I will write a new post for Maverick when I'll have time to upgrade!!

    I will keep this post updated with all new tips and kernel upgrades!!



    Here there are Asus UL30 tips for kernel, vga, backlight, power saving, touchpad, bluetooth and to run Linux on SSD (Solid State Disk). Most of these tips are also valid for other notebooks with > 2GB ram.


    KERNEL and VGA
    *************

    Install 2.6.35 kernel and new mesa and drm libraries, wich improves Intel VGA performance, there are 2 repositories for that:

    Code:
    sudo add-apt-repository ppa:guido-iodice/guiodiclucid
    then

    Code:
    sudo add-apt-repository ppa:guido-iodice/best-intel
    then

    Code:
    sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y install linux linux-generic linux-headers-generic linux-image linux-image-generic
    With latest kernel all screen flickerings are gone, backlight works perfectly on UL30A (with below tip), backlight notification works too!!

    The guiodiclucid repository will also update some apps to maverick dev ones, ie calculator, brasero, ubuntu-software-center, volume indicator applet...

    *******


    BACKLIGHT
    *********

    It works on Asus UL30A, I've no solution for UL30VT:

    Code:
    sudo gedit /etc/default/grub
    look at line 9, change to this:

    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
    save and close, then:

    Code:
    sudo update-grub
    *******


    POWER SAVING
    *************

    Code:
    sudo apt-get install ethtool
    This will install a tool we need.

    *******

    Code:
    sudo gedit /etc/rc.local
    add this BEFORE "exit 0":

    Code:
    rfkill block bluetooth
    ethtool -s eth0 wol d
    iwconfig wlan0 power timeout 500ms
    echo 1 > /sys/module/snd_hda_intel/parameters/power_save
    echo 0 > /proc/sys/vm/swappiness
    echo 60000 > /proc/sys/vm/dirty_expire_centisecs
    echo 60000 > /proc/sys/vm/dirty_writeback_centisecs
    echo 60 > /proc/sys/vm/dirty_background_ratio
    echo 95 > /proc/sys/vm/dirty_ratio
    echo 50 > /proc/sys/vm/vfs_cache_pressure
    save and close.

    This will turn off bluetooth at startup, disable wake on lan, enable wireless power saving, enable sound card power saving, tune virtual memory to save power.

    *******

    Code:
    sudo gedit /etc/init.d/ondemand
    paste this:

    Code:
    #! /bin/sh
    ### BEGIN INIT INFO
    # Provides:          ondemand
    # Required-Start:    $remote_fs $all
    # Required-Stop:
    # Default-Start:     2 3 4 5
    # Default-Stop:
    # Short-Description: Set the CPU Frequency Scaling governor to "ondemand"
    ### END INIT INFO
    
    
    PATH=/sbin:/usr/sbin:/bin:/usr/bin
    
    . /lib/init/vars.sh
    . /lib/lsb/init-functions
    
    case "$1" in
        start)
        	start-stop-daemon --start --background --exec /etc/init.d/ondemand background
            ;;
        background)
    	sleep 60 # probably enough time for desktop login
    
    	for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
    	do
    		[ -f $CPUFREQ ] || continue
    		echo -n ondemand > $CPUFREQ
    	done
    	;;
        restart|reload|force-reload)
            echo "Error: argument '$1' not supported" >&2
            exit 3
            ;;
        stop)
            ;;
        *)
            echo "Usage: $0 start|stop" >&2
            exit 3
            ;;
    esac
    This will correct the init script for cpu governor, default one is bugged!!
    You can reduce the time value at line 22, default is "sleep 60".
    I have an SSD and my boot time is very fast, so I use "sleep 20", you can try this:
    add CPU frequency applet to your panel, reboot, login as fast as you can and look when your CPU governor switch from "performance" to "ondemand"; you can reduce the "sleep" time to a value that make governor switch appen some seconds after login, maybe "sleep 30" or "sleep 40" for a mechanical hard disk.

    *******

    Code:
    sudo gedit /etc/pm/power.d/powersave-policy-dirty-writeback
    paste this:

    Code:
    #!/bin/sh -e
    # increase dirty_writeback to ten minutes
    # Author: Martin Pitt <martin.pitt@ubuntu.com>
    
    WB=/proc/sys/vm/dirty_writeback_centisecs
    
    [ -w $WB ] || exit 0
    
    if [ "$1" = true ]; then
        echo 60000 > $WB
    else
        echo 60000 > $WB
    fi
    save and close, then:

    Code:
    sudo chmod +x /etc/pm/power.d/powersave-policy-dirty-writeback
    *******

    Code:
    sudo gedit /usr/lib/pm-utils/power.d/usb-autosuspend
    paste this:

    Code:
    #!/bin/bash
    if [ "$1" = "true" ]; then
    
      for i in /sys/bus/usb/devices/*/power/level; do
    	[ "$(cat $i)" = "auto" ] && continue
    	echo "auto" > $i
      done
    
      for i in /sys/bus/usb/devices/*/power/autosuspend; do
    	[ "$(cat $i)" -ge 0 2>/dev/null ] && continue
    	echo "2" > $i
      done
    
    fi
    save and close, then:

    Code:
    sudo chmod +x /usr/lib/pm-utils/power.d/usb-autosuspend
    This script forces usb autosuspend for all devices.

    *******

    Code:
    sudo gedit /etc/fstab
    add this line:

    Code:
    tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
    then add "commit=100" option to ext partitions, look at this fstab:

    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    # / was on /dev/sda1 during installation
    UUID=f450fc7b-f218-4c0c-bb63-5afa69608ab4 /               ext4    commit=100,errors=remount-ro 0       1
    # /home was on /dev/sda6 during installation
    UUID=6de7b138-6ef1-4f4a-bea0-74268a4b302c /home           ext4    commit=100,defaults        0       2
    # swap was on /dev/sda5 during installation
    UUID=25e066d9-6950-49ac-b078-5547ca161bfb none            swap    sw              0       0
    
    #tmp su ram
    tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
    save and close.

    With this setting the system will use RAM instead of disk to write temporary files, less disk usage will save power. The commit option will reduce filesystem kernel accesses.

    *******

    Code:
    sudo gedit /etc/default/grub
    look at line 10, change to this:

    Code:
    GRUB_CMDLINE_LINUX="rootflags=commit=100"
    save and close, then:

    Code:
    sudo update-grub
    This will reduce filesystem kernel accesses.

    *******

    Open Firefox, on the url bar write about:config, open it and create a new string:

    Code:
    browser.cache.disk.parent_directory
    set the value to /tmp

    This will set Firefox to write it's cache over RAM.

    *******

    There are two Evolution daemons that may drain some power, they keep running even after you have closed Evolution, you can uninstall them if you don't need Exchange sync and Ubuntu One calendar and contacts sync:

    Code:
    sudo apt-get purge evolution-exchange evolution-couchdb
    *******


    TOUCHPAD
    *********

    Code:
    sudo gedit /etc/modprobe.d/psmouse.conf
    paste this:

    Code:
    options psmouse force_elantech=1
    save and close, then:

    Code:
    sudo add-apt-repository ppa:yurivkhan/proposed
    then:

    Code:
    sudo apt-get update && sudo apt-get -y upgrade
    This will enable our elantech touchpad for synaptic driver and install a patched gnome-settings-daemon we need.

    *******

    To get working disable touchpad (Fn+F9) button:

    Code:
    sudo gedit /etc/acpi/asus-touchpad.sh
    delete everything and paste this:

    Code:
    #!/bin/sh
    [ -f /usr/share/acpi-support/state-funcs ] || exit 0 
    
    . /usr/share/acpi-support/power-funcs
    
    getXconsole
    
    DEVICE_ID=`xinput -list | grep -i touchpad | grep id= | sed 's/.*id=\([0-9]*\).*/\1/' `
    
    if xinput -list-props $DEVICE_ID | grep "Device Enabled" | grep "1$" > /dev/null
    then
        xinput set-int-prop $DEVICE_ID "Device Enabled" 8 0
    else
        xinput set-int-prop $DEVICE_ID "Device Enabled" 8 1
    fi
    save and close.

    *******

    Now we have to add an option to grub to solve touchpad problems after suspension (DON'T APPLY THIS IF YOU HAVE 2.6.35-14 OR SUCCESSIVE KERNEL, IT'S ONLY NEEDED WITH EARLIER KERNELS):

    Code:
    sudo gedit /etc/default/grub
    look at line 9, change to this:

    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor i8042.reset"
    save and close, then:

    Code:
    sudo update-grub
    *******

    Reboot (apply SSD tips first if you have one), go to mouse preferences, now there's a "Touchpad" tab!!
    Enable two finger scrolling and horizontal scrolling.

    You'll notice that 2 finger and 3 finger tap is inverted now, let's fix it:

    Code:
    gconftool-2 --set "/desktop/gnome/peripherals/touchpad/tap_button_2" --type int "2" && gconftool-2 --set "/desktop/gnome/peripherals/touchpad/tap_button_3" --type int "3"
    Now let's set up touchpad feeling.
    To me, this is the best setting, open a terminal:

    Code:
    synclient MinSpeed=1 MaxSpeed=1 AccelFactor=0
    if touchpad is too speedy, reduce MinSpeed and MaxSpeed to 0.7, find your values!!

    Once you've found good values, put that command in a new entry on System -> Preferences -> Startup Applications

    *******


    BLUETOOTH RESUME FIX
    *******************

    Code:
    sudo gedit /etc/pm/sleep.d/asus-bluetooth
    paste this:

    Code:
    #!/bin/bash
    case "$1" in
     hibernate|suspend)
      invoke-rc.d --quiet bluetooth stop
      ;;
     thaw|resume)
      invoke-rc.d --quiet bluetooth start
      ;;
     *) exit $NA
      ;;
    esac
    save and close, then:

    Code:
    sudo chmod +x /etc/pm/sleep.d/asus-bluetooth
    This will fix bluetooth switch on panel indicator applet not working after resume from suspend-hibernate.

    *******


    SSD TIPS
    ********

    Code:
    sudo gedit /etc/default/grub
    look at line 10, change to this:

    Code:
    GRUB_CMDLINE_LINUX="elevator=noop rootflags=commit=100"
    save and close, then:

    Code:
    sudo update-grub
    *******

    Code:
    sudo gedit /etc/fstab
    add "noatime" option to ext partitions, look at my fstab:

    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    # / was on /dev/sda1 during installation
    UUID=f450fc7b-f218-4c0c-bb63-5afa69608ab4 /               ext4    noatime,commit=100,errors=remount-ro 0       1
    # /home was on /dev/sda6 during installation
    UUID=6de7b138-6ef1-4f4a-bea0-74268a4b302c /home           ext4    noatime,commit=100,defaults        0       2
    # swap was on /dev/sda5 during installation
    UUID=25e066d9-6950-49ac-b078-5547ca161bfb none            swap    sw              0       0
    
    #tmp su ram
    tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
    save and close.

    *******

    I think that's all, obviously you have to reboot to apply all tips!
    Last edited by Cierreics; October 23rd, 2010 at 02:14 AM.

  2. #2
    Join Date
    May 2010
    Location
    Nmpton,UK
    Beans
    16
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Asus UL30 anyone?

    i was able to get a long term ( surfin, video ) of around 9.2W and in idle state 7.8 with all the power saving tips listed here and kernel 2.6.35 .. however youtube 1080p and or 720p fullscreen is not good at all .. any ideas? ( using the 32bit plug in mentioned in the thread earlier )

    cheers
    mike
    Last edited by mric; June 16th, 2010 at 10:59 PM.

  3. #3
    Join Date
    Apr 2008
    Location
    Cagliari, Italy
    Beans
    58
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Asus UL30 anyone?

    Quote Originally Posted by mric View Post
    i was able to get a long term ( surfin, video ) of around 9.2W and in idle state 7.8 with all the power saving tips listed here and kernel 2.6.35 .. however youtube 1080p and or 720p fullscreen is not good at all .. any ideas? ( using the 32bit plug in mentioned in the thread earlier )

    cheers
    mike
    Yes, 1080p videos are unwatchable, 720p are watchable but a little choppy....a good workaround is to leave youtube open with video set to 1080p (or 720p), then go with Nautilus to your browser cache folder, find the flash video and open it with Totem!! Fullscreen playback works perfectly!!

    If you applied my tips you should find Firefox cache on /tmp, so you can add a bookmark to Nautilus sidebar to reach cached videos with a single click!!

  4. #4
    Join Date
    Jul 2008
    Beans
    3

    Re: Asus UL30 anyone?

    CPU frequency applet shows that "Frequency Scaling Unsupported". This is normal?

  5. #5
    Join Date
    May 2010
    Location
    Nmpton,UK
    Beans
    16
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Asus UL30 anyone?

    Quote Originally Posted by drk0t View Post
    CPU frequency applet shows that "Frequency Scaling Unsupported". This is normal?

    depending on the model .. i think the ul30a with SU2300 doesn't support it


    Quote Originally Posted by Cierreics View Post
    Yes, 1080p videos are unwatchable, 720p are watchable but a little choppy....a good workaround is to leave youtube open with video set to 1080p (or 720p), then go with Nautilus to your browser cache folder, find the flash video and open it with Totem!! Fullscreen playback works perfectly!!

    If you applied my tips you should find Firefox cache on /tmp, so you can add a bookmark to Nautilus sidebar to reach cached videos with a single click!!

    your a star, works perfect !

  6. #6
    Join Date
    Jul 2008
    Beans
    3

    Re: Asus UL30 anyone?

    Quote Originally Posted by mric View Post
    depending on the model .. i think the ul30a with SU2300 doesn't support it
    Thanks. But
    Intel® Celeron® Processor SU2300 (1M Cache, 1.20 GHz, 800 MHz FSB):
    Essentials
    Status Launched
    Launch Date Q3'09
    Processor Number SU2300
    # of Cores 2
    # of Threads 2
    Clock Speed 1.2 GHz
    FSB Speed 800 MHz
    Embedded Options Available No
    Supplemental SKU No
    Lithography 45 nm
    Max TDP 10 W
    # of Processing Die Transistors 410 million
    Sockets Supported BGA956
    Halogen Free Options Available Yes

    Advanced Technologies
    Intel® Turbo Boost Technology No
    Intel® Virtualization Technology (VT-x) Yes
    Intel® Trusted Execution Technology No
    Intel® 64 Yes
    Enhanced Intel® Speedstep Technology Yes
    Thermal Monitoring Technologies Yes
    from http://ark.intel.com/Product.aspx?id...es=SLGSB,SLGYW

  7. #7
    Join Date
    Oct 2008
    Location
    Cambrils (Tarragona)
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Asus UL30 anyone?

    Quote Originally Posted by drk0t View Post
    the SU2300 only has a P-state: 1200Mhz, it can't clock lower..
    Busques ajuda? Comença pel wiki de l'equip català!

  8. #8
    Join Date
    Jan 2006
    Beans
    49

    Re: Asus UL30 anyone?

    Quote Originally Posted by Cierreics View Post
    Yes, 1080p videos are unwatchable, 720p are watchable but a little choppy....a good workaround is to leave youtube open with video set to 1080p (or 720p), then go with Nautilus to your browser cache folder, find the flash video and open it with Totem!! Fullscreen playback works perfectly!!

    If you applied my tips you should find Firefox cache on /tmp, so you can add a bookmark to Nautilus sidebar to reach cached videos with a single click!!
    Or just use MiniTube... Great fast app for watching youtube videos. Love to give flash my middle finger...
    Last edited by hojgaard; June 19th, 2010 at 11:14 PM.

  9. #9
    Join Date
    Nov 2008
    Location
    Odessa, Ukraine
    Beans
    5
    Distro
    Ubuntu 10.04 Lucid Lynx

    Unhappy Re: Asus UL30 anyone?

    I have used the post #110 for my UL30A and Ubuntu 10.04 (both i386 and AMD64). It's an excellent job, Cierreics is GREAT!
    I have still a problem with a touch-pad on/off using Fn + F9. It worked for me not until I have used two tips shown here and here.
    Additionally to the file /etc/acpi/asus-touchpad.sh (shown by Cierreics) I have corrected the file
    /etc/acpi/events/asus-touchpad:
    Code:
    sudo gedit /etc/acpi/events/asus-touchpad
    delete everything and paste this:
    Code:
    # /etc/acpi/events/asus-touchpad
    # This is called when the user presses the touchpad button and calls
    # /etc/acpi/asus-touchpad.sh for further processing.
    event=hotkey ATKD 0000006b
    action=/etc/acpi/asus-touchpad.sh
    save and close.
    Now I can really turn the touch-pad on and off, but... there is an another problem! If I try to turn this thing OFF and use a keyboard, it will be automatically turned ON again.
    Any ideas?

  10. #10
    Join Date
    Apr 2008
    Location
    Cagliari, Italy
    Beans
    58
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Asus UL30 anyone?

    Quote Originally Posted by bvgd View Post
    I have used the post #110 for my UL30A and Ubuntu 10.04 (both i386 and AMD64). It's an excellent job, Cierreics is GREAT!


    I have corrected the file
    /etc/acpi/events/asus-touchpad:
    .....
    Now I can really turn the touch-pad on and off, but... there is an another problem! If I try to turn this thing OFF and use a keyboard, it will be automatically turned ON again.
    Any ideas?
    I didnt need to modify /etc/acpi/events/asus-touchpad file, but, oh my, it's true!! Touchpad turns on every time you use a keyboard, even an external one.....I haven't disable touchpad for a while, one month ago it worked, now, maybe due to a kernel upgrade, it's completely useless!!

    I will investigate...

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •