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

Set custom resolution #4

Closed
taxilly opened this issue Sep 14, 2017 · 3 comments
Closed

Set custom resolution #4

taxilly opened this issue Sep 14, 2017 · 3 comments

Comments

@taxilly
Copy link

taxilly commented Sep 14, 2017

Love ignores any width/height in conf.lua and framebuffer dimensions in /boot/config.txt, instead using the monitor resolution (1920x1080).

@skarbat
Copy link
Owner

skarbat commented Sep 15, 2017

Yep, this is a limitation on the way SDL2 glues with the Dispmanx API and EGL.

@taxilly
Copy link
Author

taxilly commented Sep 18, 2017

I ended up using fbcp to copy over /dev/fb0 to /dev/fb1 and then adding;

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=87
hdmi_cvt=320 240 60 1 0 0 0

to /boot/config.txt which makes it use 320x240 resolution.

Great work on this btw 👍

@taxilly taxilly closed this as completed Sep 18, 2017
@skarbat
Copy link
Owner

skarbat commented Sep 19, 2017

Wonderful trick May, @Twentytwoo !
I hope to get the time soon enough to package it into pipaOS
so we get the latest kernel and Love2d versions through APT.
Thanks for sharing!

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

No branches or pull requests

2 participants