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

nvidia setup for NUC with 20xx #109

Open
Utopiah opened this issue Oct 31, 2023 · 12 comments
Open

nvidia setup for NUC with 20xx #109

Utopiah opened this issue Oct 31, 2023 · 12 comments

Comments

@Utopiah
Copy link
Collaborator

Utopiah commented Oct 31, 2023

Hi, I'm at the mesa compilation step and read "TODO: Nvidia has a different process and doesn't use Mesa, figure this out" so wondering what's the recommanded path from here.

If it's easier I can switch back to an RPi4

@osnr
Copy link
Collaborator

osnr commented Oct 31, 2023

Can you try installing https://www.nvidia.com/en-us/drivers/unix/ and then running vulkaninfo? I know @jhaip had this issue. I think that if you have Ubuntu Server set up and everything plugged in then this is at least a good place for us to get on a call soon to debug in realtime. The NUC will be a much better experience than the Pi 4, so we can spend some time trying to get it to work.

@Utopiah
Copy link
Collaborator Author

Utopiah commented Oct 31, 2023

wasted a bit of time due to damn UEFI, was tricky to diagnose headlessly (and not used to have Windows on my machines...) but anyway nvidia-smi and vulkaninfo do run now. Thanks for the suggestion, continuing instructions then.

@Utopiah
Copy link
Collaborator Author

Utopiah commented Oct 31, 2023

After building vkcube I get :

folk@folk-fabien:~/vkcube/build$ ./vkcube -m khr -k 0:0:0
2 physical devices
vendor id 10de, device name NVIDIA GeForce RTX 2060
No available display
fail to initialize khr

@Utopiah
Copy link
Collaborator Author

Utopiah commented Oct 31, 2023

Well, turning on the physical display did help but unfortunately getting a core dump :

vkcube: ../main.c:795: create_swapchain: Assertion `vc->image_count > 0' failed.

@osnr
Copy link
Collaborator

osnr commented Oct 31, 2023

Huh. I wonder if you need a different set of numbers than -k 0:0:0 to specify a different display/mode/plane that can actually be drawn to.

@osnr
Copy link
Collaborator

osnr commented Oct 31, 2023

Can you paste your vulkaninfo somewhere?

@Utopiah
Copy link
Collaborator Author

Utopiah commented Oct 31, 2023

Sure, was going to do so, just a minute, meanwhile I went all the way to http://folk-fabien.local:4273/new which worked (was able to create a new note and drag) but there was nothing on display, despite the camera apparently active.

@osnr
Copy link
Collaborator

osnr commented Oct 31, 2023

Great. The system will work even if major components are offline (camera, display, tag detector), so that's a good sign that the rest of the system is running OK; we just need to get Vulkan to work.

(We should probably just get display working, but you could conceivably even print a program and have it do some other side effect (like opening/writing a file, or puts-ing to the journal) and put it on the table and see if that works)

@Utopiah
Copy link
Collaborator Author

Utopiah commented Oct 31, 2023

Here are the logs https://fabien.benetou.fr/pub/home/vulkaninfo.txt

@osnr
Copy link
Collaborator

osnr commented Oct 31, 2023

Can you give me the output for these commands?

./vkcube -m khr

./vkcube -m khr -k 0

./vkcube -m khr -k 0:0

@Utopiah
Copy link
Collaborator Author

Utopiah commented Oct 31, 2023

Can this be run from ssh?

(did setup the printer in the meantime, printed the test page and printed the test blue outline from Folk and 3 more for calibration)

@Utopiah
Copy link
Collaborator Author

Utopiah commented Oct 31, 2023

Assuming ssh is fine :


folk@folk-fabien:~/vkcube/build$ ./vkcube -m khr
2 physical devices
vendor id 10de, device name NVIDIA GeForce RTX 2060
display [0]:
   name: Samsung S24R35xFZ (HDMI-0)
   physical dimensions: 530x300
   physical resolution: 1920x1080
   plane reorder: no
   persistent content: no
fail to initialize khr
folk@folk-fabien:~/vkcube/build$ ./vkcube -m khr -k 0
2 physical devices
vendor id 10de, device name NVIDIA GeForce RTX 2060
display [0] (Samsung S24R35xFZ (HDMI-0)) modes:
mode [0]:
   visible region: 1920x1080
   refresh rate: 60000
mode [1]:
   visible region: 1920x1080
   refresh rate: 59940
mode [2]:
   visible region: 1280x720
   refresh rate: 59940
mode [3]:
   visible region: 1920x1080
   refresh rate: 50000
mode [4]:
   visible region: 1280x720
   refresh rate: 50000
mode [5]:
   visible region: 720x576
   refresh rate: 50000
mode [6]:
   visible region: 720x480
   refresh rate: 59940
mode [7]:
   visible region: 1280x720
   refresh rate: 50000
mode [8]:
   visible region: 720x576
   refresh rate: 50000
mode [9]:
   visible region: 720x480
   refresh rate: 59940
mode [10]:
   visible region: 1920x1080
   refresh rate: 74973
mode [11]:
   visible region: 1152x864
   refresh rate: 75000
mode [12]:
   visible region: 1280x720
   refresh rate: 60000
mode [13]:
   visible region: 1280x800
   refresh rate: 59810
mode [14]:
   visible region: 1280x1024
   refresh rate: 60020
mode [15]:
   visible region: 1440x900
   refresh rate: 59887
mode [16]:
   visible region: 1600x900
   refresh rate: 60000
mode [17]:
   visible region: 1680x1050
   refresh rate: 59954
mode [18]:
   visible region: 640x480
   refresh rate: 59940
mode [19]:
   visible region: 640x480
   refresh rate: 72000
mode [20]:
   visible region: 640x480
   refresh rate: 75000
mode [21]:
   visible region: 800x600
   refresh rate: 56250
mode [22]:
   visible region: 800x600
   refresh rate: 60317
mode [23]:
   visible region: 800x600
   refresh rate: 72188
mode [24]:
   visible region: 800x600
   refresh rate: 75000
mode [25]:
   visible region: 1024x768
   refresh rate: 60004
mode [26]:
   visible region: 1024x768
   refresh rate: 70069
mode [27]:
   visible region: 1024x768
   refresh rate: 75029
mode [28]:
   visible region: 1280x1024
   refresh rate: 75025
fail to initialize khr
folk@folk-fabien:~/vkcube/build$ ./vkcube -m khr -k 0:0
2 physical devices
vendor id 10de, device name NVIDIA GeForce RTX 2060
display [0] (Samsung S24R35xFZ (HDMI-0)) plane [0]
   current stack index: 0
   displays supported: 0
   src pos: 0x0 -> 0x0
   src size: 1920x1080 -> 1920x1080
   dst pos: 0x0 -> 0x0
   dst size: 1920x1080 -> 1920x1080
display [0] (Samsung S24R35xFZ (HDMI-0)) plane [1]
   current stack index: 0
   displays supported: 0
   src pos: 0x0 -> 0x0
   src size: 1920x1080 -> 1920x1080
   dst pos: 0x0 -> 0x0
   dst size: 1920x1080 -> 1920x1080
display [0] (Samsung S24R35xFZ (HDMI-0)) plane [2]
   current stack index: 0
   displays supported: 0
   src pos: 0x0 -> 0x0
   src size: 1920x1080 -> 1920x1080
   dst pos: 0x0 -> 0x0
   dst size: 1920x1080 -> 1920x1080
display [0] (Samsung S24R35xFZ (HDMI-0)) plane [3]
   current stack index: 0
   displays supported: 0
   src pos: 0x0 -> 0x0
   src size: 1920x1080 -> 1920x1080
   dst pos: 0x0 -> 0x0
   dst size: 1920x1080 -> 1920x1080
fail to initialize khr
folk@folk-fabien:~/vkcube/build$ 

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

2 participants