-
-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux Fullscreen fails with "Could not find a suitable graphics mode" #582
Comments
Oh sorry: tested on x64 Ubuntu 14.10. Not sure what details exactly are relevant. |
The error is |
Yep! Happy to do any debugging that might help. |
So the exact problem is just the crappy way glutin handle this. When you specify dimensions It would be better to make the user choose from all possible fullscreen modes. |
Aha -- so if there was a way to tell piston_window to not try to set dimensions, this would work? Alternatively, what's the correct way to query glutin for available full-screen modes? Alternatively, alternatively, it sounds like fixing this shouldn't be too bad (just have glutin ignore the input dimensions?) |
The default (and recommended) way to handle this on wayland (and this is what is currently done in the wayland backend), is to create a buffer with the requested size, and let the wayland server and video driver scale it to the appropriate resolution if needed. Isn't there some similar behaviour possible on X11 ? Still it could indeed be good to provide an interface to query the supported output dimensions of a given monitor. |
I tried using |
Ok, I found the main issue. There's a "workaround" for this issue: AltF02/x11-rs#19. as pointed out in that issue, the hskew is supposed to be there, it's just not in any online documentation, for some reason (yay XServer...). The actual Another issue is that glutin doesn't seem to be XRandR aware, as it is trying to find a mode that is 5760 wide on my machine, which is the total width of my triple-screen setup. |
Changing vsyncstart back to vdisplay (b4346f3) also fixed this for me. I'm using Arch x64 with libx11 1.6.3-1 |
For some reason (I needed to change my layout with XRandR to get back my two displays again.) |
But that is not entirely true. Because the mouse is still on just one monitor and if I move the mouse over to that screen, the focus is on the (now invisible) stuff that was on the second screen. |
This is no longer relevant after rust-windowing/winit#270 and various other improvements. |
This shows up when using
piston_window
's default window provider,pistoncore-glutin_window
, using glutin 0.3.5 (latest release as of now).A simple reproduction is just adding
.fullscreen(true)
to line 13 of this example: https://github.com/PistonDevelopers/piston-examples/blob/master/src/paint.rs(only the window initialization code matters, I link this example only to simplify getting the dependencies and everything set up)
The text was updated successfully, but these errors were encountered: