Skip to content

No available video device (Raspbian Stretch) #9

@uwe76

Description

@uwe76

Hi Zetsin,

I would like to run two graphical JavaScript applications on two separate displays. Right now, I'm using multiple Adafruit displays with a Raspberry Pi Zero W. They're registered as /dev/fb1 and /dev/fb2 via SPI and display overlays. I set an environmental variable via export SDL_FBDEV="/dev/fb1".
If I'm now running your test.js I end up with the error "No available video device" after I modified app.js slightly:

const SDL_error = require('../dep/SDL_error')
[...]
if(SDL.SDL_Init(flags) != 0) {
console.log(flags);
console.log(SDL_error.SDL_GetError());
this.quit()
return
}

Can you hint me how to use node-sdl2 with multiple dedicated framebuffer devices?

Cheers,
Uwe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions