Всем привет,
на днях писал в ветку про игры о том что у меня не работает GTA: http://linuxforum.ru/index.php?showtopic=29233 и получил ответ, что мою проблему надо начинать решать с конфигурирования XORG.
А я совершенный ноль в настройке X_ов ;-( т.е. как встало – так и работает.
Научите плиз как выставить видео режим 640Х480???
xorg - как конфигурируется? (Научите плиз как выставить видео режим...)
Модератор: Bizdelnick
-
timename
- Сообщения: 100
- ОС: Suse 10.1 SLES 9 Winда XUbuntu
-
Juliette
- Сообщения: 5058
- Статус: ROSA Lab
- ОС: Ubuntu LTS, Mandriva 2011
Re: xorg - как конфигурируется?
вот кусок из моего xorg.conf:
# **********************************************************************
# Screen sections
# **********************************************************************
# Any number of screen sections may be present. Each describes
# the configuration of a single screen. A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
Identifier "Screen 1"
Device "Card0"
Monitor "Sony CPD-G220"
DefaultDepth 16
Subsection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480"
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
EndSection
есть ещё утилита-помощница для конфигурирования иксов, xorgconfig называется, из командной строки, очень упрощает процесс настройки иксов
# **********************************************************************
# Screen sections
# **********************************************************************
# Any number of screen sections may be present. Each describes
# the configuration of a single screen. A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
Identifier "Screen 1"
Device "Card0"
Monitor "Sony CPD-G220"
DefaultDepth 16
Subsection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480"
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
EndSection
есть ещё утилита-помощница для конфигурирования иксов, xorgconfig называется, из командной строки, очень упрощает процесс настройки иксов
-
timename
- Сообщения: 100
- ОС: Suse 10.1 SLES 9 Winда XUbuntu
Re: xorg - как конфигурируется?
2Juliette: к сожалению из-за природной глупости xorgconfig не понял.
Запустить - запустил, на вопросы - ответил. Но как задать более одной настройки разрешения монитора - не понял... и если честно, как то стреманулся немного когда xorgconfig стал всё записывать в xorg.conf
Выяснил, из xorgconfig что есть два файла xorg.conf, которые живут в двух места:
etc/X11/xorg.conf
usr/X11R6/etc/X11/xorg.conf
полез зырить тот что etc/X11/xorg.conf
у меня он содержит:
>cut--------------
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Mon May 15 13:23:42 PDT 2006
# /.../
# SaX generated X11 config file
# Created on: 2006-10-14T19:08:15+0400.
#
# Version: 7.1
# Contact: Marcus Schaefer <sax@suse.de>, 2005
# Contact: SaX-User list <https://lists.berlios.de/mailman/listinfo/sax-users>
#
# Automatically generated by [ISaX] (7.1)
# PLEASE DO NOT EDIT THIS FILE!
#
Section "ServerLayout"
Identifier "Layout[all]"
Screen "Screen[0]" 0 0
InputDevice "Keyboard[0]" "CoreKeyboard"
InputDevice "Mouse[1]" "CorePointer"
Option "Clone" "off"
Option "Xinerama" "off"
EndSection
Section "Files"
InputDevices "/dev/gpmdata"
InputDevices "/dev/input/mice"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/local"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/URW"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/PEX"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/latin7/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/baekmuk:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/japanese:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/kwintv"
FontPath "/usr/X11R6/lib/X11/fonts/truetype"
FontPath "/usr/X11R6/lib/X11/fonts/uni:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/CID"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/misc/sgi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/xtest"
FontPath "/opt/kde3/share/fonts"
EndSection
Section "Module"
Load "dbe"
Load "type1"
Load "freetype"
Load "extmod"
Load "glx"
Load "v4l"
EndSection
Section "ServerFlags"
Option "AllowMouseOpenFail" "on"
EndSection
Section "InputDevice"
Identifier "Keyboard[0]"
Driver "kbd"
Option "Protocol" "Standard"
Option "XkbLayout" "us,ru"
Option "XkbModel" "pc105"
Option "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll"
Option "XkbRules" "xfree86"
Option "XkbVariant" ",winkeys"
EndSection
Section "InputDevice"
Identifier "Mouse[1]"
Driver "mouse"
Option "Buttons" "7"
Option "Device" "/dev/input/mice"
Option "Name" "ImExPS/2 Logitech Explorer Mouse"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "4 5"
EndSection
Section "Modes"
Identifier "Modes[0]"
ModeLine "1280x1024" 134.7 1280 1320 1456 1696 1024 1041 1044 1068
ModeLine "1024x768" 79.5 1024 1080 1192 1360 768 769 772 801
ModeLine "1024x768" 78.4 1024 1080 1192 1360 768 769 772 801
ModeLine "1024x768" 77.2 1024 1080 1192 1360 768 769 772 800
ModeLine "800x600" 47.5 800 840 920 1040 600 601 604 626
ModeLine "800x600" 46.9 800 840 920 1040 600 601 604 626
ModeLine "800x600" 46.1 800 840 920 1040 600 601 604 625
EndSection
Section "Monitor"
Identifier "Monitor[0]"
VendorName "GSM"
ModelName "LG ELECTRONICS L1915S"
UseModes "Modes[0]"
DisplaySize 380 300
HorizSync 30.0 - 83.0
VertRefresh 43.0 - 75.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device[0]"
Driver "nvidia"
VendorName "NVidia"
BoardName "GeForce 6600"
EndSection
Section "Screen"
Identifier "Screen[0]"
Device "Device[0]"
Monitor "Monitor[0]"
DefaultDepth 24
SubSection "Display"
Depth 15
Modes "1280x1024" "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600"
EndSubSection
EndSection
>cut----------------
Правильно ли я предположу, что мне нужно довписать в секцию
>cut------------
Section "Modes"
Identifier "Modes[0]"
ModeLine "1280x1024" 134.7 1280 1320 1456 1696 1024 1041 1044 1068
ModeLine "1024x768" 79.5 1024 1080 1192 1360 768 769 772 801
ModeLine "1024x768" 78.4 1024 1080 1192 1360 768 769 772 801
ModeLine "1024x768" 77.2 1024 1080 1192 1360 768 769 772 800
ModeLine "800x600" 47.5 800 840 920 1040 600 601 604 626
ModeLine "800x600" 46.9 800 840 920 1040 600 601 604 626
ModeLine "800x600" 46.1 800 840 920 1040 600 601 604 625
EndSection
>cut------------
ещё один ModLine? что то типа:
ModeLine "640x480" 46.1 800 840 920 1040 600 601 604 625
Это так???
И ещё... а почему xorg.conf в двух местах лежит и какой надо редактировать?
Запустить - запустил, на вопросы - ответил. Но как задать более одной настройки разрешения монитора - не понял... и если честно, как то стреманулся немного когда xorgconfig стал всё записывать в xorg.conf
Выяснил, из xorgconfig что есть два файла xorg.conf, которые живут в двух места:
etc/X11/xorg.conf
usr/X11R6/etc/X11/xorg.conf
полез зырить тот что etc/X11/xorg.conf
у меня он содержит:
>cut--------------
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Mon May 15 13:23:42 PDT 2006
# /.../
# SaX generated X11 config file
# Created on: 2006-10-14T19:08:15+0400.
#
# Version: 7.1
# Contact: Marcus Schaefer <sax@suse.de>, 2005
# Contact: SaX-User list <https://lists.berlios.de/mailman/listinfo/sax-users>
#
# Automatically generated by [ISaX] (7.1)
# PLEASE DO NOT EDIT THIS FILE!
#
Section "ServerLayout"
Identifier "Layout[all]"
Screen "Screen[0]" 0 0
InputDevice "Keyboard[0]" "CoreKeyboard"
InputDevice "Mouse[1]" "CorePointer"
Option "Clone" "off"
Option "Xinerama" "off"
EndSection
Section "Files"
InputDevices "/dev/gpmdata"
InputDevices "/dev/input/mice"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/local"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/URW"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/PEX"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/latin7/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/baekmuk:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/japanese:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/kwintv"
FontPath "/usr/X11R6/lib/X11/fonts/truetype"
FontPath "/usr/X11R6/lib/X11/fonts/uni:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/CID"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/misc/sgi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/xtest"
FontPath "/opt/kde3/share/fonts"
EndSection
Section "Module"
Load "dbe"
Load "type1"
Load "freetype"
Load "extmod"
Load "glx"
Load "v4l"
EndSection
Section "ServerFlags"
Option "AllowMouseOpenFail" "on"
EndSection
Section "InputDevice"
Identifier "Keyboard[0]"
Driver "kbd"
Option "Protocol" "Standard"
Option "XkbLayout" "us,ru"
Option "XkbModel" "pc105"
Option "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll"
Option "XkbRules" "xfree86"
Option "XkbVariant" ",winkeys"
EndSection
Section "InputDevice"
Identifier "Mouse[1]"
Driver "mouse"
Option "Buttons" "7"
Option "Device" "/dev/input/mice"
Option "Name" "ImExPS/2 Logitech Explorer Mouse"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "4 5"
EndSection
Section "Modes"
Identifier "Modes[0]"
ModeLine "1280x1024" 134.7 1280 1320 1456 1696 1024 1041 1044 1068
ModeLine "1024x768" 79.5 1024 1080 1192 1360 768 769 772 801
ModeLine "1024x768" 78.4 1024 1080 1192 1360 768 769 772 801
ModeLine "1024x768" 77.2 1024 1080 1192 1360 768 769 772 800
ModeLine "800x600" 47.5 800 840 920 1040 600 601 604 626
ModeLine "800x600" 46.9 800 840 920 1040 600 601 604 626
ModeLine "800x600" 46.1 800 840 920 1040 600 601 604 625
EndSection
Section "Monitor"
Identifier "Monitor[0]"
VendorName "GSM"
ModelName "LG ELECTRONICS L1915S"
UseModes "Modes[0]"
DisplaySize 380 300
HorizSync 30.0 - 83.0
VertRefresh 43.0 - 75.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device[0]"
Driver "nvidia"
VendorName "NVidia"
BoardName "GeForce 6600"
EndSection
Section "Screen"
Identifier "Screen[0]"
Device "Device[0]"
Monitor "Monitor[0]"
DefaultDepth 24
SubSection "Display"
Depth 15
Modes "1280x1024" "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600"
EndSubSection
EndSection
>cut----------------
Правильно ли я предположу, что мне нужно довписать в секцию
>cut------------
Section "Modes"
Identifier "Modes[0]"
ModeLine "1280x1024" 134.7 1280 1320 1456 1696 1024 1041 1044 1068
ModeLine "1024x768" 79.5 1024 1080 1192 1360 768 769 772 801
ModeLine "1024x768" 78.4 1024 1080 1192 1360 768 769 772 801
ModeLine "1024x768" 77.2 1024 1080 1192 1360 768 769 772 800
ModeLine "800x600" 47.5 800 840 920 1040 600 601 604 626
ModeLine "800x600" 46.9 800 840 920 1040 600 601 604 626
ModeLine "800x600" 46.1 800 840 920 1040 600 601 604 625
EndSection
>cut------------
ещё один ModLine? что то типа:
ModeLine "640x480" 46.1 800 840 920 1040 600 601 604 625
Это так???
И ещё... а почему xorg.conf в двух местах лежит и какой надо редактировать?
-
Juliette
- Сообщения: 5058
- Статус: ROSA Lab
- ОС: Ubuntu LTS, Mandriva 2011
Re: xorg - как конфигурируется?
честно говоря, не знаю, почему у тебя их 2, у меня в Женте один, может, там у вас в Сьюзи так и надо
и чего там написано: # PLEASE DO NOT EDIT THIS FILE!
??
а в другом так написано?
но вообще я бы попробывала отредактировать хотя бы строчки где
Modes "1280x1024" "1024x768" "800x600"
обязательно только сохранись где-нибудь
давай попробуй поковыряйся, попытка не пытка, на крайняк просто иксы не запустятся и все дела
и чего там написано: # PLEASE DO NOT EDIT THIS FILE!
??
а в другом так написано?
но вообще я бы попробывала отредактировать хотя бы строчки где
Modes "1280x1024" "1024x768" "800x600"
обязательно только сохранись где-нибудь
давай попробуй поковыряйся, попытка не пытка, на крайняк просто иксы не запустятся и все дела
-
timename
- Сообщения: 100
- ОС: Suse 10.1 SLES 9 Winда XUbuntu
Re: xorg - как конфигурируется?
Это-то меня и настораживает
1 - # PLEASE DO NOT EDIT THIS FILE!
2 - что X_ы просто не запустятся.
Ну щя - подправлю, если в ближайшее время не отпишу - значит "просто X_сы не запустились"
1 - # PLEASE DO NOT EDIT THIS FILE!
2 - что X_ы просто не запустятся.
Ну щя - подправлю, если в ближайшее время не отпишу - значит "просто X_сы не запустились"
-
Juliette
- Сообщения: 5058
- Статус: ROSA Lab
- ОС: Ubuntu LTS, Mandriva 2011
Re: xorg - как конфигурируется?
ну в консольном режиме там у тебя хоть MC -то есть? если есть - какие проблемы? поставишь просто исходные конфиги взад и всё
-
timename
- Сообщения: 100
- ОС: Suse 10.1 SLES 9 Winда XUbuntu
Re: xorg - как конфигурируется?
Блин, это было не просто...
Итого - режим 640X480 - добавил, гама - заиграла.
Правда ручками сам я не справился, вовремя вспомнил о YaST, сделал в нём 640X480 - вырезал что он наконфигурил в xorg_е для этого режима и добавил, в предварительно засейвленный xorg с нормальными настройками - перезагрузился, в настройках Desktop_а появился режим 640Х480 и игра - заиграла.
Есть неприятный момент - после выхода из игры рабочий стол остаётся в режиме 640Х480...
как бы сделать так, чтоб он возвращался в нормальные настройки сам, а не ручками приходилось настраивать?
Итого - режим 640X480 - добавил, гама - заиграла.
Правда ручками сам я не справился, вовремя вспомнил о YaST, сделал в нём 640X480 - вырезал что он наконфигурил в xorg_е для этого режима и добавил, в предварительно засейвленный xorg с нормальными настройками - перезагрузился, в настройках Desktop_а появился режим 640Х480 и игра - заиграла.
Есть неприятный момент - после выхода из игры рабочий стол остаётся в режиме 640Х480...
как бы сделать так, чтоб он возвращался в нормальные настройки сам, а не ручками приходилось настраивать?