Ubuntu 9.10 netbook remix.

Discussion in 'Linux' started by kinmel, Oct 30, 2009.

  1. kinmel

    praesepe

    Joined:
    Dec 15, 2008
    Messages:
    20
    Likes Received:
    0
    Yes, I can suspend with a card in the left slot after tweaking the system and making it auto unmount it before entering in suspend mode and it works nicely
     
    praesepe, Nov 4, 2009
    #21
  2. kinmel

    GlenMH

    Joined:
    Sep 23, 2008
    Messages:
    57
    Likes Received:
    0
    Location:
    Bristol
    How do you do that?

    Cheers

    Glen
     
    GlenMH, Nov 5, 2009
    #22
  3. kinmel

    praesepe

    Joined:
    Dec 15, 2008
    Messages:
    20
    Likes Received:
    0
    Glen,

    All you need to do is create a little script in /etc/pm/sleep.d/ with the right command to unmount the sd. All scripts in that folder get executed before entering in suspend mode.

    Code:
    #!/bin/sh
    #00umount-sd - script to unmount sd/sdhc before suspend
    umount /media/(your sd mount dir)
    exit
    
    Don't forget to chmod it and give execution rights. After that your AAO should unmount the SD before going to suspend.
     
    praesepe, Nov 5, 2009
    #23
  4. kinmel

    GlenMH

    Joined:
    Sep 23, 2008
    Messages:
    57
    Likes Received:
    0
    Location:
    Bristol
    Will give it a go this weekend - thanks!

    I have not had to chmod a file before so this could turn interesting!

    Glen
     
    GlenMH, Nov 7, 2009
    #24
  5. kinmel

    Nudnik_de

    Joined:
    Aug 7, 2008
    Messages:
    57
    Likes Received:
    0
    This initial solution didn't solve it completely for me. It unmounted and suspended correctly but for some reason the computer did not suspend when the SD card was not mounted. After googeling a while I came across this script that finally did it for me:

    Code:
    #!/bin/bash
    case $1 in
    hibernate)
    umount /media/disk
    echo "unmounting SD card"
    ;;
    suspend)
    umount /media/disk
    echo "unmounting SD card"
    ;;
    
    *) 
    ;;
    esac
    Nudnik
     
    Nudnik_de, Jan 18, 2010
    #25
  6. kinmel

    jango

    Joined:
    Aug 2, 2008
    Messages:
    307
    Likes Received:
    0
    Do you use Visual Effects On in your AAO 110L with 512RAM and SSD?
     
    jango, Jan 19, 2010
    #26
  7. kinmel

    Nudnik_de

    Joined:
    Aug 7, 2008
    Messages:
    57
    Likes Received:
    0
    @Jango,
    I have the AAO 110L with 1,5 GB of RAM. I'm running Kubuntu 9.10 with KDE4 and full 3D/Compositing Desktop activated. Runs great on this little machine. Surprisingly much better than Xubuntu 9.10.
    I haven't tested the NBR version or the standard Ubuntu as I'm not a fan of Gnome nor of the netbook interfaces.
    I just came across this post as I was looking for a solution for my suspend issues...
    Nudnik
     
    Nudnik_de, Jan 19, 2010
    #27
  8. kinmel

    Nudnik_de

    Joined:
    Aug 7, 2008
    Messages:
    57
    Likes Received:
    0
    I still had problems with suspend when the sd card was mounted and a file was opened which led to system freeze... :-(

    Meanwhile I found an even smarter script to do the umount:

    Code:
    https://help.ubuntu.com/community/AspireOne/Ubuntu9.10
    When a file is in progress the suspend will be stopped, otherwise the sd card will be unmounted before suspend
     
    Nudnik_de, Jan 19, 2010
    #28
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.