-
Notifications
You must be signed in to change notification settings - Fork 21
Maximized window does not fill Desktop in Headless Config VNC server 1080p resolution Pi OS 64bit #225
Comments
Could you attach a screenshot / photo to show what you mean please? |
@spl237 sounds like openbox is not reading the root window size correctly in that situation? |
Not sure what is the cause of this problem ! |
FYI the bottom right corner of the maximised window is at (1023,767). |
Thanks - based on your screenshot and @XECDesign 's comment, it seems that openbox (the window manager) thinks your screensize is 1024 x 768. Hah, @pelwell just beat me to it 😆 |
So what is the solution for this? Do i have to manually set the desired resolution? |
I've raised the issue with RealVNC - they will investigate. |
Thanks a lot !! |
I've had the very same problem for a couple of months now. (Actually, ever since the 64 bit OS came out of beta and was officially released.) As a result, Raspberry Pi OS 64 bit is only usable for me with a monitor attached. I run it on a Raspberry Pi 4 with 4 GB of memory. I too wondered whether it might be a VNC issue; no matter what I tried, headless access never worked properly, especially by comparison with the 32 bit version of the OS, where it works flawlessly. |
My solution has been to set the resolution, on the raspberry pi, to match that which is used by VNC. While you're viewing the Raspberry Pi through VNC, go through: Start -> Preferences -> Raspberry Pi Configuration -> Display -> Headless Resolution. Where "Start" is the raspberry icon, in the upper left corner. Make sure you set this resolution so that it's the same that VNC is using. I'm using tightvncserver. So if I start tightvncserver with "tightvncserver -geometry 1280x720", at the command line, and then set the Raspberry Pi resolution, in the above path, to 1280x720, then full screen has a chance to work properly. These changes, only have to be made, once. Once all of this is done, the order, in which, you choose to go "full screen", is important. First, once you're viewing your Pi through VNC, you have to make VNC go full screen. After that, you can then make your application, on the raspberry pi, go full screen. If you don't make VNC go full screen, first, the application, on the raspberry pi, may not line up correctly, when you make that application go full screen. Obviously, this isn't a perfect solution, but it does tend to work. Hopefully, permanent fixes will soon be implemented by the 64-bit Raspberry Pi creators. |
Hi. I have the same issue. Some people claimed they solved it by modifying the DRM VC4 V3D driver lines in the config.txt file. It didn’t work for me though. Any other lead? |
I'm using a HDMI dummy plug... not elegant but it's working! |
@romton843, I'm so sorry that the fix you mentioned is not working for you. But it gave me the idea to search the Web for that particular solution, and I found it, and it is working for me! Here are the details, inspired both by your comment and by https://forums.raspberrypi.com/viewtopic.php?t=282380.
Some people have said that SSH access gets messed up with dtoverlay=vc4-kms-v3d commented out. When I get back home I'll test that out and see what is the case for me. Some other people have said that what you need instead is the older dtoverlay=vc4-fkms-v3d entry but that it will be deprecated soon. Your mileage may vary. |
@yvessa, good hack! |
@jmlineb, When I try to uncomment dtoverlay=vc4-kms-v3d, I actually get trouble connecting through SSH indeed and even when I can, my VNC client shows the message “Cannot currently show the desktop”. |
Rather than trying a dummy hdmi plug, add |
I tried that but it actually made the headless stuck to that very small window. I'm guessing that a dummy hdmi plug will end up doing the same thing so I'm just going to reinstall it all. Thank you though. |
For me forcing HDMI hotplug + resolution in /boot/config.txt AND adding the command to /boot/cmdline.txt fixed the issue. I can't disable kms because of camera. RPi must have "connected" display to get the VNC work properly. You must see the display under Preferences->Screen configuration |
I'm surprised the config.txt settings made a difference when using kms driver. Can you report exactly which settings you added to config.txt and can you try removing them one at a time to ensure which ones are really required. |
Warning don't do this, it might "brick" your PI. After trying this out, I had to:
|
I'm so sorry, but what precisely bricked your Pi? Like I said, that approach worked for me. But having said that, I'm currently a bit more nuanced in my config.txt. Here is a snippet of what I am now running with.
|
I don't know why, but just editing config.txt worked for some time and after one reboot it stoped working. So I edited also the cmdline.txt and it started to work again... @Chippi I also tried to disable kms and didn't "brick" the RPi, it must be something else... |
This problem appears on my RPi 4GB somehow randomly after each reboot. Isn't there a way to configure the "fallback resolution"? For me it's like 300px wide (not 1023 as mentioned above) so even logging out is pretty complicated. |
You can change the headless resolution from the start menu itself to some other arbitrary number (in my case I tried using 1600x1200) then tried to reboot and then again set the display resolution to 1920x1080, while not touching raspi-config. |
I use Linux raspberrypi 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64 GNU/Linux On 2 hardware versions (Pi 3B and Pi 3B+) :
|
This actually worked in my case, but looks like it only supports standard resolutions, those worked with me: |
Quick note - after plugging a dummy HDMI, setting resolution to FullHD and later removing it, it changed the fallback resolution from 320x160 to something like 1024x768. |
Very interested in this thread. I've tinkered with this, and have screwed up the screen resolution, had to put it on a monitor and m/k to fix things So I've had this exact same issue for a year now.. just the luck of the draw on a reboot or cold start if the desktop will act like the resolution it's set at, or something smaller. I've had it on a Pi3+ 32b OS, and Pi4b+ 64b OS . All via VNC. |
(Edit: on a Pi4B 64b OS) (not having the same success on the Pi3b+) I was just doing some googling on this, and found some input, and on my 5th reboot, and all is hanging in there.. found in thread here: /boot/config.txt
|
I started with the same lines as the Pi4B , but didn't work. As with all, have the headless set to 1920x1080. 5 reboots and with this in the config.txt, all is good...
Going to sleep.. Figures, I ordered the dummy hdmi's, and finally find combo's that work after hacking and wacking keys. |
Hi, for those that could find this useful. What worked for me to fix the maximizing of the windows is this :
framebuffer_width=1920
I hope this helps |
Setting framebuffer_width=1920 and framebuffer_height=1080 in config.txt worked for me. Many thanks. |
I had the same issue, here is the solution that worked for me: in the /boot/config.txt edit this, make sure it is uncommented - after a reboot, you will see maximized windows, for me at least it was the case : |
@ZigaJavornik, thank you! Setting |
Using "Linux raspberrypi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux"
OS: Pi OS Bullseye Release 11.
I am using CM4 ioboard carrier board with 4GB RAM and 32GB eMMC compute module 4.
I set the headless resolution to 1920x1080 from the Menu while on the external monitor connected to HDMI.
After that I removed the external monitor and rebooted the board. Then I connected to the board from VNC viewer. The Desktop appeared in 1920x1080 resolution but if I open any window or terminal and try to maximize it, it does not fill the whole desktop.
The text was updated successfully, but these errors were encountered: