You are not logged in.

#1 2010-11-02 11:02:00

tommed
Member
From: Berkshire, Engalnd
Registered: 2009-06-10
Posts: 54
Website

pygame fb setup from vanilla arch (no Xorg)

Hi Chaps!

I want to prototype a graphical UI without using Xorg (straight to the framebuffer) . I found pygame2 in the AUR and thought I would try that out.

From what I understand, pygame2 works by wrapping SDL, which can write directly to the framebuffer without the overhead of Xorg?

When I attempt to init pygame's video library:

import pygame2, sys, os
import pygame2.sdl.video as video
video.init()

I get the following error:

pygame2.Error: No available video device

The fact that I have a vanilla Arch Linux with no Xorg configured means I am not surprised that it can't find a video device, but how do I get this working without having to install and configure Xorg?

UPDATE: I added vga=771 into grub, which means now I have a /dev/fb0 node. But still get the same error?!

Last edited by tommed (2010-11-02 12:10:05)

Offline

Board footer

Powered by FluxBB