-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bazecor: rule for Dygma Defy serial dev #349215
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I only own a Raise, so I can't test this; but I think @gcleroux has one.
Also, is this something that could be upstreamed to bazecor?
This also seems related: #269513 (comment) cc @gabyx |
Thanks, it could be upstreamed, I'm not sure it applies to other distros though, I need it working :D |
@blackxored I do own a Defy, but I'm not sure if this udev rule is actually needed. I didn't dig too deep into this, but to me it seems like a configuration issue. It also looks like ❯ loginctl seat-status
seat0
Sessions: *4
Devices: n/a
...
├─/sys/devices/pci0000:00/0000:00:07.1/0000:2b:00.0/0000:2c:00.0/0000:2d:00.0/usb5
│ usb:usb5
...
│ └─/sys/devices/pci0000:00/0000:00:07.1/0000:2b:00.0/0000:2c:00.0/0000:2d:00.0/usb5/5-3
│ usb:5-3
│ ├─/sys/devices/pci0000:00/0000:00:07.1/0000:2b:00.0/0000:2c:00.0/0000:2d:00.0/usb5/5-3/5-3:1.0
│ │ usb:5-3:1.0
│ │ └─/sys/devices/pci0000:00/0000:00:07.1/0000:2b:00.0/0000:2c:00.0/0000:2d:00.0/usb5/5-3/5-3:1.0/tty/ttyACM0
│ │ tty:ttyACM0 Are you perhaps not using |
I am using systemd. Without the rule I get this from Bazecor:
I do not see There's also no ACL on the file at all:
|
I can try to test this without my user in the dialout group (what i use now), maybe later this week. I use systemd. What does the udev rule do? Sorry not that great expr. in linux details. |
It gives the current user rw permissions on
and here's the file: |
|
Ok, Bazecor i just weird, I removed the overlay I have with this patch and it seems to be working, I have no idea why. |
Ah I just seen that I did not even had |
@blackxored I tried that and it works, which is cool, so no need to add myself to getfacl: Removing leading '/' from absolute path names
# file: dev/ttyACM0
# owner: root
# group: dialout
user::rw-
user:nixos:rw-
group::rw-
mask::rw-
other::--- It would maybe be good to add something to the description for the user of this package, what needs to be done? |
For point #2 package should probably provide an option |
@blackxored : You are right, it works without your patch, I get the same |
Interesting, well if that works let's feel free to close. Would also like my suggestion of having a |
I agree, I opened #359143 for that 👍 |
Perfect! Closing this one then. Thank you all for the help. |
Bazecor fails to launch with a Dygma Defy connected due to permission errors on a serial device, e.g
/dev/ttyACM0
, this is owned by thedialout
group but rather than have my user be part of that group which feels like a workaround, there's a rule added for the tty subsystem which wasn't covered by the previous rules that are adapted from upstream.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.