Ubuntu, ATI X1300, fglrx 8.42 и Compiz Fusion

root аватар

Обсуждаем запуск Compiz Fusion в Ubuntu 7.10 на видеокартах ATI с XGL и через AiGLX нового драйвера!

Сейчас поставил заново систему полностью!
На чистую систему поставил дрова как показано в статье:
http://forlong.blogage.de/article/2007/10/23/fglrx-8423---finall...
Всё прошло идеально!

floody@floodyx:~$ glxinfo | grep rendering
direct rendering: Yes
floody@floodyx:~$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Radeon X1300 / X1550 Series
OpenGL version string: 2.0.6958 Release

floody@floodyx:~$ compiz
Checking for Xgl: not present.
No whitelisted driver found
SKIP_CHECKS is yes, so continuing despite problems.
Checking for texture_from_pixmap: not present.
Trying again with indirect rendering:
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: not present.
SKIP_CHECKS is yes, so continuing despite problems.
Checking for nVidia: not present.
Checking for FBConfig: present.
Checking for Xgl: not present.
Starting gtk-window-decorator

(gtk-window-decorator:5961): Gdk-WARNING **: Using Cairo rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap

(gtk-window-decorator:5961): Gdk-WARNING **: Using Cairo rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap
/usr/bin/compiz.real (core) - Fatal: No composite extension

Ну и как бы ничего не происходит, только окна проморгались и всё!
Предполагаю, что предупреждает о слёте декорации окон и не пускает дальше.

вот xorg.conf

Section "Files"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Device"
Identifier "Универсальная видеокарта"
Driver "fglrx"
BusID "PCI:5:0:0"
EndSection

Section "Monitor"
Identifier "L196WTQ"
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Универсальная видеокарта"
Monitor "L196WTQ"
DefaultDepth 24
SubSection "Display"
Modes "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"

# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
EndSection

Section "Extensions"

Option "Composite" "0" # or "Disable"

EndSection

Section "ServerFlags"

Option "AIGLX" "off"

EndSection

У меня такое ощущение, что нужно доставить emerald, оно же ругается на декорации!
Потому что стопудово установлю beryl и всё заработает, только декорации опять отвалятся!
Что думаешь по этому поводу?
Или есть что-то что я опять не доставил или не так поставил?))))))))

Ещё мне посоветовали добавить в /usr/bin/compiz строчку:

# Driver whitelist
WHITELIST="fglrx nvidia intel ati radeon i810"

Пока не добавлял (из-под масдая сижу), но как это может помочь когда
ошибка в декорациях?

Попробуйте сначала поправить WHITELIST="fglrx nvidia intel ati radeon i810", если Compiz Fusion так и не запустится, попробуйте Emerald поставить. Судя по моему опыту, после установки emerald в Ubuntu 7.10, он становится декоратором окон по умолчанию. Пробуйте.

Хотя, я не могу понять, относится ли опция с SKIP_CHECKS=yes к тому самому белому листу.

Добавил, но ничего не изменилось!
А емералд не хочет ставить

emerald:
Зависит: libemeraldengine0 но пакет не будет установлен
Зависит: libwnck18 но пакет не будет установлен

Я думаю собрать три xorg.conf с разных операционок,
просто на mandriva 2008 one всё работает по умолчанию!
На Linux Mint запускается, но белый экран, то есть не на что не ругается,
но тут понятно я дрова новые не ставил!
А в убунту непашет! Вот как всегда!))))
Что посоветуешь ещё сравнить из этих трёх осей?
Что может в mandriva работать, а в Ubuntu нет?
Версии дров, наличие и отсутствие пакетов, .....
Вообщем надо сравнить всё то что относится к compiz`у!!!!

У меня была подобная проблема с пакетами, но точно не могу сказать какими. Посмотрите в Synaptic'е на версии пакетов, которые надо установить, и их зависимости... Где-то в этом месте должна крыться причина отказа в установке. Причём, если ситуация та же, что и у меня, эта причина - глюк. Лечился он у меня обновлением базы данных пакетов sudo apt-get update. Но точно сказать, поможет ли это не могу сказать: Вы наверяка это уже делали.
В общем, отказываться ставить пакеты из-за неправильного xorg.conf apt-get не может! Мало того: то, что не запускается gtk-window-decorator, не значит, что не запустится emerald.
Посмотрите, так же, на установленные пакеты, отображаемые по поисковому запросу "compiz": там должны быть установлены пакеты вроде compiz-gnome и т.п.

Короче запустил я его! Только что!
Помог скрипт по установке дров Envy!!!

1. Сначала установить скрипт, потом запустить и проинсталировать атишные дрова.

2. Cтавим XGL — без него ATI не заработает

sudo apt-get update
sudo apt-get install xserver-xgl

3. Полная установка Compiz

sudo apt-get install compizconfig-settings-manager compiz compiz-core compiz-fusion-plugins-main compiz-fusion-plugins-extra compiz-gnome compiz-plugins libcompizconfig-backend-gconf libcompizconfig0

4. Правим sudo gedit /etc/X11/xorg.conf

Section "Device"
Identifier "<тут ничего не трогаем>"
Driver "fglrx"
Option "VideoOverlay" "on"
Option "XAANoOffscreenPixmaps" "true"
Option "UseFastTLS" "2"
Option "VideoOverlay" "on"
EndSection

и в конце файла добавляем:

Section "DRI"
Group "video"
Mode 0666
EndSection

Section "Extensions"
Option "XVIdeo" "Enable"
Option "ReducedBlanking" "Enable"
Option "Composite" "Enable"
EndSection

(обязательно проверяйте правильность кавычек, они должны быть прямыми,
на русской раскладке "Shift+2")

5. Перезагружаемся.
Если выведет окно, что типа нихрена не найден видео драйвер, жмём на продолжение и снова проверяем xorg.conf как в пункте 4.
Меняем и снова перезагрузка. У меня после всех злохитрых махинаций всё запустилось.

Ксати когда будете инсталировать скрипт Envy и он не захочет вставать из-за
каких-то зависимостей, я ничего не нашёл как поставить систему с нуля, тогда только этот скрипт запустился.
Пол года мучался чтобы настроить и вот оно!))))))

Единственный вопрос к уважаемому Админу, тормозит всё жутко, любой эффект происходит с боооольшими тормозами
может что-нибудь посоветуешь?))))))

xorg.conf после всех махинаций:

Section "Files"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Device"
Identifier "Универсальная видеокарта"
Driver "fglrx"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "on"
BusID "PCI:5:0:0"
Option "XAANoOffscreenPixmaps" "true"
Option "UseFastTLS" "2"
EndSection

Section "Monitor"
Identifier "L196WTQ"
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Универсальная видеокарта"
Monitor "L196WTQ"
DefaultDepth 24
SubSection "Display"
Modes "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"

# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
EndSection

Section "DRI"
Group "video"
Mode 0666
EndSection

Section "Extensions"
Option "XVIdeo" "Enable"
Option "ReducedBlanking" "Enable"
Option "Composite" "Enable"
EndSection

XGL вообще медленный, это во-первых. Во-вторых, посмотрите настройки Compiz Fusion. Там нужно автоопределение скорости обновления монитора поставить, выключить освещение, и повыключать лишние плагины. Я, например, не пользуюсь этими кубами, увеличителем, даже альт-табом не пользуюсь и выключаю switcher, соответственно.
Ко всему, в xorg'е куча всего непонятного.

вот новый:

Section "Files"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

#Section "InputDevice"
#Driver "wacom"
#Identifier "stylus"
#Option "Device" "/dev/input/wacom"
#Option "Type" "stylus"
#Option "ForceDevice" "ISDV4" # Tablet PC ONLY
#EndSection
#
#Section "InputDevice"
#Driver "wacom"
#Identifier "eraser"
#Option "Device" "/dev/input/wacom"
#Option "Type" "eraser"
#Option "ForceDevice" "ISDV4" # Tablet PC ONLY
#EndSection
#
#Section "InputDevice"
#Driver "wacom"
#Identifier "cursor"
#Option "Device" "/dev/input/wacom"
#Option "Type" "cursor"
#Option "ForceDevice" "ISDV4" # Tablet PC ONLY
#EndSection
#
Section "Device"
Identifier "Универсальная видеокарта"
Driver "fglrx"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "on"
BusID "PCI:5:0:0"
Option "XAANoOffscreenPixmaps" "true"
Option "UseFastTLS" "2"
EndSection

Section "Monitor"
Identifier "L196WTQ"
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Универсальная видеокарта"
Monitor "L196WTQ"
DefaultDepth 24
SubSection "Display"
Modes "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"

# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
EndSection

Section "DRI"
Group "video"
Mode 0666
EndSection

Section "Extensions"
Option "XVIdeo" "Enable"
Option "ReducedBlanking" "Enable"
Option "Composite" "Enable"
EndSection

Кое-что закомментировал и всё. Вроде порядок.
В секцию "Monitor" надо добавить

HorizSync 30-82
VertRefresh 50-75

Значения побдерите для своего монитора.

Не помогает отрубание плагинов.
Дело наверное в криво-поставленных дровах!
Но в мандриве даже с live cd всё летает!
Там даже в 2007.0 версии у меня работал XGL и ничего не тормозило, то есть когда и небыло нормальных дров для ATI даже в планах!
Интересно очень! =)
Может что-то подскажет xorg.conf с mandriva 2008 one:

Section "ServerFlags"
#DontZap # disable (server abort)
#DontZoom # disable / (resolution switching)
AllowMouseOpenFail # allows the server to start up even if the mouse does not work
EndSection

Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
Load "dri" # direct rendering
EndSection

Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
Option "XkbOptions" "compose:rwin"
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
EndSection

Section "InputDevice"
Identifier "Mouse2"
Driver "evdev"
Option "bustype" "0x0011"
Option "relBits" "+0+1+2"
Option "product" "0x0006"
Option "vendor" "0x0002"
Option "HWheelRelativeAxisButtons" "7 6"
EndSection

Section "Monitor"
Identifier "monitor1"
VendorName "Plug'n Play"
ModelName "L196WTQ "
HorizSync 30-83
VertRefresh 56-75

# Monitor preferred modeline (59.9 Hz vsync, 55.9 kHz hsync, ratio 16/10)
ModeLine "1440x900" 106.5 1440 1520 1672 1904 900 903 909 934 +hsync -vsync

# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection

Section "Device"
Identifier "device1"
VendorName "ATI Technologies Inc"
BoardName "ATI Radeon X1300 - X1950 (working with avivo driver)"
Driver "fglrx"
Option "DPMS"
EndSection

Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24

Subsection "Display"
Depth 8
Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubsection

Subsection "Display"
Depth 15
Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubsection

Subsection "Display"
Depth 16
Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubsection

Subsection "Display"
Depth 24
Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubsection
EndSection

Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
InputDevice "Mouse2" "SendCoreEvents"
Screen "screen1"

А так у меня монитор подключен через DVI-D (цифра)
Частоты горизонтальной развертки: 30 - 66
Частоты вертикальной развертки: 56 - 75
Максимальное разрешение: 1440 x 900

Ничего особенного кроме секции

Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
Load "dri" # direct rendering
EndSection

не вижу. Попробуйте встаивть её (добавить в тому, что есть в Ubuntu) в свой xorg.conf.

Всё настроил! Спасибо огромное админу за помощь!
установил xgl, обновил compiz, поставил новый драйвер атишный
ATI Catalyst™ 7.11 Proprietary Linux Display Driver
который можно скачать отсюда
http://ati.amd.com/support/drivers/linux/linux-radeon.html
и не трогая никакие настройки я перезагрузился
и опа всё работает просто супер, не просто работает, а летает!
Удачи тем кто будет ставить дрова!
Главное добиваться своего и всё будет! =)