Post Reply 
[newRPL] interested in RPN mode?
11-23-2019, 11:47 PM (This post was last modified: 11-24-2019 12:04 AM by jpcuzzourt.)
Post: #28
RE: [newRPL] interested in RPN mode?
Claudio:
TLDR: please see my question in bold below. (Sorry, I get wordy.)
So, I've been digging a little in my system, and it seems that another rule is taking precedence over the settings in /etc/udev/rules.d/50-HIDDevices.rules.
(It gets grabbed by a rule in 90-extraacl.rules that handles KERNEL=="ttyUSB[0-9]*" and changes the owner to me. I don't remember setting this up, but I think it may be related to my Arduino IDE setup.)
The result is that my GS39 connects as /dev/ttyUSB0, and I am the owner, but the group is "dialout" (Without that rule, the owner is root.)
My account is a member of group "dialout", so I think this should all be OK.
And newRPL-ui runs under my account. As far as I can tell, it should have RW access to /dev/ttyUSB0.

If all the above is true, there isn't really any need for the 50-HIDDevices.rules, correct?
note that I also tried changing the group on /dev/ttyUSB0 manually to "usbdevices" and it made no difference.

If I understand correctly, all that should matter is that newRPL-ui runs under an account ("jpcuzzourt") which has rw access to /dev/ttyUSB0.
Since jpcuzzourt is the owner of the device and rw access, my issue should not be permissions, correct?
(note that I've also run newRPL-ui as root to try to rule permissions out, and I get the same result.)
One more idea - is the problem that it gets attached as /dev/ttyUSB, i.e. maybe it isn't seen as hidraw?


Code:
$ cat /etc/udev/rules.d/90-extraacl.rules 

# Setting serial port rules

KERNEL=="ttyUSB[0-9]*", TAG+="udev-acl", TAG+="uaccess", OWNER="jpcuzzourt"
KERNEL=="ttyACM[0-9]*", TAG+="udev-acl", TAG+="uaccess", OWNER="jpcuzzourt"
$ ls -la /dev/ttyU*
crw-rw----+ 1 jpcuzzourt dialout 188, 0 Nov 23 18:05 /dev/ttyUSB0

$ groups jpcuzzourt
jpcuzzourt : jpcuzzourt tty lp uucp dialout cdrom floppy sudo audio dip video plugdev users netdev lpadmin scanner vboxsf vboxusers usbdevices
Here is dmesg for the device:
Code:
[15218.511361] usb 4-1.2: new full-speed USB device number 20 using ehci-pci
[15218.629105] usb 4-1.2: New USB device found, idVendor=03f0, idProduct=0121, bcdDevice= 1.00
[15218.629113] usb 4-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[15218.629117] usb 4-1.2: Product: newRPL Calc
[15218.629120] usb 4-1.2: Manufacturer: newRPL Team
[15218.629123] usb 4-1.2: SerialNumber: CNA0300410
[15218.629794] usb_serial_simple 4-1.2:1.0: hp4x converter detected
[15218.629974] usb 4-1.2: hp4x converter now attached to ttyUSB0

Georgia, USA
10BII+, 12C, 14B (AE), 17B, 17BII, 20B, WP-34S, 28S, 35S, 39GS, 48G, 82240A,B
+ sliderules galore, mostly Hemmi/Post & Dietzgen
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [newRPL] interested in RPN mode? - jpcuzzourt - 11-23-2019 11:47 PM



User(s) browsing this thread: 1 Guest(s)