Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 39

Thread: HOWTO suspend/hibernate with compiz and aiglx

  1. #11
    Join Date
    Apr 2006
    Beans
    141

    Re: HOWTO suspend/hibernate with compiz and aiglx

    How do you set these scripts up?

  2. #12
    Join Date
    Aug 2005
    Location
    Ikast, Denmark,
    Beans
    14
    Distro
    Ubuntu 6.10 Edgy

    Re: HOWTO suspend/hibernate with compiz and aiglx

    Quote Originally Posted by Bastanteroma View Post
    How do you set these scripts up?
    This is how I did with the scripts for Ubuntu/Aiglx/Beryl, I had the first one working but not the second one, which means I have to start beryl manually from a shortcut on my desktop...
    Code:
    sudo su
    gedit /etc/acpi/suspend.d/07-compiz-stop.sh
    Copy paste the first script from this thread...

    Code:
    sudo su
    gedit /etc/acpi/resume.d/99-beryl-resume.sh
    Copy paste the second script from this thread...

  3. #13
    Join Date
    Aug 2005
    Location
    Berkley / Marquette, MI
    Beans
    71
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: HOWTO suspend/hibernate with compiz and aiglx

    Anyone got a resume script that works with the beryl suspend one? I don't know enough about scripting to make it work with gnome and not kde.

  4. #14
    Join Date
    Nov 2005
    Location
    Portugal
    Beans
    80
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO suspend/hibernate with compiz and aiglx

    I am Also having the same problem. I am able to suspend but not able to resume

  5. #15
    Join Date
    Oct 2006
    Beans
    1

    Re: HOWTO suspend/hibernate with compiz and aiglx

    ok... i think i see where the problem is:

    the script jost gave works with kde only but most of the people here most likely run gnome.

    what the resume script does in the following line

    Code:
    BERYLUSER=`ps -Ao user,comm | grep startkde | awk '{print $1}'`
                                                   ^ put the user ino
                                                     the variable BERYLUSER
                                   ^ of all the running progs show
                                     only startkde
                ^ give me all running programs
     ^ define the variable BERYLUSER 
    is that it tries to guess what user shoul restart the berly-manager by finding out who started startkde, which no one does in gnome

    one way to modify this linie is

    Code:
    BERYLUSER=`ps -Ao user,comm | grep emerald | awk '{print $1}'`
    which should work in both, gnome and kde... (because emerald is started with beryl but not suspended by the 07-compiz-stop.sh script)

    so, to resume, generate the two following files:

    Code:
    sudo su
    gedit /etc/acpi/suspend.d/07-compiz-stop.sh
    and fill in what jost described earlyer:

    Code:
    #!/bin/bash
    #/etc/acpi/suspend.d/07-compiz-stop.sh
    
    PID_BERYL=`ps -Ao pid,comm | grep beryl | awk '{print $1}'`
    if [ "$PID_BERYL" != "" ]; then
    kill -s 15 $PID_BERYL &
    fi
    and for the second file
    Code:
    sudo su
    gedit /etc/acpi/resume.d/99-beryl-resume.sh
    fill in with the modified linie:

    Code:
    #!/bin/bash
    #/etc/acpi/resume.d/99-beryl-resume.sh
    
    export DISPLAY=:0.0
    BERYLUSER=`ps -Ao user,comm | grep emerald | awk '{print $1}'`
    PID_BERYL=`ps -Ao pid,comm | grep beryl-manager | awk '{print $1}'`
    if [ "$PID_BERYL" == "" ]; then PID_BERYL=0; fi
    if [ "$PID_BERYL" == 0 ]; then
    echo "Starting beryl-manager...."
    sudo -H -b -u $BERYLUSER /usr/bin/beryl-manager &
    fi
    let me know if that works for you...
    Last edited by caillou; October 24th, 2006 at 04:17 PM.

  6. #16
    Join Date
    Nov 2005
    Location
    Portugal
    Beans
    80
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO suspend/hibernate with compiz and aiglx

    yep .. This is working now. I have not tested fully but it appears to be working ok....We will see... if this solves our troubles.. It seems so

  7. #17
    Join Date
    Mar 2005
    Beans
    31
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO suspend/hibernate with compiz and aiglx

    I can now resume from hibernate OK, but beryl-manager isn't restarting and I have no window decorations, even using that last version of 99-beryl-resume.sh

    Any ideas?

  8. #18
    Join Date
    Mar 2005
    Beans
    31
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO suspend/hibernate with compiz and aiglx

    bump

  9. #19
    Join Date
    Mar 2005
    Beans
    31
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO suspend/hibernate with compiz and aiglx

    Running compiz-stop and then beryl-resume in a console gives me the following error:
    sudo: no passwd entry for 1000!

    How do I resolve this?

  10. #20
    Join Date
    Jun 2006
    Location
    Italy
    Beans
    29

    Re: HOWTO suspend/hibernate with compiz and aiglx

    I have no more problem with beryl+aiglx on my i915 after a fresh edgy installation! No problem with susped/hibernate, no problem with VT switch (Ctrl+Alt+Fn). There are only some issues with video players(as expected). XV works only with mplayer, while there are some quirks (screen artifacts) with totem (gstreamer and XV output).
    Does anyone have a solution for these problems without disable XV? If I use X11 as video output, I have problems to view movies (framedropping, bad quality).

    PS: I use this tutorial to install beryl...it's very simple!!
    http://wiki.beryl-project.org/index....LX_on_Edgy_Eft

Page 2 of 4 FirstFirst 1234 LastLast

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
  •