Watch movie and now display was stretched
We used my Laptop to watch a movie the other night. A vga cable connects it to the tv. Afterwards the display on my monitor was stretched too wide. I tried messing with fonts, icon size, conky settings, cairo-dock settings, chromium settings all in an effort to return my display to normal
Was chatting with my son about it and he asked if the cable was still attached. It was. Disconnect cable, logout, restart x and now is OK. Is there some other way to gain control? |
Uou can use xrandr to change all of that. I used to do the same thing with my laptop, so I just wrote a script to change the resolutions automatically.
|
While xrander can certainly do the job, there are possibly other tools you might find easier and quicker to use. This is especially true for nvidia graphics since it has both cli and gui versions of it's nvida-settings which can not only establish and reset resolutions and other characteristics but can write such settings to either an rc file or directly to xorg.conf. Could you find and give info on your laptop model and/or graphics chipset?
|
Quote:
Code:
description: Notebook |
gives instructions on how to set xrandr
|
I saw a YouTube video that recommended this. I haven't tried it myself.
https://slackbuilds.org/repository/1...?search=arandr |
I am running nvidia here and could not get xrandr to work correctly. After a lot of faffing i got the nvidia cli tool working, tied it to a keyboard shortcut that turns the TV on de-mutes my pc and starts kodi and when its invoked again resets everything.
The nvidia gui app is more than capable and will reset every thing with little effort. However if you need to reset it often then the commands I use are below and may help, don't forget to adjust DFP-0 and DFP-2 to the correct names and set the correct resolution before running them! Just the monitor Code:
nvidia-settings --assign CurrentMetaMode="DFP-0: nvidia-auto-select +0+0," Code:
nvidia-settings --assign CurrentMetaMode="DFP-0:nvidia-auto-select+0+0,DFP-2:nvidia-auto-select+1920+0{ViewPortIn=1920x1080,ViewPortOut=1820x1022+50+29}" |
Quote:
|
The first thing I would try is:
Code:
xrandr -q Code:
xrandr --output ${NAME_OF_DISPLAY} --auto |
Quote:
Code:
bash-4.3$ xrandr -q |
Is this with the VGA monitor attached? It looks like it is (or it thinks it is) based on the xrandr output. Here is what I do to manage an external display. Note that mine is HDMI1 instead of VGA-1, and my main display is LVDS1, so modify this to suit your system.
After plugging in the external monitor, I run this: Code:
xrandr -q When I am about to disconnect the external monitor, I run this first: Code:
xrandr --output HDMI1 --off |
Quote:
Anyway here is what I did Code:
xrandr -q Before unplugging I did Code:
xrandr --output VGA-1 --off since nothing happened I ran the first commend again and VOILA all returned to normal. Not at all what I expected but sure is sweet |
That's strange. My guess is that it's some shortcoming of the nouveau driver. If you haven't already and you think it is worth the trouble, you might give the nVidia proprietary driver a try. I don't have much experience with nVidia stuff myself.
|
Quote:
Thank you so much for the help and for a solution. I am going to mark this tread solved. Thanks again and thanks also to all who responded to my post |
If your setup uses xrandr and a single monitor, then the following will automatically set your video mode to the correct one:
Code:
xrandr \ |
All times are GMT -5. The time now is 06:44 AM. |