Skip to content

nvidia setup for NUC with 20xx #109

Closed

Description

@Utopiah

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

Activity

  1. osnr commented on Oct 31, 2023

    @osnr
    Collaborator

    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.

  2. Utopiah commented on Oct 31, 2023

    @Utopiah
    SponsorCollaboratorAuthor

    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.

  3. Utopiah commented on Oct 31, 2023

    @Utopiah
    SponsorCollaboratorAuthor

    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
    
  4. Utopiah commented on Oct 31, 2023

    @Utopiah
    SponsorCollaboratorAuthor

    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.
    
  5. osnr commented on Oct 31, 2023

    @osnr
    Collaborator

    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.

  6. osnr commented on Oct 31, 2023

    @osnr
    Collaborator

    Can you paste your vulkaninfo somewhere?

  7. Utopiah commented on Oct 31, 2023

    @Utopiah
    SponsorCollaboratorAuthor

    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.

  8. osnr commented on Oct 31, 2023

    @osnr
    Collaborator

    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)

  9. Utopiah commented on Oct 31, 2023

    @Utopiah
    SponsorCollaboratorAuthor
  10. osnr commented on Oct 31, 2023

    @osnr
    Collaborator

    Can you give me the output for these commands?

    ./vkcube -m khr

    ./vkcube -m khr -k 0

    ./vkcube -m khr -k 0:0

  11. Utopiah commented on Oct 31, 2023

    @Utopiah
    SponsorCollaboratorAuthor

    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)

  12. Utopiah commented on Oct 31, 2023

    @Utopiah
    SponsorCollaboratorAuthor

    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$ 
    
    
  13. osnr commented on Dec 17, 2025

    @osnr
    Collaborator

    Instructions support Nvidia now and confirmed working on 1070 Ti and RTX 4070 Max-Q, so closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions