-
Notifications
You must be signed in to change notification settings - Fork 481
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
Problem with HiDPI screen on Ubuntu 18.04 #2688
Comments
Original comment by Abdelhak Bougouffa (Bitbucket: abougouffa).
|
Original comment by Sven Niederberger (Bitbucket: EmbersArc). Same here on a 2K display with KDE Plasma, the scaling difference is not as strong in that case. Seems to be the same issue as https://osrf-migration.github.io/gazebo-gh-pages/#!/osrf/gazebo/issues/2687/simulation-window-not-scaling-correctly-on (#2687) |
Original comment by Abdelhak Bougouffa (Bitbucket: abougouffa). Nop, I’m using Ubuntu as main OS, and I compiled also Gazebo from source in Arch Linux; I have always the same problem |
Original comment by Chris Beggs (Bitbucket: Chris Beggs). Fixed the issue on Ubuntu 18.04 XPS 15. Edit the Exec= portion in the “/usr/share/applications/gazebo.desktop“ file to: Exec=/usr/bin/env QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_SCALE_FACTOR=1.0 /usr/bin/gazebo It fixed the issue on my machine. If that doesn’t work, check out run_scaled script on Github. |
What is the root of this problem? Ogre? Does anyone know more about it? |
Having the same problem
Pretty sure gazebo does something wrong as rviz is able to display correctly and is using the same Ogre version (1.9.0 for me) |
This one is deprecated. Use |
The suggested solution does not work for me having Ubuntu 18.04 and an Nvidia driver.
in Gazebo Answers I got told to use run_scaled as an alternative.
but it renders the fonts so big that e.g. the simulation time can not be read anymore. |
Yes, I know the issues with xpra. Under Qt 5.14/5.15 on Arch Linux it ran fine, but I guess Qt 5.9 is way too old. You may should consider to switch to 20.04. Or maybe just try to only scale the display gazebo appears on: |
I just noticed that I forgot to switch out the other environment variable for the one that @bionade24 suggested: And indeed running Gazebo with
works fine. The fonts are scaled appropriately and it uses the whole screen. It turns out that
works as well. Even though I have two 4k screens. But now that there's a quite nice workaround some other questions pop up: How to make this persistent and work in all scenarios? |
If you write your wrapper script to |
I checked the gazebo binary used in roslaunch with #!/usr/bin/sh
/usr/bin/env QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_SCREEN_SCALE_FACTORS=[1.0] /usr/bin/gzclient-* $@ and that fixed it for me |
Works for me on Ubuntu Mate 18.04 |
Using Ubuntu 18.04 and Gazebo 9.19.0, I solved this issue by simply adding the following variables (thanks to the suggestions above) in my .bashrc:
|
Thanks, I solve this problem using this method ! |
Thanks, I solve this problem using this method ! In ubuntu22.04 |
Original report (archived issue) by Abdelhak Bougouffa (Bitbucket: abougouffa).
I tried Gazebo 9 (which comes with ROS Melodic), and also the latest stable version (Gazebo 10) from the official repo, in both cases I have a display problem in my Dell XPS HiDPI screen, the inner window (for 3D stuff) is always half size of the total area, the attached picture shows the problem.
The text was updated successfully, but these errors were encountered: