LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   xorg.conf and nvidia (http://www.linuxquestions.org/questions/linux-software-2/xorg-conf-and-nvidia-809947/)

johnh10000 05-25-2010 03:59 AM

xorg.conf and nvidia
 
Hi folks, firstly sorry mod, if this is in the wrong place.

Now, find attached my xorg.conf file which hangs out in /etc/X11, when I do a restart, dispite what the conf say, the graphics defaults to 1026x768.

I don't think I have a local one, in my home directory, what would that be called if I do?

As thats the only thing I can think of why it would do this.

xoomer_ua 05-25-2010 04:44 AM

Note, I am not expert - do it at your own risk. I just tell how I would try troubleshoot this: :)
Quote:

Originally Posted by johnh10000 (Post 3980322)
when I do a restart, dispite what the conf say, the graphics defaults to 1026x768.

Try to reinstall NVIDIA-drivers:
http://www.nvidia.com/Download/index5.aspx?lang=en-us
after downloading type from root these commands:
Code:

init 3
cd /path/to/downloaded/drivers/
sh name_of_drivers_package.run -q
nvidia-xconfig
sax2 -r -m 0=nvidia (in this step you'll need to specify your parameters. Be careful with this - you may damage your PC (don't edit refresh parameters if you not familiar with this)
init 5

By the way, NVIDIA installer need these packages: binutils, make, gcc, glibc, kernel-source, kernel-desktop-devel

johnh10000 05-25-2010 05:03 AM

Quote:

Originally Posted by xoomer_ua (Post 3980354)
Note, I am not expert - do it at your own risk. I just tell how I would try troubleshoot this: :)

Try to reinstall NVIDIA-drivers:
http://www.nvidia.com/Download/index5.aspx?lang=en-us
after downloading type from root these commands:
Code:

init 3
cd /path/to/downloaded/drivers/
sh name_of_drivers_package.run -q
nvidia-xconfig
sax2 -r -m 0=nvidia (in this step you'll need to specify your parameters. Be careful with this - you may damage your PC (don't edit refresh parameters if you not familiar with this)
init 5

By the way, NVIDIA installer need these packages: binutils, make, gcc, glibc, kernel-source, kernel-desktop-devel

with lucid. and come to that karmic, the drivers (compiled) are in the repos.

craigevil 05-25-2010 05:41 AM

Menu -> System -> Hardware Drivers

johnh10000 05-25-2010 06:11 AM

Quote:

Originally Posted by craigevil (Post 3980386)
Menu -> System -> Hardware Drivers

thats it. But the driver is doing just fine. It just won't auto reset to 1280x1024 (waht I want)

any ideas?

LouRobytes 05-25-2010 06:46 AM

Try System->Administration->NVIDIA X Server Settings. In the X Server Display Configuration, Set the Resolution: as 1280x1024 and Save to X Configuartion File. This should work if your adapter is similar to mine.

Cheers, Lou

johnh10000 05-25-2010 06:55 AM

Quote:

Originally Posted by LouRobytes (Post 3980433)
Try System->Administration->NVIDIA X Server Settings. In the X Server Display Configuration, Set the Resolution: as 1280x1024 and Save to X Configuartion File. This should work if your adapter is similar to mine.

Cheers, Lou

yep thats exactly waht I do, and it defaults to 1024x768 :(

LouRobytes 05-25-2010 07:27 AM

Interesting. Can you attach a copy of your /etc/X11/xorg.conf and /var/log/Xorg.0.log files?

Cheers, Lou

johnh10000 05-25-2010 07:45 AM

Quote:

Originally Posted by LouRobytes (Post 3980469)
Interesting. Can you attach a copy of your /etc/X11/xorg.conf and /var/log/Xorg.0.log files?

Cheers, Lou

if you look further up this post you'll find my xorg.conf

tredegar 05-25-2010 08:17 AM

I couldn't get ubuntu 10.04 and the NVIDIA driver ( I downloaded mine from NVIDIA ) to use my laptop's default of 1920x1080 until I added these red lines to by xorg.conf and restarted X

Code:

Section "Device"
    Identifier    "Configured Video Device"
    Driver        "nvidia"
    Option        "RegistryDwords" "EnableBrightnessControl=1"
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "Configured Video Device"
    Monitor        "Configured Monitor"
    Option        "Connected Monitor" "DFP-0"
    Option        "CustomEDID" "DFP-0: /proc/acpi/video/NGFX/LCD/EDID"

    SubSection "Display"
                Modes      "nvidia-auto-select"
    EndSubSection
EndSection

NVIDIA is now working well, though I had to do some hacking to get the virtual terminals on vt1-6 to display properly.

The current nouveau driver was also useless: my screen was just a window to a much bigger screen, so I couldn't see the bottom panel, or the icons at the top right.

LouRobytes 05-25-2010 08:35 AM

The last two lines of your log file shoe the server being told to change the resolution from the previously set 1280x1024 to 1024x768. If you are not doing this, then it is being done automatically by something else. Don't know what could be doing this.

When you set the resolution to 1280x1024, hit the Apply button and see what happens. Then look at the bottom of your log file and see if the change was applied.

Don't know what else to do other than possibly adding a mode line to the Display SubSection in the Screen Section of your xorg.conf file.

Cheers, Lou

EDIT: Sorry tredegar. Was busy while you replied.

johnsfine 05-25-2010 08:53 AM

In the log, these lines are important
Code:

(--) NVIDIA(0): Connected display device(s) on GeForce4 MX 420 at PCI:2:0:0:
(--) NVIDIA(0):    Acer AL1917W (CRT-0)

Is your display an Acer AL1917W?

The native resolution of the AL1917W is 1440x900. 1280x1024 probably wouldn't work.

I see a lot less in your /var/log/Xorg.0.log than I'm used to seeing. I don't see anything about how it decided 1280x1024 won't work. But assuming you really have the AL1917W, xorg would be correct to decide that.

If you don't have the AL1917W, you should figure out how to make xorg understand what display you do have.

If you do have the AL1917W, you should try to use its native resolution.

johnh10000 05-25-2010 08:53 AM

Quote:

Originally Posted by tredegar (Post 3980523)
I couldn't get ubuntu 10.04 and the NVIDIA driver ( I downloaded mine from NVIDIA ) to use my laptop's default of 1920x1080 until I added these red lines to by xorg.conf and restarted X

Code:

Section "Device"
    Identifier    "Configured Video Device"
    Driver        "nvidia"
    Option        "RegistryDwords" "EnableBrightnessControl=1"
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "Configured Video Device"
    Monitor        "Configured Monitor"
    Option        "Connected Monitor" "DFP-0"
    Option        "CustomEDID" "DFP-0: /proc/acpi/video/NGFX/LCD/EDID"

    SubSection "Display"
                Modes      "nvidia-auto-select"
    EndSubSection
EndSection

NVIDIA is now working well, though I had to do some hacking to get the virtual terminals on vt1-6 to display properly.

The current nouveau driver was also useless: my screen was just a window to a much bigger screen, so I couldn't see the bottom panel, or the icons at the top right.

still don't think its the driver, where the self same one was working in KArmic. I did the upgrade through the rc and then onto the lts


will try it again in a minuete

johnh10000 05-25-2010 09:01 AM

Quote:

Originally Posted by johnsfine (Post 3980558)
In the log, these lines are important
Code:

(--) NVIDIA(0): Connected display device(s) on GeForce4 MX 420 at PCI:2:0:0:
(--) NVIDIA(0):    Acer AL1917W (CRT-0)

Is your display an Acer AL1917W?

The native resolution of the AL1917W is 1440x900. 1280x1024 probably wouldn't work.

I see a lot less in your /var/log/Xorg.0.log than I'm used to seeing. I don't see anything about how it decided 1280x1024 won't work. But assuming you really have the AL1917W, xorg would be correct to decide that.

If you don't have the AL1917W, you should figure out how to make xorg understand what display you do have.

If you do have the AL1917W, you should try to use its native resolution.

It's an acer something, only just got it. 1280x1024 does work, when I apply by hand. You've given me an idea mind.

I'll take down to something daft like 800x600, restart and see waht happens

I did.. second bu t last said something about no input driver or device specified

johnsfine 05-25-2010 09:08 AM

Try the native resolution (1440x900).

An LCD looks much better at its native resolution than at any other resolution. Even if 1280x1024 works, it is likely to be at least blurred and maybe distorted.


All times are GMT -5. The time now is 08:55 AM.