Everything stretched horizontally (Solved)

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
smokeymtn_ron
Level 3
Level 3
Posts: 192
Joined: Mon May 18, 2009 8:03 pm
Location: Southeast Asia

Everything stretched horizontally (Solved)

Post by smokeymtn_ron »

We had a power outage the other day. After the power came back on,I turned computer back on (desktop running Mint 20.1 cinnamon) and everything is stretched horizontally. Desktop and web pages. As an example, if an icon is supposed to be round, it is now oval. Even web pages are not fitting the screen, I have to use the bottom scroll to see the right side of page.

Any help would be greatly appreciated.

Ron
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31333
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Everything stretched horizontally

Post by SMG »

If you go into the BIOS/UEFI, are the graphics stretched there as well?

Please give us information about your install by entering this command in a terminal: inxi -Fxxxrz
Click </> from the mini toolbar above the textbox where you type your reply and then place your cursor between the code markers and paste the results of the command between the code markers [code]Results[/code]. This will let us know how Mint sees your hardware.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
smokeymtn_ron
Level 3
Level 3
Posts: 192
Joined: Mon May 18, 2009 8:03 pm
Location: Southeast Asia

Re: Everything stretched horizontally

Post by smokeymtn_ron »

Still having trouble getting into BIOS, but here is the other info you asked for.

Code: Select all

ron@ron-ThinkCentre-Edge71:~$ inxi -Fxxxrz
System:
  Kernel: 5.4.0-72-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1 dm: LightDM 1.30.0 
  Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop System: LENOVO product: 1607RW8 v: ThinkCentre Edge71 
  serial: <filter> 
  Mobo: LENOVO model: N/A serial: <filter> BIOS: LENOVO v: 9QKT34AUS 
  date: 12/16/2011 
Battery:
  Device-1: hidpp_battery_0 model: Logitech M570 serial: <filter> 
  charge: 50% rechargeable: yes status: Discharging 
CPU:
  Topology: Dual Core model: Intel Pentium G630 bits: 64 type: MCP 
  arch: Sandy Bridge rev: 7 L2 cache: 3072 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 10775 
  Speed: 1596 MHz min/max: 1600/2700 MHz Core speeds (MHz): 1: 1596 2: 1596 
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics 
  vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0102 
  Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1024x768~60Hz 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 2000 (SNB GT1) 
  v: 3.3 Mesa 20.2.6 compat-v: 3.0 direct render: Yes 
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio 
  vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  chip ID: 8086:1c20 
  Sound Server: ALSA v: k5.4.0-72-generic 
Network:
  Device-1: Qualcomm Atheros AR9485 Wireless Network Adapter driver: ath9k 
  v: kernel port: f040 bus ID: 02:00.0 chip ID: 168c:0032 
  IF: wlp2s0 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Lenovo driver: r8169 v: kernel port: e000 bus ID: 03:00.0 
  chip ID: 10ec:8168 
  IF: enp3s0 state: down mac: <filter> 
Drives:
  Local Storage: total: 465.76 GiB used: 36.35 GiB (7.8%) 
  ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB 
  speed: 3.0 Gb/s serial: <filter> rev: 2B6Q scheme: MBR 
Partition:
  ID-1: / size: 19.53 GiB used: 328.3 MiB (1.6%) fs: ext4 dev: /dev/sda1 
  ID-2: /boot size: 5.20 GiB used: 225.0 MiB (4.2%) fs: ext4 dev: /dev/sda2 
  ID-3: /home size: 97.48 GiB used: 12.54 GiB (12.9%) fs: ext4 
  dev: /dev/sda3 
  ID-4: /tmp size: 3.95 GiB used: 23.7 MiB (0.6%) fs: ext4 dev: /dev/sda7 
  ID-5: /usr size: 19.90 GiB used: 5.68 GiB (28.5%) fs: ext4 dev: /dev/sda6 
  ID-6: /var size: 7.76 GiB used: 1.13 GiB (14.6%) fs: ext4 dev: /dev/sda8 
  ID-7: swap-1 size: 1.09 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda5 
Sensors:
  System Temperatures: cpu: 42.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://mirrors.evowise.com/linuxmint/packages ulyssa main upstream import backport
  2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
  3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
  4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
  Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
  1: deb http://repo.vivaldi.com/stable/deb/ stable main
Info:
  Processes: 210 Uptime: 10m Memory: 7.63 GiB used: 1.50 GiB (19.7%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash 
  v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
ron@ron-ThinkCentre-Edge71:~$ 
smokeymtn_ron
Level 3
Level 3
Posts: 192
Joined: Mon May 18, 2009 8:03 pm
Location: Southeast Asia

Re: Everything stretched horizontally

Post by smokeymtn_ron »

A little more info.

1. Was watching a youtube video in full screen when power went out.
2. When I started computer after power came on The wall paper was not fit to screen. It was HUGE. Also had a blank screen along along right side of screen.
3. Even my fonts seem larger than they should be.

It just seems like everything is supersized and I can't figure out how to get it back to normal. :(

Here is an example of what I'm talking about. This emblem is supposed to be round, but when I open it, it's oval. Everything is like this.
Screenshot from 2021-05-10 13-41-35.png
Screenshot from 2021-05-10 13-41-35.png (72.99 KiB) Viewed 5782 times
User avatar
SMG
Level 25
Level 25
Posts: 31333
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Everything stretched horizontally

Post by SMG »

smokeymtn_ron wrote: Mon May 10, 2021 1:46 am Here is an example of what I'm talking about. This emblem is supposed to be round, but when I open it, it's oval. Everything is like this.
When I look at this image, I see a circle.

If you are seeing something distorted on the screen, but a screenshot shows something different, that is often a case of something happening to either your monitor or the cable to the monitor.

Hopefully, others will let us know what they are seeing in the image.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
smokeymtn_ron
Level 3
Level 3
Posts: 192
Joined: Mon May 18, 2009 8:03 pm
Location: Southeast Asia

Re: Everything stretched horizontally

Post by smokeymtn_ron »

OK, it looks like it is something with my monitor, but I can't figure out what.

I can get it to appear correctly ,(not stretched), but it is only taking up part of my screen. In other words, I have a large black border on both sides. (Vertical is fine). I will try to get a picture with my phone later to show what I'm talking about.
User avatar
SMG
Level 25
Level 25
Posts: 31333
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Everything stretched horizontally

Post by SMG »

smokeymtn_ron wrote: Mon May 10, 2021 5:36 pmI can get it to appear correctly ,(not stretched), but it is only taking up part of my screen. In other words, I have a large black border on both sides. (Vertical is fine).
Are you making the adjustments with buttons on the monitor or are you making changes in the Displays app?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
rene
Level 20
Level 20
Posts: 12240
Joined: Sun Mar 27, 2016 6:58 pm

Re: Everything stretched horizontally

Post by rene »

You are in the above showing a resolution of 1024x768 which is these days very low and which is moreover a 4:3 aspect ratio. If your monitor is in fact e.g. 1920x1080, i.e., 16:9, then certainly it makes sense that a 1024x768 picture when stretched to fit 1920x1080 pixels by the monitor would be vertically compressed / horizontally stretched or have left/right sidebars when not stretched.

I suppose the first thing to do is have you go into your monitor properties and see how your monitor's resolution is detected. I expect it shows as a "generic" monitor with 1024x768 as in fact the best available resolution meaning you couldn't change it there; that would indicate something being amiss with the videocard receiving the monitor DDC data.

Yes, possibly through cable, but either side of said cable (monitor and videocard) could also be to blame. The history with this being post a power failure seems to hint at something more electrical than cable --- but be sure to shut down the system and reseat the cable at both ends and/or if possible try a different cable. Fully shutdown preferably in fact, i.e., remove the power cord after shutting down from both computer and monitor. Things may have reset themselves when you then after a few minutes plug in and turn on again. If not, mmm, seems you may have a bit of hardware damage...
smokeymtn_ron
Level 3
Level 3
Posts: 192
Joined: Mon May 18, 2009 8:03 pm
Location: Southeast Asia

Re: Everything stretched horizontally

Post by smokeymtn_ron »

I really appreciate your help. I'll try the reset your talking about.
smokeymtn_ron
Level 3
Level 3
Posts: 192
Joined: Mon May 18, 2009 8:03 pm
Location: Southeast Asia

Re: Everything stretched horizontally

Post by smokeymtn_ron »

Well disconnected everything...Waited 15 minutes, plugged everything back in...Same problem.
Here is a picture of what it looks like.
IMG_0646_2.JPG
User avatar
AndyMH
Level 21
Level 21
Posts: 13578
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Everything stretched horizontally

Post by AndyMH »

What does the output of xrandr --verbose show? That will give us an initial view of what mint thinks about the monitor. But from what I've read it does sound more hardware than software.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
rene
Level 20
Level 20
Posts: 12240
Joined: Sun Mar 27, 2016 6:58 pm

Re: Everything stretched horizontally

Post by rene »

smokeymtn_ron wrote: Mon May 10, 2021 9:51 pm Well disconnected everything...Waited 15 minutes, plugged everything back in...Same problem.
Unfortunate. Yes, the by Andy requested xrandr output is good to see but perhaps also just go into Preferences -> Display and see if indeed your monitor is detected as some "generic" one and does not allow manual resolution setting. The display is indeed as expected for having a 16:9 monitor display a 4:3 image.

How possible it is depends on what hardware you have available but you'd next start eliminating culprits by different cable, different monitor, different videocard. If for some reason it turns out that e.g. the DDC chip/data in your monitor is fried it's "sort of" possible to fake things up for Linux in a software manner but that's more a hack than anything else, so if things work immediately fine again with another monitor I'd myself treat the existing one as having kicked the bucket...
smokeymtn_ron
Level 3
Level 3
Posts: 192
Joined: Mon May 18, 2009 8:03 pm
Location: Southeast Asia

Re: Everything stretched horizontally

Post by smokeymtn_ron »

Thanks everybody for helping. Here is the output of xrandr --verbose. (Sorry it took so long to get back, internet has been out since yesterday).

Code: Select all

ron@ron-ThinkCentre-Edge71:~$  xrandr --verbose
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
VGA-1 connected primary 1024x768+0+0 (0x45) normal (normal left inverted right x axis y axis) 0mm x 0mm
	Identifier: 0x41
	Timestamp:  27199551
	Subpixel:   unknown
	Gamma:      1.0:1.0:1.0
	Brightness: 1.0
	Clones:    
	CRTC:       0
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	link-status: Good 
		supported: Good, Bad
	CONNECTOR_ID: 55 
		supported: 55
	non-desktop: 0 
		range: (0, 1)
  1024x768 (0x45) 65.000MHz -HSync -VSync *current
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x46) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  800x600 (0x47) 36.000MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz
  848x480 (0x48) 33.750MHz +HSync +VSync
        h: width   848 start  864 end  976 total 1088 skew    0 clock  31.02KHz
        v: height  480 start  486 end  494 total  517           clock  60.00Hz
  640x480 (0x49) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
HDMI-1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x42
	Timestamp:  27199551
	Subpixel:   unknown
	Clones:    
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	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
	CONNECTOR_ID: 58 
		supported: 58
	non-desktop: 0 
		range: (0, 1)
DP-1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x43
	Timestamp:  27199551
	Subpixel:   unknown
	Clones:    
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	max bpc: 12 
		range: (6, 12)
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
	link-status: Good 
		supported: Good, Bad
	CONNECTOR_ID: 66 
		supported: 66
	non-desktop: 0 
		range: (0, 1)
ron@ron-ThinkCentre-Edge71:~$ 
User avatar
AndyMH
Level 21
Level 21
Posts: 13578
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Everything stretched horizontally

Post by AndyMH »

Highest resolution showing is 1024x768. My best guess is that it is not reading the EDID from the monitor for some reason.

Have a look here:
viewtopic.php?p=2014192#p2014192
Try and get the EDID following the steps outlined, see if it provides a higher resolution. Still think it is a hardware problem.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
smokeymtn_ron
Level 3
Level 3
Posts: 192
Joined: Mon May 18, 2009 8:03 pm
Location: Southeast Asia

Re: Everything stretched horizontally

Post by smokeymtn_ron »

From the link you provided:
We are looking for the i2c bus the monitor is on. In my case there are two monitors on buses 3 and 4. 3 is my laptop screen, 4 is my external LG ultrawide.
Does this mean it can't find my monitor? Also I found out from the monitor manual, the native resolution is 1366 X 768 60Hz. Is there any way to add this resolution?

Code: Select all

ron@ron-ThinkCentre-Edge71:~$ sudo get-edid
[sudo] password for ron:        
This is read-edid version 3.0.2. Prepare for some fun.
Attempting to use i2c interface
No EDID on bus 1
No EDID on bus 2
No EDID on bus 3
No EDID on bus 4
No EDID on bus 5
No EDID on bus 6
No EDID on bus 7
1 potential busses found: 0
Bus 0 doesn't really have an EDID...
Couldn't find an accessible EDID on this computer.
Attempting to use the classical VBE interface
mmap /dev/zero: Operation not permitted
error initialising realmode interface
do you have full superuser (root) permissions?
I'm sorry nothing was successful. Maybe try some other arguments
if you played with them, or send an email to Matthew Kern <pyrophobicman@gmail.com>.
ron@ron-ThinkCentre-Edge71:~$
User avatar
AndyMH
Level 21
Level 21
Posts: 13578
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Everything stretched horizontally

Post by AndyMH »

Code: Select all

1 potential busses found: 0
Bus 0 doesn't really have an EDID...
Could be the problem, no EDID read from the monitor.

What is the native resolution of the monitor?
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
smokeymtn_ron
Level 3
Level 3
Posts: 192
Joined: Mon May 18, 2009 8:03 pm
Location: Southeast Asia

Re: Everything stretched horizontally

Post by smokeymtn_ron »

I am ALMOST a happy camper now. :D :D :D :D :D (Yes it wasn't the right native resolution).
I followed this https://technofall.com/how-change-resol ... lay-linux/. Screen is back as it should be :D :D :D

Only one problem left:
If you open the link above, everything worked OK until I got to this last part.
This is the final command which will change the resolution of your unknown display. These commands will just make temporary changes until the system is rebooted. After that the changes will be gone, so we need to add this to the startup default parameters.

You can either make a bash or python script and initialize it to run at the start. Or add these commands to /etc/gdm/init this file. In my case it was gdm3 instead of just gdm. To edit the file simply type:
I do not have a /etc/gdm and my 72 year old brain can't figure out where to put or how to set up the script they're talking about.
smokeymtn_ron
Level 3
Level 3
Posts: 192
Joined: Mon May 18, 2009 8:03 pm
Location: Southeast Asia

Re: Everything stretched horizontally

Post by smokeymtn_ron »

Also look at the comment listed on the page. looks like a good script...But where do I put it?
User avatar
AndyMH
Level 21
Level 21
Posts: 13578
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Everything stretched horizontally

Post by AndyMH »

There are two places you can put it to make it permanent, depending where in the boot sequence you want the resolution set.

The easiest is simply to add the commands to the end of your .profile file, lives in /home/you. This will set the resolution after login, so your login screen will be at the 'wrong' resolution.

More complicated, but what I do.

Create a new file in /etc/lightdm/lightdm.conf.d, mine is 71-linuxmint.conf. Basically one number higher than the existing file.
Screenshot from 2021-05-13 11-07-20.png
The content of this file looks like:

Code: Select all

[SeatDefaults]
user-session=cinnamon
display-setup-script=/usr/bin/LGmonitor.bsh
You can name your script whatever you want and put it wherever you want. If not using cinnamon, then change it. Basically, the content is identical to 70-linuxmint.conf with the addition to point at your setup script. The script must be made executable.

The contents of my LGmonitor.bsh look like:

Code: Select all

#!/bin/bash
if xrandr | grep -q "HDMI-2 connected"; then
    xrandr --newmode "2560x1080" 185.58 2560 2624 2688 2784 1080 1083 1093 1111 -hsync -vsync
    xrandr --addmode HDMI-2 "2560x1080"
    xrandr --output HDMI-2 --mode "2560x1080"
fi
Change the xrandr commands to what worked for your monitor. I have an if clause because this is on a laptop with an external monitor, don't want it setting the mode if the monitor is not attached = no GUI boot.

This sets the resolution when linux boots into the GUI, so you get the correct resolution at the login screen.

Best to have a mint install stick to hand when you do this, make a mistake and it won't boot. I've done this several times with new installs, e.g. forgetting to make the script executable. Had to boot the install stick to undo the changes and redo correctly.

Note you needn't have looked outside the forum for your 'how to' - viewtopic.php?p=2015025#p2015025, ongoing and we don't have a working answer yet. :(
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
smokeymtn_ron
Level 3
Level 3
Posts: 192
Joined: Mon May 18, 2009 8:03 pm
Location: Southeast Asia

Re: Everything stretched horizontally

Post by smokeymtn_ron »

AndyMH,
Thank you so much for all your help!!!! I followed your set up using this setup
Create a new file in /etc/lightdm/lightdm.conf.d, mine is 71-linuxmint.conf. Basically one number higher than the existing file.
and it worked GREAT. Can't thank you enough.

If you're ever in the Philippines, the beers are on me.
Locked

Return to “Graphics Cards & Monitors”