Problems with resources

Hi,

Sometimes i have this kind of problems:

() Direct/Thread: Running ‘PS/2 Input’ (INPUT, 7059)…
(!) DirectFB/linux_input: could not grab device --> Device or
resource busy
(!) DirectFB/Input: Failed reopening device during resume (PC Speaker)!
–> Initialization error!
(!) DirectFB/linux_input: could not grab device --> Device or
resource busy
(!) DirectFB/Input: Failed reopening device during resume (AT Translated
Set 2 keyboard)!
–> Initialization error!
(!) DirectFB/linux_input: could not grab device --> Device or
resource busy
(!) DirectFB/Input: Failed reopening device during resume (PS/2 Generic
Mouse)!
–> Initialization error!
(
) Direct/Thread: Running ‘Keyboard Input’ (INPUT, 7060)…
(!) [ 7038: 0.000] --> Caught signal 2, no siginfo available <–
(!) [ 7039: 0.000] --> Caught signal 2, no siginfo available <–
(!) [ 7040: 0.000] --> Caught signal 2, no siginfo available <–
(!) [ 7041: 0.001] --> Caught signal 2, no siginfo available <–
(!) [ 7042: 0.001] --> Caught signal 2, no siginfo available <–
(!) [ 7043: 0.001] --> Caught signal 2, no siginfo available <–
(!) [ 7056: 0.001] --> Caught signal 2, no siginfo available <–
(!) [ 7057: 0.001] --> Caught signal 2, no siginfo available <–
(!) [ 7058: 0.001] --> Caught signal 2, no siginfo available <–
(!) [ 7037: 0.251] --> Caught signal 2, no siginfo available <–

It hangs and it does nothing more.

I’m initializing the sdl like this (sdljava, but its the same because
its just a binding):

SDLMain.init(SDLMain.SDL_INIT_VIDEO);
fb =
SDLVideo.setVideoMode(1024,768,32,(long)SDLVideo.SDL_HWSURFACE|SDLVideo.SDL_FULLSCREEN);
SWIG_SDLEvent.SDL_ShowCursor(0);

I’m also using this code to grab the key event “ESCAPE” to terminate the
program

while(true) {
SDLEvent e = SDLEvent.waitEvent();
if (e instanceof SDLKeyboardEvent) {
SDLKeyboardEvent keyboardEvent = (SDLKeyboardEvent) e;
if (keyboardEvent.getSym() == SDLKey.SDLK_ESCAPE) {
r.stop();
}
}
}

Does any one knows what causes this problems?

Many thx,

Nuno Santos

Does any one knows what causes this problems?

Looks like a permissions problem and/or a DirectFB bug. Did you mean to
use DirectFB, or is that just what SDL chose for a video target?

–ryan.

Hi,

Well, i really dont know.

I think i just emerged sdl in gentoo and directfb came as well.

Do i have options?

Which options are that and how can i try them?

Many thx,

Nuno Santos

Ryan C. Gordon escreveu:>> Does any one knows what causes this problems?

Looks like a permissions problem and/or a DirectFB bug. Did you mean to
use DirectFB, or is that just what SDL chose for a video target?

–ryan.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl