[GH-ISSUE #39] Option to "hardcode" display resolution with cmdline.txt and config.txt #37

Closed
opened 2026-03-03 11:13:35 +03:00 by kerem · 5 comments
Owner

Originally created by @andiohn on GitHub (Oct 3, 2024).
Original GitHub issue: https://github.com/debloper/xiosk/issues/39

I found that it's not smart to run at 4k on a display, so I just hard code this to 1080 with 32 bit depth. Perhaps an enhancement in the interface would be a check box to choose a resolution to hard code. If the check box is checked off, then show a drop down with the options. When we apply the options, change the cmdline.txt and/or config.txt to the option selected.

That way, even if the display doesn't come back up, they can just try what they like and if they don't need 32 bit depth, then they can choose that instead.

I could force the resolution but I couldn't figure out how to force the bit depth too, so I had to go back to the auto setting. :/

Originally created by @andiohn on GitHub (Oct 3, 2024). Original GitHub issue: https://github.com/debloper/xiosk/issues/39 I found that it's not smart to run at 4k on a display, so I just hard code this to 1080 with 32 bit depth. Perhaps an enhancement in the interface would be a check box to choose a resolution to hard code. If the check box is checked off, then show a drop down with the options. When we apply the options, change the cmdline.txt and/or config.txt to the option selected. That way, even if the display doesn't come back up, they can just try what they like and if they don't need 32 bit depth, then they can choose that instead. I could force the resolution but I couldn't figure out how to force the bit depth too, so I had to go back to the auto setting. :/
kerem 2026-03-03 11:13:35 +03:00
Author
Owner

@andiohn commented on GitHub (Oct 4, 2024):

AH! I found it. Wayfire.ini settings can set a resolution.

https://github.com/raspberrypi/documentation/blob/develop/documentation/asciidoc/computers/configuration/display-resolution.adoc

<!-- gh-comment-id:2394470850 --> @andiohn commented on GitHub (Oct 4, 2024): AH! I found it. Wayfire.ini settings can set a resolution. https://github.com/raspberrypi/documentation/blob/develop/documentation/asciidoc/computers/configuration/display-resolution.adoc
Author
Owner

@andiohn commented on GitHub (Oct 4, 2024):

Turns out that most of what I'm talking about can be configured via the wayfire.ini! Like power on button and other things.

<!-- gh-comment-id:2394473810 --> @andiohn commented on GitHub (Oct 4, 2024): Turns out that most of what I'm talking about can be configured via the wayfire.ini! Like power on button and other things.
Author
Owner

@andiohn commented on GitHub (Oct 4, 2024):

Ya, that worked great. I wonder if we could set the overlay partition to read only and still edit the wayfire.ini. Or if we could have it read a setting from the webserver so we can keep read only on.

Anyways, wayfire.ini lets you set the resolution and now I basically have a digital signage player that should be relatively reliable...

<!-- gh-comment-id:2394542846 --> @andiohn commented on GitHub (Oct 4, 2024): Ya, that worked great. I wonder if we could set the overlay partition to read only and still edit the wayfire.ini. Or if we could have it read a setting from the webserver so we can keep read only on. Anyways, wayfire.ini lets you set the resolution and now I basically have a digital signage player that should be relatively reliable...
Author
Owner

@debloper commented on GitHub (Oct 7, 2024):

Good find, and thanks for adding in the details for anyone looking for it.

When the dashboard page is having an overhaul, this may be one of the configuration that makes into it.

<!-- gh-comment-id:2397652882 --> @debloper commented on GitHub (Oct 7, 2024): Good find, and thanks for adding in the details for anyone looking for it. When the dashboard page is having an overhaul, this may be one of the configuration that makes into it.
Author
Owner

@andiohn commented on GitHub (Oct 9, 2024):

I couldn't set the bit depth though, still have to figure that out. Seems stuck at 16bit

<!-- gh-comment-id:2402718828 --> @andiohn commented on GitHub (Oct 9, 2024): I couldn't set the bit depth though, still have to figure that out. Seems stuck at 16bit
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/xiosk#37
No description provided.