tobykurien / rpi_lcars

Star Trek LCARS interface for Raspberry Pi using Pygame
MIT License
654 stars 146 forks source link

Fullscreen #39

Open craigtone opened 3 years ago

craigtone commented 3 years ago

When I launch it within Raspbian it launches in a window. How can I make it launch fullscreen?

Sorry ... total noob here but I did get it installed and running ... baby steps!

JDat commented 3 years ago

please check app/config.py

craigtone commented 3 years ago

I don't see anything in there about placing the app fullscreen? Only resolution which is fine, it just opens in a window which is the problem.

JDat commented 3 years ago

I don't have RPi near hand. Did you try without debug enabled? When last time many moths ago I tested on RPi, everything work in full screen. Remember this is more like learning tool than production software (at least for me). Feel free to learn and experiment with rpi_lcars.

tobykurien commented 3 years ago

You can try to uncomment the pygame.FULLSCREEN parameter in this line:

https://github.com/tobykurien/rpi_lcars/blob/master/app/ui/ui.py#L16

craigtone commented 3 years ago

I did unedit that comment and it still open in a window. All that did was change the content inside of the window.

tobykurien commented 3 years ago

Yea my experience has been that to run fullscreen, your desktop needs to run the same resolution as configured in config.py, i.e. 800x480 by default - remember this was designed to run on the official Rpi touch screen.

craigtone commented 3 years ago

I am using the Rpi 7" touchscreen. However, when I go to the Display tab in Raspbian Config, it shows "Default 720x480". There is no option for 800x480. I tried editing the config.txt file based on some Google searches but they do not address the xwindow system. Does anyone have any idea how to get the Raspbian GUI to allow 800x480 resolution?

spudooli commented 3 years ago

I think I set line 13 of ui/ui.py to be self.screenSurface = pygame.display.set_mode(resolution,pygame.NOFRAME) #, pygame.FULLSCREEN)

And I have RESOLUTION = (800, 480) in the config section of lcars.py

From memory that was all I changed to go fullscreen

craigtone commented 3 years ago

Exactly what I have too. I think my prob is that the display is 800x480 but the resolution in Raspbian GUI is not and I cannot figure out how to change it there.

spudooli commented 3 years ago

I just checked and my Raspbian GUI resolution is set to Default 720x480 and it still works fullscreen

topcats commented 3 years ago

I have no issues running fullscreen with this parameter set on the 7" screen, (slightly different res)

I have also added the fullscreen option into the config, so can be turned on/off for dev work etc