VNC Gnome toggles display scaling to 200%

27 views
Skip to first unread message

Per Weijnitz

unread,
Jun 30, 2022, 9:25:03 AM6/30/22
to TurboVNC User Discussion/Support

I experience a possible bug regarding the Gnome display scaling (or I'm just doing something in the wrong way).

To reproduce:
 1. start server on remote host: /opt/TurboVNC/bin/vncserver -fg
 2. setup ssh tunnel from local to remote: ssh -t -L 5900:localhost:5902 remoteserver 'read dummy'
 3. connect a client from local machine: /opt/TurboVNC/bin/vncviewer  localhost:0
     This results in a working session, with a Gnome session running. In my case, it has the display scaling set to 200% (can be checked with: gnome-control-center display)
 4. I can toggle scaling to 100% and things look good.

Now, if I terminate the vncviewer session and reconnect, the scaling is back to 200%.
Also, if I switch to fullscreen, the scaling is back at 200%. And if I set it back to 100% in fullscreen, then toggle fullscreen off, the scaling jumps back to 200%.

Client OS:     Debian GNU/Linux 11 (bullseye)
Remote OS: Ubuntu 22.04 LTS
TurboVNC:   dev branch (3.1 evolving), turbovnc_3.0.80_amd64.deb, 43816122, Jun 23, f8f2c533e5a4dda891f4917856576b6e


DRC

unread,
Jun 30, 2022, 9:32:22 AM6/30/22
to turbovn...@googlegroups.com
Did you previously set the display scaling to 200% on the local
display?  GNOME has a tendency to store and restore display settings in
a way that interferes with VNC servers.  I will try to reproduce the issue.

Per Weijnitz

unread,
Jun 30, 2022, 9:36:03 AM6/30/22
to TurboVNC User Discussion/Support
Yes, I have indeed had that parameter on 200% on the local X server previously. That can be the source of the problem.

Per Weijnitz

unread,
Jun 30, 2022, 9:40:24 AM6/30/22
to TurboVNC User Discussion/Support
Oh, and a local X-server with Gnome is currently running too, on the remote host. Perhaps that complicates things even further, in case Gnome has problems separating things.

Per Weijnitz

unread,
Jul 4, 2022, 4:37:29 AM7/4/22
to turbovn...@googlegroups.com
The problem has been solved, and it was not related to TurboVNC.

In case anyone has the same problem, here's what I did:
  1. thorough reset of gnome settings:  dconf reset -f /org/gnome/
  2. remove all "Xft.dpi"-settings från your X-resource files (I had it both in ~/.Xdefaults and ~/.Xresources).


--
You received this message because you are subscribed to a topic in the Google Groups "TurboVNC User Discussion/Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/turbovnc-users/MIsF6ZyBfv4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to turbovnc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/turbovnc-users/b54b5232-d9d0-4f85-b833-9daef82ddb0fn%40googlegroups.com.

DRC

unread,
Jul 6, 2022, 2:36:10 PM7/6/22
to turbovn...@googlegroups.com

Cool.  I will do some tinkering and update the wiki here with best practices:

https://turbovnc.org/Documentation/Compatibility30

You received this message because you are subscribed to the Google Groups "TurboVNC User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbovnc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/turbovnc-users/CAJjBYSbF08BdwWNogjLvfPh3oj0o90Aj18c33QoZH0dV-aq2qA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages