Problem with overscan on the plasma TV

Hello,

I have older plasma FHD TV (Panasonic TX-P42GW30). I have connected two PCs to this TV over HDMI.

  1. RaspberryPi (Raspbian, OpenBox): the screen is perfectly fit.
  2. Intel NUC8i3BEK (Manjaro, KDE): the screen is overscanned behind all the edges of the TV.

In Raspberry Pi I don’t have any special in /boot/config.txt:

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=0

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=1
hdmi_mode=31

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
##hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

What I tried

I tried to run autorandr but it did nothing.

Next what I tried was xrandr -transform. Via GIMP I took screenshot and set perspective according to overscan. The result matrix I put in xrandr: xrandr --output DP-1 --transform 1.0473,0,-43.5,0,1.048,-25.5,0,0,1 It works in 75 %. The right side of the screen is still behind the edge of TV and I didn’t find out how to fix it. And at all it wasn’t pefrect.

The next try was with setting the new mode in xrandr. I used this script:

#!/bin/bash
RES="1920 1080 60" && \
DISP=$(xrandr | grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/") && \
MODELINE=$(cvt $(echo $RES) | grep -e "Modeline [^(]" | sed -r 's/.*Modeline (.*)/\1/') && \
MODERES=$(echo $MODELINE | grep -o -P '(?<=").*(?=")') && \
cat > ./xrandr_newmode.sh << _EOF
#!/bin/sh
xrandr --newmode $MODELINE
xrandr --addmode $DISP $MODERES
_EOF

I ran it on the Raspberry Pi, which generated script xrandr_newmode.sh that I copied on Intel NUC. But there already was mode 1920x1080 so it didn’t help.

Next try: set underscan in xrandr resulted in error:

$ xrandr --output DP-1 --set underscan on                                                                                 ✔
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  11 (RRQueryOutputProperty)
  Serial number of failed request:  32
  Current serial number in output stream:  32

Now I’m a little bit on the end. I appreciate if anybody knows how to fix it.

Comparing of xrandr -verbose from the Raspberry Pi (left side) and Intel NUC (right side):

  Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 7680 x 7680                                                             |  Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
  HDMI-1 connected primary 1920x1080+0+0 (0x42) normal (normal left inverted right x axis y axis) 698mm x 392mm                     |  DP-1 connected primary 1920x1080+0+0 (0x46) normal (normal left inverted right x axis y axis) 698mm x 392mm
          Identifier: 0x40                                                                                                          |          Identifier: 0x42
          Timestamp:  22648                                                                                                         |          Timestamp:  73547366
          Subpixel:   unknown                                                                                                       |          Subpixel:   unknown
          Gamma:      1.0:1.0:1.0                                                                                                   |          Gamma:      1.0:1.0:1.0
          Brightness: 1.0                                                                                                           |          Brightness: 1.0
          Clones:                                                                                                                   |          Clones:
          CRTC:       0                                                                                                             |          CRTC:       0
          CRTCs:      0                                                                                                             |          CRTCs:      0 1 2
          Transform:  1.000000 0.000000 0.000000                                                                                    |          Transform:  1.000000 0.000000 0.000000
                      0.000000 1.000000 0.000000                                                                                    |                      0.000000 1.000000 0.000000
                      0.000000 0.000000 1.000000                                                                                    |                      0.000000 0.000000 1.000000
                     filter:                                                                                                        |                     filter:
          EDID:                                                                                                                     |          EDID:
                  00ffffffffffff0034a9caa001010101                                                                                  |                  00ffffffffffff0034a9caa001010101
                  ~                                                                                                                 |                  ~
  ----------------------------------------------------------------------------------------------------------------------------------|          HDCP Content Type: HDCP Type0
  ----------------------------------------------------------------------------------------------------------------------------------|                  supported: HDCP Type0, HDCP Type1
  ----------------------------------------------------------------------------------------------------------------------------------|          Content Protection: Undesired
  ----------------------------------------------------------------------------------------------------------------------------------|                  supported: Undesired, Desired, Enabled
  ----------------------------------------------------------------------------------------------------------------------------------|          Colorspace: Default
  ----------------------------------------------------------------------------------------------------------------------------------|                  supported: Default, SMPTE_170M_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, opRGB, BT2020_CYCC, BT20
  ----------------------------------------------------------------------------------------------------------------------------------|          content type: No Data
  ----------------------------------------------------------------------------------------------------------------------------------|                  supported: No Data, Graphics, Photo, Cinema, Game
  ----------------------------------------------------------------------------------------------------------------------------------|          max bpc: 12
  ----------------------------------------------------------------------------------------------------------------------------------|                  range: (6, 12)
          Broadcast RGB: Automatic                                                                                                  |          Broadcast RGB: Automatic
                  supported: Automatic, Full, Limited 16:235                                                                        |                  supported: Automatic, Full, Limited 16:235
          bottom margin: 48                                                                                                         |          audio: auto
                  range: (0, 100)                                                                                                   |                  supported: force-dvi, off, auto, on
          top margin: 48                                                                                                            |          subconnector: HDMI
                  range: (0, 100)                                                                                                   |                  supported: Unknown, VGA, DVI-D, HDMI, DP, Wireless, Native
          right margin: 48                                                                                                          |  ----------------------------------------------------------------------------------------------------------------------------------
                  range: (0, 100)                                                                                                   |  ----------------------------------------------------------------------------------------------------------------------------------
          left margin: 48                                                                                                           |  ----------------------------------------------------------------------------------------------------------------------------------
                  range: (0, 100)                                                                                                   |  ----------------------------------------------------------------------------------------------------------------------------------
          link-status: Good                                                                                                         |          link-status: Good
                  supported: Good, Bad                                                                                              |                  supported: Good, Bad
          CONNECTOR_ID: 89                                                                                                          |          CONNECTOR_ID: 95
                  supported: 89                                                                                                     |                  supported: 95
          non-desktop: 0                                                                                                            |          non-desktop: 0
                  range: (0, 1)                                                                                                     |                  range: (0, 1)
    1920x1080 (0x42) 148.500MHz +HSync +VSync *current +preferred                                                                   |    1920x1080 (0x46) 148.500MHz +HSync +VSync *current +preferred
          h: width  1920 start 2448 end 2492 total 2640 skew    0 clock  56.25KHz                                                   |          h: width  1920 start 2448 end 2492 total 2640 skew    0 clock  56.25KHz
          v: height 1080 start 1084 end 1089 total 1125           clock  50.00Hz                                                    |          v: height 1080 start 1084 end 1089 total 1125           clock  50.00Hz
    1920x1080 (0x43) 148.500MHz +HSync +VSync                                                                                       |    1920x1080 (0x47) 148.500MHz +HSync +VSync
          h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.50KHz                                                   |          h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.50KHz

The Raspberry Pi contains this section which is not present in Intel NUC:

          bottom margin: 48   
                  range: (0, 100)  
          top margin: 48
                  range: (0, 100)
          right margin: 48
                  range: (0, 100)
          left margin: 48
                  range: (0, 100) 

But I don’t know if it something means or not. :slight_smile:

EDIT: I tried to use the fbset command with these params: -left 48 -right 48 -upper 48 -lower 48. But no success.