Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Fullscreen display modes on linux machines.  RSS feed

 
Steven Arthur
Greenhorn
Posts: 12
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been using a GraphicsDevice object to obtain a list of display modes available for fullscreen mode, and when using my Windows 10 machine, with its Geforce card I discover 35 different modes with 32 bit depths and refresh rates over 50. However, when I query the display modes for my linux machines I get very interesting, yet sadly disappointing results.

On my laptop running Ubuntu and a Geforce 8600m GT, I only get 7 modes, and on my Raspberry Pi 3 running Raspbian I get only a single display mode. However, what I find most curious is that the modes obtained have bit depths of -1, and refresh rates of 0. I'm wondering if fullscreen modes on a linux system are not possible, or whether there are other options to pursue? Could it be an issue with graphics drivers?

It would be nice to hear other people's experiences regarding fullscreen mode using Java. Cheers!
 
K. Tsang
Bartender
Posts: 3624
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you check out the tutorial regarding the full screen API? here
 
Campbell Ritchie
Sheriff
Posts: 53750
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know much about that; my Monitor Preferences program only shows 5 different resolutions and 60Hz refresh rate. (Ubuntu14.04/Mate). I ran a couple of the apps from the tutorial KT quoted, but couldn't understand the output. One of them made the screen flash from blue to red and vice versa, so it probably tests screen refreshment.
 
Steven Arthur
Greenhorn
Posts: 12
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for pulling up your chairs and joining the game. ^_^

Aye, 'K, that I did. First time I was blindly following tutorials by a YouTuber known as "The new Boston", and strangely enough I was able to get fullscreen working back then with older versions of Ubuntu and Raspbian, but it appears that was with blind luck as that code just set up a displayMode object, without checking to see if it matched a mode from the gathered list. Gotta love it, now I'm actually taking the time to do things properly and actually read the instruction manual for myself, it kinda goes pear-shaped! But fortunately I can easily code the fall-back to windowed mode, which is at least graceful for the user.

Thats an interesting point you make there, Campbell, as my monitor displays an "adjusting..." message when trying out some of the different display modes on my Windows 10 machine. I'll have a peek into the possibility of testing for refreshment, as a value of 0 seems a bit odd.

Cheers.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!