I have an ancient Thinkpad T42 with Radeon 7500. It's blacklisted in Hardy btw, but works mostly OK with SKIP_CHECKS, except suspend/hibernate. When compiz is enabled, the session does not survive suspend cycle - ie. after resume, login screen (GDM) is displayed. Suspend works with metacity, so I would like to switch to metacity on suspend, and switch to compiz back on resume.
Now - the question is - how to do it? I can add something like
or evenCode:metacity --replace &to /usr/lib/pm-utils/ scripts but I get "Unable to open display" error message. I guess it has to do with permissions etc. So, could anyone tell me how to controll metacity/compiz (or - I guess - any other X application) from scripts (or from VT, I guess it would be the same...)Code:metacity --replace --display=:0 &




Bookmarks