rpi_lcars icon indicating copy to clipboard operation
rpi_lcars copied to clipboard

Fullscreen

Open craigtone opened this issue 4 years ago • 11 comments

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!

craigtone avatar Jan 27 '21 01:01 craigtone

please check app/config.py

JDat avatar Jan 28 '21 04:01 JDat

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.

craigtone avatar Jan 28 '21 14:01 craigtone

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.

JDat avatar Jan 28 '21 17:01 JDat

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

tobykurien avatar Feb 02 '21 07:02 tobykurien

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

craigtone avatar Feb 02 '21 13:02 craigtone

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.

tobykurien avatar Feb 03 '21 06:02 tobykurien

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?

craigtone avatar Feb 08 '21 22:02 craigtone

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

spudooli avatar Feb 19 '21 00:02 spudooli

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.

craigtone avatar Feb 20 '21 14:02 craigtone

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

spudooli avatar Feb 21 '21 04:02 spudooli

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

topcats avatar Feb 22 '21 18:02 topcats