LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-14-2017, 07:30 PM   #1
square-eyes
LQ Newbie
 
Registered: Apr 2017
Posts: 14

Rep: Reputation: Disabled
Intel NUC 5CPYH HDMI connected to a TV with overscan.


Intel NUC 5CPYH is replacing a old beige box containing a GeForce 210. I used a feature in the NVIDIA config program to compensate for the TV over-scanning, which there is no way to turn off.

TV panel is 1280x720 and I used that resolution with 1220x686 +30 +16 in one of the nvidia driver options.

TV is a cheap brand you've never heard of and I honestly thought the TV would be in the landfill by now. So I'm stuck with it.

Tried as many suggestions I can find on the web for xrandr with the NUC, not having any joy.

Wondering if anyone has had more luck forcing borders on a desktop.

Last edited by square-eyes; 04-19-2017 at 04:51 PM.
 
Old 04-15-2017, 09:08 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
xrandr --output HDMI-0 --set underscan on
xrandr --output HDMI-0 --set "underscan hborder" 30 --set "underscan vborder" 16

mostly from:

http://www.linuxquestions.org/questi...tv-4175584911/

or on a one liner:

Code:
xrandr --output HDMI-0 --mode 1220x686 --set underscan on --set "underscan hborder" 30 --set "underscan vborder" 16
The name of your device might differ, HDMI1, eDP1, ... ... ... And that mode / resolution might not be selectable. Plus nVidia and xrandr might be problematic.

$ xrandr

$ nvidia-xconfig
 
1 members found this post helpful.
Old 04-18-2017, 04:16 PM   #3
square-eyes
LQ Newbie
 
Registered: Apr 2017
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
xrandr --output HDMI-0 --set underscan on
xrandr --output HDMI-0 --set "underscan hborder" 30 --set "underscan vborder" 16

mostly from:

http://www.linuxquestions.org/questi...tv-4175584911/

or on a one liner:

Code:
xrandr --output HDMI-0 --mode 1220x686 --set underscan on --set "underscan hborder" 30 --set "underscan vborder" 16
The name of your device might differ, HDMI1, eDP1, ... ... ... And that mode / resolution might not be selectable. Plus nVidia and xrandr might be problematic.

$ xrandr

$ nvidia-xconfig

Trying on NUC5CPYH, which has Intel HD graphics..

Code:
[squareeyes@localhost ~]$ xrandr --output HDMI-0 --mode 1220x686 --set underscan on --set "underscan hborder" 30 --set "underscan vborder" 16
warning: output HDMI-0 not found; ignoring
X Error of failed request:  BadRROutput (invalid Output parameter)
  Major opcode of failed request:  139 (RANDR)
  Minor opcode of failed request:  15 (RRGetOutputProperty)
  Serial number of failed request:  38
  Current serial number in output stream:  38

[squareeyes@localhost ~]$ xrandr --output HDMI2 --mode 1220x686 --set underscan on --set "underscan hborder" 30 --set "underscan vborder" 16
xrandr: cannot find mode 1220x686

[squareeyes@localhost ~]$ xrandr --output HDMI2 --mode 1280x720 --set underscan on --set "underscan hborder" 30 --set "underscan vborder" 16
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  139 (RANDR)
  Minor opcode of failed request:  11 (RRQueryOutputProperty)
  Serial number of failed request:  39
  Current serial number in output stream:  39
 
Old 04-18-2017, 09:02 PM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
I don't seem to have underscan / overscan on my HP Stream 11, also with an intel GPU. If fiddled with my Sanyo display, in theory 42" and 1080p, but it has pretty hideous overscan. In reality, setting a mode of 1776x1000 seems to trigger a native resolution. Although there only seemed to be 1652x929 pixels on screen with an offeset of +62+35 to have your program at the top left.

Code:
xrandr --newmode "1776x1000" 147.05 1776 1880 2072 2368 1000 1001 1004 1035 +hsync
xrandr --addmode HDMI1 "1776x1000"
xrandr --output HDMI1 --mode 1776x1000 --panning 1776x1000 --primary \
       --output eDP1 --mode 1366x768 --panning 1776x1000
Not exactly useful unless you operate in a subwindow / Xephyr of 1652x929 and offset at +61+34 if window decoration is only 1px on all sides. But probably not what you or I are going for.

There's a transform thing and it's more human readable --scale --scale-from variant. But that does little more than squeeze 1920x1080 to the native 1366x768 of the laptop LCD. Not really good for much beyond moving watching battleship style. Maybe an once more battery life if the GPU uses less power rendering a 1080p image instead of 768p.

Code:
xrandr --output eDP1 --mode 1366x768 --panning 1920x1080 --scale 1366x768 --scale-from 1920x1080
Be sure to have the reverse already in your .bash_history or have your recall / typing accuracy at 100%. Or undoing that one will have little visual assistance. Baring really large fonts. The intel-gpu-tools package seems to have mostly monitoring / debugging stuff, nothing really useful for fiddling with the output signal. I guess your guess is as good as mine at this point. I used to have an ATI visiontek HD 4550 GPU that eventually (after an update) worked out of the box on the old SANYO display/TV. Nothing that I've used on it since has worked well with it though. And I recall the 1776x1000 being every pixel on screen in that moment in time. Mostly it's a headache best avoided, especially since that beast draws 450W's from the wall (in theory).
 
1 members found this post helpful.
Old 04-18-2017, 09:39 PM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
It seems that this AMD system has underscan.

Code:
xrandr --verbose
...
	dither: off 
		supported: off, on
	audio: auto 
		supported: off, on, auto
	underscan vborder: 0 
		range: (0, 128)
	underscan hborder: 0 
		range: (0, 128)
	underscan: off 
		supported: off, on, auto
...
I didn't have those underscan options on the intel system.
 
1 members found this post helpful.
Old 04-19-2017, 12:44 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by square-eyes View Post
Wondering if anyone has had more luck forcing borders on a desktop.
i know for a fact that the openbox window manager allows one to adjust a margin on all 4 sides of the screen.
maybe a suitable workaround?
 
1 members found this post helpful.
Old 04-19-2017, 01:45 AM   #7
square-eyes
LQ Newbie
 
Registered: Apr 2017
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
i know for a fact that the openbox window manager allows one to adjust a margin on all 4 sides of the screen.
maybe a suitable workaround?


Aw man! That's exactly what I need.

This machine I'm typing on now is used for work and is LXDE. I went to the config on the task bar, opened the openbox config and found option tab that sets margins. Wow. I've stared at this desktop for 6 years and have never noticed that. Will try that trick on the NUC since it's a spawn of the same software.

Thanks ondoho and Shadow_7

Marking this as solved.
 
Old 04-19-2017, 11:55 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by square-eyes View Post
glad to be of help!
 
Old 04-19-2017, 12:34 PM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Code:
xrandr --output HDMI1 --mode 1920x1080 --panning 1920x1080 --primary --output eDP1 --mode 1366x768 --panning 1920x1080
xrandr --output HDMI1 --transform 1.0735,0,-72,0,1.075,-41,0,0,1
xrandr --output HDMI1 --brightness 1.05 --gamma 0.95:0.95:0.95
xset -dpms s noblank s noexpose
About the closest yet for the hp stream 11 and the early generation Sanyo. By no means native. But pretty good for media files. Derived by a little bit of math and a lot of trial and error. Just good enough at 0.0005 scaling accuracy to hide the dirty edges.

There's intel_panel_fitter, but that's non-functional for my GPU.

# intel_panel_fitter -l
# intel_panel_fitter -p A -x 1220 -y 686

Maybe that'll work for you.
 
  


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
Intel NUC 5CPYH HDMI connected to a TV with overscan. square-eyes Linux - Hardware 1 04-15-2017 02:24 PM
[SOLVED] Intel Nuc - No HDMI Audio available Tadaen Linux - Newbie 3 02-11-2017 09:49 AM
[SOLVED] Slackware 14.2 + Intel NUC + HDMI = slow video/audio TL_CLD Slackware 13 12-15-2016 02:55 AM
HDMI audio on Intel NUC DN2820FYK louigi600 Slackware 22 03-16-2015 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:13 AM.

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