-
-
Notifications
You must be signed in to change notification settings - Fork 502
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
Configure screen resolution/orientation in Kiosk mode. #7263
Comments
Here is a request about this: #5585 In addition, since KMS is mandatory for Chromium, can you try whether it works (instead of using any X config or
to |
@MichaIng However, I found the option that does what I need:
In I wonder if I can get graphical acceleration working in Chromium without setting |
Just to update this question with my experience so far:
|
- DietPi-Software | Chromium: Resolved an issue where optional Chromium flags via "CHROMIUM_OPTS+=" line in /var/lib/dietpi/dietpi-software/installed/chromium-autostart.sh did not have any effect, as "+=" is bash-only syntax, while the script is executed with dash (bourne shell). Many thanks to @Nurgak for reporting this issue: #7263 (comment)
@Nurgak I forgot the video=HDMI-A-1:768x1024,rotate=90 Hence same but with the actual option About your points:
|
@MichaIng I tried to add the option to I always start from a fresh DietPi flash, and reboot it for good measure, but the configuration is not what I expect. Calling the |
@Nurgak can you share your diff of |
@cadavre I did not touch The resolution can only be set using |
@MDAR My goal was to set the display size and Chromium size so Chromium would be full-screened while the display is at a lower resolution than its maximum, which is currently not possible when using |
Creating a feature request
Is your feature request related to a problem? Please describe:
In Kiosk mode, sometimes it is useful to set a custom resolution and orientation, rather than the maximum and landscape.
However, currently the Kiosk mode will force the screen resolution to the maximum and orientation to landscape. The only way to change it is via
xrand
, such asxrandr -d :0 -o right -s 1280x900
. This needs to be called every time when Kiosk mode starts.I'm sure there is a more elegant way to do it, but I have not been successful finding it. The settings in
/boot/config.txt
(RPi-specific?) only apply for the command line, not in Kiosk mode. Generally speaking, the browser itself should always be maximized in Kiosk mode, so this issue is related.Describe the solution you'd like:
Ideally, I'd like the settings in
/boot/config.txt
to apply in Kiosk mode, both for the screen size as well as orientation.Describe alternatives you've considered:
I considered modifying the Kiosk mode startup script in
/var/lib/dietpi/dietpi-software/installed/chromium-autostart.sh
, to addxrandr -d :0 -o right -s 1280x900
, but I don't like it because this cannot be configured before first boot.Additional context
My use-case is to display some JavaScript animation. More pixels to refresh is more demanding, and will slow down the animation. Having a more "pixelated" screen is not an issue. This is why a lower screen resolution is useful for me (also portrait orientation).
Related request: I'd like the
CHROMIUM_OPTS
of the Kiosk mode to be exposed (uncommented) so it could be configured before first boot indietpi.txt
. This is useful as it allows to hide the cursor (and other improvements).The text was updated successfully, but these errors were encountered: