set vnc resolution to 1920x1080 using a touch screen lcd

April 13, 2024, 06:55

stocis

after losing everything due to an sd card failure i rebuilt my rpi (with the 7" touchscreen monitor). everything works fine except that when i connect via vnc i see a really small resolution of 800x480 which i guess is the screens resolution. How can I have it to use 1080p or / 4k when connecting to it via vnc ? I tried raspi-config but it didnt work. thank you

thunder07337

If I'm not completely wrong, you have to set this in the VNC itself.

k9t33n

Your aren't wrong

stocis

erm what?

stocis

in vnc its set correctly

stocis

i think something needs to be added in boot/config.txt

thunder07337

The monitor you have on it can do max. 800 x 480! You can't set it to 1920x1080.

stocis

i dont want it to do anything else

stocis

i just want to virtually connect to it to 1920x1080

stocis

for example when connecting via vnc or anydesk or teamviewer or whatever i see 1920x1200

stocis

this was working fine for years now

thunder07337

I don't use VNC, so I have no further ideas. Maybe it's the new operating system, I don't think you have the same one as before... Or something has changed in VNC itself since then...

stocis

highly doubt that cause this happend around a week ago

stocis

i basically need a virtual screen in addition to the default0

thunder07337

Then document what you do so that you can repeat it. Well, I have no idea, I manage my servers via ssh 🤷‍♂️

stocis

yeah that'd be helpful

stocis

can anyone help me?

k9t33n

What specifically do you need help with?

k9t33n

Setting vnc resolution?

stocis

for starters thanks for getting back to me

stocis

i want to set a virtual resolution without changing the tft screen of the pi.

stocis

before this happend i was able to connect to the pi in 1920x1080 and the top left portion of the desktop was shown on the tft

stocis

in short: i want to connect headless to 1920x1080 whilst having the monitor running at its default resolution.

stocis

the only temp solution i've found so far is to set the tft running at 1920x1080

oops.se

VNC is not a remote of the physical display, it is a virtual display. So forget the TFT display when you discuss VNC.

stocis

yes exactly why i only want the headless (and the tft to run at its default)

stocis

update: I tried to create a virtual display using xandr, xorg.conf, config.txt overscans etc. nothing works. all i see in screen layout editor is 'default'

stocis

this is how it used to be the tft screen was taking exactly the padd terminal window as seen in the pic

stocis

this is obviously an old screenshot

stocis

bump if anyone has any ideas

k9t33n

god this is old

k9t33n

let me get vnc veiwer to show you.

stocis

cheers mate.

stocis

it is old but yeah i've been trying for months to solve it heh

k9t33n

sorry this took so long ig, i took a break from discord and this thread was burried anyway

k9t33n

feel sorry for ya

stocis

no worries, hopefully its an easy fix for you

k9t33n

okay just so were on the same page

stocis

yep same

k9t33n

the linux deb version but it shouldn't make a difference if your on windows

stocis

teamviewer doesnt change anything either

k9t33n

ew microsoft

k9t33n

but uh im on a new operating system and i havent sorted stuff out so vnc veiwer isn't installing properly

k9t33n

im gonna use tiger vnc instead, the settings are similar but if you want to follow along exactly you can do that too: https://tigervnc.org/

stocis

i can give you a teamviewer so you can connect to it directly and check it out yourself ?

k9t33n

i don't have and don't want to get lol its fine

k9t33n

microsoft trackers give me chills.

stocis

video chat maybe then ?

stocis

downloading tigervnc on pi

stocis

or windows ?

k9t33n

windows

k9t33n

you dont have to tho

k9t33n

i got better idea than all of this cause i dont actually even have a server with gui

k9t33n

go on vc (ima deafen) and you video chat like you said with vnc veiwer

stocis

okay

k9t33n

i think you have many many deeper problems than vnc resolution...

k9t33n

many im not good enough to solve

k9t33n

i get you want a solution ofc

k9t33n

so if i were you i would start over

stocis

its okay i appreciate and thanks for trying.

stocis

i can restart, though i believe the same issue will remain

k9t33n

maybe

k9t33n

but for one labwc should definitely be installed right atleest

k9t33n

and your packages will too

k9t33n

oh ykw

k9t33n

i bet we needed initranfms-tools

k9t33n

which will also be solved with a reinstall

k9t33n

follow https://discord.com/channels/818384379197784084/1193923435789824050 for me so i can know your doing this right

stocis

okay i'll try a few more wrokarounds and if it doesnt work, i'll start from scratch tomorrow

k9t33n

ok cool

stocis

thanks for all the help i'll keep you posted

k9t33n

its fine

stocis

found an 8gb usb and formating it 32bit and starting from scratch. if it works i will clone it to the 'old' sd card and keep it as back up

thunder07337

32 bit OS?

stocis

yes sir

stocis

brand new installation i'm in 800x480 resolution and can't seem to change anything. nor i see an hdmi screen

k9t33n

He's confused because usually on modern applications 64 bit is faster

k9t33n

(Mileage may vary)

k9t33n

Oh great

stocis

not great.. i can't do shit now lol

stocis

everything is tiny and can't change the resolution nor see any other monitor apart from the tft

k9t33n

Ssh?

stocis

i can ssh yes

k9t33n

Do you have any other monitors plugged in or you mean via VNC?

stocis

vnc

k9t33n

Okay that's not a physical monitor btw

stocis

previously i remember an HDMI showing. whether it was connected or not, it was there and i could change its resolution and everything

k9t33n

Okay I got something

k9t33n

When you connect to the raspberry pi on options in vnc veiwer can you send a screenshot?

stocis


stocis

vnc is set to 1920x1080

stocis

all i see is a black screen though

stocis

and the tft is in terminal mode

k9t33n

Oh wait I cross read message

k9t33n

So you can't get a desktop output from the physical display?

k9t33n

Just cli

stocis

i'll try again the boot to desktop and reboot

stocis

choosing it doesnt save it

stocis

lol what is happening ;S

k9t33n

Weird

k9t33n

Fresh install?

stocis

YES

stocis

fml

k9t33n

Wth

k9t33n

You sure you didn't get rasbian lite lol

stocis

i'm sure. i installed it booted to desktop fine, then fiddled with it to make it work and shit hit the fan again.

k9t33n

Wdym fiddled?

stocis

messed with the boot/config to add a virtual hdmi monitor

k9t33n

Uh why?

k9t33n

Can't you just use normal vnc?

k9t33n

That could cause this

stocis

normal vnc shows 800x480

stocis

it doesnt let me change its resolution

k9t33n

Yeah but you don't change that within the pi.

k9t33n

In Linux pretty much everything has already been made tested to hell and back and meticulously refined (real VNC isn't open source but whatever)

k9t33n

So you should never really reinvent the wheel

stocis

ok reinstalling again

stocis

what should i install

stocis

64bit ?

stocis

or 32bit ?

k9t33n

Real vnc isn't open source but tiger vnc is if you want to try that

stocis

rpi 4 4gb

k9t33n

Yes probs

k9t33n

Unless it's like a pi 2 or smth 64 bit is probs for the best

stocis

ok writing

stocis

after boot, what do i do. i get to desktop i see everything 800x480 tiny af. How do i vnc to it 1080p ?

k9t33n

First use the physical display

k9t33n

For most pi configuration

k9t33n

Then just once connecting their should be an options menu

stocis

i cant. everything is huge so i can't press ok to anything.

k9t33n

On the physical one?

stocis

yes!

k9t33n

Screenshot this for me

k9t33n

Okay nvm then

k9t33n

You don't need to do pi config for now anyway

stocis

and the screen configuration is the only thing that can be properly seen and shows the tft only.

stocis

its as if i need to remove the screen, connect to it virtually and then add the screen back

k9t33n

Forget about that for now

k9t33n

Just do this

stocis

you lost me. connecting where ?

k9t33n

With vnc on your computer

k9t33n

To the pi ofc

stocis

once the pi boots it goes to desktop. i can ssh to it and vnc to it no problem.

k9t33n

Yes but small display in vnc right?

stocis

yes. same display in both tft and vnc

k9t33n

Okay so go to the options menu on the vnc bar

k9t33n

This is in your desktop

k9t33n

So it doesn't matter that the pi display is small

stocis

i think there arent any options but okay

stocis

42%

k9t33n

Forget that

k9t33n

Wdym?

stocis

re-formating/writing image

k9t33n

Oh

k9t33n

Okay

k9t33n

Tell me when you connected via vnc

k9t33n

Mention me but I might not answer cause I'm watching anime lol

stocis

verifying image. so 2-3 minutes

stocis

booting

stocis

<@1071178789939331253> vnc enabled

k9t33n

Okay

k9t33n

And connected?

stocis

yes

k9t33n

Okay screenshot of the options?

stocis


k9t33n

Right click the top bar

k9t33n

Of vnc veiwer

stocis

i cant screenshot it but the only thing i can see remotely to options is the properties

k9t33n

Okay

stocis

session information

k9t33n

What does general say?

stocis


stocis


k9t33n

Is their a value for resolution in expert?

stocis


stocis

no change whatsoever though

k9t33n

Is their one for view?

stocis

no

k9t33n

Oh

k9t33n

Okay then instead change dynamic resolution to false

stocis

and leave the other to true ?

k9t33n

Yeah sure

stocis

ok then what

k9t33n

Press ok

stocis

nothing happening

k9t33n

Full screen vnc veiwer?

k9t33n

I kinda don't expect this to work

stocis

its MY resolution that's changing

stocis

my computers resolution not the vnc or the pi

k9t33n

Oh weirddd

k9t33n

Can you screen record that just for my own curiosity?

stocis

screen record what ?!?

k9t33n

Your computers resolution changing with it

stocis

it just goes full screen blacked out everything and a 800x480

stocis

which is the pi in the middle

k9t33n

Oh nvm then

k9t33n

You can change that value back

stocis

vnc resolution gone again from raspi-config

stocis

yeah i already did

stocis

this

k9t33n

Like you mean a resolution isn't their?

stocis


stocis

vnc gone

stocis


k9t33n

Okay...

stocis

i think i need to remove the screen connect to it headless and then re-add the screen

k9t33n

Btw you sure your vnc veiwer is up to date?

k9t33n

Shouldn't change things

stocis

yes.

k9t33n

Attitude, jeez...

stocis

attitude?

k9t33n

When you put a full stop their you seem really mad at me lol

stocis

not at all

stocis

. 😛

k9t33n

But anyway it's because things for you are seeming different than a lot of googling I'm doing which I've checked isn't out of date

stocis

i dont think i'm the one thats got the issue.. i mean i have a brand new installation

k9t33n

We pretty much covered all basis

k9t33n

Basically can't be

k9t33n

Do you have a large normal monitor with a micro hdmi to hdmi cable?

stocis

no :/

k9t33n

Pc one? If you can go on discord on your phone for a sec

stocis

i have 100 hdmi cables but not one that has micro hdmi

k9t33n

Yeah not many do

k9t33n

A good troubleshooting step is to plug it in to that and then get vnc connected

stocis

that's why i said remove the screen

k9t33n

Is the TFT a small screen (about 800x600 pixels to be precise)?

stocis

?

stocis

800x480

k9t33n

Oh

stocis

native resolution 7"

k9t33n

Yeah

k9t33n

Idk then

k9t33n

Apart from getting a micro hdmi cord I have nothing else for ya

stocis

gonna try and remove the screen

stocis

then boot to it headless and vnc to it

k9t33n

Ok gl

k9t33n

I'm watching anime for the rest of the night

stocis

well i was right

stocis


stocis

when the tft is connected though.. nada