LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-08-2010, 11:52 AM   #16
saavedra29
Member
 
Registered: Aug 2010
Location: Greece
Distribution: slackware
Posts: 42

Original Poster
Rep: Reputation: 3

Ok everyone! I fixed it. I had to replace the VGA with VGA1 and LVDS with LVDS1. So simple.....
Thank you all for your help!
Finally i putted it in /etc/X11/xinit/xinitrc file.Just to know..

Last edited by saavedra29; 09-08-2010 at 11:54 AM.
 
Old 09-08-2010, 11:58 AM   #17
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,441

Rep: Reputation: 851Reputation: 851Reputation: 851Reputation: 851Reputation: 851Reputation: 851Reputation: 851
As you are starting X from the command line, then this is an alternative solution using an xorg.conf file.
If you do 'startx', then the default layout will be used which should be your laptop screen.
If you do 'startx -- -layout Layout1' then the alternate layout will be used which should be your external monitor. You could create an alias to save some typing.
Code:
Section "ServerFlags"
    Option "DefaultServerLayout"     "Layout0"
EndSection

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
EndSection

Section "ServerLayout"
    Identifier     "Layout1"
    Screen      0  "Screen1" 0 0
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "intel"
    VendorName     "Intel"
    BoardName      "GM965/GL960"
    BusID          "PCI:0:2:0"
    Screen          0
    Option         "Monitor-LVDS1" "Monitor0"
    Option         "Monitor-VGA1"   "MonitorOff"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "intel"
    VendorName     "Intel"
    BoardName      "GM965/GL960"
    BusID          "PCI:0:2:0"
    Screen          0
    Option         "Monitor-LVDS1" "MonitorOff"
    Option         "Monitor-VGA1"   "Monitor1"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    SubSection     "Display"
        Modes      "1280x800"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    SubSection     "Display"
        Modes      "1440x900"
    EndSubSection
EndSection

Section "Monitor"
    Identifier     "Monitor0"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
EndSection

Section "Monitor"
    Identifier     "MonitorOff"
    Option         "Ignore" "true"
EndSection
Hopefully I have adapted my setup to suit your requirements!

Last edited by allend; 09-08-2010 at 12:03 PM.
 
Old 09-08-2010, 03:41 PM   #18
saavedra29
Member
 
Registered: Aug 2010
Location: Greece
Distribution: slackware
Posts: 42

Original Poster
Rep: Reputation: 3
allend thank you very much for your post, but since i fixed it and it's very easy for my to destroy all that i have done i will keep the solution with the script. However i will save the xorg.conf you made, maybe for future use. If now something doesn't fit i don't know how to fix it, have no idea about configuring the xorg.conf.
Actually i removed the xorg.conf ( have it backed up in my home directory ) and i think just a .swp file was created. Since it works ok everything is ok. Thanks again!
 
Old 09-09-2010, 11:34 AM   #19
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,551
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by saavedra29 View Post
Ok everyone! I fixed it. I had to replace the VGA with VGA1 and LVDS with LVDS1. So simple.....
Thank you all for your help!
Finally i putted it in /etc/X11/xinit/xinitrc file.Just to know..
Thanks for sharing. I chose to call the script from /etc/X11/xdm/Xsetup_0, mostly because on this Slackware 13.1 system running a xdm logon screen and Xfce, /etc/X11/xinit/xinitrc is a symlink chain leading to /etc/xfce/xdg/xfce4/xinitrc which has a lot of code I don't understand so I was not confident of selecting the most appropriate place to insert the script call.

One imperfection is that if the external screen is plugged in and not powered up it the script detects it and turns the built in screen off but, on powering up the external screen, it displays the built in screen resolution not its native resolution. I can live with that -- just have to remember to power up the external screen before booting.

Last edited by catkin; 09-09-2010 at 11:37 AM. Reason: sense
 
  


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
external monitor on laptop stu_mueller Slackware 13 04-29-2008 03:00 PM
how use external monitor with laptop? lugoteehalt Linux - Laptop and Netbook 5 02-11-2006 09:35 AM
External Monitor detection from laptop vern518 Linux - Newbie 4 01-19-2005 02:04 PM
Linux Laptop External Monitor Help Please!! Law1213 Mandriva 12 07-15-2004 03:52 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 11:43 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