LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 03-31-2012, 12:18 PM   #1
ekj
Member
 
Registered: Apr 2007
Location: Sweden
Distribution: openSUSE
Posts: 37

Rep: Reputation: 16
Question [Nvidia] problem with 50 & 60Hz on HDMI in Linux


I have a dual boot setup with Windows and Linux installed. In Windows I can set the refresh rate for the TV (connected with HDMI) to any of 24, 50 or 60Hz, they all work. In Linux, I still have all three choices, but only 24Hz works. For both 50 & 60Hz the display is flickering, and the sound drops for like 1s every 10s.

GPU: Nvidia GTX 560Ti
Linux driver: Nvidia driver version 290.10

Any ideas about why I can't use 50 or 60Hz in Linux even though I can in windows?

Here is the content of my /etc/X11/xorg.conf:
Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 290.10  (buildmeister@swio-display-x86-rhel47-07.nvidia.com)  Wed Nov 16 20:31:58 PST 2011


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" 1600 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "1"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

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

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "HCG AVRx65"
    HorizSync       15.0 - 68.0
    VertRefresh     45.0 - 65.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 560 Ti"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 560 Ti"
    Option         "FlatPanelProperties" "Scaling = Native"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP-0: nvidia-auto-select +0+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "CRT: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP-1: nvidia-auto-select +0+0"
# Removed Option "metamodes" "DFP-1: 1920x1080_24 +0+0"
# Removed Option "metamodes" "DFP: 1920x1080_60 +0+0; DFP: 1920x1080_24 +0+0"
# Removed Option "metamodes" "DFP: 1920x1080_50 +0+0; DFP: 1920x1080_60 +0+0; DFP: 1920x1080_24 +0+0"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "DFP: 1920x1080_24 +0+0; DFP: 1920x1080_50 +0+0; DFP: 1920x1080_60 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Disable"
EndSection
 
Old 04-01-2012, 12:03 PM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,195

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
The only thing that jumps out is that VertRefresh on Monitor0 should be 45-75, and that I would set metamodes the same on both monitors. Not knowing at all, the setting on Monitor1 looks a better opening bet than the one on Monitor0.
 
Old 04-01-2012, 01:36 PM   #3
ekj
Member
 
Registered: Apr 2007
Location: Sweden
Distribution: openSUSE
Posts: 37

Original Poster
Rep: Reputation: 16
I tried two things based on your reply:
  • Setting VertRefresh to 45-65 in both monitor sections.
  • Using same metamodes in both screen sections. I used "DFP-0: nvidia-auto-select +0+0" for Screen0 and "DFP-1: nvidia-auto-select +0+0" for Screen1. Then 60 Hz was used for the HDMI signal.

Unfortunately these changes didn't change the bad behavior.

However, I noticed that the image distortions seem to change when I start playing a video with VLC or open amarok. With none of them open, the image flashes black 1-2 times a second or something. But when I start playing a video in VLC, the black flashes disappear, instead I get a horizontal line or band (that is jumping up and down) across the full width of the TV. And when I stop the video, the horizontal line disappears and the black flashes gets back.

I'm confused...
 
Old 04-02-2012, 02:57 AM   #4
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,195

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
If that's a thick black line, it's vertical locking.
/begin theoretical lecture
TV signals are interlaced (Never asked if signals are NTSC, PAL, or SECAM), so a frame rate of 50hz refreshes the entire screen at a rate of 25hz (1 pass for the odd lines, one for the even ones). Inside the tv is a flywheel oscillator which rolls on at it's own speed, but locks (if it can) to a synchronization pulse from the tv signal. Ditto Monitors; TFT screens seem to behave similarly, despite the fact that they don't have to.
/end theoretical lecture.

What's happening is that the oscillator(or screen) is not locking to the synch pulse, so you're seeing the black line in between. I'm still on my second morning coffee, so I can't be more perceptive than that.

Google on the Monitors, or read handbooks and get the real figures for HorizSync, and VertRefresh. I would also drop one Monitor from the config, to lessen the confusion in the video card.
 
Old 04-03-2012, 04:22 PM   #5
ekj
Member
 
Registered: Apr 2007
Location: Sweden
Distribution: openSUSE
Posts: 37

Original Poster
Rep: Reputation: 16
The lines are not black, they look more like white and pink noise.

Stripping the xorg.conf to only use the TV and no computer monitor did reduce the distortions, but they were still there.

Another weird thing is that I get different amount of distortions depending on which video file I'm playing, and with which video player. I also get less amount of distortions in full screen than in windowed video playing mode.

Between the TV and computer I have a home theatre reciever which grabs the audio and sends the video through another HDMI cable to the TV. I tested to go directly from the computer to the TV, and that did also affect the amount of distortions (but they were not gone here either).

What is confusing me is that the amount of distortions is depending on both these things:
1. what is in the HDMI signal (which video file is played and if it's fullscreen/windowed)
2. who is listening to the HDMI signal (TV directly or TV through HT reciever)
 
Old 04-04-2012, 03:04 AM   #6
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,195

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
It's beginning to sound like an overhead problem.
Something is grabbing resources. Windowed behaving better is a sure sign audio or video is not fast enough, or the system is already too heavily loaded. If the black line is between the bottom of one frame and the top of another, I stand over what I say. Teletext info appears there on certain lines, and they can be coloured. But without a screen shot of misbehaviour I couldn't say more.
 
Old 04-04-2012, 02:28 PM   #7
ekj
Member
 
Registered: Apr 2007
Location: Sweden
Distribution: openSUSE
Posts: 37

Original Poster
Rep: Reputation: 16
Actually it is the other way around. Windowed mode is worse than full screen, which I find very weird.

I'll try to get a screenshot of it, I hope you can see it in a screenshot, otherwise I'll have to take a photo.
 
Old 04-05-2012, 04:15 PM   #8
ekj
Member
 
Registered: Apr 2007
Location: Sweden
Distribution: openSUSE
Posts: 37

Original Poster
Rep: Reputation: 16
I didn't get the lines in the screenshot so I took pictures with the camera instead.

What you see in the pictures are the white/pink distortion lines that jump up and down. To demonstrate the jumping I took three photos just after each other.

The Xorg configuration was a 60Hz single screen (the computer monitor was disabled).
Attached Images
File Type: jpg IMG_0573_LQ.JPG (152.7 KB, 7 views)
File Type: jpg IMG_0574_LQ.JPG (148.3 KB, 8 views)
File Type: jpg IMG_0575_LQ.JPG (149.3 KB, 8 views)
 
Old 04-06-2012, 07:29 AM   #9
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
For modern distros and with the nvidia drivers you don't need an xorg.conf, and I don't recommend making one.

Make sure you have the latest drivers and use 'nvidia-settings' to set the resolution and refresh rates.

I've found that outputting to a TV is problematic because of bad EDIDs.

I would try to either mess with the settings such as maybe overscan compensation, or maybe disable EDID or parts of it.
 
Old 04-06-2012, 11:42 AM   #10
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,195

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
@ejk:

STRANGE Pictures. If I hadn't seen them, I wouldn't have believed it.

/Flying by the seat of my trousers: It looks like
1. There is a basic picture there in the 4 corners of the screen, indicating that X and everything associated with it is feeding believable video.

2. The TV signal looks like an overlay on the basic screen, and it seems the basic screen is too fast for the overlay. You didn't mention the conditions on screen when the shots were taken, so I'm guessing this is why you have that peeling effect.

3. I would guess the thin coloured lines are teletext. You can basically see the digital information in them. On a standard picture, teletext is 2 or 3 lines in the top 21 for each channel It shouldn't be appearing onscreen, so I'm gathering something is awol in the vertical rate also.

4. What I'm surprised at is that teletext goes all the way accross the page. I offer no guess, however pathetic or wild for this.

5. I'm taking it that the 'thick black line is in fact the screen wide black line I was thinking you had - doubled over! So that would indicate your overlay has locked onto half HorizSync.

Presuming all of the above is correct(!!), I would try leaving in the Xorg.conf despite the considered opinion of a guru to the contrary, and reduce speeds - VertRefresh to 60 and HorizSync down by 5 each time and restart X between modifications and see if you can match the speed to something the overlay can do.
 
Old 04-06-2012, 01:11 PM   #11
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
If you wanted to mess with the VertRefresh and HorizSync options (even tho the nvidia drivers tends to ignore them completely and uses the EDID) I would try to find them in the manual if you can.
 
Old 04-07-2012, 09:54 AM   #12
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,195

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
The problem as I see it is thatm X is doing a fast rate, and the TV stuff finds it easier to lock onto _half_ that rate. Anything to set a slower refresh would be good. PC video is very flexible. TV video is set by someone else, and pretty inflexible.
 
Old 04-11-2012, 03:54 PM   #13
ekj
Member
 
Registered: Apr 2007
Location: Sweden
Distribution: openSUSE
Posts: 37

Original Poster
Rep: Reputation: 16
I was away for a few days for easter, but now I'm back.

Quote:
Originally Posted by business_kid View Post
/Flying by the seat of my trousers: It looks like
1. There is a basic picture there in the 4 corners of the screen, indicating that X and everything associated with it is feeding believable video.
Yes, neither the topmost nor the bottommost rows of pixels seem to be favoured by the distortions.

Quote:
Originally Posted by business_kid View Post
2. The TV signal looks like an overlay on the basic screen, and it seems the basic screen is too fast for the overlay. You didn't mention the conditions on screen when the shots were taken, so I'm guessing this is why you have that peeling effect.
The Xorg configuration was a 60Hz single screen (the computer monitor was disabled).

What was displayed on the screen was a terminal on the lower left and a Gkrellm on the lower right. The gray horizontal bar on the bottom is the KDE panel with shortcuts and clock and so on. The white diagonal waves are part of the desktop wallpaper.

Quote:
Originally Posted by business_kid View Post
5. I'm taking it that the 'thick black line is in fact the screen wide black line I was thinking you had - doubled over! So that would indicate your overlay has locked onto half HorizSync.
What black lines are we taking about? I don't see any black lines in the photo, the only lines I can find are white-pink/coloured.
 
Old 04-12-2012, 02:29 AM   #14
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,195

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
That was stupid of me.

I was presuming you had a display of the fault condition from post #1 which is what you asked us about
Quote:
Any ideas about why I can't use 50 or 60Hz in Linux even though I can in windows?
I retract most of post 10. Goodbye.
 
Old 04-14-2012, 05:07 AM   #15
ekj
Member
 
Registered: Apr 2007
Location: Sweden
Distribution: openSUSE
Posts: 37

Original Poster
Rep: Reputation: 16
Well, it is actually. Apart from the flickering that I have managed to get rid of. The horizontal lines are the ones that I discovered in post #3.
 
  


Reply

Tags
hdmi, nvidia


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nVidia HDMI Audio sherb114 Linux - Hardware 8 04-06-2012 06:42 AM
NVidia GT520 HDMI sound missing JohnLocke Linux - Hardware 11 02-10-2012 06:03 AM
nvidia ION no sound over HDMI Xubuntu manox Linux - Desktop 9 01-24-2012 10:38 AM
nVidia HDMI Audio Doesn't Work scott12087 Linux - Hardware 19 03-09-2011 04:43 PM
Nvidia HDMI not working. WRXSTi Linux - Hardware 1 11-22-2010 03:30 PM


All times are GMT -5. The time now is 07:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration