Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X works but is very soft / unsharp (nvidia) [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
pvh1987
n00b
n00b


Joined: 06 Jun 2012
Posts: 56

PostPosted: Wed Jul 18, 2012 7:17 pm    Post subject: X works but is very soft / unsharp (nvidia) [SOLVED] Reply with quote

I just installed Gentoo on my computer. Everything seems to work like it should except for the X server.

Although the X server works and displays twm on my 1920x1200 monitor when typing startx, the image is very soft, like if the wrong resolution was chosen. However, it looks like it actually is 1920x1200 but very unsharp. How is this possible? My monitor, a Samsung SyncMaster, is connected to my GeForce 8800 GT using DVI.

I have followed both the X Howto and the Nvidia Howto from the Gentoo documentation resources.

In order to start the X server, I had to put at least these lines into my xorg.conf:

Code:

Section "Device"
  Identifier "GeForce 8800 GT"
  Driver     "nvidia"
 EndSection


I have also tried to start nvidia-settings to see if I could tweak anything there. It looks like everything is perfect, except for the blurry screen. I exported the nvidia-settings xorg.conf (see below), which gives the same blurry result as before.

I hope to get this issue solved very soon. Thanks in advance.


Code:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 295.59  (buildmeister@swio-display-x86-rhel47-03.nv$

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "InputDevice"
    # generated from data in "/etc/conf.d/gpm"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8800 GT"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Nvidia GeForce 8800GT"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "DFP-1"
    Option         "metamodes" "nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection



Last edited by pvh1987 on Thu Jul 19, 2012 1:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
Kaso_da_Zmok
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 189
Location: Zurich, Switzerland

PostPosted: Wed Jul 18, 2012 7:23 pm    Post subject: Reply with quote

did you try booting some linux live usb with nvidia or nouveau for comparison?
Back to top
View user's profile Send private message
pvh1987
n00b
n00b


Joined: 06 Jun 2012
Posts: 56

PostPosted: Wed Jul 18, 2012 7:31 pm    Post subject: Reply with quote

No I did not. But before I had Ubuntu 10.10 (I think) and it used the "commercial" nvidia drivers and it worked just fine.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Wed Jul 18, 2012 8:29 pm    Post subject: Reply with quote

pvh1987,

Please put your /var/log/Xorg.0.log on a pastebin site so we can see what Xorg is actually doing.

Most of your xorg.conf is redundent and will be ignored.
Only the
Code:
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8800 GT"
EndSection
is essential to tell Xorg to use the binary blob.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pvh1987
n00b
n00b


Joined: 06 Jun 2012
Posts: 56

PostPosted: Wed Jul 18, 2012 8:47 pm    Post subject: Reply with quote

OK, I reduced my xorg.conf and started X again (same results) and here is the ouput of my xorg log:

http://pastebin.com/PAQ1bejQ
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Wed Jul 18, 2012 9:36 pm    Post subject: Reply with quote

pvh1987,

Xorg says
Code:
[  8684.936] (II) NVIDIA(0): Virtual screen size determined to be 1920 x 1200
[  8684.970] (--) NVIDIA(0): DPI set to (93, 95); computed from "UseEdidDpi" X config

and
Code:
[  8684.808] (--) NVIDIA(0): Samsung SyncMaster (DFP-1): 330.0 MHz maximum pixel clock
[  8684.808] (--) NVIDIA(0): Samsung SyncMaster (DFP-1): Internal Dual Link TMDS


Your display expects to see a dual link DVI cable, do you have one?
Wikipedia explains the detail and shows images of connectors so you can inspect your DVI cable.
If the system is operating in dual link mode but is only fitted with a single link DVI cable every other pixel will be missing on the screen as alternate pixels are transmitted on alternate DVI links.
I'm not sure what the display would do under those condiitons.

A less likely explaination is that the display is using the analgue signals that can be present in a DVI cable.

We can try writing an Xorg modeline that will operate your display in a single link DVI mode if you are not sure about your cable, unless you can borrow a known dual link cable to test with.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pvh1987
n00b
n00b


Joined: 06 Jun 2012
Posts: 56

PostPosted: Wed Jul 18, 2012 9:51 pm    Post subject: Reply with quote

Looks strange. Shouldn't the DPI be equal for both horizontal and vertical resolution? Maybe that is the problem.

I use the exact same DVI cable, graphics card and monitor as a few days ago, when I used Ubuntu on the same computer. Never had this problem before.

Since I have two DVI-outlets on my graphics card, I just tried to connect to the monitor using the other outlet. Rebooted. Same thing -- soft, unsharp picture.

It must be a driver and/or configuration problem. Any other ideas?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Wed Jul 18, 2012 10:10 pm    Post subject: Reply with quote

pvh1987,

It does not follow that it must be a driver issue because Ubuntu operates differently.
The driver only draws the screen pixels in the pixel buffer. They cannot be blurred there. Therfore its in the transmission or display of the bixel buffer.
We know that Xorg is operating in the native resolution of the display, so there is a 1:1 mapping between the pixel buffer ang the display. i.e. every pixel in the pixel buffer in the graphics card maps to exactly one pixel on the screen. No scaling is required, which would reduce image quality.

Please compare the wikipedia images of DVI plugs and tell which one you have.
You can try a different nvidia-drivers if you wish.
We can force a single link display mode by writing a modeline, if you like, too. This probably fix the issue at the cost of a reduced refresh rate. The pixel clock must be under 165 MHz.

The differences in DPI is due to the relationships between the horizontal pixel timing and the vertical pixel timing. Yes they should be identical but I've never seen them better than very close.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pvh1987
n00b
n00b


Joined: 06 Jun 2012
Posts: 56

PostPosted: Wed Jul 18, 2012 10:41 pm    Post subject: Reply with quote

Ok, thank you for pointing that out for me.

So, I figured out that my graphics card have two DVI-I (Dual Link) ports (at least, they will be able to take a fully configured DVI-cable with all possible pins). However, the DVI cable I am using is a DVI-D (Single Link). These observation are based on the pins available at the connectors compared to the figure from Wikipedia: http://en.wikipedia.org/wiki/File:DVI_Connector_Types.svg

I assume that my monitor's native resolution is 1920x1200@60Hz (that is the setting I've always used on Ubuntu and Windows).
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Thu Jul 19, 2012 8:16 am    Post subject: Reply with quote

A little off-topic, but I can no longer resist asking this question.

What is with these digital tvs/monitors that refresh at the same
frequency as flourescent lights? (Back before digital monitors
were common, this was considered a source of perceived
flicker. If your monitor only worked at 60hz with your gpu,
you needed to change your room lighting or suffer for it.)

Now I am seeing all of these monitors (and hd tvs) advertised
at X by Y at 60hz. What's up with that?
_________________
TIA
Back to top
View user's profile Send private message
gorkypl
Guru
Guru


Joined: 04 Oct 2010
Posts: 444
Location: Kraków, PL

PostPosted: Thu Jul 19, 2012 10:52 am    Post subject: Reply with quote

The referesh rate of LCD means something very different than in CRT. In CRT the whole screen was redrawed, and flickering could be seen for frequencies under 85Hz.
In LCD the pixels are lit constantly, and the refresh rate means only how often the pixel can change its state. So LCDs do not flicker in the same manner* as CRTs did, and 60Hz is a high enough value that you cannot see individual frames.

*OK, almost. There is a flickering of LCD backlight, because the brightness is controlled by PWM. So when you lower the brightness, the LCD starts to flicker. The frequency of this flickering is independent of monitor refresh rate, and is determined by PWM module. In better monitors (Eizo) the rate is so high (300Hz IIRC) that cannot be seen, in lower quality monitors (most other than Eizo and proffesional NEC ;)) it can be a problem when the brightness is low.
See for example:
http://www.youtube.com/watch?v=YnlnbQfDb8w
_________________
BTW, TWM FTW!
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Jul 19, 2012 11:01 am    Post subject: Reply with quote

**There is no such problem with LED monitors. In cinema 24 frames per second does not flicker because the whole frame is switched instantly, not drawn dot by dot as in CRT.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
pvh1987
n00b
n00b


Joined: 06 Jun 2012
Posts: 56

PostPosted: Thu Jul 19, 2012 12:48 pm    Post subject: Reply with quote

Any new ideas that might solve this problem?
Back to top
View user's profile Send private message
pvh1987
n00b
n00b


Joined: 06 Jun 2012
Posts: 56

PostPosted: Thu Jul 19, 2012 1:07 pm    Post subject: Reply with quote

I think that I after all might have a solution myself. Going into the on-screen menu on my monitor, I chose "Image Reset". After that, the screen is not soft anymore. I still think this is strange, but it seems to work.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Thu Jul 19, 2012 5:50 pm    Post subject: Reply with quote

wcg,

With a CRT monitor, only a small part of a single line is ever lit at a time. The lillusion of a complete image on a CRT display depends on a feature of vision called "persistance of vision"
Sensitive individuals can pereceive the beats between flourecent lighting, 100Hz or 120Hz depening on your region and the frame/field blanking of a CRT display, the vertical refresg rate,
Percistance of vision is also what makes interlaced display modes work. Most people can see interlace flicker once its pointed out to them and its very annoying. Its gone away with CRT displays.

In LCDs and LED displays the image is retained for meany seconds (not a few microseconds) even if the view source is removed. You can't see this as displays blank the disply when there is no input.
It means that while the image can be changed at the refresh rate, the pixels are always lit until they are changed, so there is always a complete image presented to the eye. Thus no flicker.

As others have said, the LCD backlight flickers as brightness control is by pulse width mdulation. However, this is applied a a frequency of 200 or 300 kHz, which is well oustide the range of human perception.
Care has to be taken in the design of the display so that beats between the PWM and the pixel clock on the display do not cause visible banding. This is always a compromise as the pixel clock and its deriviatives vary depending on the display mode selected. Hence some video modes look worse than others.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Fri Jul 20, 2012 6:59 am    Post subject: Reply with quote

OK, thanks for the info on lcd/led pixel clocks.
(Back to the actual topic, which seems to be
solved in this case.)
_________________
TIA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum