Setting highest resolution of 1920x1080 in my HDTV does not fill screen in Ubuntu 18.04
I have a Ubuntu 18.04 LTS desktop with Intel integrated graphics (Ivybridge) which I have connected to my Android TV using a VGA to HDMI adaptor (VGA from desktop to HDMI in TV). Ubuntu is unable to detect the highest resolution (1920x1080) automatically and these are the default modes listed by xrandr.
$ xrandr -q
Screen 0: minimum 8 x 8, current 1024 x 768, maximum 32767 x 32767
VGA1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.00*
800x600 60.32 56.25
848x480 60.00
640x480 59.94
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
I have used xrandr to add the 1920x1080 mode and use it following the set of commands below
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode VGA1 "1920x1080_60.00"
xrandr --output VGA1 --mode "1920x1080_60.00"
The arguments to the newmode are generated using "cvt" utility. While the resolution appears to be okay, the aspect ratio does not seem to be 16:9 and the desktop does not fill the whole display as shown in the attached picture below.
I have tried changing the refresh rate to the specified values of the TV manufacturer but without any success. I have also tried the different fitting option (Full, Unscaled, Wide, 16:9 etc.) provided in the TV's picture setting menu, which also doesn't help. I couldn't find this kind of issue anywhere. I'll truly appreciate any help in this regard.
Many thanks.
Here are some of the system info:
$ glxinfo -B
name of display: :1
display: :1 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: VMware, Inc. (0xffffffff)
Device: llvmpipe (LLVM 10.0.0, 128 bits) (0xffffffff)
Version: 20.1.4
Accelerated: no
Video memory: 3772MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 3.3
Max compat profile version: 3.1
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.1
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 10.0.0, 128 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 20.1.4 - kisak-mesa PPA
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 3.1 Mesa 20.1.4 - kisak-mesa PPA
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 20.1.4 - kisak-mesa PPA
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
$ inxi -Gxx
Graphics: Device-1: Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics driver: i915 v: kernel bus ID: 00:02.0
chip ID: 8086:0152
Display: x11 server: X.Org 1.19.6 compositor: gnome-shell driver: intel resolution: 1920x1080~60Hz s-dpi: 96
OpenGL: renderer: llvmpipe (LLVM 10.0.0 128 bits) v: 3.3 Mesa 20.1.4 - kisak-mesa PPA compat-v: 3.1
direct render: Yes
$ sudo lshw -c video
*-display
description: VGA compatible controller
product: Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 09
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:28 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff
Some additional info are attached.