ďťż
 
 
   compiz --replace w pm-utils
 
 

Tematy

 
    
 

 

 

 

compiz --replace w pm-utils





dominiaz - 31-10-2009 10:15
System: Debian Lenny z jajkiem 2.31.5.

Będąc zalogowanym, po wydaniu polecenia w konsoli: compiz --replace uruchamia się poprawnie compiz i działają wszystkie efekty.

Natomiast podczas uśpienia/hibernacji wyłączam compiza poprzez: killall compiz.real Uśpieniem/wstrzymaniem zarządza pm-utils. Dodałem skrypt w pliku /etc/pm/sleep.d/02-compiz-kill: #!/bin/sh
## swap compiz for metacity to prevent resume freeze

case "$1" in
hibernate|suspend)
killall compiz.real
sleep 1
;;
thaw|resume)
compiz --replace &
echo test > /home/tescik.log
sleep 2
;;
*) exit $NA
;;
esac Po wstaniu z uśpienia niestety compiz się nie uruchamia. Oczywiście skrypt działa, bo tworzy się plik /home/tescik.log.

pm-suspend.log wygląda tak: Initial commandline parameters: --quirk-vbemode-restore
--quirk-vbe-post
Sat Oct 31 09:29:21 CET 2009: Running hooks for suspend.
/usr/lib/pm-utils/sleep.d/00clear suspend: success.
/etc/pm/sleep.d/02-compiz-kill suspend: compiz.real: no process killed
success.
/usr/lib/pm-utils/sleep.d/05led suspend: not applicable.
/usr/lib/pm-utils/sleep.d/10NetworkManager suspend: success.
/usr/lib/pm-utils/sleep.d/49bluetooth suspend: not applicable.
/usr/lib/pm-utils/sleep.d/50modules suspend: not applicable.
/usr/lib/pm-utils/sleep.d/90clock suspend: success.
/usr/lib/pm-utils/sleep.d/94cpufreq suspend: success.
/usr/lib/pm-utils/sleep.d/95led suspend: not applicable.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video suspend: success.
/usr/lib/pm-utils/sleep.d/99video suspend: success.
Sat Oct 31 09:29:25 CET 2009: performing suspend
Sat Oct 31 09:29:32 CET 2009: Awake.
Sat Oct 31 09:29:33 CET 2009: Running hooks for resume
/usr/lib/pm-utils/sleep.d/99video resume: success.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video resume: success.
/usr/lib/pm-utils/sleep.d/95led resume: not applicable.
/usr/lib/pm-utils/sleep.d/94cpufreq resume: success.
/usr/lib/pm-utils/sleep.d/90clock resume: success.
/usr/lib/pm-utils/sleep.d/50modules resume: success.
/usr/lib/pm-utils/sleep.d/49bluetooth resume: not applicable.
/usr/lib/pm-utils/sleep.d/10NetworkManager resume: success.
/usr/lib/pm-utils/sleep.d/05led resume: not applicable.
/etc/pm/sleep.d/02-compiz-kill resume: xset:  unable to open display ""
xdpyinfo:  unable to open display "".
xvinfo:  Unable to open display
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
Fatal: Failed test: texture_from_pixmap support
Checks indicate that it's impossible to start compiz on your system.
success.
/usr/lib/pm-utils/sleep.d/00clear resume: success.
Sat Oct 31 09:29:36 CET 2009: Finished.
xset:  unable to open display ""
xdpyinfo:  unable to open display "".
xvinfo:  Unable to open display
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
Fatal: Failed test: texture_from_pixmap support
Checks indicate that it's impossible to start compiz on your system.
xset:  unable to open display ""
xdpyinfo:  unable to open display "".
xvinfo:  Unable to open display
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
Fatal: Failed test: texture_from_pixmap support
Checks indicate that it's impossible to start compiz on your system. Z tego co wywnioskowałem chodzi o ten błąd: /etc/pm/sleep.d/02-compiz-kill resume: xset:  unable to open display "" Czy ktoś mi może poradzić z takim problemem?



ArnVaker - 31-10-2009 11:26

Natomiast podczas uspienia/hibernacji wylaczam compiza Po co go wyłączasz?



dominiaz - 31-10-2009 11:27
Jezeli uspie/zahibernuje kompa z wlaczonym compizem to juz nie wstanie poprawnie. Pojawi sie czarny ekran, mysz i na tym koniec. Nic nie dziala.



darkwater - 31-10-2009 12:53
Skrypt /etc/pm/sleep.d/02-compiz-kill prawdopodobnie wykonywany jest z uprawnieniami roota, stąd brak dostępu do X serwera. Użyj su lub sudo do uruchomienia compiza w kontekście swojego użytkownika.



adrikux - 31-10-2009 12:55
Dlaczego nie korzystasz z apletu fusion-icon? Oferuje on bezproblemowe przejścia między menedżerami okien.



dominiaz - 31-10-2009 13:45
Uzywam fusion-icon. Ale chcialbym zeby po uspieniu automatycznie wracaly mi kompozycje.

Skrypt zmienilem na cos takiego:
sudo -u dominiaz /usr/bin/fusion-icon & Teraz otrzymuje nastepujace bledy w logu:

/etc/pm/sleep.d/02-compiz-kill resume:  * Detected Session: unknown
 * Searching for installed applications...
Traceback (most recent call last):
  File "/usr/bin/fusion-icon", line 57, in <module>
    from FusionIcon.interface import choose_interface
  File "usr/lib/python2.5/site-packages/FusionIcon/interface.py", line 23, in <module>
  File "usr/lib/python2.5/site-packages/FusionIcon/start.py", line 36, in <module>
  File "usr/lib/python2.5/site-packages/FusionIcon/util.py", line 363, in check
  File "/usr/lib/python2.5/os.py", line 171, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/root/.config/compiz'
success.
/usr/lib/pm-utils/sleep.d/00clear resume: success.
Sat Oct 31 13:39:09 CET 2009: Finished.
xset:  unable to open display ""
xdpyinfo:  unable to open display "".
xvinfo:  Unable to open display
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
Fatal: Failed test: texture_from_pixmap support
Checks indicate that it's impossible to start compiz on your system.
xset:  unable to open display ""
xdpyinfo:  unable to open display "".
xvinfo:  Unable to open display
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
xdpyinfo:  unable to open display "".
Fatal: Failed test: texture_from_pixmap support
Checks indicate that it's impossible to start compiz on your system. Jakies pomysly?

[ Dodano: 2009-10-31, 21:32 ]
Problem rozwiazany. Napisalem wlasny skrypt, ktory uruchamia sie wraz z systemem oraz sprawdza zmiany statusu podczas wybudzania.
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • minister.pev.pl

  •  

     


     

     
    Copyright 2003. MĂłj serwis