Old graphic cards have for Fedora or Ubuntu packages if you are looking for it on producers sites but if they close development on 9.10 so you can’t install it on 12.04 version. Do you want in 2026 using 2024 Linux version? If you will do it so then for next half year.
I have tried, with no effective difference
Because I like the declarative aspect of it. I also have a “homelab” on Nix, and it’s been great
The entire question is to rip out the firmware from some package, which turns out to be specifically annoying for this GPU generation, but then Nouveau will work fine.
I have been using an even older Nvidia GPU, connected to an absolutely make-it-or-break-it video output, with Nouveau, till a couple of months ago. What pushed me off? It’s a laptop, I am not super careful, over a literal decade structural integrity issues surpassed what I am willing to risk in a daily driver.
By the way. a newer laptop has NVMe for storage, USB-C… and the list of noticeable quality-of-life improvements ends here. We are not in the 2000s where over a decade hardware capabilties improved unrecognisably.
Yeah. Only on nix some things are so easy. In last time I wanted move my computer to other distro and maybe I’ll do it but I have so many things in configuration.nix that I resign from this idea but probably catchyos I have already downloaded… because of hardware. You have to find those distro what is working fine on your computer but if for this legacy driver support end on 5.15 kernel version so you can neuveau only. Next time buy better hardware.
You say «Nouveau only» like it’s a loss. But from stability and functionality point of view Nouveau works better than Nvidia drivers for still-supported cards, too. Nvidia has implemented approximately zero non-proprietary interfaces completely correctly.
I managed to extract the NVIDIA firmware finally!
I can tell that the computer really does think there’s another screen though. I connected a TV to the laptop over HDMI, and now the compositor reports 3 screens: the builtin laptop display, the TV and what I suppose is the GPU output?
I can drag windows on the 3rd screen, and other Niri functionality (like bringing up the overview by bringing the mouse to the top-left corner of the screen) trigger in the bounds of that display, I can move windows to it, and nothing seems to go terribly wrong. I can even use Alt+Tab to focus on the window on the other screen! It doesn’t display, but I can
The only error left in dmesg is
nouveau 0000:01:00.0: drm: [DRM/00000000:kmsOutp] [LOAD_DETECT data:00000154] load:07 (ret:7)
Welcome to the section where I try stuff at random to see if anything helps
I read up a bit on VGA Switcheroo, which also kept popping up in the logs, and if I add
boot.kernelParams = [ "nouveau.runpm=0" ];
to my configuration, I gain the ability to influence the state of /sys/kernel/debug/vgaswitcheroo/switch. Normal contents of the file look like this:
# cat /sys/kernel/debug/vgaswitcheroo/switch
0:DIS-Audio: :DynOff:0000:01:00.1
1:DIS: :Pwr:0000:01:00.0
2:IGD:+:Pwr:0000:00:02.0
When I try switching to the dGPU via
$ echo DIS > /sys/kernel/debug/vgaswitcheroo/switch
while on the TTY the display turns black, and the backlight turns off. When I try to reset it from that point by echoing IGD into the file, the backlight turns back on, but there’s no output. When I did that while connected to the TV, it started outputting a pure red color on the entire screen of the TV. Piping dmesg into a file to read for later has shown no errors in the logs after a reboot (which brought back the video output).
When I try to turn the dGPU off by echoing OFF to the switch, an error popped up in dmesg
// Put error here
When I try to echo DIS or DDIS while in Niri, there is a message of client 101 refused to switch
TLDR; No success yet, though less errors in dmesg if I don’t mess with it myself
I have a GT 710 - not the same I know, but I feel your pain as I had a similar problem before I landed on the configuration I have now. Hopefully you will find something that helps in my config and accompanying notes… ![]()
nvidia specific settings for legacy h/w
################################################################################
# Note: nvidia specific settings
################################################################################
# https://discourse.nixos.org/t/drm-kernel-driver-nvidia-drm-in-use-nvk-requires-nouveau/42222/18
# https://www.reddit.com/r/NixOS/comments/1ctl8yw/how_to_force_chromium_to_use_discrete_graphics/
# https://discourse.nixos.org/t/nvidia-open-breaks-hardware-acceleration/58770/5
# https://discourse.nixos.org/t/trouble-getting-hardware-video-decoding-in-chrome-based-browsers-with-amd-gpu/25206
# Environment variable to limit driver to nVidia
# VK_DRIVER_FILES=/run/opengl-driver/share/vulkan/icd.d/nvidia_icd.x86_64.json
hardware.nvidia = {
# Note: If the nvidia GFX Card fails to work, check for error messages in dmesg it may need a specific driver version.
# https://nixos.wiki/wiki/nvidia
# https://developer.nvidia.com/cuda/gpus
# e.g. - use case-insensitive search for "nvidia" - see bottom of file for more details.
# Nov 24 18:27:25 tower kernel: NVRM: The NVIDIA GeForce GT 710 GPU installed in this system is
# NVRM: supported through the NVIDIA 470.xx Legacy drivers. Please
# NVRM: visit http://www.nvidia.com/object/unix.html for more
# NVRM: information. The 550.78 NVIDIA driver will ignore
# NVRM: this GPU. Continuing probe...
# Note: Use a specific driver as mentioned in dmesg error mentioned above.
# https://www.nvidia.com/en-us/drivers/unix/legacy-gpu/
package = pkgs.linuxPackages.nvidia_x11_legacy470; # (470.256.02-6.12.93) - Highest available driver for the NVIDIA GeForce GT 710
#modesetting.enable = lib.versionAtLeast cfg.package.version "535";
modesetting.enable = true;
#open = if lib.versionOlder config.hardware.nvidia.package.version "560" then false else null;
open = false;
prime ={
nvidiaBusId = "PCI:01:00:0";
};
};
Some things I notice that are different in your configuration when compared to mine are the following:
I don’t add or override anything in boot.kernelPackages
I don’t add or override anything in boot.initrd.kernelModules
Also;
additional variations that may help
hardware.nvidia.package = pkgs.linuxPackages.nvidia_x11_legacy470; # (470.256.02-6.12.93) - Highest available driver for the NVIDIA GeForce GT 710
#hardware.nvidia.modesetting.enable = lib.versionAtLeast cfg.package.version "535";
hardware.nvidia.modesetting.enable = true;
As you are also limited to a specific driver version _390 perhaps you could try the _390 version of pkgs.linuxPackages.nvidia_x11_legacy390
Perhaps you also need the modesetting.enable option overridden, as it will be blocked unless the driver version is =>535 - which ours is not!
Anyway, I hope you get some value from my config and solve your problem! ![]()
Does that work without firmware (and maybe without working drivers)?
Did you try something GPU-hungry enough with DRI_PRIME to check if it gets faster?
Do you have anything you might ever want to connect via VGA? This is a loaded question — if yes, maybe try connecting it before boot to see what happens; if no, there is this magic like video=VGA-1:d if I remember correctly (kernel framebuffer detection override seems to force monitor detection in Xorg/Wayland as well).
A) The firmware is now all there. B) I’m fairly sure it’s using the integrated graphics
Hmm, I’ll try my browser tomorrow, it’s usually GPU hungry enough
The laptop doesn’t have an exposed VGA port, thus - no
I’m assuming that’s a kernel parameter to put into boot.kernelParams?
modedb default video mode support — The Linux Kernel documentation for boot parameters about forcing videomode. I guess both VGA-1 and VGA-2 should be disabled, given that there was a numbering switch before and neither is usable… Probably goes to boot.kernelParams, yes (I haven’t used NixOS naming for years now)
If you have no outputs connected to the card, I guess debugging output support can be skipped!
Regarding the
// Put error here
part of my previous post, this is what happens when I echo OFF and then ON into /sys/kernel/debug/vgaswitcheroo/switch:
[ 1345.949397] VGA switcheroo: switched nouveau on
[ 1345.949537] nouveau 0000:01:00.0: fifo: INTR 00000001: 00000001
[ 1345.949589] ------------[ cut here ]------------
[ 1345.949592] WARNING: CPU: 5 PID: 9486 at drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c:201 nvkm_chan_insert+0x132/0x140 [nouveau]
[ 1345.950089] Modules linked in: snd_seq_dummy snd_hrtimer snd_seq snd_seq_device af_packet snd_hda_codec_realtek snd_hda_codec_generic snd_hda_scodec_component ath9k ath9k_common intel_rapl_msr nls_iso8859_1 ath9k_hw nls_cp437 vfat fat asus_nb_wmi iTCO_wdt asus_wmi intel_rapl_common ath intel_pmc_bxt ath3k platform_profile btusb x86_pkg_temp_thermal at24 watchdog mei_pxp mei_hdcp mac80211 sparse_keymap intel_powerclamp snd_hda_codec_hdmi btrtl coretemp btintel crct10dif_pclmul snd_hda_intel crc32_pclmul polyval_clmulni polyval_generic btbcm i915 nouveau snd_intel_dspcfg ghash_clmulni_intel r8169 btmtk snd_intel_sdw_acpi snd_hda_codec rapl cfg80211 bluetooth intel_cstate realtek mxm_wmi intel_uncore mdio_devres snd_hda_core of_mdio i2c_i801 psmouse snd_hwdep ecdh_generic i2c_smbus drm_gpuvm snd_pcm fixed_phy fwnode_mdio i2c_mux drm_exec gpu_sched rfkill drm_buddy libphy snd_timer ecc drm_ttm_helper snd libarc4 lpc_ich crc16 soundcore fan thermal ttm mousedev battery rtc_cmos drm_display_helper ac cec intel_gtt
[ 1345.950254] tiny_power_button i2c_algo_bit mei_me video asus_wireless mei wmi uas button evdev mac_hid serio_raw xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_tcpudp ip6t_rpfilter ipt_rpfilter xt_pkttype nft_compat x_tables nf_tables nfnetlink sch_fq_codel kvm_intel kvm loop uinput irqbypass fuse configfs dmi_sysfs dm_crypt cbc encrypted_keys trusted asn1_encoder tee sd_mod hid_generic ums_realtek usbhid hid usb_storage ahci libahci input_leds led_class libata atkbd libps2 vivaldi_fmap sha512_ssse3 sha256_ssse3 sha1_ssse3 aesni_intel gf128mul crypto_simd cryptd i8042 serio scsi_mod ehci_pci xhci_pci ehci_hcd scsi_common xhci_hcd btrfs blake2b_generic libcrc32c crc32c_generic crc32c_intel xor dm_mod raid6_pq efivarfs autofs4
[ 1345.950417] CPU: 5 UID: 0 PID: 9486 Comm: bash Not tainted 6.12.110 #1-NixOS
[ 1345.950427] Hardware name: ASUSTeK COMPUTER INC. K75VJ/K75VJ, BIOS 234 11/25/2014
[ 1345.950433] RIP: 0010:nvkm_chan_insert+0x132/0x140 [nouveau]
[ 1345.951042] Code: 14 24 4c 89 bb c8 00 00 00 4c 89 ad d0 00 00 00 48 89 95 c8 00 00 00 4d 89 7d 00 41 83 84 24 d0 00 00 00 01 e9 75 ff ff ff 90 <0f> 0b 90 eb 88 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90
[ 1345.951052] RSP: 0018:ffffcf0521587840 EFLAGS: 00010287
[ 1345.951061] RAX: ffff8a70c2c1f068 RBX: ffff8a70c2babe00 RCX: ffff8a70c2c1f000
[ 1345.951067] RDX: ffff8a72e239b840 RSI: ffffcf0509003000 RDI: ffff8a70c2bbd0f0
[ 1345.951074] RBP: ffff8a70c2c1f000 R08: 0000000000000002 R09: ffffcf052158791c
[ 1345.951080] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8a70c2bbd000
[ 1345.951085] R13: ffff8a70c2babf08 R14: 0000013962bcc371 R15: 0000000000000000
[ 1345.951093] FS: 000078f640650740(0000) GS:ffff8a73dfc80000(0000) knlGS:0000000000000000
[ 1345.951100] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1345.951107] CR2: 000064836f0ffb38 CR3: 000000021a8ec002 CR4: 00000000001726f0
[ 1345.951115] Call Trace:
[ 1345.951123] <TASK>
[ 1345.951128] ? ktime_get+0x3d/0xd0
[ 1345.951152] nvkm_uchan_init+0x3c/0x50 [nouveau]
[ 1345.951777] nvkm_object_init+0x42/0x120 [nouveau]
[ 1345.952288] nvkm_object_init+0x77/0x120 [nouveau]
[ 1345.952754] nvkm_object_init+0x77/0x120 [nouveau]
[ 1345.953245] nvkm_object_init+0x77/0x120 [nouveau]
[ 1345.953728] nouveau_do_resume+0x2e/0xc0 [nouveau]
[ 1345.954356] nouveau_pmops_resume+0x6c/0x90 [nouveau]
[ 1345.954952] nouveau_switcheroo_set_state.cold+0x28/0x6e [nouveau]
[ 1345.955556] vga_switchon.part.0+0x3a/0x50
[ 1345.955574] vga_switcheroo_debugfs_write+0x304/0x370
[ 1345.955587] full_proxy_write+0x59/0x90
[ 1345.955602] vfs_write+0xf4/0x470
[ 1345.955621] ksys_write+0x75/0xf0
[ 1345.955635] do_syscall_64+0xce/0x210
[ 1345.955659] ? filp_flush+0x50/0x60
[ 1345.955674] ? filp_close+0x25/0x40
[ 1345.955685] ? do_dup2+0xaa/0x150
[ 1345.955695] ? ksys_dup3+0x67/0xf0
[ 1345.955702] ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[ 1345.955716] ? syscall_exit_to_user_mode+0x38/0x1b0
[ 1345.955731] ? do_syscall_64+0xdb/0x210
[ 1345.955747] ? __x64_sys_fcntl+0xa8/0xf0
[ 1345.955761] ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[ 1345.955772] ? set_close_on_exec+0x33/0x80
[ 1345.955783] ? do_fcntl+0x429/0x830
[ 1345.955797] ? __x64_sys_fcntl+0xa8/0xf0
[ 1345.955808] ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[ 1345.955819] ? syscall_exit_to_user_mode+0x38/0x1b0
[ 1345.955833] ? do_syscall_64+0xdb/0x210
[ 1345.955846] ? do_wp_page+0x885/0xd30
[ 1345.955859] ? __pte_offset_map+0x1b/0x180
[ 1345.955869] ? __handle_mm_fault+0xaef/0x1000
[ 1345.955882] ? syscall_exit_to_user_mode+0x38/0x1b0
[ 1345.955897] ? __count_memcg_events+0x5d/0x100
[ 1345.955911] ? count_memcg_events.constprop.0+0x1a/0x30
[ 1345.955925] ? handle_mm_fault+0x1b8/0x2c0
[ 1345.955937] ? do_user_addr_fault+0x36e/0x640
[ 1345.955953] ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[ 1345.955964] ? irqentry_exit_to_user_mode+0x2d/0x1b0
[ 1345.955978] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 1345.955994] RIP: 0033:0x78f64049915e
[ 1345.956040] Code: 03 00 00 59 5e 48 83 f8 fc 74 39 c9 31 d2 31 c9 31 f6 31 ff 45 31 c0 45 31 c9 45 31 d2 45 31 db c3 0f 1f 00 48 8b 45 10 0f 05 <c9> 31 d2 31 c9 31 f6 31 ff 45 31 c0 45 31 c9 45 31 d2 45 31 db c3
[ 1345.956048] RSP: 002b:00007ffcf19b2850 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
[ 1345.956059] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000078f64049915e
[ 1345.956066] RDX: 0000000000000003 RSI: 000064836f1088d0 RDI: 0000000000000001
[ 1345.956072] RBP: 00007ffcf19b2860 R08: 0000000000000000 R09: 0000000000000000
[ 1345.956077] R10: 0000000000000000 R11: 0000000000000202 R12: 000078f6405fb5c0
[ 1345.956083] R13: 000064836f1088d0 R14: 0000000000000003 R15: 000064836f0faa80
[ 1345.956095] </TASK>
[ 1345.956100] ---[ end trace 0000000000000000 ]---
[ 1345.956229] nouveau 0000:01:00.0: fifo: INTR 00000001: 00000001
[ 1345.956287] nouveau 0000:01:00.0: disp: ERROR 1 [PUSHBUFFER_ERR] 02 [] chid 0 mthd 0000 data 00000400
[ 1345.956372] ------------[ cut here ]------------
[ 1345.956377] WARNING: CPU: 5 PID: 9486 at drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c:201 nvkm_chan_insert+0x132/0x140 [nouveau]
[ 1345.957015] Modules linked in: snd_seq_dummy snd_hrtimer snd_seq snd_seq_device af_packet snd_hda_codec_realtek snd_hda_codec_generic snd_hda_scodec_component ath9k ath9k_common intel_rapl_msr nls_iso8859_1 ath9k_hw nls_cp437 vfat fat asus_nb_wmi iTCO_wdt asus_wmi intel_rapl_common ath intel_pmc_bxt ath3k platform_profile btusb x86_pkg_temp_thermal at24 watchdog mei_pxp mei_hdcp mac80211 sparse_keymap intel_powerclamp snd_hda_codec_hdmi btrtl coretemp btintel crct10dif_pclmul snd_hda_intel crc32_pclmul polyval_clmulni polyval_generic btbcm i915 nouveau snd_intel_dspcfg ghash_clmulni_intel r8169 btmtk snd_intel_sdw_acpi snd_hda_codec rapl cfg80211 bluetooth intel_cstate realtek mxm_wmi intel_uncore mdio_devres snd_hda_core of_mdio i2c_i801 psmouse snd_hwdep ecdh_generic i2c_smbus drm_gpuvm snd_pcm fixed_phy fwnode_mdio i2c_mux drm_exec gpu_sched rfkill drm_buddy libphy snd_timer ecc drm_ttm_helper snd libarc4 lpc_ich crc16 soundcore fan thermal ttm mousedev battery rtc_cmos drm_display_helper ac cec intel_gtt
[ 1345.957264] tiny_power_button i2c_algo_bit mei_me video asus_wireless mei wmi uas button evdev mac_hid serio_raw xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_tcpudp ip6t_rpfilter ipt_rpfilter xt_pkttype nft_compat x_tables nf_tables nfnetlink sch_fq_codel kvm_intel kvm loop uinput irqbypass fuse configfs dmi_sysfs dm_crypt cbc encrypted_keys trusted asn1_encoder tee sd_mod hid_generic ums_realtek usbhid hid usb_storage ahci libahci input_leds led_class libata atkbd libps2 vivaldi_fmap sha512_ssse3 sha256_ssse3 sha1_ssse3 aesni_intel gf128mul crypto_simd cryptd i8042 serio scsi_mod ehci_pci xhci_pci ehci_hcd scsi_common xhci_hcd btrfs blake2b_generic libcrc32c crc32c_generic crc32c_intel xor dm_mod raid6_pq efivarfs autofs4
[ 1345.957457] CPU: 5 UID: 0 PID: 9486 Comm: bash Tainted: G W 6.12.110 #1-NixOS
[ 1345.957470] Tainted: [W]=WARN
[ 1345.957473] Hardware name: ASUSTeK COMPUTER INC. K75VJ/K75VJ, BIOS 234 11/25/2014
[ 1345.957478] RIP: 0010:nvkm_chan_insert+0x132/0x140 [nouveau]
[ 1345.958096] Code: 14 24 4c 89 bb c8 00 00 00 4c 89 ad d0 00 00 00 48 89 95 c8 00 00 00 4d 89 7d 00 41 83 84 24 d0 00 00 00 01 e9 75 ff ff ff 90 <0f> 0b 90 eb 88 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90
[ 1345.958105] RSP: 0018:ffffcf0521587840 EFLAGS: 00010287
[ 1345.958113] RAX: ffff8a70c2c1f468 RBX: ffff8a70c2bab800 RCX: ffff8a70c2c1f400
[ 1345.958119] RDX: ffff8a72e239b840 RSI: ffffcf0509003008 RDI: ffff8a70c2bbd0f0
[ 1345.958125] RBP: ffff8a70c2c1f400 R08: ffff8a70d05d8180 R09: ffff8a70d38011c0
[ 1345.958130] R10: ffff8a70c2babe00 R11: 0000000000000001 R12: ffff8a70c2bbd000
[ 1345.958135] R13: ffff8a70c2bab908 R14: 000001396322e818 R15: 0000000000000000
[ 1345.958141] FS: 000078f640650740(0000) GS:ffff8a73dfc80000(0000) knlGS:0000000000000000
[ 1345.958149] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1345.958155] CR2: 000064836f0ffb38 CR3: 000000021a8ec002 CR4: 00000000001726f0
[ 1345.958162] Call Trace:
[ 1345.958169] <TASK>
[ 1345.958172] ? ktime_get+0x3d/0xd0
[ 1345.958191] nvkm_uchan_init+0x3c/0x50 [nouveau]
[ 1345.958818] nvkm_object_init+0x42/0x120 [nouveau]
[ 1345.959315] nvkm_object_init+0x77/0x120 [nouveau]
[ 1345.959799] nvkm_object_init+0x77/0x120 [nouveau]
[ 1345.960296] nvkm_object_init+0x77/0x120 [nouveau]
[ 1345.960766] nouveau_do_resume+0x2e/0xc0 [nouveau]
[ 1345.961382] nouveau_pmops_resume+0x6c/0x90 [nouveau]
[ 1345.961983] nouveau_switcheroo_set_state.cold+0x28/0x6e [nouveau]
[ 1345.962610] vga_switchon.part.0+0x3a/0x50
[ 1345.962624] vga_switcheroo_debugfs_write+0x304/0x370
[ 1345.962639] full_proxy_write+0x59/0x90
[ 1345.962653] vfs_write+0xf4/0x470
[ 1345.962668] ksys_write+0x75/0xf0
[ 1345.962680] do_syscall_64+0xce/0x210
[ 1345.962697] ? filp_flush+0x50/0x60
[ 1345.962708] ? filp_close+0x25/0x40
[ 1345.962718] ? do_dup2+0xaa/0x150
[ 1345.962727] ? ksys_dup3+0x67/0xf0
[ 1345.962735] ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[ 1345.962746] ? syscall_exit_to_user_mode+0x38/0x1b0
[ 1345.962758] ? do_syscall_64+0xdb/0x210
[ 1345.962769] ? __x64_sys_fcntl+0xa8/0xf0
[ 1345.962781] ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[ 1345.962790] ? set_close_on_exec+0x33/0x80
[ 1345.962800] ? do_fcntl+0x429/0x830
[ 1345.962812] ? __x64_sys_fcntl+0xa8/0xf0
[ 1345.962822] ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[ 1345.962831] ? syscall_exit_to_user_mode+0x38/0x1b0
[ 1345.962843] ? do_syscall_64+0xdb/0x210
[ 1345.962854] ? do_wp_page+0x885/0xd30
[ 1345.962866] ? __pte_offset_map+0x1b/0x180
[ 1345.962878] ? __handle_mm_fault+0xaef/0x1000
[ 1345.962889] ? syscall_exit_to_user_mode+0x38/0x1b0
[ 1345.962903] ? __count_memcg_events+0x5d/0x100
[ 1345.962915] ? count_memcg_events.constprop.0+0x1a/0x30
[ 1345.962928] ? handle_mm_fault+0x1b8/0x2c0
[ 1345.962938] ? do_user_addr_fault+0x36e/0x640
[ 1345.962953] ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[ 1345.962964] ? irqentry_exit_to_user_mode+0x2d/0x1b0
[ 1345.962976] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 1345.962990] RIP: 0033:0x78f64049915e
[ 1345.963020] Code: 03 00 00 59 5e 48 83 f8 fc 74 39 c9 31 d2 31 c9 31 f6 31 ff 45 31 c0 45 31 c9 45 31 d2 45 31 db c3 0f 1f 00 48 8b 45 10 0f 05 <c9> 31 d2 31 c9 31 f6 31 ff 45 31 c0 45 31 c9 45 31 d2 45 31 db c3
[ 1345.963027] RSP: 002b:00007ffcf19b2850 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
[ 1345.963037] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000078f64049915e
[ 1345.963043] RDX: 0000000000000003 RSI: 000064836f1088d0 RDI: 0000000000000001
[ 1345.963048] RBP: 00007ffcf19b2860 R08: 0000000000000000 R09: 0000000000000000
[ 1345.963054] R10: 0000000000000000 R11: 0000000000000202 R12: 000078f6405fb5c0
[ 1345.963058] R13: 000064836f1088d0 R14: 0000000000000003 R15: 000064836f0faa80
[ 1345.963071] </TASK>
[ 1345.963076] ---[ end trace 0000000000000000 ]---
[ 1345.963115] snd_hda_intel 0000:01:00.1: Enabling via vga_switcheroo
[ 1346.057925] nouveau 0000:01:00.0: drm: [DRM/00000000:kmsOutp] [LOAD_DETECT data:00000154] load:07 (ret:7)
[ 1346.072200] nouveau 0000:01:00.0: drm: [DRM/00000000:kmsOutp] [LOAD_DETECT data:00000154] load:07 (ret:7)
So something is definitely wrong
I have never used switcheroo, and you don’t need it for outputs, so maybe just letting it idle to nothing would be good enough in practice.
Last report for today:
Disabling the VGA-1 output changed nothing behaviour wise, except the phantom display isn’t there anymore
I got it to work finally.
I guess it was working before already, but the way I was testing was flawed ![]()
Will post the working config soon, including the package for the missing Nvidia firmware
# config
let
nouveauFirmware = pkgs.callPackage ./nouveauFirmware.nix {};
in {
hardware.firmware = [ nouveauFirmware ];
boot.initrd.extraFirmwarePaths = [ "nouveau" ];
hardware.graphics.enable = true;
hardware.enableRedistributableFirmware = true; # unsure if related
}
# nouveauFirmware.nix
{
stdenv,
git,
bash,
python313,
xz,
gnutar,
findutils,
fetchurl,
emptyDirectory,
...
}:
stdenv.mkDerivation {
name = "nouveau-firmware";
version = "1.0.18";
buildInputs = [ git bash python313 xz gnutar findutils ];
src = emptyDirectory;
extractFirmware = fetchurl {
url = "https://raw.github.com/envytools/firmware/master/extract_firmware.py";
sha256 = "19wffv8v1nvdffpdpphsf1z94rcad623dxvc7bxmi3x7d5xv715n";
};
nvidia = fetchurl {
url = "http://us.download.nvidia.com/XFree86/Linux-x86/340.108/NVIDIA-Linux-x86-340.108.run";
sha256 = "1jkwa1phf0x4sgw8pvr9d6krmmr3wkgwyygrxhdazwyr2bbalci0";
};
buildPhase = ''
export TMPDIR="."
sh $nvidia --silent --extract-only --target NVIDIA-Linux-x86-340.108
python $extractFirmware
'';
installPhase = ''
mkdir -p $out/lib/firmware/nouveau
cp -d nv* vuc-* $out/lib/firmware/nouveau
'';
}