You are not logged in.

#1 2021-01-14 20:10:51

Gorbit99
Member
Registered: 2020-11-07
Posts: 7

Need to restart X to get gpu rendering

Every time I start my computer it starts it off with software rendering using mesa, and only after quitting X and logging back in do I get the nvidia driver to be the default.

I'm using lightdm as my display manager with i3 wm. I'm using the latest nvidia driver and it should be set as the primary gpu in the xconfig.

Offline

#2 2021-01-14 20:21:10

loqs
Member
Registered: 2014-03-06
Posts: 19,025

Re: Need to restart X to get gpu rendering

Please post the Xorg.log for X starting on boot,  the X config you are using and the output of dmesg.  Are you using early module loading to ensure the nvidia modules are loaded before X starts?

Offline

#3 2021-01-15 08:57:46

Gorbit99
Member
Registered: 2020-11-07
Posts: 7

Re: Need to restart X to get gpu rendering

Xorg log:
https://pastebin.com/KnAVsk41

I assume this config:
https://pastebin.com/5MQw2kSx

And dmesg just returns "read kernel buffer failed: Operation not permitted"

I don't think I'm using early module loading, at least I haven't set up anything to do that,

Offline

#4 2021-01-15 09:06:46

Gorbit99
Member
Registered: 2020-11-07
Posts: 7

Re: Need to restart X to get gpu rendering

I've set up a file for the nvidia modules in /etc/modules-load.d and it seems to have solved the issue.

Offline

#5 2021-01-16 18:38:48

Gorbit99
Member
Registered: 2020-11-07
Posts: 7

Re: Need to restart X to get gpu rendering

Nope, it did not

Offline

#6 2021-01-16 20:12:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,351

Re: Need to restart X to get gpu rendering

You need to set them up in your mkinitcpio.conf for them to be considered for proper early loading: https://wiki.archlinux.org/index.php/NV … de_setting

Offline

#7 2021-01-17 14:57:46

Gorbit99
Member
Registered: 2020-11-07
Posts: 7

Re: Need to restart X to get gpu rendering

Tried to add it to the default linux.preset like so:

# mkinitcpio preset file for the 'linux' package

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux"

PRESETS=('default' 'fallback')

MODULES=('nvidia', 'nvidia_modeset', 'nvidia_uvm', 'nvidia_drm')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-linux.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-linux-fallback.img"
fallback_options="-S autodetect"

and ran mkinitcpio, which ran without errors, but still, it starts off with mesa as the default.

Offline

#8 2021-01-17 15:05:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,351

Re: Need to restart X to get gpu rendering

space is the entry seperator rather than commas and you should double check with lsinitcpio on whether the modules actually landed in the initramfs

Offline

#9 2021-01-17 15:15:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,624

Re: Need to restart X to get gpu rendering

Also please undo the changes to the linux.preset and edit mkinitcpio.conf instead.
https://wiki.archlinux.org/index.php/Mkinitcpio#MODULES
https://wiki.archlinux.org/index.php/Ke … _KMS_start

Online

Board footer

Powered by FluxBB