Y
Y
Yuri2012-10-17 20:05:30
linux
Yuri, 2012-10-17 20:05:30

What happened to udev in Ubuntu 12.04?

There is a piece of hardware based on the FTDI chip (essentially a USB to UART adapter), when turned on, it is written as /dev/ttyUSB0. After updating the system from under a normal user, access disappeared, it works only under root (and not even through sudo, you need a clean root).
I think it's not a problem, I create a file with rules in /etc/udev/rules.d:

SUBSYSTEM=="usb", ATTR{idProduct}=="6001", ATTR{idVendor}=="0403", MODE:="0666", NAME="ttyUSBx"

After reloading the rules and connecting the device, /dev/ttyUSBx appears in the system, but any attempt to write to it results in an error:
[email protected]:~$ ls -l /dev/ttyU*
crw-rw---- 1 root dialout 188,   0 окт.  17 20:54 /dev/ttyUSB0
crw-rw-rw- 1 root root    189, 897 окт.  17 20:54 /dev/ttyUSBx

[email protected]:~$ echo 1 > /dev/ttyUSBx
bash: echo: ошибка записи: Недопустимый аргумент

And why is the old device hanging? (by the way, it is also available from under the root) Did you write down the rule incorrectly? In fact, I just need to change the rights. If you leave the old name, it still does not work ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Ergil Osin, 2012-10-18
@Ernillew

Have you just NAME="ttyUSB%n"not tried it?
Well, or add yourself to the dialout group.
And in such cases, it is worth bringing the tail from dmesg

S
svd71, 2012-10-24
@svd71

Did you restart or
sudo restart udev ?
or try like this:
SUBSYSTEM=="usb", SYSFS{idVendor}=="6001", SYSFS{idProduct}=="0c9f", GROUP="adm", MODE="0666"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question