<html>Hi again,<br /><br />On Tuesday, March 15, 2016 09:11 CET, Jean-Yves Avenard <jyavenard@gmail.com> wrote:<br /> <blockquote type="cite" cite="CANpj82JYcyaeQdGT3ejM0op5HbCMtv+qrsmDWDz9X5d+rGMEdw@mail.gmail.com">maybe nvctrl extensions was removed from the nvidia drivers.<br /><br />Would have to implement the new xrandr<br /><br />which version of xrandr do you have ?</blockquote>1.5<blockquote type="cite" cite="CANpj82JYcyaeQdGT3ejM0op5HbCMtv+qrsmDWDz9X5d+rGMEdw@mail.gmail.com"><br />On 15 March 2016 at 01:34, Marius Schrecker <marius.schrecker@lyse.net> wrote:<br />...<br />><br />> On Tuesday, 8 March 2016, Marius Schrecker <marius.schrecker@lyse.net><br />> wrote:<br />>><br />>> Stupid of me not to check that! The GUI refresh rates are the NVIDIA<br />>> "false" rates: 50Hz, 51 Hz, 52 Hz, etc..<br />>><br />>><br />><br />><br />> That's what your problem is then, 50Hz is the closest to 23.93. So myth is<br />> doing the right thing as far as its concerned.<br />><br />> Which version of Xrandr do you have installed?<br />><br />> libxrandr2 : 1.5<br />><br />> Myth only supports 1.2 or the nvidia X extension(libnvctrl) , but this needs<br />> to be installed and present.<br />> Normally the nvidia installer would install it automatically.<br />><br />></blockquote>The strange thing is that the nvidia settings panel displays The NV-CONTROL version - 1.29 I think (will check), but I can't find any reference to the library file that it's using and X-org is certainly failing to find/load it.<br /><br />Neither can I find a library that is recognisable as the control extension in any of the Nvidia installer tarballs that I nhave looked at - latest attempt being 352.x which was reported as working by another user. So I think that the problem may still exist between the chair and the keyboard ;).<br /><br />yesterday I decided to give up and disable dynamic twin view, by setting it "false" in xorg.conf<br /><br /> To my dismay the problem persists and I still see the "false" refresh rates in mythtv settings<blockquote type="cite" cite="CANpj82JYcyaeQdGT3ejM0op5HbCMtv+qrsmDWDz9X5d+rGMEdw@mail.gmail.com"><br />> Hmmmm. This is proving to be black magic. Explicitly adding the module load<br />> 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,<br />> 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 />> # 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<br />> <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 />><br />><br />> The version is 352.21-0ubuntu1</blockquote><blockquote type="cite" cite="https://mail.altibox.no/SOGo/so/marius.schrecker@lyse.net/Mail/0/folderINBOX/folderDrafts/newDraft1458198494-1//CANpj82JYcyaeQdGT3ejM0op5HbCMtv+qrsmDWDz9X5d+rGMEdw@mail.gmail.com" style="line-height: 18.9091px;"> </blockquote><blockquote type="cite" cite="CANpj82JYcyaeQdGT3ejM0op5HbCMtv+qrsmDWDz9X5d+rGMEdw@mail.gmail.com">>> and itseems to install the library file libXNVCtrl.so to /usr/lib:<br />><br />> # locate libXNVCtrl.so<br />> /usr/lib/libXNVCtrl.so.0<br />> /usr/lib/libXNVCtrl.so.0.0.0<br />><br />><br />> (NOT to "/usr/lib/xorg/modules") which is where Xorg is expecting to find<br />> them.<br />><br />> Question 1: Should I symlink?<br />><br />> I then looked in the nvidia driver source for traces of the same library,<br />> but found nothing, so either it has a different name here or needs to be<br />> 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<br />> install the same version of the driver, first using the sgfxi script (which<br />> refuses), then using the pre-packaged version, which looses my nvidia GLX</blockquote><blockquote type="cite" cite="CANpj82JYcyaeQdGT3ejM0op5HbCMtv+qrsmDWDz9X5d+rGMEdw@mail.gmail.com">> extension.</blockquote><blockquote type="cite" cite="CANpj82JYcyaeQdGT3ejM0op5HbCMtv+qrsmDWDz9X5d+rGMEdw@mail.gmail.com">><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<br />> rest of the driver, in which case I could reinstall 358 or 361 from source<br />> (sgfxi or manual build) and run against libXNVCtrl 352.21 symlinked to<br />> /usr/lib/xorg/modules<br />><br />> Otherwise I do need to work out where to find or how to build the version<br />> of the library matching a buildable driver.<br />><br />> any clues?<br />><br />> BR.<br />><br />> --Marius--<br />><br />><br />><br />><br />><br />><br />> If you completely clear any nvidia drivers and install from nvidia official<br />> installer. Does it work?<br />><br />> When starting X do you see any error about not being able to load the nvctrl<br />> X extension?<br />><br />> Do you see anything in mythtv log about being enable to access it?<br />><br />> That would explain why you are seeing this.<br />><br />> An alternative is to disable nvidia TwinView; then the refresh rates<br />> reported to Xrandr will be the real ones (though as Xrandr 1.4 and earlier<br />> can only deal with integers, you will only get things like 24, 25, 30 50,<br />> 60, not 59.997)<br />><br />><br />>><br />>> Then it will automatically set your screen to the right refresh rate,<br />>> provided your screen supports it.<br />>><br />>> (To test if changing refresh rate works, when you play with xrandr do you<br />>> see the refresh rate the screen is getting changing?)<br />>>><br />>>><br />>><br />>> 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<br />>> limits.conf as per the wiki.<br />><br />><br />> Don't need that IMHO.<br />> Those instructions were written like 10 years ago, all obsolete with the new<br />> audio stack which was added like in 2009 or something!<br />><br />>><br /> </blockquote><br /><br /><br /> </html>