Lenovo B300 display is too big and shown as Unknown VGA-1. How to solve?

I just installed Mint on an old Lenovo All-in-One PC. Neofetch results are as follows;

             ...-:::::-...                 stark@shawshank 
          .-MMMMMMMMMMMMMMM-.              --------------- 
      .-MMMM`..-:::::::-..`MMMM-.          OS: Linux Mint 20.2 x86_64 
    .:MMMM.:MMMMMMMMMMMMMMM:.MMMM:.        Host: IdeaCentre B300 10051 Lenovo 
   -MMM-M---MMMMMMMMMMMMMMMMMMM.MMM-       Kernel: 5.4.0-74-generic 
 `:MMM:MM`  :MMMM:....::-...-MMMM:MMM:`    Uptime: 8 mins 
 :MMM:MMM`  :MM:`  ``    ``  `:MMM:MMM:    Packages: 1998 (dpkg) 
.MMM.MMMM`  :MM.  -MM.  .MM-  `MMMM.MMM.   Shell: bash 5.0.17 
:MMM:MMMM`  :MM.  -MM-  .MM:  `MMMM-MMM:   Resolution: 1024x768 
:MMM:MMMM`  :MM.  -MM-  .MM:  `MMMM:MMM:   DE: Cinnamon 
:MMM:MMMM`  :MM.  -MM-  .MM:  `MMMM-MMM:   WM: Mutter (Muffin) 
.MMM.MMMM`  :MM:--:MM:--:MM:  `MMMM.MMM.   WM Theme: Mint-Y-Dark (Mint-Y) 
 :MMM:MMM-  `-MMMMMMMMMMMM-`  -MMM-MMM:    Theme: Mint-Y [GTK2/3] 
  :MMM:MMM:`                `:MMM:MMM:     Icons: Mint-Y [GTK2/3] 
   .MMM.MMMM:--------------:MMMM.MMM.      Terminal: gnome-terminal 
     '-MMMM.-MMMMMMMMMMMMMMM-.MMMM-'       CPU: Intel Core 2 Duo E7500 (2) @ 2.933GHz 
       '.-MMMM``--:::::--``MMMM-.'         GPU: Intel 4 Series Chipset 
            '-MMMMMMMMMMMMM-'              Memory: 1149MiB / 1952MiB 
stark@shawshank:~$ inxi -Fxz
  Kernel: 5.4.0-91-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 5.0.7 Distro: Linux Mint 20.2 Uma 
  base: Ubuntu 20.04 focal 
  Type: Desktop System: LENOVO product: IdeaCentre B300 10051 v: Lenovo 
  serial: <filter> 
  Mobo: LENOVO model: N/A serial: <filter> BIOS: LENOVO v: D4KT16AUS 
  date: 12/29/2010 
  Topology: Dual Core model: Intel Core2 Duo E7500 bits: 64 type: MCP 
  arch: Penryn rev: A L2 cache: 3072 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx bogomips: 11703 
  Speed: 1596 MHz min/max: 1600/2933 MHz Core speeds (MHz): 1: 1596 2: 1596 
  Device-1: Intel 4 Series Integrated Graphics vendor: Lenovo driver: i915 
  v: kernel bus ID: 00:02.0 
  Display: x11 server: X.Org 1.20.11 driver: modesetting 
  unloaded: fbdev,vesa resolution: 1024x768~60Hz 
  OpenGL: renderer: Mesa DRI Intel G41 (ELK) v: 2.1 Mesa 21.0.3 
  direct render: Yes 
  Device-1: Intel NM10/ICH7 Family High Definition Audio vendor: Lenovo 
  driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  Device-2: Z-Star Micro type: USB driver: snd-usb-audio,uvcvideo 
  bus ID: 1-8.2:4 
  Sound Server: ALSA v: k5.4.0-91-generic 
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Lenovo 
  driver: r8169 v: kernel port: e800 bus ID: 01:00.0 
  IF: ens32 state: down mac: <filter> 
  Device-2: Qualcomm Atheros AR9285 Wireless Network Adapter vendor: Lenovo 
  driver: ath9k v: kernel port: e800 bus ID: 02:00.0 
  IF: wls33 state: up mac: <filter> 
  Local Storage: total: 119.24 GiB used: 8.66 GiB (7.3%) 
  ID-1: /dev/sda model: 128GB SSD size: 119.24 GiB 
  ID-1: / size: 26.86 GiB used: 8.66 GiB (32.2%) fs: ext4 dev: /dev/sda6 
  System Temperatures: cpu: 44.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
  Processes: 183 Uptime: 34m Memory: 1.91 GiB used: 1.55 GiB (81.4%) 
  Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17 
  inxi: 3.0.38 
stark@shawshank:~$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
VGA-1 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  
  1920x1080 (0x114) 173.000MHz -HSync +VSync
        h: width  1920 start 2048 end 2248 total 2576 skew    0 clock  67.16KHz
        v: height 1080 start 1083 end 1088 total 1120           clock  59.96Hz
stark@shawshank:~$ lspci -k | grep -A 2 -i "VGA"
00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)
	Subsystem: Lenovo 4 Series Chipset Integrated Graphics Controller
	Kernel driver in use: i915
stark@shawshank:~$ for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done
VGA-1: connected

My display settings are showing Unknown VGA-1 and the display is too big with 1024x768. How to solve this issue and have decent resolution?

Need to know what resolution this monitor can handle.
Open up Synaptic and click search, type arandr. Once up double left click it a arrow will come up hit apply at the top and in the install box that comes up.
Open up your menu and go to all applications you should see it spelt as ARandR.
Open it, you’ll see Layout View Outputs Help across the top left click Outputs. The highlighted port that ARandR automatically highlights is your screen, hover your mouse over it and it should show you all the available resolutions. Can you not connect via HDMI? Then again might be worth getting another VGA lead, as this one looks like it does not support HD.
I see you’ve already used xrander, ArandR has better readability on resolutions. Have you also tried any driver installs from menu/System/Driver Manager? Sorry I did not read the first line, stating that it is an all in one PC. These are mainly made for Windows, don’t know if Linux has ever been installed on one.

[[Opened ARandR and it automatically fixed the issue. Display set to 1600x900. Thanks a lot!]]

Not working anymore after restart!! Issue persists

You need to save resolution in ARandR as a text file to your home folder, then set it to start at boot and it will run.

1 Like