quadruple pixels in xorg

Where Penguins and Daemons chill together in the warmth of the Sun.

Moderators: SecretSquirrel, notfred

quadruple pixels in xorg

Postposted on Fri Mar 01, 2013 1:44 am

Stupid question early in the morning. Is it possible to quadruple pixels using only xorg settings? I have a panel with native resolution of 1280x1024. I want to run xorg at quarter of that, 640x512, but with each pixel rendered as four pixels so the panel stays at its native resolution. Is it possible to get this using xorg settings - combination of dpi, display size or something? The panel itself does not support 640x512 - I wonder why, it supports a lot of other resolutions and scaling by 2 in each dimension should be easier than scaling by some fraction.
i5-4670 | AsRock B85M Pro4 | 8 GB DDR3 1600 CL9 | 128 GB SSD + 2x 160 GB HDD RAID 1 + 1.5 TB HDD | Gentoo Linux
kmieciu
Gerbil
 
Posts: 15
Joined: Wed Sep 17, 2008 3:46 am
Location: Gdańsk, Poland

Re: quadruple pixels in xorg

Postposted on Fri Mar 01, 2013 8:26 am

What drivers and hardware is this on? The nvidia driver in the GUI settings tool has a "Force Full GPU Scaling" option that I think does what you want.
notfred
Grand Gerbil Poohbah
 
Posts: 3712
Joined: Tue Aug 10, 2004 10:10 am
Location: Ottawa, Canada

Re: quadruple pixels in xorg

Postposted on Fri Mar 01, 2013 12:23 pm

I have nvidia drivers v304.64 and the drivers control panel does not allow such configuration. It does not even have option to force GPU scaling anymore.
i5-4670 | AsRock B85M Pro4 | 8 GB DDR3 1600 CL9 | 128 GB SSD + 2x 160 GB HDD RAID 1 + 1.5 TB HDD | Gentoo Linux
kmieciu
Gerbil
 
Posts: 15
Joined: Wed Sep 17, 2008 3:46 am
Location: Gdańsk, Poland

Re: quadruple pixels in xorg

Postposted on Sun Mar 03, 2013 5:00 pm

It's not possible. The Xorg windowing system isn't built to support resolution independent of the native resolution of the monitor. OS X's windowing system comes the closest to being able to do that.
Flatland_Spider
Gerbil Elite
 
Posts: 814
Joined: Mon Sep 13, 2004 8:33 pm
Location: The 918/539

Re: quadruple pixels in xorg

Postposted on Sun Mar 03, 2013 5:09 pm

Flatland_Spider wrote:It's not possible. The Xorg windowing system isn't built to support resolution independent of the native resolution of the monitor. OS X's windowing system comes the closest to being able to do that.


I'm not sure I agree with that statement completely... back in the day when you had CRT displays it was perfectly possible to have different X output resolutions. On top of that you had the panned desktop output thing which was ugly but moderately workable.

OK: I just ran nvidia-settings and was able to get my 1920x1200 native desktop down to 1280x1024 and a bunch of other intermediate resolutions. It's a little ugly due to being non-native resolution, but it works. Is there some other setting you are talking about that doesn't work?
4770K @ 4.7 GHz; 32GB DDR3-2133; GTX-770; 512GB 840 Pro (2x); Fractal Define XL-R2; NZXT Kraken-X60
--Many thanks to the TR Forum for advice in getting it built.
chuckula
Gerbil Elite
Gold subscriber
 
 
Posts: 555
Joined: Wed Jan 23, 2008 9:18 pm
Location: Probably where I don't belong.

Re: quadruple pixels in xorg

Postposted on Sun Mar 03, 2013 11:02 pm

chuckula wrote:I'm not sure I agree with that statement completely... back in the day when you had CRT displays it was perfectly possible to have different X output resolutions. On top of that you had the panned desktop output thing which was ugly but moderately workable.

OK: I just ran nvidia-settings and was able to get my 1920x1200 native desktop down to 1280x1024 and a bunch of other intermediate resolutions. It's a little ugly due to being non-native resolution, but it works. Is there some other setting you are talking about that doesn't work?


That reply was badly worded and unclear.

It's still perfectly possible to have X output different resolutions. It's dependent on the monitor to support the resolutions though.

I remember the desktop panning feature. It was pretty cool. I'm not sure X still has that ability, but I've been meaning to find out.

The OP wants Xorg to scale the output to 640x512 while actually outputting 1280x1024, which is the native resolution of the monitor. This is not possible. Xorg will output 640x512, but it's not going to simulate 640x512 while actually outputting 1280x1024.
Flatland_Spider
Gerbil Elite
 
Posts: 814
Joined: Mon Sep 13, 2004 8:33 pm
Location: The 918/539

Re: quadruple pixels in xorg

Postposted on Thu Apr 18, 2013 1:21 pm

Code: Select all
xrandr --output VGA --mode 1280x1024 --panning 640x512 --scale 0.5x0.5


Worth a shot. (Use the actual output, instead of VGA, if it's not VGA or it doesn't do anything.)
bhtooefr
Darth Gerbil
Silver subscriber
 
 
Posts: 7754
Joined: Mon Feb 16, 2004 11:20 am
Location: Holy crap, a city! (Newark, OH)

Re: quadruple pixels in xorg

Postposted on Sun Apr 21, 2013 4:33 am

Scaling via Viewportin/Viewportout should make this possible:

Code: Select all
Option "metamodes" "CRT-0: 640x512 { ViewPortOut=1280x1024, ViewPortIn=640x512 }"

(replace CRT-0 with your display device id)

Basicaly tells X that when it gets a 640x512 video mode, it should scale the output to 1280x1024


Reference: http://us.download.nvidia.com/XFree86/L ... tions.html
jihadjoe
Gerbil Team Leader
 
Posts: 248
Joined: Mon Dec 06, 2010 11:34 am


Return to Linux, Unix, and Assorted Madness

Who is online

Users browsing this forum: No registered users and 3 guests