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

Материал из ALT Linux Wiki
(Import from freesource.info)
(нет различий)

Версия от 15:54, 28 июля 2008

Freesource-logo.png Blue Glass Arrow.svg MediaWiki logo.png
Эта страница была перемещена с freesource.info.
Эта страница наверняка требует чистки и улучшения — смело правьте разметку и ссылки.
Просьба по окончанию убрать этот шаблон со страницы.


Небольшие заметки на полях по рассылке Сизиф

http://lists.altlinux.org/pipermail/sisyphus/2007-April/097267.html

1.Для запуска Beryl надо откорректировать xorg.conf

Пример для Nvidia (от Valery V. Inozemtsev)

Section "Files"
	RgbPath	"/usr/share/X11/rgb"
EndSection

Section "Module"
	Load	"dbe"
	SubSection	"extmod"
		Option	"omit xfree86-dga"
	EndSubSection
	Load	"glx"
	Load	"type1"
	Load	"freetype"
EndSection

Section "ServerFlags"
	AllowMouseOpenFail
EndSection

# Включаем Composite
Section "Extensions"
	Option	"Composite"	"true"
EndSection

# Клава :)
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"
	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

# Видео карта

Section "Device"
	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"
	Identifier	"TFT"
	Device	"NVIDIA GeForce4 FX5200"
	Monitor	"LG L1750B"
	DefaultColorDepth	24
	Subsection	"Display"
		Depth	8
		Modes	"1280x1024" "1024x768" "800x600" "640x400"
		ViewPort	0 0
	EndSubsection
	Subsection	"Display"
		Depth	16
		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"
	Identifier	"AGP"
	Screen	0	"TFT"	0 0
	InputDevice	"USBMouse"	"CorePointer"
	InputDevice	"BTC9116U"	"CoreKeyboard"
EndSection

Пример для ATI (от Valery V. Inozemtsev) :

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

2. Прописываем Beryl в KDM

http://lists.altlinux.org/pipermail/sisyphus/2007-April/097310.html

в /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 можно будет выбрать тип сессии - "Beryl". Правда, иногда еще приходится учить KDE не запоминать beryl-manager в сессии, и не пускать в след. раз.

startberyl

startberyl -- тот же startkde, только с добавленной строчечкой установки KDEWM вот так: ......

  1. finally, give the session control to the session manager
  2. see kdebase/ksmserver for the description of the rest of the startup sequence
  3. if the KDEWM environment variable has been set, then it will be used as KDE's
  4. window manager instead of kwin.
  5. if KDEWM is not set, ksmserver will ensure kwin is started.
  6. kwrapper is used to reduce startup time and memory usage
  7. kwrapper does not return usefull error codes such as the exit code of ksmserver.
  8. We only check for 255 which means that the ksmserver process could not be
  9. started, any problems thereafter, e.g. ksmserver failing to initialize,
  10. will remain undetected.

export KDEWM="/usr/bin/beryl-manager" test -n "$KDEWM" && KDEWM="--windowmanager $KDEWM" .........