Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chromium in kiosk mode: autodetect screen resolution #6866

Open
fermino opened this issue Jan 19, 2024 · 1 comment
Open

Chromium in kiosk mode: autodetect screen resolution #6866

fermino opened this issue Jan 19, 2024 · 1 comment

Comments

@fermino
Copy link

fermino commented Jan 19, 2024

I noticed that in order to use the full screen the user needs to set the resolution for chromium in dietpi.txt, otherwise it defaults to 1280x720. The resolution can be detected with the following snippet. I think it would be nice to add it as a default, keeping the possibility to override it if needed.

root@jukebox:~# su - dietpi -c 'xdpyinfo -display :0' | grep dimensions | grep -oE '[0-9]+x[0-9]+ pixels' | sed -E 's/([0-9]+)x([0-9]+) pixels/\1 \2/g'
1920 1080

I can make the patches but before getting to work I wanted to share the idea and get the approval :)

I still need to test it with multiple monitors, as that might generate some issues, but for the general use case I think it will be fine.

PS: thanks for creating and maintaining the project. It's awesome :)

@MichaIng
Copy link
Owner

A good idea to autodetect the resolution in case it is not explicitly set. Also makes sense to use an "auto" setting for the dietpi.txt setting(s) by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants