Permission problems

When I try to start any SDL application I get the following error:

XF86DGAGetVideo: failed to open /dev/mem (The operation is not
permitted)

I always thought that only fullscreen apps use DGA, but this happens
with windowed apps, too. Only the root can execute SDL programs, in
spite of these permissions for /dev/mem:

crwxrwxrwx 1 root kmem 1, 1 Mai 5 1998 /dev/mem

This is probably a fault in my system, because I have a really bad
distribution…

Thanks, Karl.

When I try to start any SDL application I get the following error:

XF86DGAGetVideo: failed to open /dev/mem (The operation is not
permitted)

I always thought that only fullscreen apps use DGA, but this happens
with windowed apps, too. Only the root can execute SDL programs, in
spite of these permissions for /dev/mem:

crwxrwxrwx 1 root kmem 1, 1 Mai 5 1998 /dev/mem

This is probably a fault in my system, because I have a really bad
distribution…

I’m working on non-root fullscreen under X11 (inspired by Stephane Peter)

See ya,
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Sam Lantinga wrote:

I always thought that only fullscreen apps use DGA, but this happens
with windowed apps, too. Only the root can execute SDL programs, in
spite of these permissions for /dev/mem:

crwxrwxrwx 1 root kmem 1, 1 Mai 5 1998 /dev/mem

This is probably a fault in my system, because I have a really bad
distribution…

I’m working on non-root fullscreen under X11 (inspired by Stephane Peter)

Is he the one that made that fullscreen demo I saw a little while ago
(not sure it was on this newsgroup)?

Hey, to whoever is responsible at Loki, hang on to Stephane, he’s worth
it! ;-)–
Pierre Phaneuf
Ludus Design, http://ludusdesign.com/
“First they ignore you. Then they laugh at you.
Then they fight you. Then you win.” – Gandhi

In article <3872102E.B33A27EC at ludusdesign.com>,
Pierre Phaneuf writes:

Sam Lantinga wrote:

I always thought that only fullscreen apps use DGA, but this happens
with windowed apps, too. Only the root can execute SDL programs, in
spite of these permissions for /dev/mem:

crwxrwxrwx 1 root kmem 1, 1 Mai 5 1998 /dev/mem

This is probably a fault in my system, because I have a really bad
distribution…

I’m working on non-root fullscreen under X11 (inspired by Stephane Peter)

Is he the one that made that fullscreen demo I saw a little while ago
(not sure it was on this newsgroup)?

Uh? I don’t remember making a public fullscreen demo in the past, but then
you may be referring to something else ;-)–
Stephane Peter
Programmer
Loki Entertainment Software

“Microsoft has done to computers what McDonald’s has done to gastronomy”

Stephane Peter wrote:

I’m working on non-root fullscreen under X11 (inspired by Stephane Peter)

Is he the one that made that fullscreen demo I saw a little while ago
(not sure it was on this newsgroup)?

Uh? I don’t remember making a public fullscreen demo in the past, but then
you may be referring to something else :wink:

Must be someone else (I think it was on the LDGC newsgroup)… It was a
nice demo, using xf86vmode to find the mode closest to the one required
and then using an override_redirect window and maybe some other tricks.
One of the point of the demo was also the good behavior of the
application regarding letting the window manager still have some control
over it, very nice.

Hmm, digged a bit, it seems it is a guy named Jan Bobrowski, from
Poland… Anyway, it’s a nice demo, here it is! (don’t know where to
find it)–
Pierre Phaneuf
Ludus Design, http://ludusdesign.com/
“First they ignore you. Then they laugh at you.
Then they fight you. Then you win.” – Gandhi
-------------- next part --------------
A non-text attachment was scrubbed…
Name: fullscreen.tar.gz
Type: application/x-gzip
Size: 3686 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000104/374d696c/attachment.bin

When I try to start any SDL application I get the following error:

XF86DGAGetVideo: failed to open /dev/mem (The operation is not
permitted)

I always thought that only fullscreen apps use DGA, but this happens
with windowed apps, too. Only the root can execute SDL programs, in
spite of these permissions for /dev/mem:

crwxrwxrwx 1 root kmem 1, 1 Mai 5 1998 /dev/mem

This is probably a fault in my system, because I have a really bad
distribution…

I’m working on non-root fullscreen under X11 (inspired by Stephane Peter)
-Sam Lantinga (slouken at devolution.com)

That’s not the problem. The problem is that WINDOWED applications abort
with this error message!

Bye, Karl.

XF86DGAGetVideo: failed to open /dev/mem (The operation is not
permitted)

That’s not the problem. The problem is that WINDOWED applications abort
with this error message!

I’m looking at the code, and this shouldn’t cause the program to abort,
unless maybe the X library is aborting on my behalf, instead of returning
an error condition…

Wierd. Well, that shouldn’t happen with the latest CVS release.

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec