how to put these 2 simple commands into xorg.conf?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,891
Rep:
Quote:
Originally Posted by Habitual
/etc/rc.local depending on Distro...
I don't think that would work a xrandr has to be run from within X you cant for instance start X switch to a console and then run xrandr.
I'm pretty sure that every thing that you can do with xrandr you can do by correctly configuring xorg after all xrandr is just the X interface to Xorgs randr module
Another way of putting it is that I want to use xorg.conf instead of running these commands every time I boot.
I want LVDS-0 off and VGA-0 res 1280x1024
xorg.conf is really complicated, I don't have one right now, but apparently I need it for these settings. I'm not sure what all I must put in there just to get these two simple settings.
I hope the Identifier, Device, and Monitor lines have the default names used as I don't know for sure what they should be. The names I give above are from a generic run of "Xorg -configure" which will generate a mostly valid configuration based on the hardware installed. I say mostly, because it cannot tell at configure time whether the monitors attached are actually valid - so if a videocard supports multiple (my card has three, but only two have plugs, and of those two, only one is used), it will define multiple, which will cause errors when it tries to actually use that configuration.
The Subsection "Display" specify the number of bits to use and the display specifies the resolution (the Modes line). There can be multiple modes, which should allow you to cycle through the list (ctrl-alt-+ or ctrl-alt-- (the +/- last character is from the keypad)). You can find valid modes to list in your /var/log/Xorg.0.log files identified by lines with "Modeline" followed by the mode name, and a list of timing numbers associated with that specific mode.
And if all else fails, delete the file (sorry about that).
Oh - forgot. You will have to log out before it will take effect. Just be sure you can login through a console virtual terminal (ctrl-alt-F2/3/...) to delete the file. If it doesn't work, the X display will not start...
Nope. The only advantage the /etc/X11 files have is a small amount of flexibility - the leading number on the name sets the order they are included. It just allows sections to be replaced/added with just a file removal/copy
I don't think that would work a xrandr has to be run from within X you cant for instance start X switch to a console and then run xrandr.
I'm pretty sure that every thing that you can do with xrandr you can do by correctly configuring xorg after all xrandr is just the X interface to Xorgs randr module
You are quite correct as /etc/rc.local would process before the DM has loaded.
You are quite correct as /etc/rc.local would process before the DM has loaded.
The real problem is that the X server gets reset/restarted on every login/logout.
Putting it in rc.local does nothing (except generate errors) as the X server is not necessarily running, and even if running, will not have access to it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.