View previous topic :: View next topic |
Author |
Message |
Taigo Tux's lil' helper
Joined: 09 Nov 2022 Posts: 105 Location: the Netherlands
|
Posted: Fri Jan 20, 2023 1:51 pm Post subject: GPU not reconised after update |
|
|
My GPU in my laptop suddenly stopped working after an update (which also updated the kernel to 5.15.75). It still shows up in lspci as Code: | 01:00.0 VGA compatible controller: NVIDIA Corporation TU117M (rev a1) | But when i start most games it would tell me to upgrade my drivers which should be up to date by now.
It still seems to be using the Integreted Intel GPU just fine (shows as "00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
" in lspci) so i can run minecraft or games that don't need special features like vulkan. i already tried updating the drivers and rebuilding modules Code: | sudo emerge @module-rebuild |
i also tried reconfiguring grub with Code: | sudo grub-mkconfig -o /boot/grub/grub.cfg |
my gpu is a nvidia 1650 and my cpu is a intel core i5 10300h. |
|
Back to top |
|
|
xhakerek n00b
Joined: 27 Oct 2008 Posts: 54 Location: Korolówka
|
Posted: Fri Jan 20, 2023 2:52 pm Post subject: |
|
|
Output of the following should be useful:
Code: |
# emerge -pv nvidia-drivers
# dmesg | grep -i nvidia
# lsmod
# modinfo nvidia
# grep -i nvidia /var/log/Xorg.0.log
|
|
|
Back to top |
|
|
Taigo Tux's lil' helper
Joined: 09 Nov 2022 Posts: 105 Location: the Netherlands
|
Posted: Fri Jan 20, 2023 4:55 pm Post subject: |
|
|
emerge -pv nvidia-drivers:
Code: | These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] x11-drivers/nvidia-drivers-525.60.13:0/525::gentoo USE="X driver static-libs tools -dist-kernel -kernel-open -persistenced -wayland" ABI_X86="32 (64)" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB |
for dmesg i put it in http://0x0.st/ohtx.txt because of the length
lsmod:
Code: | Module Size Used by
nvidia_uvm 1167360 0
xt_MASQUERADE 16384 9
iptable_nat 16384 1
fuse 143360 4
nvidia_drm 61440 1
nvidia_modeset 1105920 1 nvidia_drm
nvidia 40251392 2 nvidia_uvm,nvidia_modeset
iwlmvm 405504 0
x86_pkg_temp_thermal 20480 0
joydev 24576 0
iwlwifi 421888 1 iwlmvm
efivarfs 16384 1 |
modinfo nvidia:
Code: | filename: /lib/modules/5.15.75-gentoo/video/nvidia.ko
firmware: nvidia/515.65.01/gsp.bin
alias: char-major-195-*
version: 515.65.01
supported: external
license: NVIDIA
srcversion: D7CD1C7F35DE6D9DE6154B3
alias: pci:v000010DEd*sv*sd*bc06sc80i00*
alias: pci:v000010DEd*sv*sd*bc03sc02i00*
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
depends:
retpoline: Y
name: nvidia
vermagic: 5.15.75-gentoo SMP mod_unload
parm: NvSwitchRegDwords:NvSwitch regkey (charp)
parm: NvSwitchBlacklist:NvSwitchBlacklist=uuid[,uuid...] (charp)
parm: NVreg_ResmanDebugLevel:int
parm: NVreg_RmLogonRC:int
parm: NVreg_ModifyDeviceFiles:int
parm: NVreg_DeviceFileUID:int
parm: NVreg_DeviceFileGID:int
parm: NVreg_DeviceFileMode:int
parm: NVreg_InitializeSystemMemoryAllocations:int
parm: NVreg_UsePageAttributeTable:int
parm: NVreg_EnablePCIeGen3:int
parm: NVreg_EnableMSI:int
parm: NVreg_TCEBypassMode:int
parm: NVreg_EnableStreamMemOPs:int
parm: NVreg_RestrictProfilingToAdminUsers:int
parm: NVreg_PreserveVideoMemoryAllocations:int
parm: NVreg_EnableS0ixPowerManagement:int
parm: NVreg_S0ixPowerManagementVideoMemoryThreshold:int
parm: NVreg_DynamicPowerManagement:int
parm: NVreg_DynamicPowerManagementVideoMemoryThreshold:int
parm: NVreg_EnableGpuFirmware:int
parm: NVreg_EnableGpuFirmwareLogs:int
parm: NVreg_OpenRmEnableUnsupportedGpus:int
parm: NVreg_EnableUserNUMAManagement:int
parm: NVreg_MemoryPoolSize:int
parm: NVreg_KMallocHeapMaxSize:int
parm: NVreg_VMallocHeapMaxSize:int
parm: NVreg_IgnoreMMIOCheck:int
parm: NVreg_NvLinkDisable:int
parm: NVreg_EnablePCIERelaxedOrderingMode:int
parm: NVreg_RegisterPCIDriver:int
parm: NVreg_EnableDbgBreakpoint:int
parm: NVreg_RegistryDwords:charp
parm: NVreg_RegistryDwordsPerDevice:charp
parm: NVreg_RmMsg:charp
parm: NVreg_GpuBlacklist:charp
parm: NVreg_TemporaryFilePath:charp
parm: NVreg_ExcludedGpus:charp
parm: NVreg_DmaRemapPeerMmio:int
parm: rm_firmware_active:charp |
grep -i nvidia /var/log/Xorg.0.log:
Code: | [ 8.290] (II) Applying OutputClass "nvidia" to /dev/dri/card1
[ 8.290] loading driver: nvidia
[ 8.290] (==) Matched nvidia as autoconfigured driver 1
[ 8.291] (II) LoadModule: "nvidia"
[ 8.291] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[ 8.293] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 8.296] (II) NVIDIA dlloader X Driver 525.60.13 Wed Nov 30 06:47:21 UTC 2022
[ 8.296] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 8.297] (II) NOUVEAU driver for NVIDIA chipset families :
[ 8.320] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[ 8.320] (EE) NVIDIA: system's kernel log for additional error messages and
[ 8.320] (EE) NVIDIA: consult the NVIDIA README for details.
[ 8.827] (II) config/udev: Adding input device HDA NVidia HDMI (/dev/input/event8) |
|
|
Back to top |
|
|
Taigo Tux's lil' helper
Joined: 09 Nov 2022 Posts: 105 Location: the Netherlands
|
Posted: Fri Jan 20, 2023 5:03 pm Post subject: |
|
|
turns out i can upgrade my kernel again which i tought i already did, maybe after the kernel is installed it works |
|
Back to top |
|
|
xhakerek n00b
Joined: 27 Oct 2008 Posts: 54 Location: Korolówka
|
Posted: Fri Jan 20, 2023 5:19 pm Post subject: |
|
|
Driver version looks OK for the device.
The following error message points to something being wrong with the kernel module named nvidia that comes from nvidia-drivers package:
Code: |
[ 8.320] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[ 8.320] (EE) NVIDIA: system's kernel log for additional error messages and
[ 8.320] (EE) NVIDIA: consult the NVIDIA README for details.
|
Usually it's a driver mismatch. nvidia-drivers package is built against the kernel from /usr/src/linux symlink and yields 2 parts, kernel and X level driver. The following version mismatch between dmesg(what's loaded in the kernel) and emerge(what version X uses) seems to confim:
Code: |
[ebuild R ] x11-drivers/nvidia-drivers-525.60.13:0/525::gentoo USE="X driver static-libs tools -dist-kernel -kernel-open -persistenced -wayland" ABI_X86="32 (64)" 0 KiB
|
Code: |
[ 3.608935] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 515.65.01 Wed Jul 20 14:00:58 UTC 2022
|
You need to make sure /usr/src/linux points to the kernel version you intend to use, then reinstall nvidia-drivers and rebuild initramfs after that. It will ensure kernel/X driver parts match.
Last edited by xhakerek on Fri Jan 20, 2023 5:20 pm; edited 2 times in total |
|
Back to top |
|
|
Mistwolf Apprentice
Joined: 07 Mar 2007 Posts: 189 Location: Edmonton, AB
|
Posted: Fri Jan 20, 2023 5:19 pm Post subject: |
|
|
Did you do a modules rebuild after upgrading the kernel? From your Xorg log, probably not.
Code: | emerge --ask @module-rebuild |
|
|
Back to top |
|
|
xhakerek n00b
Joined: 27 Oct 2008 Posts: 54 Location: Korolówka
|
Posted: Fri Jan 20, 2023 5:23 pm Post subject: |
|
|
Mistwolf wrote: | Did you do a modules rebuild after upgrading the kernel? From your Xorg log, probably not.
Code: | emerge --ask @module-rebuild |
|
He's probably running older kernel version than what's currently in /usr/src/linux. uname -a should confirm |
|
Back to top |
|
|
Taigo Tux's lil' helper
Joined: 09 Nov 2022 Posts: 105 Location: the Netherlands
|
Posted: Fri Jan 20, 2023 11:52 pm Post subject: |
|
|
After upgrading the kernel it indeed started working. however after starting a game in kde plasma it starts but freezes the system after about less then a minute, this didn't happen in dwm with little testing I did. |
|
Back to top |
|
|
|