Re: [Plib-devel] Joystick problem
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-07-21 00:54:44
|
Risto S Varanka wrote: > > Thanks for help, Stephen! My joystick works just nice in the JS example > as well now, and I'm one happy hacker. (If only I got my OpenGL > working too ;) > > I'm sorry to disappoint you, but it was a simple permission > problem. I had overlooked the obvious :) Btw, do people often > have problems with the joystick support? Maybe the example could > have more diagnostic features, like in my case it could have said: > "No permissions to use joystick /dev/js0. The permissions on file > /dev/js0 are "rw-rw----" - is this correct?" No. rw-rw---- only grants permission to the 'owner' of /dev/js0 - who is presumably 'root' - and to members of the 'group' that /dev/js0 belongs to - which is presumably also 'root'. Other users who are not 'root' or members of the 'root' group will be denied permission to read or write it. You need crw-rw-rw-. Log in as 'root' (or run 'su') and type: chown root /dev/js{0,1} chgrm root /dev/js{0,1} chmod a+rw /dev/js{0,1} ...just to be sure. On my machine: > ls -l /dev/js* crw-rw-rw- 1 root root 15, 0 Mar 11 04:11 /dev/js0 crw-rw-rw- 1 root root 15, 1 Mar 11 04:11 /dev/js1 -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |