dr460nf1r3 / dr460nixed

Dr460nixed NixOS 🐉❄️
https://nixed.dr460nf1r3.org
GNU Affero General Public License v3.0
50 stars 4 forks source link

Install failure with nvidia prime? #45

Closed Kamek437 closed 11 months ago

Kamek437 commented 11 months ago

I was following the guide here https://nix.garudalinux.org/subsystem/quick-start and I get an error I think is related to my laptops nvidia card? Here's the output. inxi at bottom.

garuda-nix-subsystem
--> Launching updater 🍵
--> Mounting Garuda Nix Subsystem subvolumes
--> Configuring Garuda Nix Subsystem
jq: error: prime/0 is not defined at <top-level>, line 1:
.v2.host.hardware.nvidia=prime
jq: 1 compile error

garuda-inxi:

System:
Kernel: 6.6.3-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc available: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=e82b10fb-4d5c-4ae1-9f4d-ffd5ae94c0ae rw rootflags=subvol=@
quiet resume=UUID=5c0e6349-566d-4c54-aed2-ba7c93530215 loglevel=3
nvidia_drm.modeset=1 modeset=1 fbdev=1 mitigations=off splash ibt=off
Desktop: KDE Plasma v: 5.27.9 tk: Qt v: 5.15.11 wm: kwin_x11 vt: 2 dm:
1: GDM v: 45.0.1 note: stopped 2: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: ASUSTeK product: X550VX v: 1.0
serial: <superuser required>
Mobo: ASUSTeK model: X550VX v: 1.0 serial: <superuser required>
UEFI: American Megatrends v: X550VX.305 date: 04/17/2019
Battery:
ID-1: BAT0 charge: 34.5 Wh (95.8%) condition: 36.0/45.0 Wh (79.9%)
volts: 15.0 min: 15.0 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
status: not charging cycles: 20
Device-1: hidpp_battery_0 model: Logitech Marathon Mouse/Performance Plus
M705 serial: <filter> charge: 55% (should be ignored) rechargeable: yes
status: discharging
CPU:
Info: model: Intel Core i7-6700HQ bits: 64 type: MT MCP arch: Skylake-S
gen: core 6 level: v3 note: check built: 2015 process: Intel 14nm family: 6
model-id: 0x5E (94) stepping: 3 microcode: 0xF0
Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
L3: 6 MiB desc: 1x6 MiB
Speed (MHz): avg: 800 high: 805 min/max: 800/3500 scaling:
driver: intel_pstate governor: powersave cores: 1: 800 2: 800 3: 798 4: 805
5: 800 6: 800 7: 800 8: 800 bogomips: 41599
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: Intel HD Graphics 530 vendor: ASUSTeK driver: i915 v: kernel
arch: Gen-9 process: Intel 14n built: 2015-16 ports: active: HDMI-A-1,eDP-1
empty: DP-1 bus-ID: 00:02.0 chip-ID: 8086:191b class-ID: 0300
Device-2: NVIDIA GM107M [GeForce GTX 950M] vendor: ASUSTeK driver: nvidia
v: 545.29.06 alternate: nouveau,nvidia_drm non-free: 545.xx+ status: current
(as of 2023-10; EOL~2026-12-xx) arch: Maxwell code: GMxxx
process: TSMC 28nm built: 2014-2019 pcie: gen: 1 speed: 2.5 GT/s lanes: 8
link-max: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
chip-ID: 10de:139a class-ID: 0302
Device-3: Realtek USB2.0 VGA UVC WebCam driver: uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-4:2 chip-ID: 0bda:57de
class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org v: 21.1.9 with: Xwayland v: 23.2.2
compositor: kwin_x11 driver: X: loaded: modesetting,nvidia unloaded: nouveau
alternate: fbdev,intel,nv,vesa dri: iris gpu: i915 display-ID: :0
screens: 1
Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1013x285mm (39.88x11.22")
s-diag: 1052mm (41.43")
Monitor-1: HDMI-A-1 mapped: HDMI-1 pos: left model: Samsung S24D590
serial: <filter> built: 2014 res: 1920x1080 hz: 60 dpi: 94 gamma: 1.2
size: 521x293mm (20.51x11.54") diag: 598mm (23.5") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
Monitor-2: eDP-1 pos: primary,right model: ChiMei InnoLux 0x15c4
built: 2013 res: 1920x1080 hz: 60 dpi: 142 gamma: 1.2
size: 344x193mm (13.54x7.6") diag: 394mm (15.5") ratio: 16:9
modes: 1920x1080
API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
drv: nvidia device: 2 drv: iris device: 3 drv: swrast gbm: drv: nvidia
surfaceless: drv: nvidia x11: drv: iris inactive: wayland,device-1
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 23.3.0-arch1.1
glx-v: 1.4 direct-render: yes renderer: Mesa Intel HD Graphics 530 (SKL GT2)
device-ID: 8086:191b memory: 7.47 GiB unified: yes
API: Vulkan v: 1.3.269 layers: 14 device: 0 type: integrated-gpu
name: Intel HD Graphics 530 (SKL GT2) driver: mesa intel v: 23.3.0-arch1.1
device-ID: 8086:191b surfaces: xcb,xlib device: 1 type: discrete-gpu
name: NVIDIA GeForce GTX 950M driver: nvidia v: 545.29.06
device-ID: 10de:139a surfaces: xcb,xlib device: 2 type: cpu name: llvmpipe
(LLVM 16.0.6 256 bits) driver: mesa llvmpipe v: 23.3.0-arch1.1 (LLVM
16.0.6) device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel alternate: snd_soc_avs bus-ID: 00:1f.3
chip-ID: 8086:a170 class-ID: 0403
Device-2: NVIDIA GM107 High Definition Audio [GeForce 940MX]
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 8
link-max: lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0fbc class-ID: 0403
API: ALSA v: k6.6.3-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
Server-2: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8821AE 802.11ac PCIe Wireless Network Adapter
vendor: AzureWave driver: rtl8821ae v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: d000 bus-ID: 02:00.0 chip-ID: 10ec:8821 class-ID: 0280
IF: wlp2s0 state: down mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK driver: r8168 v: 8.052.01-NAPI modules: r8169 pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: c000 bus-ID: 03:00.1 chip-ID: 10ec:8168
class-ID: 0200
IF: enp3s0f1 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
Device-1: IMC Networks Bluetooth Radio driver: btusb v: 0.8 type: USB
rev: 2.1 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-9:4 chip-ID: 13d3:3414
class-ID: e001 serial: <filter>
Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: <filter> bt-v: 4.0 lmp-v: 6
status: discoverable: no pairing: no
Drives:
Local Storage: total: 931.51 GiB used: 75.47 GiB (8.1%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: SSD size: 931.51 GiB
block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s tech: SSD
serial: <filter> fw-rev: 1010 scheme: GPT
Partition:
ID-1: / raw-size: 922.42 GiB size: 922.42 GiB (100.00%)
used: 75.47 GiB (8.2%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 576 KiB (0.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 922.42 GiB size: 922.42 GiB (100.00%)
used: 75.47 GiB (8.2%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-4: /var/log raw-size: 922.42 GiB size: 922.42 GiB (100.00%)
used: 75.47 GiB (8.2%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-5: /var/tmp raw-size: 922.42 GiB size: 922.42 GiB (100.00%)
used: 75.47 GiB (8.2%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 7.65 GiB used: 2.38 GiB (31.1%)
priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 8
dev: /dev/zram0
ID-2: swap-2 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/sda3 maj-min: 8:3
Sensors:
System Temperatures: cpu: 52.0 C pch: 51.0 C mobo: N/A
Fan Speeds (rpm): cpu: 2900
Info:
Processes: 305 Uptime: 1h 8m wakeups: 0 Memory: total: 8 GiB
available: 7.65 GiB used: 3.26 GiB (42.7%) Init: systemd v: 254
default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6
Packages: pm: nix-default pkgs: 0 pm: nix-sys pkgs: 0 pm: nix-usr pkgs: 0
pm: pacman pkgs: 2819 libs: 635 tools: octopi,pamac,paru pm: flatpak pkgs: 0
Shell: fish v: 3.6.1 running-in: yakuake inxi: 3.3.31
Garuda (2.6.19-2):
System install date:     2023-12-02
Last full system update: 2023-12-03 ↻
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut nvidia-dkms
Windows dual boot:       No/Undetected
Failed units:
JustTNE commented 11 months ago

I think you're in the wrong repository, I fixed this just now in this commit: https://gitlab.com/garuda-linux/garuda-nix-subsystem/-/commit/6b243a88f63c43add55a3f099aa94d2b5c801682

dr460nf1r3 commented 11 months ago

Development of GNS indeed happens in the linked Gitlab repository :) this repo right here has makes use of the subsystem while adding quite opinionated defaults on top. Nevertheless, please let us know whether @JustTNE's commit solved it!

Kamek437 commented 11 months ago

Sorry, I didn't know where to ask about this. Figured it could have been my garuda setup, the gns, or dr460nixed itself so I posted where I figured most might see it. That did indeed fix it thanks guys.

Also hey Nico while I have you here do you think for a geforce 950m based i7 system from 2016 with 8gb ram that the tweaks in garuda still make sense? Or should I maybe be using normal kernel without zram zstd compression and such to have a smoother system? Just trying to squeeze all the performance out of this old thing. Disabled btrfs quota, and using cachyos x86_v3 repos seemed to help. What do you think? Also love the work you guys are doing, thank you for that.