Manjaro linux intel graphics

Содержание
  1. Configure Graphics Cards
  2. Содержание
  3. Identifying Available Drivers
  4. Installing a Driver
  5. Force Reinstall a Driver
  6. Identifying Installed Drivers
  7. Removing Installed Drivers
  8. PRIME GPU offloading
  9. Nvidia Optimus
  10. Configure The Resolution/Refresh Rate
  11. Configure X Screen settings (OpenGL Settings, Antialiasing, X Server XVideo)
  12. Nvidia settings for special cases
  13. nvidia-prime
  14. Bumblebee
  15. Intel graphics (Русский)
  16. Contents
  17. Установка
  18. Конфигурация
  19. Kernel Mode Setting
  20. Опции модуля для энергосбережения
  21. Советы и рекомендации
  22. Видео без тиринга (горизонтального разрыва)
  23. Отключение вертикальной синхронизации (VSYNC)
  24. Настройка режима масштабирования
  25. Проблема с KMS: консоль ограничена в небольшую площадь
  26. Декодирование H.264 на GMA 4500
  27. Управление яркостью и гаммой
  28. Решение проблем
  29. Проблемы SNA
  30. Font and screen corruption in GTK+ applications (missing glyphs after suspend/resume)
  31. Пустой экран во время загрузки системы на этапе «Loading modules»
  32. X зависает/падает с драйверами intel
  33. Добавление неопределённых разрешений
  34. Проблема цвета
  35. Подсветка не регулируется
  36. Отключение сжатия буфера кадров
  37. Искажение/Зависание в Chromium и Firefox
  38. Розовые и зелёные артефакты на видео или выводе Веб-камеры
  39. Ядро сбоит с ядрами 4.0+ на чипах Broadwell/Core-M
  40. Драйвер не работает на чипах Intel Skylake

Configure Graphics Cards

Содержание

Where installing the full version of Manjaro (i.e. complete with a pre-installed desktop environment, codecs, and software applications), the mhwd command will be automatically run by the GUI and CLI installer to automatically detect your graphics card and install the most appropriate driver for it. Whether free or proprietary drivers are installed will depend on your initial choice of using free or nonfree graphics drivers to boot up. Otherwise, it will be necessary to run the mhwd command manually as part of the post-installation process for the minimalistic NET-Edition of Manjaro.

For Beginners, it is recommended to use «Hardware Detection» in Manjaro Settings Manager to change or install new graphics drivers.
For intermediate and advanced users, it is also possible to use the mhwd command to install, re-install, and remove installed graphics drivers at any time, as illustrated below.

This is the recommended method for the detection and installation of graphics drivers. The syntax for the automated installation method is:

A breakdown of the command used for the automated method is as follows:

  • -a: Automatically detect and install the appropriate driver
  • [pci or usb]: Install the appropriate driver for devices connected internally via pci, or externally via usb (again, mhwd currently only supports pci connections at this stage in its development)
  • [free or nonfree]: Install either free drivers (e.g. provided by the Linux community), or nonfree drivers (e.g. provided by hardware manufacturers)
  • 0300: Identify that a driver is to be installed for a graphics card (0300 is the ID for graphics cards. As the mhwd command develops, new ids will be used for other hardware devices).

For example, the following command would result in the automatic detection and installation of the best available proprietary driver for a pci-connected graphics card:

Otherwise, the following command would result in the automatic detection and installation of the best available free driver for a pci-connected graphics card:

Taking a do-it-yourself approach is itself relatively easy and straightforward using the mhwd command. This should be undertaken in two stages:

1. Identify the appropriate driver to be installed, and then

2. Install the driver

Identifying Available Drivers

Prior to manually installing a graphics driver, it will be necessary to identify what drivers are available for your system. To list the appropriate drivers available, the basic syntax is:

Using this command without the additional options will list basic information for all the available drivers for devices connected to your system. All drivers graphics card drivers will have the prefix (video-) in their name. The basic information provided for all listed drivers will be:

  • Name
  • Version
  • Free or proprietary, and
  • PCI or USB connection

A more detailed list of installed drivers can be obtained by entering:

A detailed list will provide the following information:

  • Name
  • Version
  • PCI or USB connection
  • Description
  • Priority
  • Free or proprietary
  • Dependencies
  • Conflicts
  • Class ID (e.g. ‘0300’ for graphics card drivers), and
  • Vendor ID

In addition, using the —pci filter in the following example will list detailed information for only the drivers available for devices (e.g. graphics cards) using an internal PCI connection:

Installing a Driver

To install a driver for a graphics card, the syntax is:

A breakdown of the command used to manually install a driver is as follows:

  • -i: Install a driver
  • [pci]: Install a driver for a device connected internally via pci (e.g. graphics cards)
  • [name of driver]: The name of the driver to be installed

For example, to install the proprietary nvidia graphics card driver, the following command would be used:

Force Reinstall a Driver

To force the re-installation of an existing driver without removing it first, the syntax is:

For example, to force the re-installation of a previously installed nvidia graphics card driver, the following command would be used:

On occasion it may be necessary to remove an installed graphics card driver. Similarly to manually installing a graphics card driver, two steps should be undertaken for removal:

1. Identify the installed driver

2. Remove the identified driver

After all, it would be somewhat difficult to remove an installed driver if you don’t know what it’s called!

Читайте также:  Описание windows player для windows

Identifying Installed Drivers

To identify and list Manjaro’s installed drivers — including the graphics driver to be removed, the syntax is:

Using this command without the additional options will list the basic information of all the drivers currently installed on your system. Once again, all drivers for graphics cards will have the prefix (video-) in their name. As with listing drivers available for your system, the -d option used in the following command will list detailed information:

This information may prove useful to determine any otherwise unforeseen consequences or problems upon removing a driver. And again, it is also possible to filter your list of installed drivers by whether they are used on hardware connected via pci or usb. In this instance, a detailed list will be generated only for installed drivers used on hardware with a PCI connection:

One other way of reporting drivers installed andin use is using the inxi tool.

Removing Installed Drivers

To remove an installed driver, the syntax is:

For example, to remove the installed driver for a nvidia graphics card (connected internally via pci), the following command would be used:

You can check configuration with:

And if needed fix issues with:

Make sure the path to xorg config file is valid.

Note about ati, xorg file and login artifacts or kicad: if you get artifacts upon logging in or if kicad rendering and zooming is slow, try adding [Option «EXAPixmaps» «off»] in the «Device» section of xorg config file. See here.

PRIME GPU offloading

If your hardware includes more than one GPU card you can make use of PRIME offloading. PRIME is a technology used to manage hybrid graphics found on recent desktops and laptops (Optimus for NVIDIA, AMD Dynamic Switchable Graphics for Radeon). PRIME detects both cards and automatically selects Intel card by default; using the more powerful discrete graphics card, when called, for more demanding applications.

In Manjaro this will automatically be available for hybrid graphics systems using intel/modesetting for the integrated card and free drivers (AMDGPU or Nouveau) for the dGPU.

You may choose to run a program with a specific GPU, prepending the application’s command with DRI_PRIME=x, where x is the card priority number.

For example, to run an application using the second card prepend the application command with DRI_PRIME=1

To use the 1st card (usually when the CPU has an embedded GPU, this is used)

If you want to always run some application with the discrete gpu, you may copy that application’s .desktop file to

/.local/share/applications/ and edit the «Exec» property

Some applications (usually games like steam) may have an embedded option to specify the command line, where it is preferred to use this way.

For example, in Steam, select a game — that you want to run using your discrete Nvidia card — from the Library page of the Steam client, right-click, and select Properties. Click the SET LAUNCH OPTIONS. button and specify for the command line options followed by the default launch hook %command%.

To use the dGPU by default see Reverse Prime

If you have a Nvidia card, you have the option to use the proprietary (closed source = non-free) drivers instead of the open source (free) nouveau driver.

For Legacy/older nvidia cards, Manjaro maintains older drivers for compatibility. In these cases the driver name is different, instead of nvidia it is nvidia-390xx or nvidia340xx, whether in nvidia-only or bumblebee mhwd driver configuration.

When you install the non-free driver, mhwd includes a Nvidia utility «Nvidia Settings Utility» that can help you configure several settings. You can find this utility in your GUI Applications Menu or start it from a terminal

If you are using bumblebee, the nvidia utility needs a special command

Nvidia Optimus

For Optimus laptops or dual GPU hardware with intel and nvidia GPUs, you have three options to utilize the card driver usage at your preference or your hardware capabilities.

When you install Manjaro with the non-free option selected from Grub menu, or when you use automatic driver installation, PRIME or bumblebee is installed by default, depending on support for your GPU, PRIME being preferred. In these cases, the mhwd driver is named «video-hybrid-intel-nvidia-***xx-prime» or «video-hybrid-intel-nvidia-***xx-bumblebee».

Configure The Resolution/Refresh Rate

1. Start nvidia-settings utility

2. Change resolution and refresh rate in ‘X Server Display Configuration’ tab.

3. Hit the ‘Save to X Configuration File’ button and save to /etc/X11/mhwd.d/nvidia.conf

4. Now start your terminal and enter the following command to complete the process:

Configure X Screen settings (OpenGL Settings, Antialiasing, X Server XVideo)

1. Start nvidia-settings utility

2. Change settings in X Server XVideo Settings, OpenGL and Antialiasing, in the ‘X Screen’ tab.

3. Click on ‘nvidia-settings configuration’ tab and click on the ‘Save Current Configuration’ button.

4. Save the .nvidia-settings-rc to the default location specified (/home/[your account name])

5. Edit the .xinitrc file with your preferred text editor. For example, if you use gedit, run this in your terminal:

Читайте также:  Бесконечный экран загрузки windows

6. Once opened, add the following line into the configuration file:

Nvidia settings for special cases

In case your monitor is not entering powersave mode (DPMS), try adding `Option «HardDPMS» «true»` in your Xorg monitor section. For example:

nvidia-prime

Manjaro also offers an easy way to use PRIME with proprietary Nvidia drivers.
Simply select and install an ‘nvidia-prime’ profile through MSM or mhwd (such as video-hybrid-intel-nvidia-440xx-prime) and ensure the package nvidia-prime is installed.

Then to use the discrete Nvidia card it works the same as PRIME offloading above but uses a different command. Prepend the application command with prime-run. For example:

Bumblebee

Bumblebee configuration is mainly developed to help minimize laptop battery consumption, since Nvidia usually consumes significant power, while Intel cards are more power efficient. So, bumblebee detects both cards and automatically selects Intel card by default and can use the Nvidia for more demanding applications. For an application to use the Nvidia card, prepend the application command with optirun or primusrun. For example:

If you want to specifically run some application with the nvidia driver, you may edit that application’s .desktop file «Exec» property, or run it in terminal like this

Some applications (usually games like steam) may have an embedded option to specify the command line, where it is preferred to use this way.

For example, in Steam, select a game — that you want to run using your discrete Nvidia card — from the Library page of the Steam client, right-click, and select Properties. Click the SET LAUNCH OPTIONS. button and specify for the command line options followed by the default launch hook %command%.

If you have problems with a bumblebee setup, refer to this Forum Tutorial for advice.

Источник

Intel graphics (Русский)

С тех пор как Intel предоставляет и поддерживает только свободные драйвера, видеокарты Intel graphics работают «из коробки».

Всеобъемлющий список моделей видеокарт и соответствующих чипсетов и процессоров доступен в английской Википедии.

Contents

Установка

Установите пакет mesa , который предоставляет драйвер DRI для 3D ускорения.

  • Для поддержки 32 битных приложений, установите lib32-mesa из репозитория multilib.
  • Для DDX драйвера (который обеспечивает 2D-ускорение в Xorg), Установите пакет xf86-video-intel . (Не рекомендуется, см. Примечание ниже.)
  • Для поддержке Vulkan (Ivy Bridge и выше), Установите пакет vulkan-intel .

Установите драйвер VA-API и необходимую библиотеку с помощью пакета libva-intel-driver . На старых видеокартах, это предоставляет драйвер XvMC, который включён в драйвер DDX.

Конфигурация

Для запуска X конфигурация не требуется.

Полный список опций доступен в документации $ man intel .

Kernel Mode Setting

Kernel Mode Setting (KMS) необходим для запуска X и среды рабочего стола. KMS поддерживается чипсетами Intel, которые используют драйвер i915 DRM включенный по умолчанию. Версии драйвера xf86-video-intel 2.10 и новее больше не поддерживают UMS (за исключением очень старых чипсетов 810 серии), что делает использование KMS обязательным [3] . KMS обычно инициализируется сразу после стадии initramfs. Однако, есть возможность активировать KSM во время стадии initramfs.

Для этого добавьте модуль i915 в строку MODULES в файле /etc/mkinitcpio.conf :

Если вы используете собственный, нестандартный, файл EDID], вам также необходимо вставить его в initramfs:

Теперь перегенерируйте initramfs:

Изменения вступят в силу после следующей перезагрузки.

Опции модуля для энергосбережения

Модуль ядра i915 можно конфигурировать через опции модуля. Часть этих опций модуля влияют на энергосбережение.

Для проверки, какие опции в данный момент включены, воспользуйтесь командой

Список всех опций с кратким их описанием и значения по умолчанию можно получить командой:

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

Вы можете поэкспериментировать со более большими значениями enable_rc6 , однако ваша видеокарта может их не поддерживать [4].

Сжатие буфера кадров может оказаться ненадёжным на старых поколениях видеокарт Intel (Каких?). В результате чего подобные сообщения выводятся в системный журнал:

Советы и рекомендации

Видео без тиринга (горизонтального разрыва)

Для некоторых пользователей рывки видео происходят из-за метода ускорения SNA. Чтобы исправить это, включите опцию «Tearfree» в драйвере:

См. отчёт об ошибке за подробной информацией.

Отключение вертикальной синхронизации (VSYNC)

Драйвер intel использует тройную буферизацию для вертикальной синхронизации, что позволяет без потерь в производительности избежать разрывы кадров. Чтобы отключить вертикальную синхронизацию (например, для «бенчмаркинга») создайте файл .drirc в вашей домашней директории со следующим содержимым:

Не используйте driconf AUR для создания этого файла, так как он выставит неправильное название драйвера.

Настройка режима масштабирования

Это может быть полезно для некоторых полноэкранных приложений:

Где param одно из следующих значений:

  • center : разрешение экрана не будет меняться, масштабирование отключено,
  • full : масштабировать разрешение экрана для использования всего места на экране или
  • full_aspect : максимально масштабировать разрешение экрана, но соблюдать соотношение сторон.

Если это не сработало, попробуйте:

Где param это «Full» , «Center» или «Full aspect» .

Проблема с KMS: консоль ограничена в небольшую площадь

Один из портов низкого разрешения видео может быть включен во время загрузки системы, в результате чего терминал использует маленькую часть экрана. Чтобы исправить это, отдельно отключите порт с помощью опции модуля i915 video=SVIDEO-1:d в параметрах командной строке ядра в загрузчике. Больше информации об этом доступно на странице Kernel parameters.

Если это не сработало, попробуйте выключить TV1 или VGA1 вместо SVIDEO-1.

Декодирование H.264 на GMA 4500

Пакет libva-intel-driver предоставляет декодирование MPEG-2 только для GMA 4500 серии видеокарт. Поддержка декодирования H.264 сопровождается в отдельной ветке под названием g45-h264, которой можно воспользоваться установив пакет libva-intel-driver-g45-h264 AUR , доступный в AUR. Однако имейте в виду, что данная поддержка экспериментально и в данный не ведётся активная разработка. Использование VA-API с этим драйвером на GMA 4500 серии видеокарт уменьшит нагрузку на центральный процессор, однако не гарантируется плавное воспроизведение в сравнении с программным декодированием. Тестирование с использованием mplayer показало что использование vaapi для воспроизведения закодированного в H.264 1080p видео снизило нагрузку на процессор, однако воспроизведение происходит с рывками, в то время как воспроизведение 720p работало удовлетворительно [5]. Это подтверждает и опыт других пользователей [6].

Читайте также:  Сервер проверка подлинности windows

Управление яркостью и гаммой

Следующий пример демонстрирует использование виртуальную файловую систему /sys для выставления уровня яркости на уровне драйвера. Максимальная яркость указана в файле /sys/class/backlight/intel_backlight/max_brightness . Имейте в виду, что это значение может отличаться в зависимости от разной конфигурации оборудования.

Яркость также можно выставить используя пакет xorg-xbacklight .

Вместо абсолютных значений можно использовать инкрементирующие, например:

Гамму можно выставить используя пакет xorg-xrandr , либо xorg-xgamma . Следующие команды делают одно и то же.

Решение проблем

Проблемы SNA

Есть несколько движков для ускорения DDX. «UXA» (Архитектура Единого Ускорения) является зрелой базовой, которая была введена для поддержки модели драйвера GEM. Именно в процессе заменены «SNA» (новое ускорение в SandyBridge). Cпособность выбора использовать базовую остается для обратной совместимости.

SNA — стандартный метод ускорения в xf86-video-intel . Если вы наблюдаете проблемы с SNA, попробуйте переключить на UXA. Для этого нужно создать файл конфигурации X со следующим содержимым:

Можно также воспользоваться Glamor:

Font and screen corruption in GTK+ applications (missing glyphs after suspend/resume)

Should you experience missing font glyphs in GTK+ applications, the following workaround might help. Edit /etc/environment to add the following line:

Пустой экран во время загрузки системы на этапе «Loading modules»

Если вы используете «поздний старт» KMS и во время загрузки системы наблюдаете пустой экран. Исправить проблему можно добавив i915 и intel_agp в initramfs. Смотрите раздел #Kernel Mode Setting выше.

Либо можно добавить следующее в параметры ядра:

Если необходим вывод в VGA, попробуйте следующее:

X зависает/падает с драйверами intel

Некоторые проблемы со сбоем X, зависания GPU, или проблемы с зависанием X, могут быть решены путем отключения использования GPU с опцией NoAccel :

Кроме того, попробуйте отключить 3D-ускорение только с опцией DRI :

Если у вас есть сбои при

в файле настроек, в большинстве случаев это может быть исправлено добавлением

к вашим параметрам загрузки.

Добавление неопределённых разрешений

Этот вопрос рассматривается в Xrandr page.

Проблема цвета

Ядро 3.9 содержит изменения, позволяющие драйверу Intel легко настраивать глубину RGB, что в некоторых случаях может привести к проблемам цвета. Это связано с новым «Автоматическим» режимом на «Broadcast RGB». Можно заставить использовать режим, например, xrandr —output —set «Broadcast RGB» «Full» (замените на соответствующее устройство вывода, проверьте запустив xrandr ). Вы можете добавить его в свой .xprofile и сделать его исполняемым, чтобы запускать команду, прежде чем он запустит графический режим.

Также есть и другие связанные с ними проблемы, которые могут быть исправлены редактированием регистров GPU. Больше информации можно найти [7] и [8].

Подсветка не регулируется

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

Устройствам Samsung с гибридной графикой (таким как 770Z5E) нужно указать acpi_backlight=video в качестве параметра ядра, при использовании ядра >= 3.17

Либо в дополнение к вышеуказанному параметру, либо по своей инициативе, добавьте один из следующих двух параметров:

Другой доступный параметр:

Если не один из них не решает проблему, отредактируйте или создайте /etc/X11/xorg.conf.d/20-intel.conf со следующим содержимым:

При использовании ускорения SNA, как упоминалось выше, создайте файл следующим образом:

Отключение сжатия буфера кадров

На некоторых картах, таких как Intel Corporation Mobile 4 Series Chipsets, включение сжатия буфера кадров в результате приведёт к потоку ошибок:

Решение заключается в отключении сжатия буфера кадров, которое будет немного увеличивать расход энергии. Для того, чтобы отключить его добавьте i915.enable_fbc=0 в строку параметров ядра. Более подробная информация о результатах отключения сжатия может быть найдена здесь [устаревшая ссылка 2020-08-02] .

Искажение/Зависание в Chromium и Firefox

Если у вас проявляются искажения или зависания в Chromium и/или Firefox поменяйте AccelMethod на «uxa»

Проблема с искажениями в Chromium в Gnome-shell на sna решается включением настройки «Использовать системные рамки и строку заголовка».

Розовые и зелёные артефакты на видео или выводе Веб-камеры

На машинах с Broadwell, приложения использующие вывод xv или Intel Textured Video (в частности Skype и VLC), видеопоток выдаёт розовые и залёные артефакты. Это общая проблема Broadwell, которая была зафиксирована 16.04.2015 [9]. Обновите xf86-video-intel чтобы исправить её.

Ядро сбоит с ядрами 4.0+ на чипах Broadwell/Core-M

Через несколько секунд после запуска X/Wayland машина зависает и в логе journalctl будет описан крах ядра ссылающийся на графику Intel, как показано ниже:

Это может быть исправлено путем отключения поддержки execlist, которая была изменена по умолчанию на ядре с версии 4.0. Добавьте следующий параметр ядра:

Эта поломка с ядрами версии меньше 4.0.5.

Драйвер не работает на чипах Intel Skylake

Для работы драйвера на новом Intel Skylake (6-е поколение) GPU, строка i915.preliminary_hw_support=1 должна быть добавлена к параметрам загрузки.

Источник

Оцените статью