Re: [SOLVED] XRandR + nVidia - well not quite solved
Well folks I have some more information and solved it the hard[est] way. The only thing I found that matches my symptoms pretty closely is in this blog post http://blog.pdark.de/tag/opengl/ According to the author: The reason for the error was that the xorg-x11-server contains the file /usr/lib64/xorg/modules/extensions/libglx.so which is needed for the NVIDIA http://www.nvidia.com driver but the NVIDIA driver has its own, special version. The fix for the error was to reinstall the NVIDIA driver again. Well upgrading the driver (yum upgrade kmod-nvidia nvidia-x11-drv nvidia-x11-drv-32bit) didn't work. I am now at 310.40 (Thanks Andrew). Erasing those things and verifying nouveau is blacklisted and reinstalling them put X in a state where it wouldn't start at all no matter how many permutations of things I did. So my solution was to grab some unused disk space and install a fresh version of 6.3 (6.4 has to wait until the clusters are upgraded). Now everything works fine (at least for a few hours). Having used Ubuntu, this was a familiar task and partitioning was set up to mitigate the headaches. I still don't really understand my problem, but I do have that directory available and am willing to help debug, if that will help someone else. Thanks for the help and support on this. Joe On 03/31/2013 08:14 AM, Joseph Areeda wrote: At the bottom of the SOLVED message, I noted that one program didn't work. That one is SeeVogh teleconverencing (research.seevogh.org). Today I discovered a Matlab application (one of mine) that produced the same symptoms. To skip to the end: Setting Matlab to use software opengl fixes that problem. *Symptoms *When running a program that encounters this problem, X11 crashes and the current session logs out bringing you to the login window. All programs are immediately terminated. When running NVidia settings from the menu and attempting to check OpenGL/GLX Information, that program exits immediately. *Error messages and logs *Since these programs crash the only information I've found is in $HOME/.xsession-errors.old and /var/log/Xorg.log.old The NVidia settings program, .xsession-errors: Gdk-ERROR **: The program 'nvidia-settings' received an X Window System error. This probably reflects a bug in the program. The error was 'BadWindow (invalid Window parameter)'. (Details: serial 771 error_code 3 request_code 137 minor_code 4) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) aborting... Matlab and SeeVogh have: Window manager warning: gnome-session: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0. /var/log/Xorg.log.old has: Backtrace: [ 37353.205] 0: /usr/bin/Xorg (xorg_backtrace+0x28) [0x467998] [ 37353.205] 1: /usr/bin/Xorg (0x40+0x6bf99) [0x46bf99] [ 37353.205] 2: /lib64/libpthread.so.0 (0x32a040+0xf500) [0x32a040f500] [ 37353.205] Segmentation fault at address (nil) [ 37353.205] Fatal server error: [ 37353.205] Caught signal 11 (Segmentation fault). Server aborting [ 37353.205] [ 37353.205] Please consult the Scientific Linux support at https://www.scientificlinux.org/maillists for help. [ 37353.205] Please also check the log file at /var/log/Xorg.0.log for additional information. [ 37353.205] *Request *I've attached my xorg.conf, which I think is the most probable source of the problem. I'd appreciate any suggestions on how to fix this so these programs can use hardware OpenGL, or how to get everything to use software OpenGL as a workaround while still being able use the GPU for crunching. Also any avenues to allow me to dig deeper would help. Thanks, Joe -Excuse me for top posting on a bottom posting thread but this is just background below--- On 03/10/2013 08:57 AM, Joseph Areeda wrote: On 03/10/2013 08:02 AM, Florian Philipp wrote: Am 10.03.2013 14:53, schrieb Phil Perry: On 10/03/13 13:11, Florian Philipp wrote: Am 09.03.2013 21:59, schrieb Joseph Areeda: I need some advice on how to turn on RANDR. I have a few systems with nVidia GPU 5xx and 6xx series. Latest kmod drivers, multiple monitors with Xinerama enabled. Newer systems work fine but I have once that been upgraded since before the 2 were compatible. I have libXrandr installed but it doesn't seem to be enabled. [...] Thank you Florian and Phil. I got it to work. Here's the procedure I used. I make no claim that it is optimal. *Problem*: When using multiple monitors with nVidia
Re: [SOLVED] XRandR + nVidia - well not quite solved
On 04/01/2013 08:10 AM, Phil Perry wrote: On 01/04/13 15:24, Joseph Areeda wrote: Well folks I have some more information and solved it the hard[est] way. The only thing I found that matches my symptoms pretty closely is in this blog post http://blog.pdark.de/tag/opengl/ According to the author: The reason for the error was that the xorg-x11-server contains the file /usr/lib64/xorg/modules/extensions/libglx.so which is needed for the NVIDIA http://www.nvidia.com driver but the NVIDIA driver has its own, special version. The fix for the error was to reinstall the NVIDIA driver again. Well upgrading the driver (yum upgrade kmod-nvidia nvidia-x11-drv nvidia-x11-drv-32bit) didn't work. I am now at 310.40 (Thanks Andrew). You are confusing issues here somewhat. The issue (and fix) described in that blog refers specifically to the proprietary NVIDIA drivers as installed by the NVIDIA installer where xorg-x11-server-Xorg and the NVIDIA installer will indeed conflict and each overwrite /usr/lib{64}/xorg/modules/extensions/libglx.so installed by the other. Thus, if you are using the NVIDIA installer then you will need to reinstall the NVIDIA drivers after each update to xorg-x11-server-Xorg to reinstate the NVIDIA libs just overwritten by the OS. However, the RPM packaged driver solution installs conflicting libraries to separate locations (in this case /usr/lib{64}/xorg/modules/extensions/nvidia/libglx.so) and either the dynamic linker or an appropriately configured xorg.conf ensure the correct lib is loaded. So upgrading the driver with yum will never fix this issue as this is not broken in the first place with the packaged driver. Thanks Phil. That helps my understanding a bit. I have been using the packaged drivers. This system had been upgraded with yum update. I guess I don't have a clue why OpenGL was crashing, everything else seem to work. Best, Joe
Re: [SOLVED] XRandR + nVidia - well not quite solved
At the bottom of the SOLVED message, I noted that one program didn't work. That one is SeeVogh teleconverencing (research.seevogh.org). Today I discovered a Matlab application (one of mine) that produced the same symptoms. To skip to the end: Setting Matlab to use software opengl fixes that problem. *Symptoms *When running a program that encounters this problem, X11 crashes and the current session logs out bringing you to the login window. All programs are immediately terminated. When running NVidia settings from the menu and attempting to check OpenGL/GLX Information, that program exits immediately. *Error messages and logs *Since these programs crash the only information I've found is in $HOME/.xsession-errors.old and /var/log/Xorg.log.old The NVidia settings program, .xsession-errors: Gdk-ERROR **: The program 'nvidia-settings' received an X Window System error. This probably reflects a bug in the program. The error was 'BadWindow (invalid Window parameter)'. (Details: serial 771 error_code 3 request_code 137 minor_code 4) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) aborting... Matlab and SeeVogh have: Window manager warning: gnome-session: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0. /var/log/Xorg.log.old has: Backtrace: [ 37353.205] 0: /usr/bin/Xorg (xorg_backtrace+0x28) [0x467998] [ 37353.205] 1: /usr/bin/Xorg (0x40+0x6bf99) [0x46bf99] [ 37353.205] 2: /lib64/libpthread.so.0 (0x32a040+0xf500) [0x32a040f500] [ 37353.205] Segmentation fault at address (nil) [ 37353.205] Fatal server error: [ 37353.205] Caught signal 11 (Segmentation fault). Server aborting [ 37353.205] [ 37353.205] Please consult the Scientific Linux support at https://www.scientificlinux.org/maillists for help. [ 37353.205] Please also check the log file at /var/log/Xorg.0.log for additional information. [ 37353.205] *Request *I've attached my xorg.conf, which I think is the most probable source of the problem. I'd appreciate any suggestions on how to fix this so these programs can use hardware OpenGL, or how to get everything to use software OpenGL as a workaround while still being able use the GPU for crunching. Also any avenues to allow me to dig deeper would help. Thanks, Joe -Excuse me for top posting on a bottom posting thread but this is just background below--- On 03/10/2013 08:57 AM, Joseph Areeda wrote: On 03/10/2013 08:02 AM, Florian Philipp wrote: Am 10.03.2013 14:53, schrieb Phil Perry: On 10/03/13 13:11, Florian Philipp wrote: Am 09.03.2013 21:59, schrieb Joseph Areeda: I need some advice on how to turn on RANDR. I have a few systems with nVidia GPU 5xx and 6xx series. Latest kmod drivers, multiple monitors with Xinerama enabled. Newer systems work fine but I have once that been upgraded since before the 2 were compatible. I have libXrandr installed but it doesn't seem to be enabled. [...] Thank you Florian and Phil. I got it to work. Here's the procedure I used. I make no claim that it is optimal. *Problem*: When using multiple monitors with nVidia drivers some programs require RANDR (Resize, rotate, AND, Reflect). If it's not available, they exit with an error available in $HOME/.xsession-errors or the terminal window noting RANDR is not available. If Scientific Linux was upgraded from older versions during which RANDR and kmod-nvidia were incompatible, it is necessary to fix /etc/xorg.conf. *Prerequisites*: My reading suggests that to use RANDR with nVidia drivers those drivers must be newer than 302.x I am using 310.32, current as of 2013-3-10. I have not verified when this support was added. The package libXrandr must be installed. I'm using 1.3.0 but have no idea what the minimum version might be. *Procedure*: * Remove /etc/xorg.conf (sudo mv /etc/xorg.conf /etc/xorg.conf.bak) * Reboot (X will not start) into command line terminal. Or log in remotely via ssh * run nvidia-settings with no options. This will create a default xorg.conf * reboot (X will start) * Now run the NVIDIA X Server settings from the System menu, or nvidia-config-display from the command line. o On the X-server Display Configuration tab, Configuration should be TwinView o As far as I can tell you have to argue with program to convince it how you want the rest of the options to display. I can now run AisleRight
Re: XRandR + nVidia
Am 09.03.2013 21:59, schrieb Joseph Areeda: I need some advice on how to turn on RANDR. I have a few systems with nVidia GPU 5xx and 6xx series. Latest kmod drivers, multiple monitors with Xinerama enabled. Newer systems work fine but I have once that been upgraded since before the 2 were compatible. I have libXrandr installed but it doesn't seem to be enabled. This reminds me of: Would someone point me to a link that explains what I have to do? Thanks, Joe Any particular reason why you use xinerama? Usually you are better off just using randr for multiple displays. Regarding xorg.conf: Try to remove it entirely and let X11 and your desktop environment figure everything out. Regards, Florian Philipp signature.asc Description: OpenPGP digital signature
Re: XRandR + nVidia
On 03/10/2013 06:53 AM, Phil Perry wrote: On 10/03/13 13:11, Florian Philipp wrote: Am 09.03.2013 21:59, schrieb Joseph Areeda: I need some advice on how to turn on RANDR. I have a few systems with nVidia GPU 5xx and 6xx series. Latest kmod drivers, multiple monitors with Xinerama enabled. Newer systems work fine but I have once that been upgraded since before the 2 were compatible. I have libXrandr installed but it doesn't seem to be enabled. This reminds me of: Would someone point me to a link that explains what I have to do? Thanks, Joe Any particular reason why you use xinerama? Usually you are better off just using randr for multiple displays. Regarding xorg.conf: Try to remove it entirely and let X11 and your desktop environment figure everything out. You need an xorg.conf for the kmod NVIDIA driver. Thank you for the replies Phil, Florian. Why do I use Xinerama? Good question, I have set up my displays with the nVidia X-server settings on the Admin menu and Xinerama was the only way I could figure out how to get one virtual desktop. This might be another remnant of constant upgrades from 6.1 to last week but using that tool I don't see a way to switch. I will try removing xorg.conf and seeing if it will fix it. If not where would one find an xorg.conf for the kmod NVIDIA driver? thanks again, Joe
Re: XRandR + nVidia
Am 10.03.2013 14:53, schrieb Phil Perry: On 10/03/13 13:11, Florian Philipp wrote: Am 09.03.2013 21:59, schrieb Joseph Areeda: I need some advice on how to turn on RANDR. I have a few systems with nVidia GPU 5xx and 6xx series. Latest kmod drivers, multiple monitors with Xinerama enabled. Newer systems work fine but I have once that been upgraded since before the 2 were compatible. I have libXrandr installed but it doesn't seem to be enabled. [...] Any particular reason why you use xinerama? Usually you are better off just using randr for multiple displays. Regarding xorg.conf: Try to remove it entirely and let X11 and your desktop environment figure everything out. You need an xorg.conf for the kmod NVIDIA driver. In that case try to get away with an xorg.conf that *only* reads Section Device Identifier NVIDIA_Device Driver nvidia EndSection Hope this helps, Florian Philipp signature.asc Description: OpenPGP digital signature
[SOLVED] XRandR + nVidia
On 03/10/2013 08:02 AM, Florian Philipp wrote: Am 10.03.2013 14:53, schrieb Phil Perry: On 10/03/13 13:11, Florian Philipp wrote: Am 09.03.2013 21:59, schrieb Joseph Areeda: I need some advice on how to turn on RANDR. I have a few systems with nVidia GPU 5xx and 6xx series. Latest kmod drivers, multiple monitors with Xinerama enabled. Newer systems work fine but I have once that been upgraded since before the 2 were compatible. I have libXrandr installed but it doesn't seem to be enabled. [...] Thank you Florian and Phil. I got it to work. Here's the procedure I used. I make no claim that it is optimal. *Problem*: When using multiple monitors with nVidia drivers some programs require RANDR (Resize, rotate, AND, Reflect). If it's not available, they exit with an error available in $HOME/.xsession-errors or the terminal window noting RANDR is not available. If Scientific Linux was upgraded from older versions during which RANDR and kmod-nvidia were incompatible, it is necessary to fix /etc/xorg.conf. *Prerequisites*: My reading suggests that to use RANDR with nVidia drivers those drivers must be newer than 302.x I am using 310.32, current as of 2013-3-10. I have not verified when this support was added. The package libXrandr must be installed. I'm using 1.3.0 but have no idea what the minimum version might be. *Procedure*: * Remove /etc/xorg.conf (sudo mv /etc/xorg.conf /etc/xorg.conf.bak) * Reboot (X will not start) into command line terminal. Or log in remotely via ssh * run nvidia-settings with no options. This will create a default xorg.conf * reboot (X will start) * Now run the NVIDIA X Server settings from the System menu, or nvidia-config-display from the command line. o On the X-server Display Configuration tab, Configuration should be TwinView o As far as I can tell you have to argue with program to convince it how you want the rest of the options to display. I can now run AisleRight Solitaire without going through a VNC server and for free I can also run my scanner software but I seem to still have issues with my teleconferencing software but that might be something else. Thanks for all your help. Joe
Re: XRandR + nVidia
I can really identify with the xkcd graphic. X11 graphics on Linux has really come a long way. It was a real struggle back in the early 90's. Florian's response is spot on. Having a xorg.conf actually messes things up. Dont know why. But when you get rid of it, some automagical happens. On 03/09/2013 02:59 PM, Joseph Areeda wrote: I need some advice on how to turn on RANDR. I have a few systems with nVidia GPU 5xx and 6xx series. Latest kmod drivers, multiple monitors with Xinerama enabled. Newer systems work fine but I have once that been upgraded since before the 2 were compatible. I have libXrandr installed but it doesn't seem to be enabled. This reminds me of: Would someone point me to a link that explains what I have to do? Thanks, Joe