pombreda / pgreloaded

Automatically exported from code.google.com/p/pgreloaded
Other
0 stars 0 forks source link

pygame2 with no Xorg "pygame2.Error: No available video device" #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Arch Linux (or any other Text mode only distro like Gentoo)
2. Install pygame2 prereqs (sdl, sdlmixer ..)
3. Build and install pygame2 from source
4. Run the following code:
import pygame2
import pygame2.sdl.video as video
video.init()
5. Get the following error: "pygame2.Error: No available video device"

Expected for no exception to occur. I have vga=771 in grub, and can see 
/dev/fb0, just not sure how to configure pygame2/sdl without installing Xorg..?

Using pygame2 from source (via the archlinux AUR: 
http://aur.archlinux.org/packages/pygame2-py3/pygame2-py3/PKGBUILD) - which is 
version: 2.0.0-alpha5

Original issue reported on code.google.com by tom.medh...@gmail.com on 2 Nov 2010 at 1:18

GoogleCodeExporter commented 9 years ago
Does your executing user have read/write access to the framebuffer device?
Does it also fail for the root user?

Try the following on a temporary basis:

As root, execute

# chmod o+rw /dev/fb0
# ls -al /dev/fb0
crw-rw-rw- 1 root video ... /dev/fb0

As user, execute the code (it might complain about not having mouse access, in 
which
case, the mouse input devices have to be granted o+rw, too).

Original comment by marcusvonappen@googlemail.com on 6 Nov 2010 at 9:05

GoogleCodeExporter commented 9 years ago
Not a pygame2 related error.

Original comment by marcusvonappen@googlemail.com on 11 Nov 2010 at 6:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks that solved my issue!

Original comment by tom.medh...@gmail.com on 11 Nov 2010 at 9:48

GoogleCodeExporter commented 9 years ago
What about /dev/input/mouse0? By default only root can rwx, so what is a 
permanent way of running pygame2 as a standard user?

Original comment by tom.medh...@gmail.com on 11 Nov 2010 at 9:55