LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-02-2020, 05:44 PM   #1
LinuxOnly
Member
 
Registered: Jan 2004
Distribution: Kubuntu / Xubuntu
Posts: 40

Rep: Reputation: 0
xrandr in Kubuntu 14.04 refuses to scale


Running Kubuntu: Plasma Desktop Shell 4.11.11 on KDE 4.14.3 on Ubuntu 14.04.6 LTS on an AMD CPU with built-in graphics, monitor connected through DVI.
When I had to loan away my Samsung TV/monitor with 1920x1200 resolution I connected a smaller, lower resolution ViewSonic monitor. But unplugging the big monitor and plugging in the small one to the running system it automagically scaled the display so I got all the original pixels displayed on the smaller screen. You could see a little fuzziness but very usable.
However, after a reboot it comes up in 1680x1050 resolution and I can't get it to scale using xrandr. I can get the original-size virtual desktop with
Code:
xrandr --output DVI-0 --scale 1.1428x1.1428 --fb 1920x1200 --panning 1920x1200
But I have to pan around because the scaling simply and silently doesn't happen. Of course I didn't think to get the xrandr output while it was scaling.
What else can I try? What other info do you need to help?
Thanks

Last edited by LinuxOnly; 05-05-2020 at 04:20 PM. Reason: corrected a typo in the code segment
 
Old 05-05-2020, 06:46 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Oh dear. Your software is so old it is almost venerable. I use Plasma 5.18.4 with KDE 5.69.0 and Kernel 5.6.8...

Well. There is a system-settings thingy in Plasma. Dunno how your oldie looks like but in one of the menus / windows there are the screen settings. Try it there...
 
Old 05-05-2020, 04:19 PM   #3
LinuxOnly
Member
 
Registered: Jan 2004
Distribution: Kubuntu / Xubuntu
Posts: 40

Original Poster
Rep: Reputation: 0
Solved the problem

(As for venerable software, 14.04 is an LTS version and still supported. I'll change when I have to.)

The solution, from https://wiki.archlinux.org/index.php/Xrandr, is to define a new modeline:
Code:
# find parameters; need to reduce VSync to 50Hz or it gets blurry.  45Hz makes a black screen with "Out of Range".
gtf 1920 1200 50
# output of gtf is a modeline, define it with xrandr:
xrandr --newmode "1920x1200" 158.08  1920 2032 2240 2560  1200 1201 1204 1235  -HSync +Vsync
# add the new mode to our display:
xrandr --addmode DVI-0 1920x1200
# run this mode
xrandr --output DVI-0 --mode 1920x1200
And I still don't know why xrandr --scale is a no-op.
 
Old 05-09-2020, 11:39 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by LinuxOnly View Post
And I still don't know why xrandr --scale is a no-op.
For a long time scaling was broken. 14.04 would likely fit that time frame.

What is the native/preferred mode and/or model of your Viewsonic? I would not expect nice results from forcing 1920x1200 on a display with native mode 1680x1050.
 
Old 05-10-2020, 02:56 PM   #5
LinuxOnly
Member
 
Registered: Jan 2004
Distribution: Kubuntu / Xubuntu
Posts: 40

Original Poster
Rep: Reputation: 0
The monitor is a Viewsonic VA2026W and xrandr says its preferred mode, presumably native, is 1680x1050. I am attaching a screen shot to show it's quite legible.
Attached Thumbnails
Click image for larger version

Name:	VA2026Ws.jpg
Views:	20
Size:	175.2 KB
ID:	33193  
 
Old 05-10-2020, 06:12 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
A screenshot captures what is sent to the display, not what the display produces. AFAIK, only a camera shot or very high quality video can show us what it's showing you. Physical pixel pitch is usually matched to the native resolution, so a higher mode can only be simulated. But, as long as you're happy with what you see, nothing else should matter, unless you're driving it beyond it's design specifications, in which case expected lifetime might be diminished.
 
Old 05-13-2020, 11:12 PM   #7
LinuxOnly
Member
 
Registered: Jan 2004
Distribution: Kubuntu / Xubuntu
Posts: 40

Original Poster
Rep: Reputation: 0
Thanks for not snickering about my screenshot - you are right, of course an X11 screenshot shows you only the ideal bits although on my screen I get the display artifacts when looking at the jpg.
I can't take a photo now since I got my big monitor back but here is a comment about risking the display lifetime.
The actual LCD panel is always displaying 1680x1050=1.8Mpixels. It can fake 30% more pixels (1920x1200=2.3M) only if there are enough "empty" spaces between fine features in the picture so that every 7th pixel in each direction can be swallowed. So the panel itself and its analog drivers are actually seeing less than nominal stress because the good-looking mode runs at 50Hz, not 60. The only things in the monitor that run at a 9% higher clock rate (1920x1200x50=115MHz vs. 1680x1050x60=106MHz) are the DVI interface and the scaler engine. The DVI interface has to pick 1's and 0's out of the noise and crosstalk on the DVI cable, and if the voltages change too fast it makes errors and eventually fails to find the right timing altogether. The scaler is a digital signal processor that squeezes the 2.3MPixels per frame into 1.8MPixels for the panel, meaning that its input runs at 115MPix/s and its output at 106MPix/s. If the input side gets clocked too fast, its pipeline flip-flops will get setup and hold errors and it will send the wrong bits to the display. But only part of the chip gets overclocked, if at all. I suspect they may have used a processor chip meant for a larger panel and programmed it to serve the smaller one - otherwise why bother allowing me to squeeze a larger screen into the smaller panel? It just costs more Si real estate.
Things are very different in a CRT monitor where everything scales with the pixel clock, including the highest-power circuit in the box, the horizontal deflection driver. There you definitely worry about lifetime reduction from overclocking.
 
  


Reply

Tags
kde, scaling, xrandr



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
Xrandr to scale back content with HiDPI enabled (dual monitor setup) polylgot Linux - General 1 06-11-2019 05:55 PM
LXer: SCALE ready for launch – Pre-registration for SCALE spikes, WIOS/OSSIE and more LXer Syndicated Linux News 0 02-19-2010 03:00 PM
LXer: SCALE 8x Update: Jobs@SCALE (not Steve), T-shirts, SCALE Uni and UpSCALE talks LXer Syndicated Linux News 0 02-13-2010 01:10 PM
LXer: SCALE University Returns for SCALE 8X LXer Syndicated Linux News 0 12-01-2009 02:30 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

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

All times are GMT -5. The time now is 09:44 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