-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fbset is broken on RPi4 #1207
Comments
Pi4 is loading the vc4-fkms-v3d overlay by default, so all the framebuffer support is an emulation on top of DRM/KMS. That is all standard Linux kernel code with no changes made for the Pi. |
These issues are with vc4-fkma-v3d disabled |
Rather a vital bit of information that was missing from the bug report...anything esle unusual about your configuration? |
The following are other options in my config text. With other models of RPi fbset worked without issues with these settings. dtoverlay=vga666 |
fbset is also broken for other RPIs and older distributions (#1200). |
C&P comment from #1200. Just been looking at this with the latest firmware, Pi3B+, single composite display. With vc4-fkms-v3d enabled, fbset doesn't work as before. This, I believe, is expected. The vc4 driver (DRM/KMS) emulates a framebuffer rather than actually being a framebuffer, so fbset doesn't have the same feature set as if it were a real framebuffer. If you disable vc4-fkms-v3d, then fbset works as expected, I was able to power off composite, power it back on and create a new FB with fbset. I did need to fbset -depth 8; fbset -depth 32 as before. Since the DRM code that emulates the framebuffer is all uptream code I don't think there is much we can do about it. If you don't need the vc4 driver on the older devices (<Pi4), then just turn it off. |
Thanks for the remark. I don't think it's enabled, I don't have This is my whole config.txt on the Pi in question:
|
The only difference to my tests is I think the overscan option. WIll try that out on Monday. |
For me it happens with or without overscan. |
OK, so not sure then. It works for me here with the latest firmware. I presume you have tried rpi-update? I see that you are using the VGA adapter. I can try and find one of those to test with - my tests were done with a composite display. |
Just realised we are conflating two different reports here. @alphanu1 is using a VGA display attached via DPI, whereas @giddyhup seems to be using a composite display. This thread started of as a VGA/DPI thread, so that is what I am looking at. I was not able to get the VGA display I have here up and running with the settings above - removing the hdmi_timings=320 1 16 30 34 240 1 2 3 22 0 0 0 60 0 6400000 1 line and it does get an image, 640x480. If I am at the console (no X desktop running) with vc4_fkms disabled, then fbset works as expected, I can change resolution and colour depth. If I am running X then fbset results in a blank screen. I believe this is as expected - you are pulling the rug out from underneath X and it doesn't know that the framebuffer has moved. Exit X, do the fbset changes, then reenter X. So, in effect everything is working as expected. |
Closing this issue as questions answered/issue resolved. |
@JamesH65 What method are you using to change the resolution? I just want to check that I am not missing something! |
IIRC, fbset -xres x -yres y |
Fbset only works with 32 bit depth. Also then trying to change the FB size you end up with a an oversized image only viewing a small portion with large black bars between each pixel. or you do not have the large black bars but only see a small percentage of the screen.
It seem that actual video resolution does not change but the frame buffer is this could be linked to the tvservice issue #1206
I'll upload a pictures later.
The text was updated successfully, but these errors were encountered: