Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPEN_GL and NVIDIA #34

Closed
jhjun724 opened this issue Oct 22, 2020 · 3 comments
Closed

OPEN_GL and NVIDIA #34

jhjun724 opened this issue Oct 22, 2020 · 3 comments

Comments

@jhjun724
Copy link

jhjun724 commented Oct 22, 2020

Hi! I'm really interested in your SUMA and SUMA++ and I'm trying to run it on my computer.
It was successful to build. Thank you for your posts.
But there was a problem in visualizer.
I think this problem caused with my computer(without graphic card).
I want to ask you that my guess is right.

$ glxinfo | grep "version"
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 4.6
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.0.8
OpenGL core profile shading language version string: 4.60
OpenGL version string: 3.0 Mesa 20.0.8
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.0.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    GL_EXT_shader_implicit_conversions, GL_EXT_shader_integer_mix,

Here is the result of version check and

~/catkin_ws/src/SuMa/bin$ ./visualizer 
OpenGL Context Version 4.6 core profile
GLEW initialized.
OpenGL context version: 4.6
OpenGL vendor string  : Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 530 (SKL GT2)
Segmentation fault (core dumped)

this is the error message.
I didn't try SUMA++. This problem is related with SUMA which is uploaded on github.com/PRBonn/SuMa. But there was no issue link, so I'm asking here.

Thank you.

@Chen-Xieyuanli
Copy link
Member

Hey @jhjun724, I never tried our method without an Nvidia graphic card (facepalm).
Since our method is based on OpenGL shaders, I guess it would be very hard to make it work without a graphic card.

@jbehley Jens, do you have any comments on this?

@jhjun724
Copy link
Author

Thank you for your answer!

@lifangyan16
Copy link

lifangyan16 commented Feb 7, 2022

@jhjun724
When you install Nvidia driver, don't add '-no-opengl-files'. When you reboot, you will find you can't open you ubuntu. This is true.
微信图片_20220207111606
Here, don't select 'Ubuntu' but 'Ubuntu on Wayland'
cd /etc/X11
Backup 'xorg.conf'.
Then, set 'xorg.conf' like this:
https://forums.developer.nvidia.com/t/opengl-doesnt-use-nvidia-drivers-on-ubuntu-18-04-uses-llvmpipe/126084/4

Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia" 0 0
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Fake"
HorizSync 15.0 - 86.0
VertRefresh 60
Option "DPMS" "False"
EndSection

Section "Device"
Identifier "nvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "ConnectedMonitor" "DFP-0"
Option "AllowEmptyInitialConfiguration"
EndSection

Section "Screen"
Identifier "nvidia"
Device "nvidia"
Monitor "Monitor0"
EndSection

Reboot and you can select 'Ubuntu' and can go in!
Next, you need
sudo apt install nvidia-settings
sudo apt install nvidia-prime
When you input 'nvidia-settings' you can find this:
图片
图片
图片
Congratulations!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants