how to put these 2 simple commands into xorg.conf?
Hi I can see how to do one or the other, but I don't quite get how to set up xorg.conf with both these settings:
xrandr --output LVDS-0 --off xrandr --output VGA-0 --mode 1280x1024 Thanks for any help! |
xrandr is an X command ie it can only be run from an X server you can't put it in the xorg.conf.
A bit more information on what you want to accomplish would help also your xorg.conf, in the meantime have a look at the man page for xorg.conf. |
/etc/rc.local depending on Distro...
|
Quote:
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. Thanks again |
Try putting the following in /etc/X11/xorg.conf.d under the name "02-screen.conf"
Code:
Section "Default Screen Section" 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... |
Hi thanks very much, I fooled around a bit and got the desired effect with /etc/X11/xorg.conf like so:
Code:
Section "Device" |
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
What you have is fine. |
Quote:
|
Quote:
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. |
All times are GMT -5. The time now is 06:25 AM. |