PDA

View Full Version : [ubuntu] [SOLVED] Hot to configure xorg.conf?



hito1
July 20th, 2008, 03:47 PM
Hi there, my xorg.conf file is all generic (see below), there is no reference to video drivers or the monitor. Is there a way to configure it?


# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "abnt2"
Option "XkbLayout" "br"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
EndSection

Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
EndSection

hito1
July 20th, 2008, 03:52 PM
I forgot to mention, I have an old ati card (9200SE) and a flat screen monitor. I have to edit the monitor frequency because I'm getting "out of range" errors, but there is no section for that in my xorg.conf, that's why I want to configure it.

Thanks in advance.

edit: how can I fix the thread title?

dexter.deepak
July 20th, 2008, 04:05 PM
i assume you are on hardy.
the easy way to fix your screen problems is :
goto system->preferences->screen resolution

dexter.deepak
July 20th, 2008, 04:14 PM
edit: how can I fix the thread title?
click the "report" button on the left side of your post...it doesnt mean a necessary and immediate action...but you can hope for a change.

hito1
July 20th, 2008, 04:18 PM
i assume you are on hardy.
the easy way to fix your screen problems is :
goto system->preferences->screen resolution
That didn't fix the problem, xorg.conf still is on a generic bland.

I'm actually having monitor problems only on the boot and shutdown processes.

Elfy
July 20th, 2008, 04:22 PM
This is what my xorg has for the monitor - add and change values to suit your monitor.


Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Hansol"
HorizSync 30.0 - 85.0
VertRefresh 47.0 - 160.0
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce4 MX 440 with AGP8X"
BusID "PCI:1:0:0"
Screen 0
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "CRT: nvidia-auto-select +0+0; CRT: 1280x1024_75 +0+0"
EndSection


Make sure you backup the file before you edit it :)

You'll have to have device and screen sections for it as well I'd assume, obviously you'd have to install the driver for the card, but I've never looked into ati cards - does it appear in hardware drivers in the sys>admin menu>

coffeecat
July 20th, 2008, 05:02 PM
I'm actually having monitor problems only on the boot and shutdown processes.

The Xserver isn't being used during bootup and the shutdown process, so editing your xorg.conf is going to make no difference. Up to the login screen and shortly after logging out the display is some sort of framebuffer one. If there is a problem with that, it can sometimes be fixed by changing the parameters in the kernel line of the appropriate stanza of your /boot/grub/menu.lst file.

Or perhaps your usplash.conf file needs editing.

Or if you are losing the usplash altogether and getting scrolling text, that's yet another thing that is easily fixed.

What display problems are you experiencing during bootup?

Edit: Sorry, just noticed the 'out of range' in your second post. I'll have to think about that. But if this is occurring before the login screen, this is not an xserver problem.

philinux
July 20th, 2008, 05:12 PM
That is a normal xorg.conf for a clean install.

To fix your out of range at startup and shutdown install and run startupmanager from synaptic or

sudo apt-get install startupmanager

Select your desired res on the gui of SUM.

asmoore82
July 20th, 2008, 06:08 PM
That didn't fix the problem, xorg.conf still is on a generic bland.

I'm actually having monitor problems only on the boot and shutdown processes.

if that is the only problem, Xorg is not the issue ...

The kernel itself has control of the graphics during this boot/shutdown time
and it trying to show you the ultra-cool and ultra-spiffy ubuntu boot splash.

To turn this off...

Open a Terminal "Applications -> Accessories -> Terminal"
type in and run this command to make a backup copy of your current GRUB config
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.Backup^^that is MENU.LST in lowercase
Then, type in and run this command
gksu gedit /boot/grub/menu.lst

in the text editor that comes up, search and replace "Search -> Replace"
all occurrences of the word "splash" with "nosplash"

Save, Quit, and Restart.

asmoore82
July 20th, 2008, 06:19 PM
That is a normal xorg.conf for a clean install.

To fix your out of range at startup and shutdown install and run startupmanager from synaptic or

sudo apt-get install startupmanager

Select your desired res on the gui of SUM.

seconded, as a long-term user-friendly solution
after installing, you can find this tweak tool at
"System -> Administration -> StartUp Manager"

(Boot resolution is on the first tab)

jerome1232
July 20th, 2008, 06:24 PM
seconded, as a long-term user-friendly solution
after installing, you can find this tweak tool at
"System -> Administration -> StartUp Manager"

(Boot resolution is on the first tab)
+2 menu.lst isn't a fun file to mess up when you don't know how to fix it :)

hito1
July 20th, 2008, 09:21 PM
if that is the only problem, Xorg is not the issue ...

The kernel itself has control of the graphics during this boot/shutdown time
and it trying to show you the ultra-cool and ultra-spiffy ubuntu boot splash.

To turn this off...

Open a Terminal "Applications -> Accessories -> Terminal"
type in and run this command to make a backup copy of your current GRUB config
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.Backup^^that is MENU.LST in lowercase
Then, type in and run this command
gksu gedit /boot/grub/menu.lst


in the text editor that comes up, search and replace "Search -> Replace"
all occurrences of the word "splash" with "nosplash"

Save, Quit, and Restart.

That worked! Thank you very much, asmoore82. I've tried the startupmanager before, with no luck. The nosplash option worked well.