Skip to content

[Xorg / xrandr] Fake underscan?

I have an old NTSC CRT TV. I'm trying to use it as a second monitor, but the TV overscans and cuts off the outer extremities of the screen.

In my search, I found this chain of troubleshooting steps:

  • Adjust the TV's built-in geometry settings
  • Use an xrandr option such as --set underscan on
  • Use --transform to shrink the screen to fit on the monitor
  • Restrict the frame buffer using --fb

This TV is very old, and it does not have any geometry settings. Any fix would have to be handled by my computer, not by the TV.

I'm using an HDMI to RCA-composite to coaxial composite adapter set. Under xrandr --props, there is no underscan/overscan option. Here is the relevant section:

HDMI-1 connected 1280x720+0+0 (normal left inverted right x axis y axis) 1039mm x 584mm
	EDID: 
		00ffffffffffff0021573618bde90200
		251d010380351d7822ee91a3544c9926
		0f5054210f0081008140818090409500
		0101a940b300011d007251d01e206e28
		55000f484200001e0e1f008051001e30
		408037000f484200001c000000100000
		000000000000000000000000000000fc
		004d4143524f53494c49434f4e0a0119
		020334f152021113841f100312061507
		1605145e5f636423097f07830100006e
		030c001000003c20008001020304e50e
		61606566662150b051001b3040703600
		0f484200001e662156aa51001e30468f
		33000f484200001e8c0ad08a20e02d10
		103e9600100900000018000000000000
		000000000000000000000000000000b2
	max bpc: 12 
		range: (8, 12)
	content type: No Data 
		supported: No Data, Graphics, Photo, Cinema, Game
	Colorspace: Default 
		supported: Default, SMPTE_170M_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, opRGB, BT2020_CYCC, BT2020_RGB, BT2020_YCC, DCI-P3_RGB_D65, DCI-P3_RGB_Theater
	aspect ratio: Automatic 
		supported: Automatic, 4:3, 16:9
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
	link-status: Good 
		supported: Good, Bad
	CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 
		0 1 
	CONNECTOR_ID: 83 
		supported: 83
	non-desktop: 0 
		range: (0, 1)
   1280x720      60.00 +  50.00    59.94  
   1920x1080     60.00    50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1600x1200     60.00  
   1680x1050     59.88  
   1400x1050     59.95  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x960      60.00  
   1366x768      59.79  
   1360x768      60.02  
   1280x800      59.91  
   1280x768      59.87  
   1024x768      75.03    70.07    60.00  
   800x600       60.32  
   720x576       50.00  
   720x576i      50.00  
   720x480       60.00    59.94  
   720x480i      60.00    59.94* 
   640x480       60.00    59.94  

I attempted to use the --transform option, hoping that by adjusting the first 2 diagonal matrix entries I could have xrandr take the whole 720x480i set of pixels and smoosh it into the upper left corner of the TV and leave a black region behind, but instead, --transform always resulted in the resolution changing, deviating from 720x480i to compensate for the scale difference to preserve the area on the monitor occupied by the screen. This meant that --transform could only have the effect of translating, rotating, skewing, and changing the pixel density of the screen. There was no way I could figure out to change the actual area occupied on the screen.

I saw a forum entry suggest that --transform could be combined with a restricted frame buffer, smaller than the new resolution by using --fb, but for me this ended up still increasing the resolution of the screen but simply making the overflowing portion invisible. This is not desired.

Does anyone know if there's a way to fake underscan, either with xrandr or something else that runs on top of X?

53 points10 comments
Open on Reddit
About this post
Posted
Archived
Score
53 · 99% up
Kind
Text
ID
vohnju

Author

22
posts
208
comments
0
media
View profile

10 comments

Silly question, are you sure the TV resolution isn't 640x480? 720x480i seems like a weird resolution for a CRT, and as far as I can recall CRTs don't do interlaced, they're progressive scan.

8 points

Frankly, I'm not so concerned about getting the resolution right. I'm fine to switch to any resolution just so long as the whole image appears in frame.

3 points

CRTs absolutely do interlaced. Many video games back in the day were interlaced only and having progressive scan was a big deal.

The electron gun may not actually shoot every other line but they absolutely support interlaced signals.

1 points

Probably irrelevant to your question, but have you looked into accessing its service menu?

Depending on how old it is, it might have a service menu built in with which you could adjust the scan settings.

If it's old for a CRT age, then it probably doesn't have it (maybe programmable through some eprom but that's a topic of its own).

4 points

It does have a service menu, but the only geometry option is horizontal translation.

I'm glad you brought it up though. I saw the words "service menu" online and assumed it just meant the user menu, and I didn't realize that the service menu has separate, more advanced settings. I found a service manual for a similar TV and managed to open up the service menu. None of the menu options are labeled for what they do, and I noticed that some of the options described in the manual didn't correspond to what the options did on my TV, so I just tried every single service menu option until I found something that made a visual difference.

Unfortunately, after testing all of about 4 dozen service menu options, I could only find one setting that changed the geometry: horizontal translation. Nonetheless, I'm glad you taught me something new about my TV!

1 points

Can I ask why you are using a CRT tv as a second monitor? Genuinely just really peaked my interest!

2 points

Honestly it's more for novelty than it is for practicality. I was born post 2000, but I still feel nostalgic for the old CRT TVs my family used while I was little. I generally have a fondness for the engineering simplicity of old tech; it's as though I could create a CRT TV myself if I had enough resources. I'd like to run some retro games using emulators for various 6502-based systems available on the Arch repos, and having a CRT really adds to the immersion.

Despite not really having a good reason to use a CRT, I'd really like to know how to set it up for use on an Arch Linux machine. It's good learning experience for me, and it would put me at ease to know that tools like X and xrandr do have such capabilities.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.