Results 1 to 7 of 7

Thread: Suspend wake on keyboard

  1. #1
    Join Date
    Oct 2005
    Beans
    220

    Arrow My ramblings, tips and suggestions

    Though ive been using Ubuntu for a few years I tend to forget details on setting up the system, so anything useful that im bound to forget ive been posting here Most of the suggestions below come from other threads, so when I remeber ive added credit or a link back to the original topic. Some of this also covers my Ubuntu 8.04LTS dedicated remote server.

    Disable login screen coming out of suspend:

    Terminal:

    Code:
    gconf-editor
    Go to "/apps/gnome-power-manager/lock", and disable the suspend checkbox.


    USB Keyboard wake from suspend:

    (http://ubuntuforums.org/showthread.php?t=711747&page=2)

    Type into the terminal to list the devices:

    Code:
    cat /proc/acpi/wakeup
    You will probably find your USBX is disabled, to enable it create a file in /etc/init.d by going:

    Code:
    sudo nano /etc/init.d/wake.sh
    Then add the following to the new file (making sure you update the USB number):

    Code:
    sudo -s
    echo USB4 > /proc/acpi/wakeup
    CHMOD the file to excute:

    Code:
    sudo chmod +x /etc/init.d/wake.sh
    Lastly tell Ubuntu to excute on boot:

    Code:
    sudo update-rc.d wake.sh defaults

    Disable 60 second shutdown/reboot/logout warning:


    Terminal:

    Code:
    gconf-editor
    Go to, and enable "/apps/indicator-session/suppress_logout_restart_shutdown".


    Monitor log files:

    Code:
    tail --help
    example (displays last 10 lines):

    Code:
    tail -f /var/log/auth.log

    Add user:

    Code:
    useradd
    Will create a new user without a password or associated home directory.


    Code:
    adduser
    Recommended, will allow you create a password straight away, setup a home directory and enter some user details should you wish to.


    Change file or directory owner and permissions:

    Code:
    chmod --help
    Example (group:user, normally the group is the same as the user):

    Code:
    chmod usergroup:newuser file.sh
    Code:
    chmod 777 file.sh
    RAID array still being listed during install

    If you've recently disabled your RAID array you will need to reformat the drives before attemptting to install. Gpart fails to list the drives correctly. The below command gives mixed results.

    Code:
    sudo dmraid -r -E
    Best solution ive found is to reformat the drives before running the Live CD.

    Delay the startup of programs:

    In your "Startup Applications" GUI you can define programs to load on boot, sometimes you may want to delay or stagger the launch of the apps to help system load.

    Todo this on your command add the following:

    Code:
    sh -c "sleep 10 && skype &"
    Code:
    sh -c "sleep 20 && empathy &"
    Rabbitvcs:

    An easy to use SVN client similar to Tortoise integrated into Nautilus.

    http://rabbitvcs.org


    Wacom Graphics tablets:

    Easy to use driver install script:

    http://ubuntuforums.org/showthread.php?t=1327867

    After installing the drivers, then download "wacom-tools" through the package manager, open a terminal and run:

    Code:
    wacomcpl
    Force install a deb package:

    Code:
    sudo dpkg --force-overwrite -i <filename>

    SSH connection using the terminal:

    Man SSH.

    Code:
    ssh -l username -p port 192.168.0.1
    Last edited by Gorlist; April 14th, 2010 at 07:51 AM.

  2. #2
    Join Date
    Nov 2009
    Beans
    53

    Re: Suspend wake on keyboard

    Quote Originally Posted by Gorlist View Post
    USB Keyboard wake from suspend:
    it seems that it doesn't work after reboot system i "cat" again, i found that it has been reset. (i 'm sorry , i tried it on suse)

  3. #3
    Join Date
    Oct 2005
    Beans
    220

    Re: Suspend wake on keyboard

    updated

  4. #4
    Join Date
    Apr 2008
    Beans
    138
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: My ramblings, tips and suggestions

    Thanks for posting this summary. I don't like having to write a script for waking my pc with a keyboard, but am glad you posted this to help me find the steps again. Is there a way to wake on keyboard more easily with Lucid yet? Seems like most people would want this-- desktop or laptop.

  5. #5
    Join Date
    Oct 2005
    Beans
    220

    Re: Suspend wake on keyboard

    ive not had a chance to look into it yet, but I had noticed it stopped working. On holiday at the moment so won't until I get back. Regards,

  6. #6
    Join Date
    Apr 2010
    Location
    Barcelona
    Beans
    4
    Distro
    Ubuntu Development Release

    Re: My ramblings, tips and suggestions

    my /proc/acpi/wakeup does not contain any USB entry.
    cat /proc/acpi/wakeup
    Device S-state Status Sysfs node
    UAR1 S4 *disabled pnp:00:09
    P0P1 S4 *disabled
    RP01 S4 *disabled pci:0000:00:1c.0
    PXSX S4 *disabled
    RP02 S4 *disabled
    PXSX S4 *disabled
    RP03 S4 *disabled
    PXSX S4 *disabled
    RP04 S4 *disabled
    PXSX S4 *disabled
    RP06 S4 *disabled pci:0000:00:1c.5
    PXSX S4 *disabled
    BR10 S4 *disabled pci:0000:04:00.0
    RP07 S4 *disabled
    PXSX S4 *disabled
    RP08 S4 *disabled
    PXSX S4 *disabled
    PEG0 S4 *disabled pci:0000:00:01.0
    PEGP S4 *disabled
    PEG1 S4 *disabled
    PEG2 S4 *disabled
    PEG3 S4 *disabled
    RP05 S4 *disabled pci:0000:00:1c.4
    PXSX S4 *enabled pci:0000:03:00.0
    GLAN S4 *disabled
    EHC1 S4 *enabled pci:0000:00:1d.0
    EHC2 S4 *enabled pci:0000:00:1a.0
    XHC S4 *enabled pci:0000:00:14.0
    HDEF S4 *disabled pci:0000:00:1b.0
    PWRB S4 *enabled

    Any idea what I'm supposed to do to achieve wakup from usb keyboard?

  7. #7
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    14,758
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Suspend wake on keyboard

    If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.

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
  •