Hello all,
I am trying to setup my beloved Thinkpad X60 with NixOS. Yes, I do have newer computers (also running NixOS), but I want to use the X60 since I enjoy using it and find that it has several superior qualities. It is 64 bit hardware (C2D) and has GMA graphics (i915).
Only issue is that I can’t get Xorg to start. Here is the relevant part of the log while using the modesetting
driver:
[ 266.531] (II) modeset(0): Output SVIDEO-1 disconnected
[ 266.531] (II) modeset(0): Using exact sizes for initial modes
[ 266.531] (II) modeset(0): Output LVDS-1 using initial mode 1024x768 +0+0
[ 266.531] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[ 266.531] (==) modeset(0): DPI set to (96, 96)
[ 266.531] (II) Loading sub module "fb"
[ 266.531] (II) LoadModule: "fb"
[ 266.531] (II) Module "fb" already built-in
[ 266.532] (WW) glamor requires at least 128 instructions (64 reported)
[ 266.532] (EE) modeset(0): Failed to initialize glamor at ScreenInit() time.
[ 266.532] (EE)
Fatal server error:
[ 266.532] (EE) AddScreen/ScreenInit failed for driver 0
[ 266.532] (EE)
[ 266.532] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
And the intel
driver (which I understand is unmaintained and will be removed soon):
[ 1104.966] (II) Initializing extension XVideo-MotionCompensation
[ 1104.966] (II) Initializing extension GLX
[ 1105.025] (EE)
[ 1105.025] (EE) Backtrace:
[ 1105.026] (EE) 0: /nix/store/sgzwfb9k14myjfdxmz7zg6wqhb7mi0d9-xorg-server-21.1.14/bin/X (OsSigHandler+0x33) [0x5c2c33]
[ 1105.027] (EE) unw_get_proc_name failed: no unwind info found [-10]
[ 1105.027] (EE) 1: /nix/store/wn7v2vhyyyi6clcyn0s9ixvl7d4d87ic-glibc-2.40-36/lib/libc.so.6 (?+0x0) [0x7fca94c48620]
[ 1105.028] (EE) 2: /nix/store/sgzwfb9k14myjfdxmz7zg6wqhb7mi0d9-xorg-server-21.1.14/lib/xorg/modules/extensions/libglx.so (glxConvertConfigs+0x12) [0x7fca949ffb92]
[ 1105.028] (EE) 3: /nix/store/sgzwfb9k14myjfdxmz7zg6wqhb7mi0d9-xorg-server-21.1.14/lib/xorg/modules/extensions/libglx.so (__glXDRIscreenProbe+0x2e8) [0x7fca94a07e98]
[ 1105.029] (EE) 4: /nix/store/sgzwfb9k14myjfdxmz7zg6wqhb7mi0d9-xorg-server-21.1.14/lib/xorg/modules/extensions/libglx.so (xorgGlxServerInit+0xb7) [0x7fca949fe2b7]
[ 1105.029] (EE) 5: /nix/store/sgzwfb9k14myjfdxmz7zg6wqhb7mi0d9-xorg-server-21.1.14/bin/X (_CallCallbacks+0x34) [0x44c474]
[ 1105.030] (EE) 6: /nix/store/sgzwfb9k14myjfdxmz7zg6wqhb7mi0d9-xorg-server-21.1.14/bin/X (GlxExtensionInit+0x15f) [0x57e9bf]
[ 1105.030] (EE) 7: /nix/store/sgzwfb9k14myjfdxmz7zg6wqhb7mi0d9-xorg-server-21.1.14/bin/X (InitExtensions+0x89) [0x4bbce9]
[ 1105.031] (EE) 8: /nix/store/sgzwfb9k14myjfdxmz7zg6wqhb7mi0d9-xorg-server-21.1.14/bin/X (dix_main+0x1ac) [0x44ad8c]
[ 1105.031] (EE) 9: /nix/store/wn7v2vhyyyi6clcyn0s9ixvl7d4d87ic-glibc-2.40-36/lib/libc.so.6 (__libc_start_call_main+0x7e) [0x7fca94c3227e]
[ 1105.032] (EE) 10: /nix/store/wn7v2vhyyyi6clcyn0s9ixvl7d4d87ic-glibc-2.40-36/lib/libc.so.6 (__libc_start_main+0x89) [0x7fca94c32339]
[ 1105.033] (EE) 11: /nix/store/sgzwfb9k14myjfdxmz7zg6wqhb7mi0d9-xorg-server-21.1.14/bin/X (_start+0x25) [0x433175]
[ 1105.033] (EE)
[ 1105.033] (EE) Segmentation fault at address 0x0
[ 1105.033] (EE)
Fatal server error:
[ 1105.033] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 1105.033] (EE)
[ 1105.033] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
I am wondering if anyone here has input. I have also built mesa with the following options to try and get the modesetting
driver to work (note I have added the i915g
driver, which supersedes the i915
driver according to https://docs.mesa3d.org/amber.html):
environment.systemPackages = with pkgs; [
(pkgs.mesa.overrideAttrs (oldAttrs: {
galliumDrivers = [
"crocus" # Intel legacy, x86 only
"i915" # Intel extra legacy, x86 only
"i915g" # Intel extra legacy, x86 only
"iris" # new Intel (Broadwell+)
"llvmpipe" # software renderer
"softpipe" # older software renderer
"zink" # generic OpenGL over Vulkan, experimental
];
}))
];
I am wondering if mesa-amber
would be the ultimate solution for this? The only distro I know where it is available in arch linux, so I am planning on trying that this afternoon. If that works, then I am planning on trying to get amber working on nix.
Overall, I am still at a loss regardless. I had Debian 12 on this laptop before and it booted into X without any problems. It seems like a breaking change in some package has caused this recently. I am wondering if anyone else has input. Please let me know! Thank you