These are chat archives for supercollider/supercollider

14th
Mar 2017
Patrick Dupuis
@patrickdupuis
Mar 14 2017 00:56
Thinking about it now, it makes no sense for this rule to be installed with SC. It's not SC specific. We just need to give the users the correct info on how to configure their systems.
Nathan Ho
@snappizz
Mar 14 2017 01:21
Maybe we could provide a shell script that installs it for the user, but they have to run it on their own.
Rainer Schütz
@bagong
Mar 14 2017 01:28
@patrickdupuis , I am with Nathan that it would not be nice to introduce something that makes us depend on sudo. But even more fundamental: could you explain a bit more what this is for and how this is, or is not SC specific? Isn't udev related to hardware recognition?
Patrick Dupuis
@patrickdupuis
Mar 14 2017 02:49
I agree with Nathan as well. I wasn't aware of the implication this would have regarding sudo.
Patrick Dupuis
@patrickdupuis
Mar 14 2017 03:06
The udev rule gives members of a specified group read access to devices at /dev/hidraw*. In order for a user to be able to read the data from HID devices in SC, she needs to be a member of the specified group. There's nothing specific to SC in the rule. It's a system configuration. That's why I now think it would be odd for SC to do more than suggest this configuration in cases where HID.open() doesn't work.
Rainer Schütz
@bagong
Mar 14 2017 03:55
Ah, so that's similar to users having to be in the audio group (or another group with elevated realtime scheduling privileges) to be able to run jack properly. Well, in ubuntu, if you install qjackctl, you are lead through a wizzard that makes the necessary settings for you. I am not sure if this is a feature of the qjackctl install, or if ubuntu does this. But this is not very reliable (and likely not trivial to implement in a robust way), and if it fails, a user who doesn't understand what is required has no idea how to fix things.
How about this:
  • on linux we could make cmake produce a infotext that states that further configuration is required to make HID work, referencing the linux readme
  • you add a brief text to the Linux readme that explains the logic and the steps required
    ?
Patrick Dupuis
@patrickdupuis
Mar 14 2017 06:45
Yes - it is a similar situation to dealing with Jack's realtime scheduling permissions. I think a mention in the linux readme is a good idea. I can certainly do that, and add a few words to the HID permissions help file. Users will have to choose an appropriate group to use based on their system, or create one and add themselves to it.
Rainer Schütz
@bagong
Mar 14 2017 08:19
Great!