Beryl: различия между версиями

Материал из ALT Linux Wiki
(Import from freesource.info)
 
Нет описания правки
 
(не показаны 2 промежуточные версии 2 участников)
Строка 1: Строка 1:
{{MovedFromFreesourceInfo|AltLinux/Beryl}}
{{Устарело}}


== Небольшие заметки на полях по рассылке Сизиф ==
=== Рекомендации от Michael Shigorin ===


[http://lists.altlinux.org/pipermail/sisyphus/2007-April/097267.html http://lists.altlinux.org/pipermail/sisyphus/2007-April/097267.html]
[http://lists.altlinux.org/pipermail/sisyphus/2006-November/089781.html http://lists.altlinux.org/pipermail/sisyphus/2006-November/089781.html]


=== 1.Для запуска Beryl надо откорректировать xorg.conf ===
используя текущий сизиф, делаем


==== Пример для Nvidia (от Valery V. Inozemtsev) ====
<pre>apt-get install beryl</pre>


<pre>Section "Files"
если используется видеокарта NVIDIA, поддерживаемая драйвером
RgbPath "/usr/share/X11/rgb"
ветки 9xxx (это не TNT2), то дополнительно
EndSection


Section "Module"
<pre>apt-get install nvidia-xconfig</pre>
Load "dbe"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
Load "glx"
Load "type1"
Load "freetype"
EndSection


Section "ServerFlags"
далее идём в консоль, говорим рутом
AllowMouseOpenFail
EndSection


# Включаем Composite
<pre>nvidia-xconfig --composite
Section "Extensions"
nvidia-xconfig --allow-glx-with-composite
Option "Composite" "true"
nvidia-xconfig --render-accel
EndSection
nvidia-xconfig --add-argb-glx-visuals</pre>


# Клава :)
и перестартовываем X:
Section "InputDevice"
Identifier "BTC9116U"
Driver "kbd"
Option "AutoRepeat" "250 30"
Option "XkbModel" "btc9116u"
Option "XkbLayout" "us,ru"
Option "XkbVariant" ",winkeys"
Option "XkbOptions" "grp:caps_toggle,grp:lwin_toggle,grp:switch"
EndSection


Section "InputDevice"
<pre>service dm restart</pre>
Identifier "USBMouse"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
EndSection


# Монитор
или запускаем пользователем ещё один рядом:
Section "Monitor"
Identifier "LG L1750B"
VendorName "LG"
ModelName "L1750B"
DisplaySize 338 270
HorizSync 30-71
VertRefresh 56-75
EndSection


# Видео карта
<pre>startx</pre>


Section "Device"
теперь Beryl можно запустить при помощи beryl-manager; для автозапуска при старте KDE можно добавить такой файл, сделав его исполняемым:
Identifier "NVIDIA GeForce4 FX5200"
VendorName "NVIDIA"
BoardName "GeForce 4"
Driver "nvidia"
BusID "PCI:1:0:0"
# Включили DPMS
Option "DPMS" "true"
# Отключили Logo
Option "NoLogo" "true"
# Включили Рендеринг
Option "RenderAccel" "true"
#
Option "Backingstore" "true"
# Включили "ротацию"
Option "RandRRotation" "true"
# Включили "тройной буфер"
Option "TripleBuffer" "true"
# Включили 32-х битовый ARGB режим
Option "AddARGBGLXVisuals"
EndSection


Section "Screen"
<pre>cat > ~/.kde/Autostart/beryl.desktop << EOF
Identifier "TFT"
[Desktop Entry]
Device "NVIDIA GeForce4 FX5200"
Encoding=UTF-8
Monitor "LG L1750B"
Exec=beryl-manager &
DefaultColorDepth 24
GenericName[en_US]=
Subsection "Display"
StartupNotify=false
Depth 8
Terminal=false
Modes "1280x1024" "1024x768" "800x600" "640x400"
TerminalOptions=
ViewPort 0 0
Type=Application
EndSubsection
X-KDE-autostart-after=kdesktop
Subsection "Display"
EOF
Depth 16
chmod +x ~/.kde/Autostart/beryl.desktop</pre>
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 32
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection


Section "ServerLayout"
если будет глючить, тормозить или просто надоест — в KDE проще переключить дефолтный WM в меню менеджера (в трее), иначе придётся сделать fgrep -r beryl /.kde и поменять на kwin в одном из rc-файлов.
Identifier "AGP"
Screen 0 "TFT" 0 0
InputDevice "USBMouse" "CorePointer"
InputDevice "BTC9116U" "CoreKeyboard"
EndSection</pre>
 
==== Пример для ATI  (от Valery V. Inozemtsev) : ====
 
<pre>Section "Files"
        RgbPath "/usr/share/X11/rgb"
EndSection
 
Section "ServerFlags"
        AllowMouseOpenFail
        Option  "DontZap"
        Option  "AIGLX" "true"
        Option  "NoPM"  "true"
EndSection
 
Section "InputDevice"
        Identifier      "Keyboard0"
        Driver  "kbd"
        Option  "AutoRepeat"    "250 30"
        Option  "XkbModel"      "pc105"
        Option  "XkbLayout"    "us,ru"
        Option  "XkbVariant"    ",winkeys"
        Option  "XkbOptions"    "grp:ctrl_shift_toggle"
EndSection
 
Section "InputDevice"
        Identifier      "Mouse0"
        Driver  "mouse"
        Option  "Protocol"              "IMPS/2"
        Option  "Device"                "/dev/input/mice"
        Option  "ZAxisMapping"          "4 5"
EndSection
 
Section "Module"
        Load    "dbe"
        Load    "glx"
        Load    "dri"
        SubSection      "extmod"
                Option "omit xfree86-dga"
        EndSubSection
        Load    "type1"
        Load    "freetype"
EndSection
 
Section "Monitor"
        Identifier  "Monitor0"
        HorizSync  30-96
        VertRefresh 50-160
        Option "DPMS"
        Modeline "1024x768_100.00"  113.31  1024 1096 1208 1392  768 769 772 814  -HSync +Vsync
EndSection
 
Section "Device"
        Identifier      "ATI Graphics Adapter"
        VendorName      "ATI"
        Option          "BusType"      "AGP"
        Driver          "ati"
EndSection
 
Section "Extensions"
        Option  "Composite"    "true"
EndSection
 
Section "DRI"
        Group  "xgrp"
        Mode    0660
EndSection
 
Section "Screen"
        Identifier      "Screen0"
        Device          "ATI Graphics Adapter"
        Option          "XaaNoOffscreenPixmaps"
        Monitor        "Monitor0"
        DefaultColorDepth      16
        Subsection      "Display"
                Depth  32
                Modes  "1152x864" "1024x768_100.00"
                ViewPort        0 0
        EndSubsection
        Subsection      "Display"
                Depth  24
                Modes  "1152x864" "1024x768_100.00"
                ViewPort        0 0
        EndSubsection
        Subsection      "Display"
                Depth  16
                Modes  "1152x864" "1024x768_100.00"
                ViewPort        0 0
        EndSubsection
        Subsection      "Display"
                Depth  15
                Modes  "1152x864" "1024x768_100.00"
                ViewPort        0 0
        EndSubsection
        Subsection "Display"
                Depth  8
                Modes  "1152x864" "1024x768_100.00"
                ViewPort        0 0
        EndSubsection
EndSection
 
Section "ServerLayout"
        Identifier      "Server Layout"
        Screen          "Screen0"
        InputDevice    "Mouse0"        "CorePointer"
        InputDevice    "Keyboard0"    "CoreKeyboard"
EndSection</pre>
 
=== 2. Прописываем Beryl в KDM ===
[http://lists.altlinux.org/pipermail/sisyphus/2007-April/097310.html http://lists.altlinux.org/pipermail/sisyphus/2007-April/097310.html]
 
<blockquote>
в /etc/X11/wmsession.d создать файл 01Beryl (цифры могут быть
другими) след. содержания:
 
NAME=Beryl
ICON=/usr/share/icons/default.kde/64x64/apps/kmenu.png
DESC=Beryl manager
EXEC=/usr/bin/startberyl
SCRIPT:
exec /usr/bin/startberyl
 
И тогда в KDM можно будет выбрать тип сессии - &quot;Beryl&quot;. Правда, иногда еще
приходится учить KDE не запоминать beryl-manager в сессии, и не пускать в  
след. раз.
</blockquote>
 
[http://lists.altlinux.org/pipermail/sisyphus/2006-November/089731.html startberyl]
<blockquote>
startberyl -- тот же startkde, только с добавленной строчечкой установки
KDEWM вот так:
......
# finally, give the session control to the session manager
# see kdebase/ksmserver for the description of the rest of the startup sequence
# if the KDEWM environment variable has been set, then it will be used as KDE's
# window manager instead of kwin.
# if KDEWM is not set, ksmserver will ensure kwin is started.
# kwrapper is used to reduce startup time and memory usage
# kwrapper does not return usefull error codes such as the exit code of ksmserver.
# We only check for 255 which means that the ksmserver process could not be
# started, any problems thereafter, e.g. ksmserver failing to initialize,
# will remain undetected.
export KDEWM=&quot;/usr/bin/beryl-manager&quot;
test -n &quot;$KDEWM&quot; &amp;&amp; KDEWM=&quot;--windowmanager $KDEWM&quot;
.........
</blockquote>
 
* [http://lists.altlinux.org/pipermail/sisyphus/2007-April/097310.html http://lists.altlinux.org/pipermail/sisyphus/2007-April/097310.html]
* [http://lists.altlinux.org/pipermail/sisyphus/2007-April/097163.html http://lists.altlinux.org/pipermail/sisyphus/2007-April/097163.html]
* [http://lists.altlinux.org/pipermail/sisyphus/2007-April/097267.html http://lists.altlinux.org/pipermail/sisyphus/2007-April/097267.html]
* [[ValeryInozemtsev/AiglxXgl|AiglxXgl]]

Текущая версия от 13:15, 21 декабря 2023

48px-Mail-mark-junk red.svg.png
Эта статья конкретно протухла.
Статья уже не подходит под современные реалии, под современные версии Альта или сломана совсем. Возможно, её уже не доработать и не поместить в архив.


Рекомендации от Michael Shigorin

http://lists.altlinux.org/pipermail/sisyphus/2006-November/089781.html

используя текущий сизиф, делаем

apt-get install beryl

если используется видеокарта NVIDIA, поддерживаемая драйвером ветки 9xxx (это не TNT2), то дополнительно

apt-get install nvidia-xconfig

далее идём в консоль, говорим рутом

nvidia-xconfig --composite
nvidia-xconfig --allow-glx-with-composite
nvidia-xconfig --render-accel
nvidia-xconfig --add-argb-glx-visuals

и перестартовываем X:

service dm restart

или запускаем пользователем ещё один рядом:

startx

теперь Beryl можно запустить при помощи beryl-manager; для автозапуска при старте KDE можно добавить такой файл, сделав его исполняемым:

cat > ~/.kde/Autostart/beryl.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Exec=beryl-manager &
GenericName[en_US]=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-KDE-autostart-after=kdesktop
EOF
chmod +x ~/.kde/Autostart/beryl.desktop

если будет глючить, тормозить или просто надоест — в KDE проще переключить дефолтный WM в меню менеджера (в трее), иначе придётся сделать fgrep -r beryl /.kde и поменять на kwin в одном из rc-файлов.