mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 09:36:20 +09:00
Revert "Fix Xf86videointel driver immediate crash on NixOS (Mesa Patch Backport)"
This commit is contained in:
parent
2092d80644
commit
6a0ba68039
5 changed files with 11 additions and 85 deletions
|
@ -123,24 +123,6 @@ setting](https://en.wikipedia.org/wiki/Mode_setting) (KMS) mechanism, it
|
|||
supports Glamor (2D graphics acceleration via OpenGL) and is actively
|
||||
maintained, it may perform worse in some cases (like in old chipsets).
|
||||
|
||||
There is a second driver, `intel` (provided by the xf86-video-intel package),
|
||||
specific to older Intel iGPUs from generation 2 to 9. It is not recommended by
|
||||
most distributions: it lacks several modern features (for example, it doesn't
|
||||
support Glamor) and the package hasn't been officially updated since 2015.
|
||||
|
||||
Third generation and older iGPUs (15-20+ years old) are not supported by the
|
||||
`modesetting` driver (X will crash upon startup). Thus, the `intel` driver is
|
||||
required for these chipsets.
|
||||
Otherwise, the results vary depending on the hardware, so you may have to try
|
||||
both drivers. Use the option
|
||||
[](#opt-services.xserver.videoDrivers)
|
||||
to set one. The recommended configuration for modern systems is:
|
||||
|
||||
```nix
|
||||
{
|
||||
services.xserver.videoDrivers = [ "modesetting" ];
|
||||
}
|
||||
```
|
||||
::: {.note}
|
||||
The `modesetting` driver doesn't currently provide a `TearFree` option (this
|
||||
will become available in an upcoming X.org release), So, without using a
|
||||
|
@ -148,22 +130,20 @@ compositor (for example, see [](#opt-services.picom.enable)) you will
|
|||
experience screen tearing.
|
||||
:::
|
||||
|
||||
If you experience screen tearing no matter what, this configuration was
|
||||
reported to resolve the issue:
|
||||
There also used to be a second driver, `intel` (provided by the
|
||||
xf86-video-intel package), specific to older Intel iGPUs from generation 2 to
|
||||
9.
|
||||
This driver hasn't been maintained in years and was removed in NixOS 24.11
|
||||
after it stopped working. If you chipset is too old to be supported by
|
||||
`modesetting` and have no other choice you may try an unsupported NixOS version
|
||||
(reportedly working up to NixOS 24.05) and set
|
||||
|
||||
```nix
|
||||
{
|
||||
services.xserver.videoDrivers = [ "intel" ];
|
||||
services.xserver.deviceSection = ''
|
||||
Option "DRI" "2"
|
||||
Option "TearFree" "true"
|
||||
'';
|
||||
}
|
||||
```
|
||||
|
||||
Note that this will likely downgrade the performance compared to
|
||||
`modesetting` or `intel` with DRI 3 (default).
|
||||
|
||||
## Proprietary NVIDIA drivers {#sec-x11-graphics-cards-nvidia}
|
||||
|
||||
NVIDIA provides a proprietary driver for its graphics cards that has
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue