Wiird on linux?

Started by XeR, April 10, 2009, 09:52:40 PM

Previous topic - Next topic

cajon

I am running it from my user directory.
This is not the problem. It also creates a directory WiiRD in the user directory and stores its data there.
That works perfect.
It seems that I just have a problem accessing the USBGecko with a normal user.
I already tried to change the userrights of /dev/ttyUSB0 but this did not solve the problem
A normal user still does not get a connection when running wiird but root does.

Link

#16
yeah if you run it from a home directory then it's most likely to be a permission problem as FTDI module directly writes on the USB output..

Please try changing permissions /dev/bus/usb
In case your system uses udev I guess I can give you instructions how the USB Gecko will be accessible for users

Would you mind trying the following bash script (save as text file, make it executable and run it):

#!/bin/bash
usb_gecko=`lsusb | grep 0403:6001`

if [ "$usb_gecko" != "" ]; then

bus="${usb_gecko:4:3}"
device="${usb_gecko:15:3}"

sudo chmod 666 /dev/bus/usb/$bus/$device

echo "Permissions adjusted"

else

echo "USB Gecko not detected"

fi


It should make the USB Gecko writeable.. it will ask you for (depending on distribution) your user password or root password

cajon

Hi Link,
I just experienced the same problem with another usb device.
Thank you very much, your hint was the right one.
Is there a way to add a udev rule to make the port writable by everyone all the time ??

Link

Quote from: cajon on May 12, 2009, 10:35:26 PM
Is there a way to add a udev rule to make the port writable by everyone all the time ??

yes, however, udev configuration unfortunately differs from distribution to distribution :(

cajon

#19
I got a debian sid here, well I will google and try if I find out how to do it.
Thanks for your help, link.

Update:
I just found out how to do it.
I changed the permission file in /etc/udev/rules.d
There I found an entry for USB devices and I just added  GROUP="USB" and added my user to this user group.
Now I can also use the Gecko as my user.