Low screen resolution after switching to Wayland

After recent update of plasma, the screen resolution decreased to 640x480 ad I can not set anything higher. My display is LG Flatron L206WU with resolution of 1680x1080. More, the sddm uses this resolution for login screen but after login Wayland swithes to 640x480 :-(. How to fix this?

Legacy Nvidia card? (Meaning, are you using the G04 or G05 drivers?)

Yes. It is G04. But I have another computer with the same MB, and GPU and it works as expected. I noticed one difference: the problematic machine does not switch to higher text mode during boot.

AFAIK Plasma 6.8 dropped support for the legacy Nvidia protocols, look for similar threads in the last few days (sorry, I cannot check atm).
Maybe the other computer uses the Nouveau driver? That still works, but lacks some acceleration features.
KDE+Nvidia users might be able to add more details.

Please show us the results from
inxi -Gaz
and
kscreen-doctor -o

~> inxi -Gaz
Graphics:
Device-1: NVIDIA GF119 [NVS 315] vendor: Hewlett-Packard
driver: nvidia v: 390.157 alternate: nouveau,nvidia_drm
non-free: series: 390.xx+ status: legacy (EOL~2022-11-22)
last: release: 390.157 kernel: 6.0 xorg: 1.21 arch: Fermi
code: GF1xx process: 40/28nm built: 2010-2016 pcie: gen: 1
speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:107c
class-ID: 0300
Device-2: Generic GENERAL - UVC
driver: snd-usb-audio,usb-storage,uvcvideo type: USB rev: 1.1
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 4-3:2
chip-ID: 1902:3232 class-ID: 0806
Display: wayland server: X.org v: 1.21.1.24 with: Xwayland
v: 24.1.13 compositor: kwin_wayland driver: X: loaded: nvidia
unloaded: fbdev,modesetting,nouveau,vesa failed: nv
gpu: vesa-framebuffer display-ID: 1
Monitor-1: Unknown-1 res: mode: 640x480 hz: 60
scale: 100% (1) dpi: 96 size: 169x127mm (6.65x5")
diag: 211mm (8.32") modes: 640x480
API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 egl: 1.4
drv: nvidia surfaceless: drv: swrast wayland: drv: swrast x11:
drv: swrast inactive: gbm
API: OpenGL v: 4.6 vendor: mesa v: 26.2.5 glx-v: 1.4
direct-render: yes renderer: llvmpipe (LLVM 23.1.3 128 bits)
device-ID: ffffffff:ffffffff memory: 7.57 GiB unified: yes
API: Vulkan v: 1.4.363 layers: 2 device: 0 type: cpu
name: llvmpipe (LLVM 23.1.3 128 bits) driver: mesa llvmpipe
v: 26.2.5 (LLVM 23.1.3) device-ID: 10005:0000 surfaces: N/A
Info: Tools: api: eglinfo, glxinfo, vulkaninfo
de: kscreen-console,kscreen-doctor
gpu: nvidia-settings,nvidia-smi wl: wayland-info
x11: xdriinfo, xdpyinfo, xprop, xrandr

~> kscreen-doctor -o
Output: 1 Unknown-1 9727f8bb-27c0-4113-a1e0-91d749d00309
enabled
connected
priority 0
Unknown
replication source:0
Modes: 1:640x480@60.00*!
Custom modes: None
Geometry: 0,0 640x480
Scale: 1
Rotation: 1
Overscan: 0
Vrr: incapable
RgbRange: unknown
HDR: incapable
Wide Color Gamut: incapable
ICC profile: none
Color profile source: sRGB
Color power preference: prefer efficiency and performance
Brightness control: supported, set to 100% and dimming to 100%
Color resolution: unknown
Allow EDR: unsupported
Sharpness control: unsupported
Automatic brightness: unsupported
Auto Rotate Policy: incapable
Adaptive backlight modulation: unsupported

/sys/class/drm/card0-Unknown-1/modes contains only one line
640x480

Found in https://community.kde.org/Plasma/Wayland/Nvidia:

Here’s how to run with the proprietary Nvidia driver on Wayland:
Prerequisites

To use the Plasma Wayland session:

Use an up-to-date version of Plasma (explicit sync support was implemented in 6.1)
Ensure a reasonably new NVIDIA driver:
    minimum supported by KWin is 495.44;
    XWayland apps are usable with 555 and newer.

So G04 (390.xx) and G05 (470.xx) are out of luck.

Time to upgrade the graphics card.

Or use the nouveau driver, works fine here on Wayland with Hyprland.

I did try the 390 series and saw the same thing “card-unknown”.

Make sure libvulkan_nouveau and Mesa-dri-nouveau are installed after nvidia driver removal.

1 Like

After switching to nouveau, the resolution is good but the screen started to blink each time I move the mouse and sometimes goes black with only the cursor visible. When I press a keyboard the screen reappears, but blinks again when I move the mouse. This happens on both my computers with this graphic adapter.

@wkazubski perhaps @deano_ferrari can offer some more advice here, maybe a KWIN environment variable?

Can you please post the output from inxi -GSaz again, likewise add your user to the video and render group (logout/login required).

A known issue…check the workaround mentioned in this KDE post…

Upstream bug report. (Also describes workaround.)

The workaround works for me.

1 Like

As I hoped it might. Thanks for reporting back.

I found a solution to the initial issue with the Nvidia driver. For some reason, GRUB is unable to detect the resolution of the monitor connected to my graphics adapter. If /etc/default/grub contains the setting :

GRUB_GFXMODE=“auto”

it defaults to a resolution of 640x480. I changed it to:

GRUB_GFXMODE=“1680x1050”

recreated grub files and got the full resolution.

1 Like

I wonder how the resolution is supposed to be detected?

I have i915 HD 530 with eDP, and with default GRUB it looks big (not native); manually-setting 1920x1080 in bootloader settings has GRUB show native-res/tiny no problem, but in both cases there’s no visible modeswitch (it’s like default is doing active 1080p with downscaled res, but not sure the logistics why vs just doing 1080p native)