How do you set these scripts up?
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...
Copy paste the first script from this thread...Code:sudo su gedit /etc/acpi/suspend.d/07-compiz-stop.sh
Copy paste the second script from this thread...Code:sudo su gedit /etc/acpi/resume.d/99-beryl-resume.sh
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.
I am Also having the same problem. I am able to suspend but not able to resume
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
is that it tries to guess what user shoul restart the berly-manager by finding out who started startkde, which no one does in gnomeCode: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
one way to modify this linie is
which should work in both, gnome and kde... (because emerald is started with beryl but not suspended by the 07-compiz-stop.sh script)Code:BERYLUSER=`ps -Ao user,comm | grep emerald | awk '{print $1}'`
so, to resume, generate the two following files:
and fill in what jost described earlyer:Code:sudo su gedit /etc/acpi/suspend.d/07-compiz-stop.sh
and for the second fileCode:#!/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
fill in with the modified linie:Code:sudo su gedit /etc/acpi/resume.d/99-beryl-resume.sh
let me know if that works for you...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
Last edited by caillou; October 24th, 2006 at 04:17 PM.
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
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?
bump
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?
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
Bookmarks