You are not logged in.
HI Guys..
I need some help please. I'm completely new to nvidia & I have just installed a "new to me" graphics card in my system so that I could play TF2 on steam. With the nvidia driver installed I can boot to the desktop just fine. The problem is that whenever I launch TF2 it's super laggy & pretty much unplayable. If I remove the card & use only intel, the game runs much better but is still pretty unplayable. I've checked online & this card should be able to play TF2 without any problems. I'm a total noob whenever it comes to troubleshooting & fixing problems, so any help is appreciated. Here is my system specs & many thanks in advanced for any help....
TOWER: Optiplex 7010
OS: Arch Linux
DESKTOP: Xfce
KERNEL: 5.12.15
CPU: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
GRAPHICS: NVIDIA Corporation GK107 [GeForce GTX 650] (2GB)
RAM: 8GB
Last edited by furycd001 (2021-07-18 20:29:58)
- - - -
Offline
Please post a complete system journal (sudo journalctl -b) and your xorg log ( https://wiki.archlinux.org/title/Xorg#General )
You can use the tip in the first link below to upload the output.
Offline
Please post a complete system journal (sudo journalctl -b) and your xorg log ( https://wiki.archlinux.org/title/Xorg#General )
You can use the tip in the first link below to upload the output.
Here you go....
Last edited by furycd001 (2021-07-14 12:33:54)
- - - -
Offline
Start by removing /etc/X11/xorg.conf (it's just useless cruft)
Your problem is
[ 4.510] (WW) Warning, couldn't open module glxserver_nvidia
[ 4.510] (EE) NVIDIA: Failed to load module "glxserver_nvidia" (module does not exist, 0)
because the ModulePath doesn't get extended. See https://wiki.archlinux.org/title/NVIDIA … de_setting and add the kernel parameter as well as the modules to the initramfs.
Enjoy your game.
Unrelated sidenote: your crng is late
Jul 14 11:38:30 reviziis kernel: random: crng init done
=> https://wiki.archlinux.org/title/Haveged
Last edited by seth (2021-07-14 12:38:43)
Offline
Wow thanks for the super quick reply & for the help I've added "nvidia-drm.modeset=1" as a kernel parameter & also installed haveged. Going to reboot shortly, so will close this thread once I check TF2....
- - - -
Offline
Don't forget the mkinitcpio module additions, early KMS might be relevant here.
Offline
Sorry but not quite sure I understand what you mean, but this is my /etc/X11/xorg.conf.d/20-nvidia.conf
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TearFree" "true"
EndSection
Do I need to run "sudo mkinitcpio -p linux" :?
Last edited by furycd001 (2021-07-14 13:03:40)
- - - -
Offline
For basic functionality that should suffice, if you want to ensure it's loaded at the earliest possible occasion, or are noticing startup issues (such as the nvidia kernel module being loaded after the display manager) you can add nvidia, nvidia_modeset, nvidia_uvm and nvidia_drm to the initramfs according to Mkinitcpio#MODULES.
Also that configlet is rather nonsensical (when using an nvidia GPU)
Offline
Sorry I copied the wrong one. That was my intel one. This is what I have in my nvidia one....
Section "Device"
Identifier "Default nvidia Device"
Driver "nvidia"
Option "NoLogo" "true"
Option "CoolBits" "24"
Option "TripleBuffer" "True"
Option "ForceFullCompositionPipeline" "true"
EndSection
Should I just remove it if it's nonsensical :?
- - - -
Offline
You can keep that one since it makes meaningful changes
Offline
Ok Thank you for all of the help. Tis much appreciated....
- - - -
Offline
I just rebooted and got stuck at a blinking cursor in the top left of the screen. I had to login on tty2 & run "nvidia-xconfig" in order to be able to reboot back to the desktop. I also just launched TF2 & performance is just like before. Supper laggy & unplayable....
- - - -
Offline
And did you add the kernel modules to the initramfs?
Offline
I added "nvidia-drm.modeset=1" to "/etc/modprobe.d/modprobe.conf" & then ran "sudo mkinitcpio -p linux". Sorry but I have a hard time understanding things. Maybe I've done it all wrong....
- - - -
Offline
wiki wrote:For basic functionality that should suffice, if you want to ensure it's loaded at the earliest possible occasion, or are noticing startup issues (such as the nvidia kernel module being loaded after the display manager) you can add nvidia, nvidia_modeset, nvidia_uvm and nvidia_drm to the initramfs according to Mkinitcpio#MODULES.
The primary configuration file for mkinitcpio is /etc/mkinitcpio.conf … The MODULES array is used to specify modules to load before anything else is done.
This is the file that controls the behavior of mkinitcpio and adding the modules there will make them load early (enough so the GPU is ready when X11 starts)
Once done, make sure to remove the nvidia-generated config.
If everything is in place, Xorg will "see" the GPU and apply the proper configuration (notably extending the module path and that will then load the proper glx library)
Offline
OK thanks So at the bottom of that file I can just add "nvidia-drm.modeset=1" :?
- - - -
Offline
No.
Read the wiki and try to understand it - otherwise archlinux is not for you and will only be a pain in your ass.
"nvidia-drm.modeset=1" is a kernel parameter for your grub config, your additional job is to add the listed modules to the MODULE array in mkinitcpio (and then rebuild the initramfs)
Offline
Sorry.. Think I'm starting to understand it a little now. I had to add the modules like so "MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)" to "/etc/mkinitcpio.conf" & then run sudo mkinitcpio -p linux. Is this correct or am I still not understanding :?
- - - -
Offline
Yes.
n.b. that there maybe already is an (uncommented) MUDULES array.
Offline
There was two module lines. One was empty & the other is commented. Added my stuff to the empty one. Thanks so much for being patient with my idiocy. I'm going to reboot again & see if everything now works....
- - - -
Offline
Rebooted again to a blinking cursor. Here is a new sudo journalctl -b....
- - - -
Offline
Jul 14 15:28:13 reviziis kernel: Command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=c14c5b7a-9001-4fb3-a384-240408b78254 rw loglevel=3 quiet
Doesn't include "nvidia-drm.modeset=1"
Jul 14 15:28:13 reviziis kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module 465.31 Thu May 13 22:24:36 UTC 2021
Jul 14 15:28:13 reviziis kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 465.31 Thu May 13 22:14:23 UTC 2021
Jul 14 15:28:13 reviziis kernel: Linux agpgart interface v0.103
Jul 14 15:28:13 reviziis kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
Jul 14 15:28:13 reviziis kernel: [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0
Module *seems* to load early, though.
lsinitcpio /boot/initramfs-linux.img | grep nvidia
?
Also, what's the latest xorg log (for the "blinking cursor" case)?
Offline
lsinitcpio /boot/initramfs-linux.img | grep nvidia shows the following & here is the latest Xorg.0.log....
usr/lib/firmware/nvidia/
usr/lib/firmware/nvidia/465.31/
usr/lib/firmware/nvidia/465.31/gsp.bin
usr/lib/modprobe.d/nvidia.conf
usr/lib/modules/5.12.15-arch1-1/kernel/nvidia-drm.ko
usr/lib/modules/5.12.15-arch1-1/kernel/nvidia-modeset.ko
usr/lib/modules/5.12.15-arch1-1/kernel/nvidia-uvm.ko
usr/lib/modules/5.12.15-arch1-1/kernel/nvidia.ko
- - - -
Offline
The log is from a running server w/ a static config in /etc/X11/xorg.conf
But:
[ 4.745] (II) Loading sub module "glxserver_nvidia"
[ 4.745] (II) LoadModule: "glxserver_nvidia"
[ 4.745] (II) Loading /usr/lib/nvidia/xorg/libglxserver_nvidia.so
[ 4.802] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
"glxinfo -B" should tell you that you're using the nvidia chip and so should your game …
Offline
Offline