Jaunty UNR hacks, tips and tricks

Discussion in 'Linux' started by fester808, Apr 6, 2009.

  1. fester808

    fester808

    Joined:
    Apr 5, 2009
    Messages:
    3
    Likes Received:
    0
    As per request, here is a new thread about some of the things I and others have done to squeeze the most functionality out of UNR 9.04 on the AAO. Standard disclaimer...your mileage may vary.

    1. https://help.ubuntu.com/community/AspireOne110L

    This site was a HUGE amount of help. I did almost everything.

    2. https://help.ubuntu.com/community/AspireOne

    Another, more generic resource.

    3. Convert your ext3 drive to ext2. Better performance without journaling.

    viewtopic.php?f=5&t=164&st=0&sk=t&sd=a&start=10#p1177

    4. my /etc/rc.local

    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.

    /usr/local/sbin/jmb38x_d3e.sh &>/var/log/jmb38x_d3e.log &

    # Wireless disable/enable key
    /usr/bin/setkeycodes e055 159
    /usr/bin/setkeycodes e056 158
    # Decrease power usage of USB while idle
    [ -w /sys/bus/usb/devices/1-5/power/level ] && echo auto > /sys/bus/usb/devices/1-5/power/level
    [ -w /sys/bus/usb/devices/5-5/power/level ] && echo auto > /sys/bus/usb/devices/5-5/power/level
    # Disable Wake-On-LAN feature of Ethernet port
    ethtool -s eth0 wol d
    # As in the rc.last.ctrl of Linpus
    echo 1 > /sys/devices/system/cpu/sched_smt_power_savings
    # Recreate Log directories (use only if you put the Logs in tmpfs in /etc/fstab
    for dir in apparmor apt cups dist-upgrade fsck gdm installer samba unattended-upgrades ; do
    if [ ! -e /var/log/$dir ] ; then
    mkdir /var/log/$dir
    fi
    done
    # Fan control
    /usr/local/bin/acerfand


    exit 0

    4. /etc/fstab

    # /etc/fstab: static file system information.
    #
    # Use 'vol_id --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 defaults 0 0
    # / was on /dev/sda1 during installation
    UUID=c36fb21b-c670-45dc-90d0-6b1bcc75b9ed / ext2 noatime,errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    UUID=dcff500f-dc51-456b-a276-786154f5d8b3 none swap sw 0 0
    # SD Storage Expansion
    # UUID=4d77008c-2a3d-4ec6-bbea-d16be39a198b /media/Data ext2 noatime 0 0

    # setup logging
    tmpfs /var/log/apt tmpfs defaults 0 0
    tmpfs /var/log tmpfs defaults 0 0
    tmpfs /tmp tmpfs defaults 0 0
    tmpfs /var/tmp tmpfs defaults 0 0
     
    fester808, Apr 6, 2009
    #1
  2. fester808

    2manydjs

    Joined:
    Jul 16, 2008
    Messages:
    300
    Likes Received:
    0
    Thanks for your effort! Do these lines actually do something for you? My switch works on a hardware level, but Ubuntu doesn't give me any notification.
     
    2manydjs, Apr 7, 2009
    #2
  3. fester808

    lotus49

    Joined:
    Jun 29, 2008
    Messages:
    343
    Likes Received:
    0
    Location:
    Yorkshire
    It's true that Ubuntu doesn't give any visual notification immediately but my kill switch works fine. After a few seconds, once Ubuntu has realised that the wifi connection has dropped it does pop up a notification in the top right hand side of the screen saying the connection was lost and vice versa when you turn it back on. That's good enough for me.
     
    lotus49, Apr 8, 2009
    #3
  4. fester808

    jango

    Joined:
    Aug 2, 2008
    Messages:
    307
    Likes Received:
    0
    But this only work with madwifi, is not?
     
    jango, Apr 8, 2009
    #4
  5. fester808

    mordeith

    Joined:
    Mar 29, 2009
    Messages:
    32
    Likes Received:
    0
    downloaded newest version,.....(nightly build)...they either made a booboo or there no longer on the beta phase or what...will install and let you know :D
    everything seems ok...havent had time to tinker too much but everything i want it to do it is doing
     
    mordeith, Apr 9, 2009
    #5
  6. fester808

    rockfrog

    Joined:
    Mar 4, 2009
    Messages:
    18
    Likes Received:
    0
    The directory '/var/log/news' should be created by your rc.local, too,
    Code:
    # Recreate Log directories (use only if you put the Logs in tmpfs in /etc/fstab
    for dir in apparmor apt cups dist-upgrade fsck gdm installer news samba unattended-upgrades ; do
    if [ ! -e /var/log/$dir ] ; then
    mkdir /var/log/$dir
    fi
    done
    
    Otherwise the logviewer complains...
     
    rockfrog, Apr 9, 2009
    #6
  7. fester808

    jango

    Joined:
    Aug 2, 2008
    Messages:
    307
    Likes Received:
    0
    What about powersaving tweaks???
    My rc.local:

     
    jango, Apr 28, 2009
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.