Bug 488251 - KScreen fails to set the resolution or refresh rate of my laptop on both Wayland and X11
Summary: KScreen fails to set the resolution or refresh rate of my laptop on both Wayl...
Status: RESOLVED UPSTREAM
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 6.0.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-09 11:02 UTC by aronkvh
Modified: 2024-07-24 11:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
output of drm_info (309.29 KB, text/plain)
2024-07-05 10:10 UTC, aronkvh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aronkvh 2024-06-09 11:02:59 UTC
My laptop (sadly) seems to have only 165Hz or 40Hz display options. 
In the display settings there is an option to select 60Hz, however after applying, exiting the page and loading the page again, the settings are reset and nothing changes. When selecting 40Hz it changes as expected.

Selecting a display resolution doesn't have any effects, and the value resets when reloading the page.
Scaling changes as expected.

system info:
Operating System: openSUSE Tumbleweed 20240607
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.9.3-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: Mesa Intel® Graphics
Manufacturer: SLIMBOOK
Product Name: HERO-RPL-RTX
Comment 1 Nate Graham 2024-06-10 17:47:05 UTC
When you change these settings and click apply, are they in fact applied as expected? Or does nothing happen?
Comment 2 aronkvh 2024-06-10 17:50:10 UTC
(In reply to Nate Graham from comment #1)
> When you change these settings and click apply, are they in fact applied as
> expected? Or does nothing happen?

The combobox changes but otherwise nothing happens
Comment 3 Nate Graham 2024-06-10 17:53:06 UTC
Thanks. Can you use kscreen-doctor to change the settings? Or does that fail too?
Comment 4 aronkvh 2024-06-10 17:58:07 UTC
(In reply to Nate Graham from comment #3)
> Thanks. Can you use kscreen-doctor to change the settings? Or does that fail
> too?

~> kscreen-doctor output.eDP-1.mode.8
kscreen.doctor: Taddaaa! Found mode "8" "1920x1080@60"
kscreen.doctor: Output 1 set mode "8"
kscreen.doctor: setop exec returned KScreen::Config( 
KScreen::Output(1, "eDP-1", connected enabled priority 1, pos: QPoint(0,0), res: QSize(2560, 1440), modeId: "8", scale: 1.65, clone: no, rotation: KScreen::Output::None, followPreferredMode: false) )
Comment 5 Nate Graham 2024-06-10 18:07:39 UTC
So even kscreen-doctor does not work, thanks. Does any of this work in the Plasma X11 session? If so, then the issue may be in KWin.
Comment 6 aronkvh 2024-06-10 18:22:28 UTC
(In reply to Nate Graham from comment #5)
> So even kscreen-doctor does not work, thanks. Does any of this work in the
> Plasma X11 session? If so, then the issue may be in KWin.

No, the resolution also doesn't change on X11
Comment 7 Nate Graham 2024-06-10 18:33:48 UTC
Thanks for checking. In that case I'm out of ideas. Maybe kscreen's backend is broken pretty badly for your hardware, or maybe the hardware or its firmware/drivers aren't behaving properly.
Comment 8 aronkvh 2024-06-10 20:04:37 UTC
(In reply to Nate Graham from comment #7)
> Thanks for checking. In that case I'm out of ideas. Maybe kscreen's backend
> is broken pretty badly for your hardware, or maybe the hardware or its
> firmware/drivers aren't behaving properly.

It's a Linux-by-default device so that would be really unfortunate lol.
I'll try with another distro just to check
Comment 9 Zamundaaa 2024-07-04 15:15:37 UTC
Please attach the output of drm_info, most likely the 60Hz mode is not advertised by the display but generated by Xorg and KWin and then rejected by the driver for some reason.
Does only the specific 60Hz mode not work, or can you still change the resolution to a different one?
Comment 10 aronkvh 2024-07-05 10:10:11 UTC
Created attachment 171405 [details]
output of drm_info
Comment 11 Bug Janitor Service 2024-07-20 03:46:26 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 12 Zamundaaa 2024-07-24 11:28:44 UTC
> │       │   ├───2560x1440@165.00 preferred driver nhsync nvsync 
> │       │   └───2560x1440@40.00 preferred driver nhsync nvsync 

It's as I suspected, all other modes are just generated by KWin and Xorg. You can report the modes not working to https://gitlab.freedesktop.org/drm/i915/kernel/-/issues, though I'm not sure they'll really consider it a bug, as they're not guaranteed to work anyways