Настройка xorg 2 видеокарты
Xorg (commonly referred to as simply X) is the most popular display server among Linux users. Its ubiquity has led to making it an ever-present requisite for GUI applications, resulting in massive adoption from most distributions. See the Xorg Wikipedia article or visit the Xorg website for more details.
For the alternative and potential successor, see Wayland.
1. ATI Radeon: Radeon X850XT (PCIE) — двухголовая видюха:
Ставим порт с драйверами:
Монитор «Benq» — основной
Монитор «Samsung» — стоит справа от основного и является отдельным рабочим столом
Driver installation
The Linux kernel includes open-source video drivers and support for hardware accelerated framebuffers. However, userland support is required for OpenGL and 2D acceleration in X11.
First, identify the graphics card (the Subsystem output shows the specific model):
Then, install an appropriate driver. You can search the package database for a complete list of open-source video drivers:
Xorg searches for installed drivers automatically:
- If it cannot find the specific driver installed for the hardware (listed below), it first searches for fbdev ( xf86-video-fbdev ).
- If that is not found, it searches for vesa ( xf86-video-vesa ), the generic driver, which handles a large number of chipsets but does not include any 2D or 3D acceleration.
- If vesa is not found, Xorg will fall back to kernel mode setting, which includes GLAMOR acceleration (see modesetting(4) ).
In order for video acceleration to work, and often to expose all the modes that the GPU can set, a proper video driver is required:
Other video drivers can be found in the xorg-drivers group.
Xorg should run smoothly without closed source drivers, which are typically needed only for advanced features such as fast 3D-accelerated rendering for games. The exceptions to this rule are recent GPUs (especially NVIDIA GPUs) not supported by open source drivers.
For a translation of model names (e.g. Radeon RX 6800) to GPU architectures (e.g. RDNA 2), see wikipedia:List of AMD graphics processing units.
GPU architecture | Open-source driver | Proprietary driver |
---|---|---|
RDNA, RDNA 2 | AMDGPU | AMDGPU PRO |
GCN 3, GCN 4, GCN 5 | ||
GCN 1, GCN 2 | AMDGPU* / ATI | not available |
TeraScale and older | ATI | not available |
Rootless Xorg
Xorg may run with standard user privileges instead of root (so-called "rootless" Xorg). This is a significant security improvement over running as root. Note that some popular display managers do not support rootless Xorg (e.g. LightDM or XDM).
You can verify which user Xorg is running as with ps -o user $(pgrep Xorg) .
Using xinitrc
To configure rootless Xorg using xinitrc:
- Run startx as a subprocess of the login shell; run startx directly and do not use exec startx .
- Ensure that Xorg uses virtual terminal for which permissions were set, i.e. passed by logind in $XDG_VTNR via .xserverrc.
- If using certain proprietary display drivers, kernel mode settingauto-detection will fail. In such cases, you must set needs_root_rights = no in /etc/X11/Xwrapper.config .
Using GDM
GDM will run Xorg without root privileges by default when kernel mode setting is used.
Session log redirection
When Xorg is run in rootless mode, Xorg logs are saved to ~/.local/share/xorg/Xorg.log . However, the stdout and stderr output from the Xorg session is not redirected to this log. To re-enable redirection, start Xorg with the -keeptty flag and redirect the stdout and stderr output to a file:
Alternatively, copy /etc/X11/xinit/xserverrc to ~/.xserverrc , and append -keeptty . See [5].
Block TTY access
To block tty access when in an X add the following to xorg.conf:
This can be used to help restrict command line access on a system accessible to non-trusted users.
Black screen, No protocol specified, Resource temporarily unavailable for all or some users
X creates configuration and temporary files in current user's home directory. Make sure there is free disk space available on the partition your home directory resides in. Unfortunately, X server does not provide any more obvious information about lack of disk space in this case.
Contents
Input identification
Killing an application visually
When an application is misbehaving or stuck, instead of using kill or killall from a terminal and having to find the process ID or name, xorg-xkill allows to click on said application to force it to stop.
Killing application with hotkey
Run script on hotkey:
Input devices
For input devices the X server defaults to the libinput driver ( xf86-input-libinput ), but xf86-input-evdev and related drivers are available as alternative.[1]
Udev, which is provided as a systemd dependency, will detect hardware and both drivers will act as hotplugging input driver for almost all devices, as defined in the default configuration files 10-quirks.conf and 40-libinput.conf in the /usr/share/X11/xorg.conf.d/ directory.
After starting X server, the log file will show which driver hotplugged for the individual devices (note the most recent log file name may vary):
If both do not support a particular device, install the needed driver from the xorg-drivers group. The same applies, if you want to use another driver.
For specific instructions, see also the libinput article, the following pages below, or Fedora:Input device configuration for more examples.
General
If a problem occurs, view the log stored in either /var/log/ or, for the rootless X default since v1.16, in ~/.local/share/xorg/ . GDM users should check the systemd journal. [6]
The logfiles are of the form Xorg.n.log with n being the display number. For a single user machine with default configuration the applicable log is frequently Xorg.0.log , but otherwise it may vary. To make sure to pick the right file it may help to look at the timestamp of the X server session start and from which console it was started. For example:
- In the logfile then be on the lookout for any lines beginning with (EE) , which represent errors, and also (WW) , which are warnings that could indicate other issues.
- If there is an empty .xinitrc file in your $HOME , either delete or edit it in order for X to start properly. If you do not do this X will show a blank screen with what appears to be no errors in your Xorg.0.log . Simply deleting it will get it running with a default X environment.
- If the screen goes black, you may still attempt to switch to a different virtual console (e.g. Ctrl+Alt+F6 ), and blindly log in as root. You can do this by typing root (press Enter after typing it) and entering the root password (again, press Enter after typing it).
- Check specific pages in Category:Input devices if you have issues with keyboard, mouse, touchpad etc.
- Search for common problems in ATI, Intel and NVIDIA articles.
Решение проблем xorg.conf
Если у вас не получается правильно настроить xorg.conf, нужно начать с самого меньшего. Используйте драйвер Vesa. Это стандартный видеодрайвер, а значит, его поддерживает любая видеокарта. Просто установите значение опции Driver - Vesa и попробуйте запустить X сервер. Вы должны увидеть свой рабочий стол.
Но драйвер Vesa работает намного медленнее, чем более современные драйвера. Если Vea позволяет запустить графическое окружение, значит проблема в вашем графическом драйвере или в настройке.
Попробуйте использовать утилиту lspci, чтобы посмотреть точную версию своей видеокарты, обычно для старых карт нужны более старые драйвера.
Using xorg.conf
Xorg can also be configured via /etc/X11/xorg.conf or /etc/xorg.conf . You can also generate a skeleton for xorg.conf with:
This should create a xorg.conf.new file in /root/ that you can copy over to /etc/X11/xorg.conf .
Tip: If you are already running an X server, use a different display, for example Xorg :2 -configure .
Alternatively, your proprietary video card drivers may come with a tool to automatically configure Xorg: see the article of your video driver, NVIDIA or AMDGPU PRO, for more details.
Note: Configuration file keywords are case insensitive, and "_" characters are ignored. Most strings (including Option names) are also case insensitive, and insensitive to white space and "_" characters.
Display Power Management
DPMS is a technology that allows power saving behaviour of monitors when the computer is not in use. This will allow you to have your monitors automatically go into standby after a predefined period of time.
Touchpad
Коментарии
а) Если у вас видюха на чипсете NVIDIA, то вы можете поставить порт:
запустив иксы, выполните в консоли:
что запустит графическую оболочку для настройки видео карты, где можно включить и настроить работу второго монитора.
ВНИМАНИЕ , в этой утилите есть кнопка «Save to X Configuration File», но если вы ей воспользуетесь и укажете в кач-ве файла для сохранения текущий конфиг хорга, то тулза его ОБНУЛИТ и ничего так и не сохранит. У нас три компа и на всех трех компах так, будьте аккуратны и всегда бекапте xorg.conf перед какими либо действиями над ним.
б) Откуда взять BuSID, указанный в секции Device ?
Его можно узнать посмотрев вывод команды:
vgapci0@pci0:1:0:0: card=0x113219da chip=0x0a2010de rev=0xa2 hdr=0x00
Так же его можно наблюдать в Xorg.0.log:
в) Имена мониторов, указанные в секции Device, можно увидеть в файле лога:
/var/log/Xorg.0.log
fatal server error:
no screens found
Файл лога поможет вам идентифицировать проблему и даст дополнительную информацию о железе.
г) Если у вас совсем ничего не получается, то попробуйте воспользоваться портом nvidia-xconfig:
Установив и запустив:
На выходе вы получите xorg.conf
д) ну и конечно более подробно о том что можно указать в xorg.conf вы можете узнать из мануала:
З.Ы. При копировании статьи ссылка на источник ОБЯЗАТЕЛЬНА ! Пожалуйста, уважайте чужой труд.
Using .conf files
The /etc/X11/xorg.conf.d/ directory stores host-specific configuration. You are free to add configuration files there, but they must have a .conf suffix: the files are read in ASCII order, and by convention their names start with XX- (two digits and a hyphen, so that for example 10 is read before 20). These files are parsed by the X server upon startup and are treated like part of the traditional xorg.conf configuration file. Note that on conflicting configuration, the file read last will be processed. For this reason, the most generic configuration files should be ordered first by name. The configuration entries in the xorg.conf file are processed at the end.
Настройка видеокарты Linux c помощью xorg.conf
Конфигурационный файл xorg.conf - это обычный текстовый файл, в котором хранятся параметры работы Xorg сервера. Сюда входят настройки дисплея, мыши, видеокарты и клавиатуры. В былые времена этот файл был очень большим и сложным, но со временем его функции были перенесены в другие компоненты системы. Поэтому в последнее время он был видоизменен, и упрощен. Во многих дистрибутивах вообще такого файла нет, а вся конфигурация хранится в бинарном формате.
Но настройка xorg linux может все еще понадобиться, если вы хотите сделать нестандартные настройки, повысить частоту обновления экрана, изменить расширение экрана, увеличить производительность и многое другое.
Starting an application without a window manager
Создание Xorg.conf
Обычно, этот файл размещен в директории /etc/X11/xorg.conf. Но если в вашем дистрибутиве его нет, можно без проблем создать xorg.conf на основе журнала.
Сначала скопируйте файл журнала для новой сессии:
cp /var/log/Xorg.0.log /var/log/Xorg.1.log
Xorg -configure :1
Программа проанализирует файл лога, и на его основе создаст новый файл /etc/X11/xorg.conf учитывая конфигурацию вашей системы. В вашем домашнем каталоге появиться файл xorg.conf.new, который нужно скопировать в /etc/X11/:
cp xorg.conf.new /etc/X11/
Display size and DPI
The DPI of the X server can be set with the -dpi command line option.
Having the correct DPI is helpful where fine detail is required (like font rendering). Previously, manufacturers tried to create a standard for 96 DPI (a 10.3" diagonal monitor would be 800x600, a 13.2" monitor 1024x768). These days, screen DPIs vary and may not be equal horizontally and vertically. For example, a 19" widescreen LCD at 1440x900 may have a DPI of 89x87.
To see if your display size and DPI are correct:
Check that the dimensions match your display size.
If you have specifications on the physical size of the screen, they can be entered in the Xorg configuration file so that the proper DPI is calculated (adjust identifier to your xrandr output) :
If you only want to enter the specification of your monitor without creating a full xorg.conf create a new configuration file. For example ( /etc/X11/xorg.conf.d/90-monitor.conf ):
Note: If you are using the proprietary NVIDIA driver, you may have to put Option "UseEdidDpi" "FALSE" under Device or Screen section to make it take effect.
If you do not have specifications for physical screen width and height (most specifications these days only list by diagonal size), you can use the monitor's native resolution (or aspect ratio) and diagonal length to calculate the horizontal and vertical physical dimensions. Using the Pythagorean theorem on a 13.3" diagonal length screen with a 1280x800 native resolution (or 16:10 aspect ratio):
This will give the pixel diagonal length and with this value you can discover the physical horizontal and vertical lengths (and convert them to millimeters):
Note: This calculation works for monitors with square pixels; however, there is the rare monitor that may compress aspect ratio (e.g 16:10 aspect resolution to a 16:9 monitor). If this is the case, you should measure your screen size manually.
Setting DPI manually
Note: While you can set any dpi you like and applications using Qt and GTK will scale accordingly, it is recommended to set it to 96, 120 (25% higher), 144 (50% higher), 168 (75% higher), 192 (100% higher) etc., to reduce scaling artifacts to GUI that use bitmaps. Reducing it below 96 dpi may not reduce size of graphical elements of GUI as typically the lowest dpi the icons are made for is 96.
For RandR compliant drivers (for example the open source ATI driver), you can set it by:
Note: Applications that comply with the setting will not change immediately. You have to start them anew.
Proprietary NVIDIA driver
You can manually set the DPI by adding the option under the Device or Screen section:
Manual DPI Setting Caveat
GTK very often overrides the server's DPI via the optional Xresource Xft.dpi . To find out whether this is happening to you, check with:
With GTK library versions since 3.16, when this variable is not otherwise explicitly set, GTK sets it to 96. To have GTK apps obey the server DPI you may need to explictly set Xft.dpi to the same value as the server. The Xft.dpi resource is the method by which some desktop environments optionally force DPI to a particular value in personal settings. Among these are KDE and TDE.
3. G86 [GeForce 8400M GS] rev 161 на чипсете NVIDIA (ноутбук SONY VAIO модель PSG-6S6P)
Ставим порт с драйверами:
Делаем чтобы подгружалось само после бута, правим /boot/loader.conf и добавляем:
Монитор «Samsung» — основной
Ноутбук — стоит слева от основного и является отдельным рабочим столом
Keyboard settings
A green screen whenever trying to watch a video
Your color depth is set wrong. It may need to be 24 instead of 16, for example.
X clients started with "su" fail
If you are getting Client is not authorized to connect to server , try adding the line:
to /etc/pam.d/su and /etc/pam.d/su-l . pam_xauth will then properly set environment variables and handle xauth keys.
Настройка экрана xorg
Большинство параметров вашего экрана система получает с помощью технологии EDID или Extended Display Identification Data. Это информация, переданная дисплеем видеокарте. Здесь обычно содержится модель, производитель, такйминги, разрешение и размер дисплея. Xorg использует эти параметры для выбора оптимального разрешения экрана и глубины цвета.
Но иногда информация из EDID может быть неточной или неверной. Тогда вы можете установить нужные параметры вручную через xorg.conf. Но будьте осторожны, если ваш экран не поддерживает некоторые параметры, вы можете его повредить. Характеристики каждого отдельного устройства можно найти в интернете или же в инструкции от производителя.
Например, вот секция Monitor с настройкой вертикальной и горизонтальной частот, а также разрешения:
Identifier "Monitor0"
VendorName "Unknown"
ModelName "DFP-0"
HorizSync 28.0 - 72.0
VertRefresh 43.0 - 60.0
ModeLine "1440x900_60.00" 106.5 1440 1520 1672 1904 900 901 904 932 -hsync +vsync
Добавив такие опции в секцию Device, вы можете отключить использование EDID:
Option "UseEDIDFreqs" "FALSE"
Option "UseEDIDDpi" "FALSE"
Option "ModeValidation" "NoEdidModes"
Наиболее важное значение - это две частоты, которые определяют диапазон работы устройства. Строка ModeLIne необязательна, поскольку она вычисляется автоматически, но если X сервер задает значения неверно, вы можете их прописать жестко в этой строке.
FreeBSD: Конфиг X11 для использования двух мониторов
Xorg и два монитора
Две видеокарты, два монитора настройка xorg.conf
Многие из нас используют или хотят использовать для работы два монитора, ибо это удобно.
Решил выложить конфиги для иксов, т.к. хочу сохранить их для истории и с вами поделиться. Да и потом будет где подсмотреть, а не заново разбираться 🙂
А то недавно махнул видюху и снова столкнулся с проблемой как заставить работать два монитора в своих иксах, да так что бы они не были дубликатами друг друга, а каждый был сам по себе.
Итак OS FreeBSD 8.2-STABLE, оболочка enlightenment-0.16.999.52995 и конфигурации X11 (xorg.conf) для работы с двумя мониторами.
Конфигов будет 3, под три разные карты, все они реализуют работу двух мониторов и все они рабочие, т.к. взяты копипастом с рабочих машин:
Frame-buffer mode problems
X fails to start with the following log messages:
On-demand disabling and enabling of input sources
With the help of xinput you can temporarily disable or enable input sources. This might be useful, for example, on systems that have more than one mouse, such as the ThinkPads and you would rather use just one to avoid unwanted mouse clicks.
Find the name or ID of the device you want to disable:
For example in a Lenovo ThinkPad T500, the output looks like this:
Disable the device with xinput --disable device , where device is the device ID or name of the device you want to disable. In this example we will disable the Synaptics Touchpad, with the ID 10:
To re-enable the device, just issue the opposite command:
Alternatively using the device name, the command to disable the touchpad would be:
Xorg-server Fatal server error: (EE) AddScreen/ScreenInit
If the Xorg server is not working randomly and in the Xorg log you see:
Then, this problem may be caused by systemd issue 13943. Set up early KMS start.
Не могу сообразить как переписать xorg.conf для работы 3 мониторов.
gnome 3 запустился но на 1 мониторе (intel) и очень странно. Уводишь мышь за правый борт она появляется слева.
в xorg.conf.new файле указано 4 секции Section «Device» почитал man и мне кажится их должно быть 3 причем 1 с BusID «PCI:0:2:0» два с BusID «PCI:1:0:0» но разными Screen
Вообщем помогите пожалуйста составить рабочий xorg.conf на 3 монитора
X11 не поддерживает две видюхи :)
Здесь, здесь да и тут говорят обратное
Да и в man xorg.conf намек есть
Прекрасно поддерживает. У меня их две.
PS: ТС, lxrandr — посмотри какой конфиг он сгенерирует.
Я как - то делал так: X -configure, там во всяком случае получался правильный id, потом правил файлик, все работало.
в графическом интерфейсе видит только 1 монитор сохраняет конфиг в /root/.config/autostart/lxrandr-autostart.desktop
soomrack ★★★ ( 31.07.13 15:11:30 )
Последнее исправление: soomrack 31.07.13 15:12:01 (всего исправлений: 1)
также делаю . крутил вертел этот сгенерированный xorg.conf.new но nvidia не как запускаться не хочет
насколько я понял у тебя одна GeForce GTX 480 и к ней подключён: монитор и Philips FTV (насколько я понимаю телик) используешь проприетарный драйвер nvideo
Отдельно на nvideo запустить два монитора или один на intel у меня получается Вопрос в том как их объединить и сделать 3 )
Нет, Их две. К одной подключен выход hdmi, ко второй vga.
А, я понял, ты хочешь сделать «широкий экран» из нескольких видеокарт?
да встроена Intel VGA внешняя Nvidio VGA + DVI Мониторы одинаковые
Так. Смотри. Некоторые материнки не поддерживают одновременную работу встроенной видяхи в pci-ной. Проверь по описаниям.
Попробуй сначала добиться того, что все три монитора будут работать, хотя бы и на разных X-ах.
soomrack ★★★ ( 31.07.13 15:57:23 )
Последнее исправление: soomrack 31.07.13 15:57:32 (всего исправлений: 1)
Скинь вывод команды lspci |grep «VGA»
lspci | grep -i vga
А ручками, ручками прописать ты пробовал?
Вообщем помогите пожалуйста составить рабочий xorg.conf на 3 монитора
Дохрена ошибок, но ты хотя бы знаешь волшебное слово, поэтому помогу.
а) в секции ServerLayout указать свои экраны (screen), например у меня для двух экранов так
Здесь можно заметить, что кроме идентификатора самой секции (Screen0) в ней указаны идентификаторы соответствующих секций Device (Device0) и Monitor (Monitor0). В секции Device0 ожидается описание видеокарты, а в Monitor0 — физического экрана (монитора);
в) при этом для каждой секции ScreenX должна быть своя секция DeviceX, внутри которой будет строчка, указывающая на то, что эта секция DeviceX относится именно к ScreenX, а не к ScreenY
Строка Screen внутри секции Device может присутствовать только единожды и указывать только на одну секцию Screen;
г) в секции Monitor можно ничего не указывать, кроме идентификатора, но желательно ModelName, чтобы в настройках а-ля nvidia-settings их не путать
Deleted ( 02.08.13 18:59:41 )
Последнее исправление: fargred 02.08.13 19:03:27 (всего исправлений: 5)
За отрисовку всех графических элементов в Linux отвечает графический сервер. Он реализует интерфейс прослойки между драйверами видеокарты и различными программами, которые работают с графикой.
В самых современных дистрибутивах на замену Xorg серверу пришел новый дисплейный сервер Wayland. Но он все еще находится в активной разработке и не совсем готов к постоянному использованию. Поэтому Xorg все еще применяется в большинстве дистрибутивов.
После установки видеокарта работает достаточно хорошо и настроек по умолчанию в большинстве случаев хватает, но иногда нужно изменить некоторые параметры. Мы не будем рассматривать установку драйверов. В этой статье мы сосредоточимся на том, как выполняется настройка видеокарты linux через xorg.conf.
Troubleshooting
Invalid MIT-MAGIC-COOKIE-1 key when trying to run a program as root
That error means that only the current user has access to the X server. The solution is to give access to root:
That line can also be used to give access to X to a different user than root.
Monitor settings
Configuration
Note: Arch supplies default configuration files in /usr/share/X11/xorg.conf.d/ , and no extra configuration is necessary for most setups.
Xorg uses a configuration file called xorg.conf and files ending in the suffix .conf for its initial setup: the complete list of the folders where these files are searched can be found in xorg.conf(5) , together with a detailed explanation of all the available options.
Multiple monitors
See main article Multihead for general information.
See also GPU-specific instructions:
More than one graphics card
You must define the correct driver to use and put the bus ID of your graphic cards (in decimal notation).
To get your bus IDs (in hexadecimal):
The bus IDs here are 0:2:0 and 1:0:0 .
X failed to start: Keyboard initialization failed
If the filesystem (specifically /tmp ) is full, startx will fail. /var/log/Xorg.0.log will end with:
Make some free space on the relevant filesystem and X will start.
Program requests "font '(null)'"
Error message: unable to load font `(null)' .
Some programs only work with bitmap fonts. Two major packages with bitmap fonts are available, xorg-fonts-75dpi and xorg-fonts-100dpi . You do not need both; one should be enough. To find out which one would be better in your case, try xdpyinfo from xorg-xdpyinfo , like this:
and use what is closer to the shown value.
Manual configuration
- Newer versions of Xorg are auto-configuring, so manual configuration should not be needed.
- If Xorg is unable to detect any monitor or to avoid auto-configuring, a configuration file can be used. A common case where this is necessary is a headless system, which boots without a monitor and starts Xorg automatically, either from a virtual console at login, or from a display manager.
For a headless configuration, the xf86-video-dummy driver is necessary; install it and create a configuration file, such as the following:
Синтаксис конфигурационного файла
Перед тем как переходить к настройке xorg.conf нужно разобраться в его синтаксисе, чтобы вы могли немного ориентироваться в самом файле. X сервер отвечает за все интерактивные связи во время сессии. Поэтому конфигурационный файл разбит на секции, несколько из них отвечают за работу с дисплеем, другие за мышь и клавиатуру. Рассмотрим основные секции файла:
- Module - в этом разделе описываются подключение модулей, расширяющих функциональность видео драйвера. Например, GLX модуль добавляет 3D ускорение, а модули Type1 и Freetype используются для рендеринга шрифтов;
- ServerLayout - в этой секции указаны имена трех самых необходимых устройств для каждой рабочей сессии Xorg - имена мыши, клавиатуры и экрана, которые могут использоваться в других местах файла;
- InputDevice - в xorg.conf обычно есть две секции InputDevice, первая для мыши и вторая для клавиатуры. Большинство мышей работают отлично по умолчанию, здесь понадобиться что-то менять только если вы захотите добавить дополнительные возможности;
- Monitor - в этой секции перечислены все настройки вашего экрана, один из наиболее важных параметров, частота горизонтальной развертки HorizSync и вертикального обновления VertRefresh, именно на основе них рассчитывается разрешение экрана. Также можно жестко задать разрешение с помощью строки ModeLine;
- Device - тут перечислено все ваше графическое оборудование вместе с драйверами, которые используются. Чаще всего, это nv с открытым исходным кодом для NVIDIA, или fglrx для карт от AMD. Имя драйвера Intel будет зависеть от версии вашей карты, например, i810.
- Screen - здесь расположены все настройки вашего монитора и других графических устройств. Вы можете использовать эту секцию, например, для настройки нескольких экранов.
List of composite managers
- Picom — Compositor (a fork of Compton)
- Xcompmgr — Composite window-effects manager
- Unagi — Modular compositing manager which aims to be efficient, lightweight and responsive. It is written in C and based on XCB
2. Zotac GT220 ZONE на чипсете NVIDIA
Ставим порт с драйверами:
Делаем чтобы подгружалось само после бута, правим /boot/loader.conf и добавляем:
Монитор «Benq» — основной
Монитор «Samsung» — стоит справа от основного и является отдельным рабочим столом
Installation
Xorg can be installed with the xorg-server package.
Additionally, some packages from the xorg-apps group are necessary for certain configuration tasks. They are pointed out in the relevant sections.
Finally, an xorg group is also available, which includes Xorg server packages, packages from the xorg-apps group and fonts.
Настройка Nvidia
У видеокарт NVIDIA есть множество настроек, которые можно указать в xorg.conf. Каждая строка состоит из ключа и значения, ее можно разместить в секции Screen или Device:
- Option "NoLogo" "true" - во время инициализации драйвера показывается логотип NVIDIA. Это занимает некоторое время, поэтому с помощью такой строки можно отключить логотип;
- Option "LogoPath" "адрес_файла" - вы можете заменить логотип NVIDIA на свое изображение, для этого просто укажите его адрес в этой строке;
- Option "CursorShadow" "true" - если вы хотите видеть тень вокруг курсора, включите эту опцию. Тут есть два дополнительных параметра CursorShadowXOffset и CursorShadowYOffset, которые позволяют установить положение тени;
- Option "Coolbits" "true" - эта опция позволяет включить возможность разгона частоты процессора и скорости памяти вашей видеокарты. Но вам нужно быть аккуратным с этим параметром, поскольку так вы можете повредить сове оборудование. Параметры разгона будут отображаться в утилите nvidia-config;
- Option "DPI" "75 x 85" - если значение DPI (количество точек на дюйм) установлено неверно, то это может повлиять на правильность отображения шрифтов. Обычно, Xorg вычисляет этот параметр на основе EDID, но вы можете установить его вручную. Например, для монитора с разрешением ,440x900 и физическим размером 16x10 дюймов, значение DPI будет составлять (1,440/16)x(900/10) = 90x90.
Recovery: disabling Xorg before GUI login
If Xorg is set to boot up automatically and for some reason you need to prevent it from starting up before the login/display manager appears (if the system is wrongly configured and Xorg does not recognize your mouse or keyboard input, for instance), you can accomplish this task with two methods.
Depending on setup, you will need to do one or more of these steps:
-
the display manager.
- Disable the automatic start of X.
- Rename the ~/.xinitrc or comment out the exec line in it.
Running
The Xorg(1) command is usually not run directly. Instead, the X server is started with either a display manager or xinit.
Настройка видеокарты в xorg.conf
У драйверов видеокарт ест множество различных полезных опций, которые вы можете настроить с помощью xorg.conf. Большинство из них специфичны для конкретного производителя видеокарт. Например, есть множество настроек для видеокарт NVIDIA, но с другой стороны карты от ATI не настраиваются через этот файл. Драйвера с открытым исходным кодом от Intel имеют только несколько настроек. Дальше будет рассмотрена настройка видеокарты linux для различных производителей.
Настройка видеокарты Intel
Графическими картами от Intel не всегда поддерживается настройка xorg.conf. Поэтому вам нужно проверить каждую из опций чтобы увидеть дает ли она какой-либо результат. Опции нужно добавлять в раздел Device:
- Option "AccelMethod" "EXA" - эта опция позволяет включить новую архитектуру ускорения EXA. Она поддерживается в большинстве интегрированных карт Intel 943/940 и позволяет улучшить скорость композитинга.
- Option "MigrationHeuristic" "greedy" - позволяет уменьшить использование видеопамяти на хранение различных текстур, что повышает общую производительность;
- Option "TripleBuffer" "true" - этот параметр включает использование более совершенного метода двойной буферизации (используется для противостояния мерцанием).
Automation
This section lists utilities for automating keyboard / mouse input and window operations (like moving, resizing or raising).
Выводы
Теперь вы знаете достаточно и настройка видео Linux с помощью xorg не должна для вас быть очень сложной, даже если вы раньше этим не занимались. Особенно, если вы недовольны текущими настройками. Настройка x сервера поможет вам получить больше от старого оборудования или интегрированных карт. Только не забывайте делать резервные копии перед внесением каких-либо изменений.
Удалось решить задачу лишь наполовину: после выполнения команды
и рестарта Иксов, Hashcat таки начинает перебирать двумя видеокартами, но Иксы думают что у меня подключен второй монитор, поэтому у правой части экрана пропадает граница. Также на экране логина изображение не помещается в границы экрана. Помогите заставить Hashcat видеть две видеокарты, а Иксы рисовать изображение для одного экрана.
Не знаю, никогда это не мешало. Зачем вообще монитор подключать?
Предлагаю тебе изучить справку aticonfig, в частности Display attribute options. Еще можно man xorg.conf, там screen options или что-то в этом роде.
Еще как вариант, попробовать запустить в отдельных иксах. Т.е. создать 2 конфига иксов и пуска скажем на :0 с конфигом для 1 видеокарты и с DE, а на :1 запускать иксы с конфигом для 2-х видеокарт. Программу соответственно запускать с export DISPLAY=:1.
А кто подключал монитор? Я этого не говорил. Если бы я не читал ман, я бы сюда не писал. Все что ни пробовал - не дало желаемых результатов. Вот решил совета спросить, может кто сталкивался и решил как-то?
Я имею в виду, зачем вообще вывод изображения с видеокарт которые задействованы в вычислениях? То что у тебя ноут я мимо глаз пропустил. Да и единственным нормальным решением тут будет вынуть платы из корпуса, отключить все лишнее (в том числе и матрицу) и поставить на них нормальное охлаждение.
В любом случае я тебе предложил возможные варианты решения: принудительно задать размеры дисплея, либо запустить вторые иксы для твоего приложения. Но ты ничего не это не ответил, так что вопрос считаю исчерпанным.
И да, обычно конфиг создают с помощью aticonfig --initial --adapter=all. addch - это вроде вообще к кроссфаеру относится, который здесь нахрен не нужен.
Попробуй сделать не расширение рабочего стола на вторую карту и «монитор», а клонирование
Я имею в виду, зачем вообще вывод изображения с видеокарт которые задействованы в вычислениях?
А картинка там особо и не нужна, просто лишь бы иксы карточку инициализировали нормально. Хотя в целом сейчас это разве что для ADL нужно.
Покажи вывод xrandr.
И да, обычно конфиг создают с помощью aticonfig --initial --adapter=all. addch - это вроде вообще к кроссфаеру относится, который здесь нахрен не нужен.
Да, конфиг создается через aticonfig --initial --adapter=all, это понятно. addch нужен, как ниже заметили, чтобы иксы карточку инициализировали, конечно может есть более простой и очевидный способ, но увы я его не нашел. По поводу принудительного задания разрешения - попробую сегодня вечером.
Попробуй сделать не расширение рабочего стола на вторую карту и «монитор», а клонирование
Не подскажешь как луше это сделать?
разумеется я тебе написал способ, при котором будут инициализироваться все найденные видеокарты
Сделал через вторые иксы, спасибо за совет. Но всеравно это немного костыльно, хотелось бы в идеале более тонкое решение.
Как я уже сказал у меня такой проблемы не стояло, так что точного решения не подскажу.
Можно логически подумать: в иксах для каждого адаптера назначется минимум 1 screen, которым в свою очередь выставляется определенный порядок.
Если посмотреть в сгенеренный конфиг, то там строки примерно такого содержания:
Здесь стоит обратить внимание на RightOf. Т.е. решение кроется где-то в опциях screen (как правильно заметил коллега, возможно что-то вроде clone). Вот например для aticonfig можно найти опцию --dtop, для которой есть параметр clone. В общем я предлагаю тебе дальше изучать возможности aticonfig, сверяя при этом сгенеренный конфиг с man xorg.conf :)
DRI with Matrox cards stopped working
If you use a Matrox card and DRI stopped working after upgrading to Xorg, try adding the line:
to the Device section that references the video card in xorg.conf .
Extra mouse buttons
Nested X session
To run a nested session of another desktop environment:
This will launch a Window Maker session in a 1024 by 768 window within your current X session.
This needs the package xorg-server-xnest to be installed.
A more modern way of doing a nested X session is with Xephyr.
Touchscreen
Starting GUI programs remotely
Composite
The Composite extension for X causes an entire sub-tree of the window hierarchy to be rendered to an off-screen buffer. Applications can then take the contents of that buffer and do whatever they like. The off-screen buffer can be automatically merged into the parent window, or merged by external programs called compositing managers. For more information, see Wikipedia:Compositing window manager.
Some window managers (e.g. Compiz, Enlightenment, KWin, Marco, Metacity, Muffin, Mutter, Xfwm) do compositing on their own. For other window managers, a standalone composite manager can be used.
SocketCreateListener error
If X terminates with error message SocketCreateListener() failed , you may need to delete socket files in /tmp/.X11-unix . This may happen if you have previously run Xorg as root (e.g. to generate an xorg.conf ).
Tips and tricks
Mouse acceleration
Prevent a user from killing X
To prevent a user from killing X when it is running add the following to xorg.conf:
Читайте также: