You are not logged in.

#26 2022-02-02 00:14:46

The_Tommer
Member
Registered: 2022-01-29
Posts: 22

Re: [SOLVED] Awful refresh rate with nvidia card

Sorry, I don't understand what you mean. Output as in monitor?

Offline

#27 2022-02-02 02:05:35

kcrmson
Member
From: 20 min from the Cobra Kai dojo
Registered: 2018-06-01
Posts: 12

Re: [SOLVED] Awful refresh rate with nvidia card

The_Tommer wrote:
seth wrote:

MODULES=(nvidia, nvidia_drm, nvidia_uvm, nvidia_modeset)

No comma, the entries are blank separated.

==> ERROR: Unable to write to /boot/initramfs-linux.img

You do understand that this is a problem and you'll have to run mkinitcpio as root?
Also make sure that if you've a separate boot partition, that is mounted before running mkinitcpio.

Edit: the journal has no errors reg. the kernel module, so early KMS should™ do.

ok progress has been made! ran mkinitcpio -P as root, and it ran correctly, I rebooted, and now screen resolution is correct, and compositor seems to be working well.

I'm a little late in this but I noticed you never confirmed if you did a grub-mkconfig so the new kernel parameter actually takes hold (none of the your posts mentioned using the other option given earlier of using the conf file in /etc/modprobe.d. Given there's still some issues with the scrolling, are you sure nvidia-drm is actually running with early KMS?  I'm having my doubts, humor me please and run your sudo grub-mkconfg -o /boot/grub/grub.cfg then reboot and check once more?  This little detail is just bothering me and I have a feeling...

Offline

#28 2022-02-02 02:47:20

The_Tommer
Member
Registered: 2022-01-29
Posts: 22

Re: [SOLVED] Awful refresh rate with nvidia card

kcrmson wrote:
The_Tommer wrote:
seth wrote:

No comma, the entries are blank separated.


You do understand that this is a problem and you'll have to run mkinitcpio as root?
Also make sure that if you've a separate boot partition, that is mounted before running mkinitcpio.

Edit: the journal has no errors reg. the kernel module, so early KMS should™ do.

ok progress has been made! ran mkinitcpio -P as root, and it ran correctly, I rebooted, and now screen resolution is correct, and compositor seems to be working well.

I'm a little late in this but I noticed you never confirmed if you did a grub-mkconfig so the new kernel parameter actually takes hold (none of the your posts mentioned using the other option given earlier of using the conf file in /etc/modprobe.d. Given there's still some issues with the scrolling, are you sure nvidia-drm is actually running with early KMS?  I'm having my doubts, humor me please and run your sudo grub-mkconfg -o /boot/grub/grub.cfg then reboot and check once more?  This little detail is just bothering me and I have a feeling...

I think you identified the problem. when I run grub-mkconfig, it tells me that the parameter that I set is unknown.

[edit] parameter I set is nvidia-drm.modeset=1

here is the grub.cfg

# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
nvidia-drm.modeset=1

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y

# Probing for other operating systems is disabled for security reasons. Read
# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this
# functionality install os-prober and uncomment to detect and include other
# operating systems.
#GRUB_DISABLE_OS_PROBER=false

I am struggling to find what I should put in there for grub to understand it. Documentation is not very clear.

Last edited by The_Tommer (2022-02-02 02:48:18)

Offline

#29 2022-02-02 03:15:35

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,676

Re: [SOLVED] Awful refresh rate with nvidia card

Did you try this yet?

GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1"

Offline

#30 2022-02-02 04:00:26

The_Tommer
Member
Registered: 2022-01-29
Posts: 22

Re: [SOLVED] Awful refresh rate with nvidia card

skunktrader wrote:

Did you try this yet?

GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1"

After doing this and rebooting, my computer is now stuck on a blank screen with a flashing white line. Even after changing it back it is still doing the same thing. I can use Ctrl+alt+F3 to login to terminal, but startx will not work. It says

 (EE) Fatal server error: (EE) no screens found

Xinit:giving up
Xinit: connection refused
Xinit: server error

Offline

#31 2022-02-02 07:18:31

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

Re: [SOLVED] Awful refresh rate with nvidia card

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia-drm.modeset=1"
GRUB_CMDLINE_LINUX=""

Edit: if you keep having issues it might be beneficial to remove "quiet splash" so you can see what's going on.

Post an updated xorg log (though I don't see how the parameter would have left you w/ a non-starting X11 server) and yes: w/ "output" I meant "monitor".

cat ~/.local/share/xorg/Xorg.0.log | curl -F 'f:1=<-' ix.io

You can only sync to one and if that't the wrong™ one you'll experience tearing (because you're aligning to the wrong output) and stutter (if you're also syncing to the wrong output)

grep -A8 GL_SYNC /usr/share/doc/nvidia/README

Last edited by seth (2022-02-02 07:19:11)

Online

#32 2022-02-02 17:10:54

kcrmson
Member
From: 20 min from the Cobra Kai dojo
Registered: 2018-06-01
Posts: 12

Re: [SOLVED] Awful refresh rate with nvidia card

The_Tommer wrote:
kcrmson wrote:
The_Tommer wrote:

ok progress has been made! ran mkinitcpio -P as root, and it ran correctly, I rebooted, and now screen resolution is correct, and compositor seems to be working well.

I'm a little late in this but I noticed you never confirmed if you did a grub-mkconfig so the new kernel parameter actually takes hold (none of the your posts mentioned using the other option given earlier of using the conf file in /etc/modprobe.d. Given there's still some issues with the scrolling, are you sure nvidia-drm is actually running with early KMS?  I'm having my doubts, humor me please and run your sudo grub-mkconfg -o /boot/grub/grub.cfg then reboot and check once more?  This little detail is just bothering me and I have a feeling...

I think you identified the problem. when I run grub-mkconfig, it tells me that the parameter that I set is unknown.

[edit] parameter I set is nvidia-drm.modeset=1

here is the grub.cfg

# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
nvidia-drm.modeset=1

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y

# Probing for other operating systems is disabled for security reasons. Read
# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this
# functionality install os-prober and uncomment to detect and include other
# operating systems.
#GRUB_DISABLE_OS_PROBER=false

I am struggling to find what I should put in there for grub to understand it. Documentation is not very clear.


If the emergency shell won't work for letting you do the following then just boot the Arch Install USB, mount your partitions (in the right order, root THEN /boot), arch-chroot into it:

The nvidia-drm.modeset=1 should be in the first (and should be only) GRUB_CMD_LINE line you have, right after quiet and splash in the GRUB_CMD_LINE, not in a line on its own (it's an additional kernel parameter along with the quiet and splash you already have above it, put it after those but still within the quotes". Delete the extra GRUB_CMD_LINE as well. Save the file then do the step we missed, grub-mkconfig -o /boot/grub/grub.cfg
Exit the chroot, hit sync and enter just for funsies,  unmount everything in /mnt (umount -a /mnt) then reboot and you should be booting to your normal Arch WITH nvidia-drm modesetting working and no more fussy boot problems.

The big take away at the moment is that anytime you change anything in your grub the changes won't take effect unless you do the grub-makconfig line. Otherwise you're still booting off the old config, which in this case was broken twice in a row.

Last edited by kcrmson (2022-02-02 17:12:01)

Offline

Board footer

Powered by FluxBB