Created attachment 140380 [details]
xrandr fails to set the mode correctly, but claims it is in 48 Hz mode
Telling xrandr to switch to 48 Hz mode with `xrandr --rate 48` makes the screen go black for a moment, and xrandr says it is now running at 48 Hz, but applications which wait for vsync still swap roughly 60 times per second.
The display is connected to eDP.
$ uname -r
$ uname -m
See the attachment for a log of me running xrandr to show the current state, then switching the output refresh rate, then running xrandr to show it again, and then running glxgears to show that it's still swapping at roughly 60 Hz.
Created attachment 140381 [details]
dmesg output from boot with the usual debug options
Should hopefully get rid of the 48hz mode from the list. One day we may add back the support for alternate refresh rates, but in the meantime not saying anything seems better than lying.
Reporter can you check branch Ville sent?
I can confirm that with Ville Syrjala's branch, the 48 Hz mode is no longer shown in xrandr, and can no longer be selected with xrandr --rate 48.
ok, Ville, what are next steps?
Just going through some bugs, I wonder if this is relevant:
Author: Jani Nikula <email@example.com>
Date: Wed May 16 11:01:10 2018 +0300
Revert "drm/i915/edp: Allow alternate fixed mode for eDP if available."
Nicolas, can you reproduce on v4.18 or later? (I see that you tested on v4.18-rc-something, but I mean the final release.)
I can still reproduce this on 4.18.14.
(In reply to Jani Nikula from comment #6)
> Just going through some bugs, I wonder if this is relevant:
> commit d93fa1b47b8fcd149b5091f18385304f402a8e15
> Author: Jani Nikula <firstname.lastname@example.org>
> Date: Wed May 16 11:01:10 2018 +0300
> Revert "drm/i915/edp: Allow alternate fixed mode for eDP if available."
> Nicolas, can you reproduce on v4.18 or later? (I see that you tested on
> v4.18-rc-something, but I mean the final release.)
(In reply to Nicolas Frattaroli from comment #7)
> I can still reproduce this on 4.18.14.
@Jani, how to proceed further?