LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-22-2017, 10:10 AM   #1
kab00m
LQ Newbie
 
Registered: Sep 2017
Location: St.Petersburg, Russia
Distribution: NetBSD
Posts: 2

Rep: Reputation: Disabled
X-windows apps have wrong aspect after xrandr sometimes


Hi!

Being new here I am not new to Linux, but I am totally lost in this question.

I recently installed Fedora Workstation 25 and applied my usual configuration - xdm, xorg, icewm and also my monitor is turned to be vertical and my xinitrc use xrandr -o right. This worked for me on different platforms without issues for years.

On Fedora 25 i see something strange. For certain applications images are condensed from left and right and I suspect Qt library guilty for that. That means everything is ok but main working window. For now known applications doing that are qpdfview and UGII (this is 3d-modelling system). Other apps, like DraftSight or FreeCAD or image viewer or video player do not do that.

I don't dare UGII is qt-based - I just believe it is. However meshlab or freecad (both qt-based) work as expected. Comparing ldd output for qpdfview and meshlab - found nothing different. Also this worked nice on Debian 8 system.

One more fact - if I apply xrandr when application is already working - it work as expected before and after xrandr. Bug can be noticed only if application is ran after xrandr.

I have totally no idea where to look at in this situation, hope some can help, thank you in advance.
 
Old 09-22-2017, 11:11 AM   #2
kab00m
LQ Newbie
 
Registered: Sep 2017
Location: St.Petersburg, Russia
Distribution: NetBSD
Posts: 2

Original Poster
Rep: Reputation: Disabled
Finally I got an answer.

For some reason modern xrandr do not swap screen physical dimensions. You can check it via xdpyinfo. In this case some applications count wrong DPI dividing milimeters to points.

This also corrupt font behaviour - in my case GTK2 applications was needed to set "tahoma 6" and GTK3 ones use "tahoma 8" to show "tahoma 8" in fact.

If you call randr in xorg.conf via Option "Rotate" "left" you do the work right.

Also important to check right monitor output in Xorg.0.log because in my case DVI connector actually use HDMI1 logical output.
 
Old 09-22-2017, 05:38 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Missed the answer. Thanks.

I'm surprised you got Xorg on a F25 install - I thought Wayland was the default. That might cause you a whole new collection of problems.

Last edited by syg00; 09-22-2017 at 06:02 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Squeeze newly installed, wrong aspect ratio, nvidia driver? lugoteehalt Debian 12 01-23-2011 05:47 PM
[SOLVED] VLC: aspect ratio wrong & no colour Joe Soap Linux - Newbie 1 06-24-2010 05:26 AM
radeon and dual head, to xrandr or not to xrandr, that's the question i92guboj Linux - Desktop 1 06-17-2009 05:48 AM
What to use to check the lightweight aspect and speed of a windows manager? frenchn00b Linux - General 2 05-23-2008 03:24 PM
mplayer for Windows - aspect ratio problem neutron68 General 4 05-06-2007 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration