z0rc / debumblebee

DEPRECATED. Don't use it anymore — Optimus graphics support for Debian through VirtualGL
http://suwako.nomanga.net/
GNU General Public License v3.0
26 stars 2 forks source link

[VGL] ERROR: Could not open display :1 #10

Closed johanbluecreek closed 13 years ago

johanbluecreek commented 13 years ago

Hi,

Another one of these. I'm on a Dell XPS 15 (L502X), and I got the same error. I run debian unstable. I fixed it with adding the BusID as described for the thinkpad. Now it works and you can close this right away. Just thought this should be mentioned here for others with debian + L502X.

Thanks for the good work!

z0rc commented 13 years ago

Provide output of "dmidecode --string system-product-name" and I'll add your model into model.sh quirk.

z0rc commented 13 years ago

Hrm, well no. This is another case. I need someone with such situation (maybe you) willing to test (and fix) BusID detection in installation script. I assume you've already found the relevant part in installer. I don't have such hardware to reproduce this issue so I don't know what is root case of this situation.

johanbluecreek commented 13 years ago

"dmidecode --string system-product-name" Dell System XPS L502X

I have not looked at the installer. And now when I have been using the optirun script a few times, I notice that I get the same error every now and then. I can run glxgears about ~80% of the times, other times I get the error (I will give you the log of this when I have the time/possibility to reproduce it).

I also tried running some applications under wine with optirun, sometimes X crashes (with no apparent error in the log (I will give you the log when I have the time/possibility to reproduce the crash) ), and I get thrown out to GDM. This might however be related to debian unstable, since I had the same problem with closing flash in fullscreen.

I don't think I'm good enough to start going through the install script and find problems myself, but if you want me to try out commands and/or new install scrips I'm happy to do it. But I will need some instructions.

z0rc commented 13 years ago

OK. I need more information about those errors, generally it's steps reproduce the crash (more preferred) and /var/log/Xorg.1.log after crash (and maybe /var/log/Xorg.0.log, but this is for Intel X server).

As for installation script. Install and uninstall can be done without reboot several times. You may start checking from: https://github.com/z0rc/debumblebee/blob/master/install-files/debian.install#L59 This and the following line are doing detection of BusID and placing it into xorg.nvidia.conf. You need to check that NVIDIABUSID actually contains something before sed.

johanbluecreek commented 13 years ago

Running optirun on a wine application gives me: http://pastebin.com/KnrPT7Xh with the log file: http://pastebin.com/wETQDrmY

I used to get the "could not open display" error, but now I got something else. The game starts to preload, but as soon as the intro film starts playing it crashes.

I have not been able to reproduce the glxgears crash, maybe it is gone somehow...

I have another problem, (maybe I should open a new issue on this), I cant run any commands with optirun if I need that command to open a file with name containing spaces, e.g. http://pastebin.com/ds2vaFA2

I have tried using ", ', and keeping "\ " and loosing them, in all possible combinations, but the result is the same.

johanbluecreek commented 13 years ago

Ah... wait, should I be using install.sh or the debian.install ?

install.sh could finish the installation, debian.install crashes. I'm trying to figure out why, at now it seems to be because unstable have some broken packages. I will downgrade to testing and try again.

johanbluecreek commented 13 years ago

Ah... wait, should I be using install.sh or the debian.install ?

install.sh could finish the installation, debian.install crashes. I'm trying to figure out why, at now it seems to be because unstable have some broken packages. I will downgrade to testing and try again.

z0rc commented 13 years ago

Could I obtain your copy of Diablo 2 for testing (hurr durr pirating)? You can send link in private message. Second issue should be trivial to fix, I just need to wrap something in optirun script in double quotes, no need to report it.

PS There is no point in running mplayer with optirun as VDPAU isn't supported and -vo gl works fine with Intel card (at least for me).

z0rc commented 13 years ago

Also NVIDIA Xorg error log doesn't show any errors, maybe it's bug (or something else) in wine or Intel X server. Most of the time I'm tests with Minecraft and Braid just FYI.

johanbluecreek commented 13 years ago

Fair enough about the mplayer stuff, however its a nice feature to have.

I get the following error when I run the debian.install http://pastebin.com/CMqkFmJw

I had to install libgl1-nvidia-alternatives and libglx-nvidia-alternatives manually otherwise it complained about those too "no alternatives for".

johanbluecreek commented 13 years ago

... the error is still there in testing, so it wasn't because of broken packages.

johanbluecreek commented 13 years ago

Ok, sorry for the above. Apparently it is like this:

The installation finishes, but with the error/warning: http://pastebin.com/USjzW9gP

I can now reproduce the "[VGL] ERROR: Could not open display :1" when running wine: http://pastebin.com/NfGWxBXt note that only the "fixme" line is there when I run without optirun. I thnik the rest might be related to the optirun command not respecting spaces in the correct way, as I described earlier. The log is: http://pastebin.com/G1qGVkUH Again no apparent errors, so I guess that is wine that crashes. And that might be because of the problem explained.

Then I tried to run wine with optirun32, maybe that what I should do since winblows stuff is 32bit (at least this old stuff), but then I get segmentation fault. Is that suppose to happen?

johanbluecreek commented 13 years ago

So If I install libgl1-mesa-dev the command "update-alternatives --set libGL.so /usr/lib/nvidia/diversions/libGL.so" goes through without any complaints. Is this package missing in the install script, or not there by purpose?

I'm just doing all this on a trial-by-error basis. In the installation it says "You need to alter libGL.so library, libglx.so Xorg module and any other libraries replaced by nVidia back to free versions", why is this crucial point?

johanbluecreek commented 13 years ago

Sorry, I'm really spamming this...

WARNING: when I installed libgl1-mesa-dev, and rebooted, X won't recognize and input device that is plugged in when the server is started. That is, the laptop keyboard and touchpad stops working (in X). I do not have a fix for this, purging that same package and doing an autoremove is not enough.

z0rc commented 13 years ago

OK, thanks for all information. Right now I'm a bit busy with other things (moving from one city to another) and I'm waiting for http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=630565, right now nvidia packages aren't installable in sid. I'll get back to work on debumblebee as those things are set up.

johanbluecreek commented 13 years ago

Sorry for bailing on you. I switched to gentoo and just got it working yesterday. Thanks for all the help though.