<html>Hi again Jean-Yves,<br /><br />On Tuesday, March 8, 2016 09:45 CET, Jean-Yves Avenard <jyavenard@gmail.com> wrote:<br /> <blockquote type="cite" cite="CANpj82L3YVea4ZgnG7t9GHBN8sSJHEgYXseiMBj_7f=bwizaFg@mail.gmail.com">Hi<br /><br />On Tuesday, 8 March 2016, Marius Schrecker <<a href="mailto:marius.schrecker@lyse.net">marius.schrecker@lyse.net</a>> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Stupid of me not to check that! The GUI refresh rates are the NVIDIA "false" rates: 50Hz, 51 Hz, 52 Hz, etc..<blockquote type="cite" cite="http://CANpj82+gz=63MHzSpq7ixqrY_uekAuczAwKjDYYLPPyMvHU5ZA@mail.gmail.com"><div> </div></blockquote></blockquote><div> </div><div>That's what your problem is then, 50Hz is the closest to 23.93. So myth is doing the right thing as far as its concerned. </div><div> </div><div>Which version of Xrandr do you have installed?</div></blockquote>libxrandr2 : 1.5<div><blockquote type="cite" cite="CANpj82L3YVea4ZgnG7t9GHBN8sSJHEgYXseiMBj_7f=bwizaFg@mail.gmail.com"><div>Myth only supports 1.2 or the nvidia X extension(libnvctrl) , but this needs to be installed and present. </div><div>Normally the nvidia installer would install it automatically. <br /> </div></blockquote>Hmmmm. This is proving to be black magic.  Explicitly adding the module load directive to xorg conf does result in:<br /><br />343408.826] (II) LoadModule: "nv-control"<br />[343408.826] (WW) Warning, couldn't open module nv-control<br />[343408.826] (II) UnloadModule: "nv-control"<br />[343408.826] (II) Unloading nv-control<br />[343408.826] (EE) Failed to load module "nv-control" (module does not exist, 0)<br /><br /><br />So I started digging.<br /><br /> There IS a Ubuntu package called:<br /><br /> libxnvctrl0<br /><br />so I installed it.<br /><em># apt-cache show libxnvctrl0<br />Package: libxnvctrl0<br />Priority: optional<br />Section: libs<br />Installed-Size: 74<br />Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com><br />Original-Maintainer: Debian NVIDIA Maintainers <pkg-nvidia-devel@lists.alioth.debian.org><br />Architecture: amd64<br />Source: nvidia-settings<br />Version: 352.21-0ubuntu1<br />Depends: libc6 (>= 2.14), libx11-6 (>= 2:1.4.99.1), libxext6<br />Filename: pool/main/n/nvidia-settings/libxnvctrl0_352.21-0ubuntu1_amd64.deb<br />Size: 11534<br />MD5sum: 69b4410f3c2428d3e2bfbc851ae3f4b2<br />SHA1: 1a0ef460048106be1fed88d668d53680767a1a69<br />SHA256: 9f81e8f9e8c10551e047dad6de23800fd9d69365f32bb2419da16851b4f7c6c8<br />Description-en: NV-CONTROL X extension (runtime library)<br /> The NV-CONTROL X extension provides a mechanism for X clients to<br /> query and set configuration parameters of the NVIDIA X driver.<br /> State set by the NV-CONTROL X extension is assumed to be persistent<br /> only for the current server generation.<br /> .<br /> This package contains the shared library.<br />Description-md5: 6d4f8aebac836277193a58e922a49603<br />Bugs: https://bugs.launchpad.net/ubuntu/+filebug<br />Origin: Ubuntu<br />Supported: 9m<br />​</em><br /><br /> The version is  352.21-0ubuntu1<br /><br /> and itseems to install the library file libXNVCtrl.so  to /usr/lib:<br /><br /><em># locate libXNVCtrl.so<br />/usr/lib/libXNVCtrl.so.0<br />/usr/lib/libXNVCtrl.so.0.0.0</em><br />​<br /><br /> (NOT to "/usr/lib/xorg/modules") which is where Xorg is expecting to find them.<br /><br /> Question 1: Should I symlink?<br /><br />I then looked in the nvidia driver source for traces of the same library, but found nothing, so either it has a different name here or needs to be downloaded separately, but I have yet to find where.<br /><br />As the packaged version of the livrary was 352.21, I decided to try again to install the same version of the driver, first using the sgfxi script (which refuses), then using the pre-packaged version, which looses my nvidia GLX extension.<br /><br />So that's where I am so far.<br /><br /> Maybe the control library doesn't need to be in the same version as the rest of the driver, in which case I could reinstall 358 or 361 from source (sgfxi or manual build) and run against  <span style="font-family:monospace"><span style="color: rgb(0, 0, 0);">libXNVCtrl 352.21 symlinked to </span></span>/usr/lib/xorg/modules <br /><br /> Otherwise I do need to work out where to find or how to build the version of the library matching a buildable driver.<br /><br />any clues?<br /><br /> BR.<br /><br />--Marius--<br /><br />  <br /><br /> <blockquote type="cite" cite="CANpj82L3YVea4ZgnG7t9GHBN8sSJHEgYXseiMBj_7f=bwizaFg@mail.gmail.com"><div> </div><div>If you completely clear any nvidia drivers and install from nvidia official installer. Does it work?</div><div> </div>When starting X do you see any error about not being able to load the nvctrl X extension?<div> </div><div>Do you see anything in mythtv log about being enable to access it?</div><div> </div><div>That would explain why you are seeing this. </div><div> </div><div>An alternative is to disable nvidia TwinView; then the refresh rates reported to Xrandr will be the real ones (though as Xrandr 1.4 and earlier can only deal with integers, you will only get things like 24, 25, 30 50, 60, not 59.997)<div> </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote type="cite" cite="http://CANpj82+gz=63MHzSpq7ixqrY_uekAuczAwKjDYYLPPyMvHU5ZA@mail.gmail.com"><div>Then it will automatically set your screen to the right refresh rate, provided your screen supports it.</div><div> </div><div>(To test if changing refresh rate works, when you play with xrandr do you see the refresh rate the screen is getting changing?)</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> </blockquote></blockquote>Xrandr reports and sets the real refresh rates (confirmed with TV)<br /><br /><br />In the meantime I also added the mythuser (login user) to audio and set up limits.conf as per the wiki.</blockquote><div> </div><div>Don't need that IMHO. </div><div>Those instructions were written like 10 years ago, all obsolete with the new audio stack which was added like in 2009 or something!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br />BR.<br /><br />Marius</blockquote></div></blockquote><br /><br /><br /> </div></html>