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

No such file or directory: '/dev/input/mouse0' #2

Open
xavicolomer opened this issue Jan 31, 2013 · 2 comments
Open

No such file or directory: '/dev/input/mouse0' #2

xavicolomer opened this issue Jan 31, 2013 · 2 comments

Comments

@xavicolomer
Copy link

Hi there,

I was trying to run your code.:
python -i pyopengles.py

And I got this error:
numconfig= c_long(1)
Compiled
Compiled
Compiled

Traceback (most recent call last):
File "pyopengles.py", line 413, in
m=pymouse.start_mouse()
File "/home/pi/opengl/pyopengles/pymouse.py", line 43, in start_mouse
m=MouseThread()
File "/home/pi/opengl/pyopengles/pymouse.py", line 10, in init
self.fd = open('/dev/input/mouse0','r')
IOError: [Errno 2] No such file or directory: '/dev/input/mouse0'

Any idea?

@xavicolomer
Copy link
Author

Ok. I fixed because I was working remotelly with no mouse connected on the Raspberry Pi, so it wasn't creating the '/dev/input/mouse0'

But I have a new error now.

Traceback (most recent call last):
File "pyopengles.py", line 410, in
egl = EGL()
File "pyopengles.py", line 122, in init.py
assert self.surface != EGL_NO_SURFACE
AssertionError

@peterderivaz
Copy link
Owner

I haven't seen that error myself. A few things you could try:

Check the resolution of the screen by adding

  print width,height 

just before the assert to check that they have sensible values. (1280,720 or 1920,1080 might be expected)

Check that you have enough memory assigned to the GPU
You used to be able to change the memory split by running

sudo cp /boot/arm128_start.elf /boot/start.elf

Check that the default C OpenGL demos provided with the Raspberry Pi run.
e.g. /opt/vc/src/hello_pi/hello_triangle/hello_triangle.bin

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