LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 12:20 PM   #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 07:21 AM. Reason: emphasis
 
Old 04-14-2011, 02:00 PM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

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

Original Poster
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, 08:09 PM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
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, 07:11 PM   #5
Eredeath
Member
 
Registered: Jul 2008
Distribution: Arch
Posts: 41
Blog Entries: 3

Original Poster
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, 07:55 PM   #6
Eredeath
Member
 
Registered: Jul 2008
Distribution: Arch
Posts: 41
Blog Entries: 3

Original Poster
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, 08:25 PM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:44 PM
SuSE 9.1 [Pro] G450, DVI LCD & VGA Y Splitter sync24 Linux - Hardware 5 03-23-2009 08:22 PM
nVidia driver - Low resolution with DVI splitter IMNOboist Linux - Hardware 1 03-09-2009 11:18 AM
Console Resolution: VGA Values hsimah Linux - General 11 07-08-2008 09:55 AM
Canīt change VGA Resolution under SUSE 10 bbmorales Linux - Hardware 3 07-09-2007 01:01 PM


All times are GMT -5. The time now is 11:09 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration