[Bug 1597437] Re: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors
Then you are more lucky than I am. My system hangs from time to time with this patched driver - mouse and screen are frozen, only reboot cures that. It happens approximately once a week, and that doesn't suit me because my system should be up 24/7. Nothing can be found in /var/log/syslog, only Xorg log shows some info about "EQ overflowing" [https://nouveau.freedesktop.org/wiki/TroubleShooting/#index5h3]. So it seems that this patch needs proper testing and its stability depends on PC configuration. Good that it helped someone, but that's not my case. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1597437 Title: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-nouveau/+bug/1597437/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1597437] Re: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors
I did not re-try with your suggestions of how to get the .so file smaller. But with the original large one I built with your patch, January 13, yes it has behaved fine and all four monitors continue to work. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1597437 Title: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-nouveau/+bug/1597437/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1597437] Re: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors
Almost 2 months have passed since I posted the patch. Martin, if you are still tracking this bug, does this patch work stable for you? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1597437 Title: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-nouveau/+bug/1597437/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1597437] Re: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors
If debugging symbols weren't disabled during compilation and the resulting file size looks intimidating you can decrease it. Run 'strip -s nouveau_drv.so' and debugging symbols will be purged completely. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1597437 Title: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-nouveau/+bug/1597437/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1597437] Re: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors
Martin, you've done everything well. Indeed, additional packages are needed for the successful compilation. They can be installed by the command 'sudo apt-get build-dep package_name' (there can be hefty pack, that's why I'm usually using virtual machine for the compilation and revert it to the last snapshot afterwards). The size of the resulting library can be decreased by setting specific compiler options. If you examine Makefile which was created after './configure' has finished its work, you'll find CFLAGS string in it containing -g option (the level of debugging information) and -O2 option (optimization level). Disabling debugging information affects size of the resulting file but isn't advised (this may cause undesired results). Increasing optimization level will reduce the compiled file size (higher levels of optimisation also may cause undesired code behavior). Better leave it as it is. Those who perform packaging are better aware how this specific package should be compiled to ensure its minimal size for the distribution. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1597437 Title: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-nouveau/+bug/1597437/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1597437] Re: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors
I can confirm that the patch in #5 works. I've tested it on the same system (updated to 16.04.1 with all current updates), same video cards, same monitors, as described in the original bug description section above. (long version:) Re #5, thanks for trying this and updating with your result! You've now emboldened me to try this too, but you just say "I compiled the driver", you don't specifically say how :-( So I've got the source folders with the apt source command you mentioned, applied the patch, and from the (patched) xserver-xorg-video- nouveau-1.0.12 folder, I've run .configure but I get the following: [lots of "checking... yes" lines] ... Package xorg-macros was not found in the pkg-config search path. Perhaps you should add the directory containing `xorg-macros.pc' to the PKG_CONFIG_PATH environment variable No package 'xorg-macros' found ... Package xorg-server was not found in the pkg-config search path. Perhaps you should add the directory containing `xorg-server.pc' to the PKG_CONFIG_PATH environment variable No package 'xorg-server' found checking if RANDR is defined... no Package xorg-server was not found in the pkg-config search path. Perhaps you should add the directory containing `xorg-server.pc' to the PKG_CONFIG_PATH environment variable No package 'xorg-server' found checking if RENDER is defined... no Package xorg-server was not found in the pkg-config search path. Perhaps you should add the directory containing `xorg-server.pc' to the PKG_CONFIG_PATH environment variable No package 'xorg-server' found checking if XV is defined... no Package xorg-server was not found in the pkg-config search path. Perhaps you should add the directory containing `xorg-server.pc' to the PKG_CONFIG_PATH environment variable No package 'xorg-server' found checking if DPMSExtension is defined... no Package xorg-server was not found in the pkg-config search path. Perhaps you should add the directory containing `xorg-server.pc' to the PKG_CONFIG_PATH environment variable No package 'xorg-server' found checking if DRI2 is defined... no checking for LIBDRM... yes checking for LIBDRM_NOUVEAU... yes checking for XORG... no configure: error: Package requirements (xorg-server >= 1.8 xproto fontsproto libdrm ) were not met: No package 'xorg-server' found No package 'fontsproto' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables XORG_CFLAGS and XORG_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. Do you recall which -dev packages you had to install for this to work? Okay google-answering my own question (for other readers)... apt-get install xserver-xorg-dev x11proto-core-dev x11proto-fonts-dev After this, ./configure and make worked, I moved the new src/.libs/nouveau_drv.so to replace the one in /usr/lib/xorg/modules/drivers/ as you said, and upon reboot, the 4th monitor works. Thanks! I've been sitting with it dark for months!!! One concern though, is why is the new version 10x bigger than the old? Is the default ./configure settings set to leave debug flags on or something? and should I have done this differently? $ ls -la nouveau_drv.so* -rw-r--r-- 1 root root 2332552 Jan 13 12:34 nouveau_drv.so -rw-r--r-- 1 root root 214960 Mar 3 2016 nouveau_drv.so.orig But besides that, I'm thrilled. Please, developers, package managers, etc., help get this out to the less techy users out there. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1597437 Title: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-nouveau/+bug/1597437/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1597437] Re: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors
** Changed in: xserver-xorg-video-nouveau (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1597437 Title: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-nouveau/+bug/1597437/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1597437] Re: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors
The attachment "Fixes improper handling of 3rd and 4th monitors" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team. [This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.] ** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1597437 Title: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-nouveau/+bug/1597437/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1597437] Re: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: xorg-server (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1597437 Title: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-nouveau/+bug/1597437/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1597437] Re: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors
I met with the same bug in Ubuntu 16.04.1 (amd64): 2 NVIDIA adapters with DVI and HDMI connectors on each of them, 4 identical Samsung monitors, 4th monitor is dead, 3rd is sometimes garbled, sometimes is OK. All the error messages described by Martin are the same. Luckily in #2 he provided the method which cures the bug with ATI cards in Fedora. I decided to try it with Nouveau driver in Ubuntu and it worked! I downloaded the sources using 'apt-get source xserver-xorg-video-nouveau', found the string in drmmode_display.c which checks whether HAS_DIRTYTRACKING2 is defined and fixed it. Then I compiled the driver and replaced '/usr/lib/xorg/modules/drivers/nouveau_drv.so' with the fixed version. After reboot all 4 monitors were working on login screen, '~/.config/monitors.xml' was created properly and all monitors were present when I logged in. I'm attaching the patch. Maybe the developers will notice it and fix the Nouveau driver? (BTW, ATI driver in Ubuntu 16.04 seems already fixed - I checked its sources and the mentioned string is already in place in drmmode_display.c) ** Patch added: "Fixes improper handling of 3rd and 4th monitors" https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1597437/+attachment/4802770/+files/nouveau_drv.patch ** Package changed: xorg-server (Ubuntu) => xserver-xorg-video-nouveau (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1597437 Title: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-nouveau/+bug/1597437/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1597437] Re: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors
Maybe duplicate? https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1381013 (While that bug is radeon driver, if the fix is the same in both drivers, this can still be considered duplicate maybe?) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1597437 Title: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1597437/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1597437] Re: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors
This Fedora bug https://bugzilla.redhat.com/show_bug.cgi?id=1307204 looks to me to be the same issue, and says that the cause is 'The problem is that xorg 1.17 or 1.18 replaced "HAS_DIRTYTRACKING2" with "HAS_DIRTYTRACKING_ROTATION" in pixmap.h and the old version of xf86-video-ati still looks for HAS_DIRTYTRACKING2. The newest version of xf86-video-ati looks for either: #if !defined(HAS_DIRTYTRACKING_ROTATION) && !defined(HAS_DIRTYTRACKING2)' and it appears to have patches for both ati and nouveau drivers. But I can't tell if that is a fedora-only patch or an upstream patch that can be brought to Ubuntu (or will eventually be brought in the normal course of version advances). Of course I am not an X expert so that fedora bug could be subtly different and thus not the same fix. ** Bug watch added: Red Hat Bugzilla #1307204 https://bugzilla.redhat.com/show_bug.cgi?id=1307204 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1597437 Title: X with nouveau driver, 2 nvidia cards, 4 monitors, does not use all monitors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1597437/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs