LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-14-2011, 11:20 AM   #1
Eredeath
Member
 
Registered: Jul 2008
Distribution: Arch
Posts: 41
Blog Entries: 3

Rep: Reputation: 16
Resolution problems when using VGA splitter between Desktop and TV


So I bought a VGA splitter and a long VGA cord so I could send the output to my new HD TV. It worked fine, I had my screen duplicated perfectly onto my tv. That is until I restarted the computer. Now everything is screwed up.

When I unplugged the TV and restarted it went back to detecting my monitor and it worked like before.

When I have both the TV and monitor plugged in, I can't get better than 800x600 resolution. I tried playing around with xrandr and followed a blog substituting my own resolution numbers in to create a 1680x1050 mode display... well one of the numbers (or more) must have been wrong because everything is just a little blurry and looking at the screen was starting to hurt my eyes.

So I unplugged the TV and restarted... and here I am looking for some help. If I plug in the tv right now, all is well. Then if i restart and leave the tv plugged in, my resolution goes to hell.
How do I stop it from auto detecting and changing my screen resolution?
I don't have a xorg.conf file, from what I've read Ubuntu 10.04 and up no longer uses one, so lets not go there if we don't have to.

Last edited by Eredeath; 04-15-2011 at 06:21 AM. Reason: emphasis
 
Old 04-14-2011, 01:00 PM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
What is the resolution of your TV?
 
Old 04-14-2011, 04:29 PM   #3
Eredeath
Member
 
Registered: Jul 2008
Distribution: Arch
Posts: 41

Original Poster
Blog Entries: 3

Rep: Reputation: 16
Quote:
Originally Posted by MTK358 View Post
What is the resolution of your TV?
I'm actually not sure... its 1080p. I don't think that matters. When I had the tv running off the split signal the tv auto adjusted and it looked just fine. I'm not using it as a monitor per se, I'm using it to watch shows off of services like hulu.
 
Old 04-14-2011, 07:09 PM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
1080p means 1920x1080.

http://upload.wikimedia.org/wikipedi..._scan_hdtv.svg

I thought that maybe your TV's resolution was much smaller than the monitor, and that that might cause issues.
 
Old 04-15-2011, 06:11 PM   #5
Eredeath
Member
 
Registered: Jul 2008
Distribution: Arch
Posts: 41

Original Poster
Blog Entries: 3

Rep: Reputation: 16
Unhappy workaround but not solved

I figured out a workaround that will do for now, but I will not mark the thread as solved until a more permanent solution is found. Here is what I did:

I booted the computer with the TV disconnected, used the command
Code:
xrandr --verbose
to get my current screen's settings.
Using those settings I created a script:
Code:
xrandr --newmode "MonitorAndTV" 146.2 1680 1784 1960 2240 1050 1053 1059 1089 -HSync -VSync
xrandr --addmode VGA1 "MonitorAndTV"
xrandr --output VGA1 --mode "MonitorAndTV"
and put it into my startup programs.

This of course is not ideal, my login screen is still in 800x600 resolution, if i create another user i would also have to duplicate the script and put it into their start ups... I would just like to unplug the TV, have it auto figure out the resolution then make that the default, and don't let it auto adjust again.
 
Old 04-15-2011, 06:55 PM   #6
Eredeath
Member
 
Registered: Jul 2008
Distribution: Arch
Posts: 41

Original Poster
Blog Entries: 3

Rep: Reputation: 16
Thumbs up Now it's solved

I found out how to make the script persistent. I followed these instructions from Ubuntu Wiki
Quote:
Setting xrandr commands in kdm/gdm startup scripts

Both KDM and GDM have startup scripts that are executed when X is initiated. For GDM, these are in /etc/gdm/ , while for KDM this is done at /etc/kde4/kdm/Xsetup. In either case, you can paste in an xrandr command line string into one of these scripts. For GDM, try putting them right before initctl -q emit login-session-start DISPLAY_MANAGER=gdm in /etc/gdm/Init/Default
Everything looks nice now. Hope this helps others.
 
Old 04-15-2011, 07:25 PM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Not sure if this will work for GNOME/KDE users, but here's the solution if you use startx:

Just enter the commands you want to run as X is started into ~/.xinitrc. It's basically a bash script that's run right after X is started.
 
  


Reply

Tags
resolution, screen resolution, vga



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change the VGA-Resolution? Firew Linux - General 4 07-16-2009 05:44 PM
SuSE 9.1 [Pro] G450, DVI LCD & VGA Y Splitter sync24 Linux - Hardware 5 03-23-2009 07:22 PM
nVidia driver - Low resolution with DVI splitter IMNOboist Linux - Hardware 1 03-09-2009 10:18 AM
Console Resolution: VGA Values hsimah Linux - General 11 07-08-2008 08:55 AM
Canīt change VGA Resolution under SUSE 10 bbmorales Linux - Hardware 3 07-09-2007 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration