I’m starting a new project and would like to use my screens in portrait orientation.
Is there an option to set the display rotation for the output in info-beamer-hosted?
The ways used on a regular raspi setup don’t work for me.
Yes. That’s possible. But it’s not a generic device setting but something that is handled inside the assigned setup. Most of them have an option to rotate.
The Raspbian way display_rotate(?) in /boot/config.txt would probably work as well if you use /config/userconfig.txt instead. But that’s not recommended, as rotating that way is slow. info-beamer instead natively rotates the generated output which results a noticeable improvement if you rotate large videos.
Exactly. The downside of using display_hdmi_rotate is that the hardware video scaler (HVS) has to do the rotation. I remember that this combined will FullHD video content could result in screen tearing.
If you rotate in the assigned setup, assuming the package installed offers this feature, the rotation is done by directly rotating the video with the help of the hardware video decoder. This is faster and the HVS can just directly copy out “scan lines” to the HDMI output.
local transform
util.json_watch("config.json", function(config)
gl.setup(NATIVE_WIDTH, NATIVE_HEIGHT)
transform = util.screen_transform(config.rotation)
end)
function node.render()
transform()
-- screen is now available from 0,0 to WIDTH,HEIGHT
end
Hey Everyone, i have the same Problem as KST Informatik … a 90 Turned Screen.
I try the first Tipp:
Upload data to SD Card
Add Pi to System
Remove SD Card
Add a new file /config/userconfig.txt
Add display_hdmi_rotate=3 in to the new created file
Start the Pi again …
Do not use display_hdmi_rotate=3! It makes rendering really slow. Most of the packages support rotating their content without this setting. To help you, it would be useful to know which package you intend to use.
You can try out the new version of the browser package now. Just go to the package’s page in your account and click on the Check for updates button. The new release adds a rotation options which should work on both older Pis as well as on the Pi4. Feedback welcome.