You are not logged in.

#1 2022-08-26 17:59:17

SIntricateY
Member
Registered: 2022-07-30
Posts: 17

[SOLVED] Invalid resolution after installing nvidia drivers on kde.

Recently re-installed Arch with Kde-plasma, then I tried to install the nvidia drivers and reboot the computer, and upon doing so my monitor gave an invalid resolution error.
I cannot figure out why this is happening and I could not fix it. I tried creating a ~/.xinitrc file and appending this line. But no dice.

xrandr --output `xrandr | grep " connected"|cut -f1 -d" "` --mode 1920x1080  

I even tried to run it by logging in blind and running the line through Konsole, but that didn't work either, presumably because the loading was not done, or maybe I mispelled Konsole.
so I am pretty much unable to use my pc, but I can tty to use the terminal without a display. Any help?

Last edited by SIntricateY (2022-08-27 04:34:27)

Offline

#2 2022-08-26 18:47:29

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

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

but I can tty to use the terminal without a display

So you're not even getting usable output on the console? It's not limited to X11?

You can probably boot the multi-user.target (2nd link below) at least w/ "nomodeset" as kernel parameter.
We'd then need to see an xorg log, https://wiki.archlinux.org/title/Xorg#General and a system journal from a boot WITHOUT "nomodeset", eg. "sudo journalctl -b -1" for the previous one.
You can upload files and shell output into a pastebin service (1st link below)

If you cannot boot even w/ "nomodeset", maybe you can ssh into the system?

Offline

#3 2022-08-26 19:08:21

SIntricateY
Member
Registered: 2022-07-30
Posts: 17

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

Maybe that tty with no display was confusing. No, I can see the console and do things in it. But that's pretty much it. So I can get the logs. It is a bit finicky with the timing tho, so maybe I can use the arch installation usb and arch-chroot in then save the logs somewhere that way.

Offline

#4 2022-08-26 19:28:31

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

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

You don't even have to chroot, https://wiki.archlinux.org/title/System … al_to_view

It is a bit finicky with the timing tho

?

Offline

#5 2022-08-26 20:15:44

SIntricateY
Member
Registered: 2022-07-30
Posts: 17

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

http://0x0.st/o9ns.txt <- Xorg.0.log
http://0x0.st/o9nr.txt <- journal output

Also finicky because it's a small window to press alt f2 during start up before it just goes into 4k which my monitor cannot handle.

Offline

#6 2022-08-26 20:51:33

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

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

 48.776] (--) NVIDIA(GPU-0): KOA TV_MONITOR (DFP-1): connected
[    48.779] (II) NVIDIA(0): Virtual screen size determined to be 2288 x 1430

Do you use some sort of adapter?
The output doesn't show up a lot on google but seems to be 1360x768 ?
Do you have a link to some spec of your model?

Try to add /etc/X11/xorg.conf.d/10-screen.conf

Section "Screen"
    Identifier     "Screen0"
    Option         "metamodes" "HDMI-0: 1366x768_60 +0+0"
EndSection

Also finicky because it's a small window to press alt f2 during start up before it just goes into 4k which my monitor cannot handle.

You cannot switch the VT afterwards (and gain an output)?

Offline

#7 2022-08-26 21:21:32

SIntricateY
Member
Registered: 2022-07-30
Posts: 17

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

My display is not particularly well known, weird brand. It has a 1920x1080 display, connected to my gpu with an HDMI cable.
Tried creating the file, still the same result it seems, not that I can make out a difference between blue screen saver screens. Went back to the live boot environment and it didn't change the resolution on the most recent boot, it is still 2288 x 1430. I am starting to suspect Nvidia has something that overrides changes like this. Also I don't if this is relevant right now. But I forgot to mention that I am using wayland kde.

Offline

#8 2022-08-26 21:37:52

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

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

The xorg log would be irrelevant if you were using wayland (and so would be the config file)
The journal you posted starts late in the boot, does SDDM still work (because that runs on X11 for now) and things only start to fail when you're trying to start KDE/plasma?

There's an enormous amount of processes crashing and eg.

Aug 26 19:05:45 siy kded5[608]: qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.

Start by enabling drm (maybe also early), wayland will not likely work w/o it.
https://wiki.archlinux.org/title/NVIDIA … de_setting

Once that's enabled, you should also find sth. like

cat /sys/class/drm/card0-HDMI-0/edid | edid-decode

https://aur.archlinux.org/packages/edid-decode-git

Offline

#9 2022-08-26 21:42:43

SIntricateY
Member
Registered: 2022-07-30
Posts: 17

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

How may I verify if sddm is working? Right now as soon as it tries to render anything, it is already unviewable.

Offline

#10 2022-08-26 21:58:57

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

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

Aug 26 19:05:36 siy systemd-logind[440]: New session 2 of user siy.
…
Aug 26 19:05:44 siy kwin_wayland[536]: kwin_wayland_drm: No suitable DRM devices have been found

I suppose you've configured some autologin?

seth wrote:

Start by enabling drm (maybe also early), wayland will not likely work w/o it.
https://wiki.archlinux.org/title/NVIDIA … de_setting

I guess this isn't about any resolution issues at all.

Last edited by seth (2022-08-26 21:59:13)

Offline

#11 2022-08-26 22:06:48

SIntricateY
Member
Registered: 2022-07-30
Posts: 17

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

I've been trying to log in blind and maybe execute something from the Konsole. Managed the log in part but not much else. And yea right now I just need to change the resolution.

Offline

#12 2022-08-26 22:26:22

SIntricateY
Member
Registered: 2022-07-30
Posts: 17

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

seth wrote:

The xorg log would be irrelevant if you were using wayland (and so would be the config file)
The journal you posted starts late in the boot, does SDDM still work (because that runs on X11 for now) and things only start to fail when you're trying to start KDE/plasma?

speaking of which, can I simply change to X11? from the console? Maybe then it will run the xinitrc on login and set the resolution correctly.

Offline

#13 2022-08-26 23:24:58

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

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

If you cannot see the SDDM greeter, that won't help you.
Enable drm.

Offline

#14 2022-08-26 23:47:24

SIntricateY
Member
Registered: 2022-07-30
Posts: 17

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

enabled it, nothing seems to have changed.
I checked out the Xorg logs once more before that, however. I found the following:

no valid modes for "HDMI-0:1366x768_60+0+0"; removing.

falling back to the default mode "nvidia-auto-select"

Offline

#15 2022-08-27 00:31:51

SIntricateY
Member
Registered: 2022-07-30
Posts: 17

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

I did some more digging and figured kscreen could also be messing things up and not allowing my xrandr script to run. But I don't know how to disable it from the console.

Offline

#16 2022-08-27 01:39:20

SIntricateY
Member
Registered: 2022-07-30
Posts: 17

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

Massive progress!
I switched to nouveau to facilitate disabling kscreens, it was painful, but it went through. Then I tried the nvidia drivers again, keep in mind that I had the .xinitrc with the xrandr command AND I updated the 10-screen.conf to

HDMI-0: 1920x1080+0+0

and this time xorg accepted them no problem.
Went into the logging screen and logged into my wayland session... except, it put me back in the logging screen after going through the exact same procedure as it did on boot... Switching to X11 fixes the issue but I am not satisfied with that.

What do you think, should I mark this as SOLVED and open another issue?

Offline

#17 2022-08-27 06:10:22

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

Re: [SOLVED] Invalid resolution after installing nvidia drivers on kde.

it put me back in the logging screen after going through the exact same procedure as it did on boot...

Do you have an updated journal for that?

and this time xorg accepted them no problem.

1366x768 was speculating from the single (chinese) google hit I had for the ouptut - apparently it's FullHD, so no surprise there.

Offline

Board footer

Powered by FluxBB