Open WLCIssuesBot opened 7 years ago
Comment by Cloudef
Tuesday May 17, 2016 at 21:00 GMT
Yup wlc still just autochooses the resolution TTY has, so if it has 1680x1050 it will also be in graphical session. There is currently no modesetting in any form to change this outside of hacking wlc. (Maybe adding some env variable for now would be fair enough.)
If you know C and are interested in hacking, this is the relevant place https://github.com/Cloudef/wlc/blob/master/src/platform/backend/drm.c#L356-L378 where detection is done under drm backend.
Comment by janhieber
Wednesday May 18, 2016 at 07:11 GMT
Hmm, I would love to contribute but I currently write my bachelor thesis and can not spend much time. Maybe in summer.
I guess this is a display detection bug in intel drm. So the quick fix would be to force a different resoltuion. Maybe I can force an different EDID or something like that.
But I wonder how wlc sets the correct resolution of 1920x1200 when the display has the wrong resoltion.
Comment by Cloudef
Wednesday May 18, 2016 at 08:19 GMT
If you mean sway output configuration, the wlc's resolution and modeline are different. The resolution in wlc is basically opengl viewport size (which will look odd if differs from modeline, but can be useful for e.g. having fractional DPI at cost of slight blur). Wlc doesn't have modeline api yet, and thus just chooses something automatically at startup (preferring the current mode TTY has).
I'm wondering if choosing mode that is PREFERRED (hinted by driver) instead of current is better heuristics as well for now.
Comment by janhieber
Wednesday May 18, 2016 at 08:26 GMT
Yeah I know what you mean, it's strange and I don't get it. I'll try to force a different EDID, that should "solve" the problem.
Comment by adouzzy
Thursday Oct 27, 2016 at 22:30 GMT
@janhieber I am having the same problem. Did you have any luck solving that?
Comment by janhieber
Friday Oct 28, 2016 at 15:21 GMT
Nope, currently I continue using i3 on X11.
But ATM I don't use the 1920x1200 screen any more, last time i checked it worked fine as expected.
Lets hope that someone will implement this modeline API, I would do it but I have not much time and no idea if I have enough knowledge for this. Good luck!
Comment by adouzzy
Monday Oct 31, 2016 at 00:24 GMT
It's a shame. I tried the edid setting in the grub. It get the resolution right. However, the other laptop screen won't light up.
My i3 have some driver issue with my laptop. Switching between windows become slow after use. Now I am using awesome on X11. Miss stacking ~
Comment by linkmauve
Monday Feb 27, 2017 at 17:08 GMT
As reported here: https://github.com/SirCmpwn/sway/issues/1090 and as per https://github.com/Cloudef/wlc/issues/167#issuecomment-219957792 it would indeed be preferred to select the preferred (:D) mode during the initial mode selection.
Comment by spelufo
Monday Apr 17, 2017 at 16:17 GMT
I had a similar problem with an external VGA 1600x900 samsung monitor. I was able to fix it by forcing the EDID as described in https://wiki.archlinux.org/index.php/Kernel_mode_setting and https://www.kernel.org/doc/Documentation/EDID/HOWTO.txt , using the information from get-edid / parse-edid / xrandr --verbose.
Hi, I have a incorrect resolution in TTY/sway/wayland. My system:
On my dock are 2 screens:
When I boot to TTY, Screen 1 reports 1680x1050, Screen 2 is OK. I think because of this, wlc cant display correctly.
Normally, the incorrect resolution would not bother me because in X11 it works, but I want to use Sway with Wayland. Sway uses WLC, which seems not to be able to switch TTY resolution.
So I end up with 1920x1200 (from WLC/sway/wayland) downscaled to 1680x1050 (by drm I guess) and then from the Eizo monitor upscaled to 1920x1200. Looks terrible.
I tried forcing the resolution with video=DP-3:1920x1200 but then all screen (incl Notebook display) stay black. IMHO Intel driver is complete crap with DP MST.
Is there a way to get this working? It holds me from switching to sway.
When i boot up in display manager and switch to TTY, this are the available drm modes: /sys/class/drm/card.../modes output but: When i login to wm and set the correct resolutions (xrandr) in X11 and switch back to TTY, the 1920x1200 suddenly is available (but not set): http://pastebin.com/txCZ18v0
Is this a i915 bug since the resolution suddenly appears when using xrandr?
dmesg output