Etc x11 xorg conf linux

Содержание
  1. Установка и настройка сервера X.Org (X Window System).
  2. Установка.
  3. Установка драйверов видеокарт
  4. Установка проприетарных драйверов NVIDIA/ATI
  5. Настройка.
  6. Xorg -configure
  7. Ubuntu Wiki
  8. Настройка Xorg
  9. Как отредактировать конфигурационный файл (xorg.conf) вручную
  10. Операционные системы Astra Linux
  11. Etc x11 xorg conf linux
  12. Contents
  13. Installation
  14. Driver installation
  15. Running
  16. Configuration
  17. Using .conf files
  18. Using xorg.conf
  19. Input devices
  20. Input identification
  21. Mouse acceleration
  22. Extra mouse buttons
  23. Touchpad
  24. Touchscreen
  25. Keyboard settings
  26. Monitor settings
  27. Manual configuration
  28. Multiple monitors
  29. More than one graphics card
  30. Display size and DPI
  31. Setting DPI manually
  32. Display Power Management
  33. Composite
  34. List of composite managers
  35. Tips and tricks
  36. Automation
  37. Nested X session
  38. Starting GUI programs remotely
  39. On-demand disabling and enabling of input sources
  40. Killing application with hotkey
  41. Block TTY access
  42. Prevent a user from killing X
  43. Rootless Xorg
  44. Using xinitrc
  45. Using GDM
  46. Session log redirection
  47. Troubleshooting
  48. General
  49. Black screen, No protocol specified. Resource temporarily unavailable for all or some users
  50. DRI with Matrox cards stopped working
  51. Frame-buffer mode problems
  52. Program requests «font ‘(null)'»
  53. Recovery: disabling Xorg before GUI login
  54. X clients started with «su» fail
  55. X failed to start: Keyboard initialization failed
  56. A green screen whenever trying to watch a video
  57. SocketCreateListener error
  58. Invalid MIT-MAGIC-COOKIE-1 key when trying to run a program as root
  59. Xorg-server Fatal server error: (EE) AddScreen/ScreenInit

Установка и настройка сервера X.Org (X Window System).

Установка.

Большинство инсталляторов современных дистрибутивов GNU/Linux самостоятельно устанавливают какую либо графическую среду рабочего стола (GNOME,KDE. ) либо, на каком то этапе, предлагают вам сделать выбор (например в инсталляторе Debian для этого предлагается отметить/снять пункт «Окружение рабочего стола»).

Если какая либо графическая среда рабочего стола устанавливается, то оконная система «X Window System», включая сервер «XOrg», будут установлены автоматически, по зависимостям.

Если по каким-то причинам вы установили дистрибутив GNU/Linux без графической среды рабочего стола (только текстовая консоль, для сервера, например), а сейчас она (графическая оболочка) понадобилась, то её несложно установить посредством выполнения нескольких команд в консоли:

Для установки GNOME выполните:

Для установки KDE выполните:

Для установки «чистого» (пустой экран с курсором) сервера X.Org в дистрибутивах Debian/Ubuntu выполните:

Установка драйверов видеокарт

Для начала, их нужно установить или удостовериться чтобы они установлены.

Смотрим тип видеоадаптера и используемый им драйвер.

Если строки «Kernel driver in use: ХХХХХ» нет или ХХХХХ в ней — «vesa» или «fbdev» — почти наверняка графический сервер X использует универсальные очень медленные драйвера не задействующие аппаратные возможности видеокарты по ускорению видеовывода и первым делом нужно установить и задействовать «родной» драйвер.

Драйвера для видеоадаптеров поставляемые вместе с сервером X:

Если у вас видеокарта NVIDIA или ATI, то лучшим выбором будет использование проприетарных (закрытых, но свободно распространяемых) фирменных драйверов. В Ubuntu и Debian все необходимые пакеты есть в официальных репозиториях. Порядок установки описан ниже.

Установка проприетарных драйверов NVIDIA/ATI

Ubuntu

Проверьте — подключен ли компонент «restricted» (проприетарное ПО (в основном — драйверы устройств), официально поддерживаемое компанией Canonical) в источниках репозиториев, указываемых в файле « /etc/apt/sources.list »:

или графической утилитой: «Главное меню (верхняя панель) → Приложения → Центр приложений Ubuntu → Источники приложений» Если компонент «restricted» не подключен — подключите его и обновите список:

Далее запустите графическое приложение «Главное меню (верхняя панель) → Система → Администрирование → Дополнительные драйвера» и следуйте инструкциям.

Debian NVIDIA

Способ 1: использование DKMS для динамической сборки и установки модулей(драйверов).

Способ 2: установка скомпилированных модулей для конкретных ядер.

Способ 3: использование ModuleAssistant для динамической сборки и установки модулей(драйверов).

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

Теперь нужно перегрузить сервер X, выйдя из текущего сеанса пользователя или выполнив:

Debian ATI

Настройка.

Все настройки графического сервера X (не путать с настройками оконных менеджеров и графических сред рабочего стола) сосредоточены в каталоге « /etc/X11 ». Основной конфигурационный файл — « /etc/X11/xorg.conf ».

В современных дистрибутивах Debian (начиная с 6.0 Squeeze) и Ubuntu (начиная с 10.04 Lucid, возможно и более ранних) файла xorg.conf нет. В этом случае X.org стартует с настройками по-умолчанию и этого достаточно в большинстве случаев. Однако для чего-то специфичного, например для объединения 2-х дисплеев через NVIDIA TwinView ( sudo nvidia-settings ) и т.п., создать его всё же придётся.

Итак, если файла xorg.conf нет, то нужно его сгенерировать:

Xorg -configure

Общий способ — запуск в терминале root «родного» конфигуратора (см. Xorg(1)). Для этого в терминале root (или через sudo) выполните команды:

выход из графической оболочки

Оказавшись в текстовой консоли ( ALT+F1 ) войдите в систему заново как суперпользователь root или как обычный пользователь, если root не предусмотрен.

Источник

Ubuntu Wiki

Настройка Xorg

Сохраните ваш конфигурационный файл

Помните, что автоопределение устройств желательно проводить при незапущенном Xorg.

Остановите Xorg

Запустите процесс автонастройки Xorg

Запустите Gnome/KDE

Как отредактировать конфигурационный файл (xorg.conf) вручную

Запустите в терминале или консоли:

Вызов справки в nano: Ctrl+g (Ctrl+x выход)

Где находится файл журнала, как произвести отладку? File:

содержит массу бесценной отладочной информации о том, что происходит, когда запускается Xorg. Найдите строки, содержащие EE (errors) и WW (warnings).

How to edit or add HorizSync and VertRefresh lines Find your monitors manual (manufacturers website and Google are useful). Look for hozizontal sync and vertical refresh rates, also if bandwidth or maximum dot clock / pixel clock is mentioned, write it down.

Edit xorg.conf and put correct values to your xconf.org’s Monitor section. Something like this:

Be sure that Identifier is same as the Monitor line in Screen section.

Adding custom modeline If you know what your monitor can do, for example 1024×768@75Hz, you can use this page to generate a custom Modeline for you xorg.conf:

  • online modeline generator

Copy paste the new Modeline to Monitor section (for example):

Watch that the hsync is in range with the HorizSync on the same section (in this example the range is 31-101 and this modelines hsync is 60.15, so we’re safe). Also the VertRefresh and the refresh rate you selected (75Hz in this example) should match — in this example VertRefresh is 60-160 and modeline is 75Hz, so that’s all good.

Now you can select the default resolution and colordepth by tweaking the Screen section. It should look something like this:

Monitor name here (CM752ET) matches the Identifier on your Monitor Section. Device line here matches the identifier on your Device section — you get the idea? It ties together some settings for your screen — the graphics card and your monitor. You may have more Subsections here, but only one is needed.

Change the DefaultDepth to what you would want it to be, 16 (65536 colors) or 24 (16M colors). Change the Modes line to match the resolutions you want to use — Depth must match DefaultDepth (here it’s 16).

Save the config. If you’re in X, hit CTRL+ALT+BACKSPACE to restart X (if you’re running logon manager like xdm, kdm or gdm). Change between virtual consoles with CTRL + F1 F2 F3 and so on — your X should be on F7.

Starting the X: startx OR sudo /etc/init.d/gdm start (in KDE it’s kdm)

If that doesn’t work, try fixing the xorg.conf or get back to your original by copying the backup over your changed one with:

When you’re back in X, you can cycle through different modes by pressing CTRL+ALT++ (plus sign on numpad), or go to System->Preferences->Screen Resolution.

How to adjust position of your screen? open terminal(Applications->Accessories->Terminal), run xvidtune (type: «xvidtune»), adjust the screen and hit Show-button. You’ll see a line with something like this on the terminal screen:

Next you should:

In Monitor section, add the above line with a prefix «Modeline», like this:

That should do it. There should be no need to restart X if you did make the change (hit Apply in xvidtune), but you should test that this new change works. Hit ctrl+alt+backspace to restart X. If it doesn’t work, you can copy back the old configuration file using:

Читайте также:  Windows system center operation manager

and restart X using:

Problems? Things to try:

Check notes concerning your video card in Ubuntu wiki https://wiki.ubuntu.com/HardwareSupp. entsVideoCards

  • Check BIOS settings — eg. amount of shared memory
  • Add to your monitor section line
    • Code: Option «DDC» «False»
  • if you’re using kvm (keyboard/video/mouse-switch), try reconfiguring without
  • try vesa driver instead of your graphics card specific driver
  • try nv instead of nvidia
  • try ati instead of fglrx
  • try intel instead of i810
  • try 16-bits colors instead of 24-colors

    adding HorizSync and VertRefresh line in Monitor section with correct values from monitors specification
    adding custom modeline for your monitor in Monitor section

      o online modeline generator

    o gtf generator online: http://www.sh.nu/nvidia/gtf.php

  • reconfiguring Xorg
    • o
  • if you have Intel graphics chip, try installing 855resolution
  • if having problems to get very high resolution working with nvidia drivers, try adding some or all of these at your own risk (some of these may be driver specific — check other documentation before using)
    • Quote: Option «UseEDIDFreqs» «FALSE»

      Option «NoBandWidthTest» «TRUE» Option «ExactModeTimingsDVI» «TRUE» Option «ModeValidation» «NoEdidModes, NoMaxPClkCheck, NoVertRefreshCheck, NoHorizSyncCheck, NoEdidMaxPClkCheck»

  • Which driver should I use? Is my card supported? See list of supported cards / chipsets.
  • Advanced X11 configuration in FreeBSD handbook
  • If you’re using nvidia driver, try gksudo nvidia-settings
  • Try booting from Live-CD, if that works, copy /etc/X11/xorg.conf from there
  • Miscellaneous resources (may contain outdated information)

    Laptop with Intel graphics and widescreen http://ubuntuforums.org/showthread.php?t=351647

    Useful command line tools

    • xresprobe [driver=vesa,ati,nv,nvidia,i810]
    • ddcprobe

    Источник

    Операционные системы Astra Linux

    Оперативные обновления и методические указания

    Операционные системы Astra Linux предназначены для применения в составе информационных (автоматизированных) систем в целях обработки и защиты 1) информации любой категории доступа 2) : общедоступной информации, а также информации, доступ к которой ограничен федеральными законами (информации ограниченного доступа).

    1) от несанкционированного доступа;
    2) в соответствии с Федеральным законом от 27.07.2006 № 149-ФЗ «Об информации, информационных технологиях и о защите информации» (статья 5, пункт 2).

    Операционные системы Astra Linux Common Edition и Astra Linux Special Edition разработаны коллективом открытого акционерного общества «Научно-производственное объединение Русские базовые информационные технологии» и основаны на свободном программном обеспечении. С 17 декабря 2019 года правообладателем, разработчиком и производителем операционной системы специального назначения «Astra Linux Special Edition» является ООО «РусБИТех-Астра».

    На web-сайтах https://astralinux.ru/ и https://wiki.astralinux.ru представлена подробная информация о разработанных операционных системах семейства Astra Linux, а также техническая документация для пользователей операционных систем и разработчиков программного обеспечения.

    Мы будем признательны Вам за вопросы и предложения, которые позволят совершенствовать наши изделия в Ваших интересах и адаптировать их под решаемые Вами задачи!

    Репозитория открытого доступа в сети Интернет для операционной системы Astra Linux Special Edition нет. Операционная система распространяется посредством DVD-дисков.

    Информацию о сетевых репозиториях операционной системы Astra Linux Common Edition Вы можете получить в статье Подключение репозиториев с пакетами в ОС Astra Linux и установка пакетов.

    В целях обеспечения соответствия сертифицированных операционных систем Astra Linux Special Edition требованиям, предъявляемым к безопасности информации, ООО «РусБИтех-Астра» осуществляет выпуск очередных и оперативных обновлений.

    Очередные обновления (версии) предназначены для:

    • реализации и совершенствования функциональных возможностей;
    • поддержки современного оборудования;
    • обеспечения соответствия актуальным требованиям безопасности информации;
    • повышения удобства использования, управления компонентами и другие.

    Оперативные обновления предназначены для оперативного устранения уязвимостей в экземплярах, находящихся в эксплуатации, и представляют собой бюллетень безопасности, который доступен в виде:

    1. инструкций и методических указаний по настройке и особенностям эксплуатации ОС, содержащих сведения о компенсирующих мерах или ограничениях по примене- нию ОС при эксплуатации;
    2. отдельных программных компонентов из состава ОС, в которые внесены изменения с целью устранения уязвимостей, инструкций по их установке и настройке, а также информации, содержащей сведения о контрольных суммах всех файлов оперативного обновления;
    3. обновлений безопасности, представляющих собой файл с совокупностью программных компонентов из состава ОС, в которые внесены изменения с целью устранения уязвимостей, а также информации, содержащей сведения о контрольных суммах всех файлов обновлений безопасности, указания по установке, настройке и особенностям эксплуатации ОС с установленными обновлениями безопасности.

    Ввиду совершенствования нормативно-правовых документов в области защиты информации и в целях обеспечения соответствия информационных актуальным требованиям безопасности информации, а также обеспечения их долговременной эксплуатации, в том числе работоспособности на современных средствах вычислительной техники, рекомендуется на регулярной основе планировать проведение мероприятий по применению очередных и оперативных обновлений операционной системы.

    Источник

    Etc x11 xorg conf linux

    The X.Org project provides an open source implementation of the X Window System. The development work is being done in conjunction with the freedesktop.org community. The X.Org Foundation is the educational non-profit corporation whose Board serves this effort, and whose Members lead this work.

    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.

    Contents

    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.

    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:

    Brand Type Driver OpenGL OpenGL (multilib) Documentation
    AMD / ATI Open source xf86-video-amdgpu mesa lib32-mesa AMDGPU
    xf86-video-ati ATI
    Proprietary xf86-video-amdgpu amdgpu-pro-libgl AUR lib32-amdgpu-pro-libgl AUR AMDGPU PRO
    Intel Open source xf86-video-intel mesa lib32-mesa Intel graphics
    NVIDIA Open source xf86-video-nouveau mesa lib32-mesa Nouveau
    Proprietary nvidia nvidia-utils lib32-nvidia-utils NVIDIA
    nvidia-390xx AUR nvidia-390xx-utils AUR lib32-nvidia-390xx-utils AUR

    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

    *: Experimental

    Running

    The Xorg(1) command is usually not run directly. Instead, the X server is started with either a display manager or xinit.

    Configuration

    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.

    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.

    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 .

    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.

    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.

    To influence hotplugging, see #Configuration.

    For specific instructions, see also the libinput article, the following pages below, or Fedora:Input device configuration for more examples.

    Input identification

    Mouse acceleration

    Extra mouse buttons

    Touchpad

    Touchscreen

    Keyboard settings

    Monitor settings

    Manual configuration

    For a headless configuration, the xf86-video-dummy driver is necessary; install it and create a configuration file, such as the following:

    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.

    Display size and DPI

    The factual accuracy of this article or section is disputed.

    The DPI of the X server is determined in the following manner:

    1. The -dpi command line option has highest priority.
    2. If this is not used, the DisplaySize setting in the X config file is used to derive the DPI, given the screen resolution.
    3. If no DisplaySize is given, the monitor size values from DDC are used to derive the DPI, given the screen resolution.
    4. If DDC does not specify a size, 75 DPI is used by default.

    In order to get correct dots per inch (DPI) set, the display size must be recognized or set. Having the correct DPI is especially necessary 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 800×600, a 13.2″ monitor 1024×768). These days, screen DPIs vary and may not be equal horizontally and vertically. For example, a 19″ widescreen LCD at 1440×900 may have a DPI of 89×87. To be able to set the DPI, the Xorg server attempts to auto-detect your monitor’s physical screen size through the graphic card with DDC. When the Xorg server knows the physical screen size, it will be able to set the correct DPI depending on resolution size.

    To see if your display size and DPI are detected/calculated correctly:

    Check that the dimensions match your display size. If the Xorg server is not able to correctly calculate the screen size, it will default to 75×75 DPI and you will have to calculate it yourself.

    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 config file. For example ( /etc/X11/xorg.conf.d/90-monitor.conf ):

    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 1280×800 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):

    Setting DPI manually

    For RandR compliant drivers (for example the open source ATI driver), you can set it by:

    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.

    Display Power Management

    DPMS (Display Power Management Signaling) 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.

    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.

    List of composite managers

    • Picom — Compositor (a fork of Compton)

    https://github.com/yshui/picom || picom

    • Xcompmgr — Composite window-effects manager

    https://cgit.freedesktop.org/xorg/app/xcompmgr/ || xcompmgr

    • Unagi — Modular compositing manager which aims to be efficient, lightweight and responsive. It is written in C and based on XCB

    https://projects.mini-dweeb.org/projects/unagi || unagiAUR

    Tips and tricks

    This article or section needs expansion.

    Automation

    This section lists utilities for automating keyboard / mouse input and window operations (like moving, resizing or raising).

    Tool Package Manual Keysym
    input
    Window
    operations
    Note
    xautomation xautomation xte(1) Yes No Also contains screen scraping tools. Cannot simulate F13+.
    xdo xdo xdo(1) No Yes Small X utility to perform elementary actions on windows.
    xdotool xdotool xdotool(1) Yes Yes Very buggy and not in active development, e.g: has broken CLI parsing.[2][3]
    xvkbd xvkbd AUR xvkbd(1) Yes No Virtual keyboard for Xorg, also has the -text option for sending characters.
    AutoKey autokey-qt AUR autokey-gtk AUR documentation Yes Yes Higher-level, powerful macro and scripting utility, with both Qt and Gtk front-ends.

    Nested X session

    This article or section needs expansion.

    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.

    Starting GUI programs remotely

    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:

    Killing application with hotkey

    Run script on hotkey:

    Block TTY access

    This article or section needs expansion.

    To block tty access when in an X add the following to xorg.conf:

    Prevent a user from killing X

    To prevent a user from killing when it is running add the following to xorg.conf:

    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 most display managers do not support rootless Xorg.

    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 [4].

    Troubleshooting

    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. [5]

    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).

    You may also attempt to kill the X server with: If this does not work, reboot blindly with:

    • 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.

    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.

    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 .

    Frame-buffer mode problems

    X fails to start with the following log messages:

    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.

    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.

    • Change default target to rescue.target. See systemd#Change default target to boot into.
    • If you have not only a faulty system that makes Xorg unusable, but you have also set the GRUB menu wait time to zero, or cannot otherwise use GRUB to prevent Xorg from booting, you can use the Arch Linux live CD. Follow the installation guide about how to mount and chroot into the installed Arch Linux. Alternatively try to switch into another tty with Ctrl+Alt + function key (usually from F1 to F7 depending on which is not used by X), login as root and follow steps below.

    Depending on setup, you will need to do one or more of these steps:

    /.xinitrc or comment out the exec line in it.

    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.

    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.

    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.

    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 ).

    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.

    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.

    Источник

    Читайте также:  Cth 661 driver windows 10
    Оцените статью