Trine 2

Trine 2

View Stats:
Dk May 10, 2017 @ 12:00pm
fullscreen mode turns my monitor off (linux)
Hi,

I have no problem to run the game in windowed mode, but in fullscreen mode (1920x1080, the native resolution of my screen), the display goes black. My monitor seems to be trying to find a signal, goes on and off repeatedly without success. The only thing I can do is reboot my computer.

I'm using Ubuntu 17.04 with an AMD RX 480 and latest Mesa drivers (17.2). I don't have problems with other games.

Is there a workaround for me to try? or is there a chance for the developers to fix the bug?
< >
Showing 1-6 of 6 comments
Dk May 10, 2017 @ 12:04pm 
Also, after the reboot, my desktop display is glitchy every time I move the mouse around. I can fix that by changing the resolution in the display settings to some random one, then going back to 1920x1080. It seems that the game does not perform the right commands to go in fullscreen.
Last edited by Dk; May 10, 2017 @ 12:04pm
MarjutFB  [developer] May 11, 2017 @ 12:56am 
The issue sounds weird, but maybe you can just play the game in a window?

I'm suggesting as it sounds like a good workaround. You can even make the window look like fullscreen by editing the game's options.txt file and making the some of the lines in it to match the ones in the code box below. This file is located at the ~/.frozenbyte/Trine2/ directory.

setOption(renderingModule, "Windowed", true) setOption(renderingModule, "MaximizeWindow", true) setOption(renderingModule, "WindowTitleBar", false)

Unfortunately, some desktop environments show their tool bars while playing in the borderless windowed mode. This can be a bit annoying, but should be possible to fix from the theme's settings or by downloading an extension.

I hope this helped, but let me know if you'd need more help. We unfortunately aren't planning to add more patches, but we could still look if we can find another workaround. Cheers!
Last edited by MarjutFB; May 11, 2017 @ 12:58am
Dk May 11, 2017 @ 2:11pm 
Thank you for your answer.

Unfortunately, in window mode, the window is not fully covering the desktop. I still have the top bar, and the launch bar on the left. The options you gave me helped me a bit, but the window still does not move to position (0,0) to cover the desktop. The bottom and right parts are off-screen.

I wrote a small C++ program that sends a "_NET_WM_STATE_FULLSCREEN" event to a X11 window. It works for most windows, but not for Trine2 window :(

EllaFB  [developer] May 12, 2017 @ 4:42am 
Is it possible to hide the launch bar from the theme's settings? You might need an extension to do this. When you say top bar, do you mean the game's title bar? That one you can hide from the options.txt
setOption(renderingModule, "WindowTitleBar", false)

You could also use a smaller resolution to fit the game to your screen if you don't mind these bars are visible. You can change the resolution manually from the options.txt (note that in this case you can't maximize the window).

Unfortunately we can't promise a fix for the full screen mode as Trine 2 runs best with proprietary drivers and may not function correctly with open source drivers like Mesa.
Last edited by EllaFB; May 12, 2017 @ 4:44am
Dk May 14, 2017 @ 8:22am 
I was talking about the top bar of my shell (Unity in my case, which contains several icons and indicators).

I played to Trine 2 several years ago on my old computer, with Ubuntu and Mesa for the software side, and a Radeon HD 4870. I don't remember having problems with fullscreen then, so something changed meanwhile.

Anyway, I tweaked my C++ program a bit more and I could force Trine2 window to show as a maximized borderless window, so it's a good news.

I'm sad to read you do not plan to patch this game, but maybe adding "maximized borderless window" as a third option along "fullscreen" and "windowed" in the launcher won't be that time consuming?

If anyone has the same need than me, I've published my work on GitHub: https://github.com/hadrien-psydk/toggle_fullscreen

This will only work with X11, I have no idea how the game behaves with Wayland.
EllaFB  [developer] May 15, 2017 @ 1:52am 
It's possible that there has been some changes to the drivers since the last time you played the game. I can forward your request of adding the "maximized borderless window" to launcher, but unfortunately I can't make any promises.

We're glad to hear that you got the game to work. Thank you also for sharing your solution! :)
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: May 10, 2017 @ 12:00pm
Posts: 6