LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-21-2004, 08:45 AM   #1
vern518
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
External Monitor detection from laptop


I have a laptop that during bootup will detect an external monitor and work with no problem, but when hooked up to a system of switches defaults to an incorrect monitor setting. Is there an easy way to put in default monitor settings and shut off monitor detection? I have attempted to edit the /etc/X11/XF86Config-4 file and had no luck.
 
Old 12-21-2004, 02:50 PM   #2
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Rep: Reputation: 30
what distro are you using?
 
Old 01-04-2005, 11:05 AM   #3
vern518
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Distro 8

We are using distrobution 8.
 
Old 01-06-2005, 07:36 AM   #4
basileus
Member
 
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Rep: Reputation: 30
An easy way to fix this would be to start X from command line, with two different layouts. If you want to use graphical login, I suppose you need some program that will detect the monitor and start X with appropriate configuration, or alternatively make my check (below) before starting any display manager.

Anyways, my solution, which I had to apply to my laptop:

1) Make runlevel 3 the default in /etc/inittab, and if necessary, remove startup links to xdm, gdm or kdm from /etc/rc3.d (in debian). They are names like S99xdm or similar.

2) Add new monitor section to the /etc/X11/XF86Config-4 for the external monitor
3) Add new layout section to the same file, which uses external monitor
4) Start X with following commands, depending which monitor you want to use:

startx -- -layout your_internal_layout
startx -- -layout your_external_layout

You can edit the file .bash_profile in your homedir to ask which layout to use when you login:

echo "Is external monitor connected? (y/n)"
read yn

if [ "$yn" = "y" ]; then
startx -- -layout your_external_layout
else
startx -- -layout your_internal_layout
fi

That should work.
 
Old 01-19-2005, 02:04 PM   #5
vern518
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
That helps alot, but I want it to always default to the same monitor, no matter what it is hooked up to. What file do I edit and how do I edit it to always come up with the same monitor? And can I keep it from trying to recognize any monitor? I want it to boot up and load the same monitor settings everytime, in other words. Where do I do that?

I only want to have the same settings for the same monitor for the EXTERNAL monitor. Without changing the default monitor settings.

THANK YOU!!

Last edited by vern518; 01-19-2005 at 02:05 PM.
 
  


Reply


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
Laptop external monitor video problem tripmix Linux - Newbie 3 12-09-2004 07:48 AM
Linux Laptop External Monitor Help Please!! Law1213 Mandriva 12 07-15-2004 03:52 PM
Laptop connected to external monitor codegomer Linux - General 0 04-21-2004 12:26 AM
Laptop and Docking Station or External Monitor lewt Fedora 0 11-13-2003 09:03 PM
external monitor on a laptop bobterri Linux - Hardware 2 01-14-2003 07:30 PM


All times are GMT -5. The time now is 03:26 AM.

Main Menu
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