Skip to content

Commit cc62750

Browse files
committed
Revert "fix xf86videointel driver" (#385486)
2 parents 2092d80 + 6a0ba68 commit cc62750

File tree

5 files changed

+11
-85
lines changed

5 files changed

+11
-85
lines changed

nixos/doc/manual/configuration/x-windows.chapter.md

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -123,47 +123,27 @@ setting](https://en.wikipedia.org/wiki/Mode_setting) (KMS) mechanism, it
123123
supports Glamor (2D graphics acceleration via OpenGL) and is actively
124124
maintained, it may perform worse in some cases (like in old chipsets).
125125

126-
There is a second driver, `intel` (provided by the xf86-video-intel package),
127-
specific to older Intel iGPUs from generation 2 to 9. It is not recommended by
128-
most distributions: it lacks several modern features (for example, it doesn't
129-
support Glamor) and the package hasn't been officially updated since 2015.
130-
131-
Third generation and older iGPUs (15-20+ years old) are not supported by the
132-
`modesetting` driver (X will crash upon startup). Thus, the `intel` driver is
133-
required for these chipsets.
134-
Otherwise, the results vary depending on the hardware, so you may have to try
135-
both drivers. Use the option
136-
[](#opt-services.xserver.videoDrivers)
137-
to set one. The recommended configuration for modern systems is:
138-
139-
```nix
140-
{
141-
services.xserver.videoDrivers = [ "modesetting" ];
142-
}
143-
```
144126
::: {.note}
145127
The `modesetting` driver doesn't currently provide a `TearFree` option (this
146128
will become available in an upcoming X.org release), So, without using a
147129
compositor (for example, see [](#opt-services.picom.enable)) you will
148130
experience screen tearing.
149131
:::
150132

151-
If you experience screen tearing no matter what, this configuration was
152-
reported to resolve the issue:
133+
There also used to be a second driver, `intel` (provided by the
134+
xf86-video-intel package), specific to older Intel iGPUs from generation 2 to
135+
9.
136+
This driver hasn't been maintained in years and was removed in NixOS 24.11
137+
after it stopped working. If you chipset is too old to be supported by
138+
`modesetting` and have no other choice you may try an unsupported NixOS version
139+
(reportedly working up to NixOS 24.05) and set
153140

154141
```nix
155142
{
156143
services.xserver.videoDrivers = [ "intel" ];
157-
services.xserver.deviceSection = ''
158-
Option "DRI" "2"
159-
Option "TearFree" "true"
160-
'';
161144
}
162145
```
163146

164-
Note that this will likely downgrade the performance compared to
165-
`modesetting` or `intel` with DRI 3 (default).
166-
167147
## Proprietary NVIDIA drivers {#sec-x11-graphics-cards-nvidia}
168148

169149
NVIDIA provides a proprietary driver for its graphics cards that has

nixos/doc/manual/release-notes/rl-2505.section.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@
5151
- A new `pkgs.mattermost.buildPlugin` function has been added, which allows plugins to be built from source, including webapp frontends with a supported package-lock.json. See the Mattermost NixOS test and [manual](https://nixos.org/manual/nixpkgs/unstable/#sec-mattermost-plugins-build) for an example.
5252
- Note that the Mattermost module will create an account _without_ a well-known UID if the username differs from the default (`mattermost`). If you used Mattermost with a nonstandard username, you may want to review the module changes before upgrading.
5353

54-
- The `intel` video driver for X.org (from the xf86-video-intel package) which was previously removed because it was non-functional has been fixed and the driver has been re-introduced.
55-
5654
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
5755

5856
## New Modules {#sec-release-25.05-new-modules}

pkgs/development/libraries/mesa/default.nix

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
, expat
77
, fetchCrate
88
, fetchFromGitLab
9-
, fetchpatch
109
, file
1110
, flex
1211
, glslang
@@ -142,13 +141,6 @@ in stdenv.mkDerivation {
142141
# cherry-picked from https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32719
143142
# safe to remove for versions > 24.3.2
144143
./cross_clc.patch
145-
146-
# dril fix for xf86videointel
147-
# FIXME: remove when backported upstream
148-
(fetchpatch {
149-
url = "https://gitlab.freedesktop.org/mesa/mesa/-/commit/4ecd183c563670c5c3ab371d6b5596ecabbe6fad.diff";
150-
hash = "sha256-AXXp1MHXEsvua1SyzQUbQLVqaA4Iw1yziqvAce+UkxQ=";
151-
})
152144
];
153145

154146
postPatch = ''

pkgs/servers/x11/xorg/overrides.nix

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,26 +1009,10 @@ self: super:
10091009
meta = attrs.meta // { mainProgram = "xinit"; };
10101010
});
10111011

1012-
xf86videointel = super.xf86videointel.overrideAttrs (attrs: {
1013-
# the update script only works with released tarballs :-/
1014-
name = "xf86-video-intel-2024-05-06";
1015-
src = fetchFromGitLab {
1016-
domain = "gitlab.freedesktop.org";
1017-
group = "xorg";
1018-
owner = "driver";
1019-
repo = "xf86-video-intel";
1020-
rev = "ce811e78882d9f31636351dfe65351f4ded52c74";
1021-
sha256 = "sha256-PKCxFHMwxgbew0gkxNBKiezWuqlFG6bWLkmtUNyoF8Q=";
1022-
};
1023-
buildInputs = attrs.buildInputs ++ [ xorg.libXScrnSaver xorg.libXv xorg.pixman xorg.utilmacros ];
1024-
nativeBuildInputs = attrs.nativeBuildInputs ++ [autoreconfHook ];
1025-
configureFlags = [ "--with-default-dri=3" "--enable-tools" ];
1026-
patches = [ ./use_crocus_and_iris.patch ];
1027-
1028-
meta = attrs.meta // {
1029-
platforms = ["i686-linux" "x86_64-linux"];
1030-
};
1031-
});
1012+
xf86videointel = throw ''
1013+
xf86videointel has been removed as the package is unmaintained and the driver is no longer functional.
1014+
Please remove "intel" from `services.xserver.videoDrivers` and switch to the "modesetting" driver.
1015+
''; # Added 2024-12-16;
10321016

10331017
xf86videoopenchrome = super.xf86videoopenchrome.overrideAttrs (attrs: {
10341018
buildInputs = attrs.buildInputs ++ [ xorg.libXv ];

pkgs/servers/x11/xorg/use_crocus_and_iris.patch

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)