> > >On Fri, Apr 20, 2007 at 04:54:35PM +1000, Colin Newell wrote: >>/ I read in the documentation that DirectFB programs running in single >/>/ mode need root access because of the need to access/control 'vt'. >/ >Not root access, but access to some specific device nodes. > >>/ Is it possible to run DirectFB programmings without requiring root access? >/ >Yes. > >>/ I tried "--dfb:no-vt" >/>/ >/>/ this says not to use VT handling at all, but the program still seemed to >/>/ require root access. >/ >no-vt does disable VT handling. You can for example run DFB programs >from an ssh session with it. > >What is the exact error message you get? > >-- >Ville Syrjälä >syrjala at sci.fi ><http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users> >http://www.sci.fi/~syrjala/ <http://www.sci.fi/%7Esyrjala/> >
I have done more tests. 1. Firstly for some of my tests, I was starting the directfb example program in an xterm window displayed on another machine. For such examples I needed to run the examples as root. If not I would get an error: "DirectFB/fbdev/vt: KD-GRAPHICS failed ---> operation not permitted Could not initialize system core!" (program would exit) --dfb:no-vt has no effect on the above. 2. The 'sprite' example program (which does keyboard input with no event buffer) doesn't work when run this way, even when run as root. 3. The df_input example program DOES work when run this way. Keyboard input is done using an eventbuffer. I would like to be able to run directfb programs from an xterm, so that I can run a debugger - but maybe there is a better way? 4. When I run examples directly on the console of the PC running directfb, then: a) when examples are run as root, everything appears to work b) when examples are run as non-root, the keyboard workings, but (at first) the mouse did not (cursor was displayed but mouse didn't move). I then loosened the permissions on devices in /dev/input, and the mouse also works. After a reboot, I noticed that the permissions on /dev/input/* revert to their original settings (so the mouse no longer works on directfb examples run as non-root). As long as the user has rw access to /dev/input/*, I don't need --dfb:no-vt Regards, Colin _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
