-
Notifications
You must be signed in to change notification settings - Fork 64
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
Needs root? #24
Comments
So "isn't detected" means that "lp.ListAll()" does not see anything Are you member of a group that allows access to audio (and MIDI) devices, |
Hi,
Thanks for reply.
The device is detected just fine by the kernel and when I run, say,
example.py as root everything works as expected. It's just that, as a
normal user, the script can't connect.
It's Ubuntu 17.04. User is a member of the audio and plugdev groups. Any
advice much appreciated - and thanks so much for your great work with this
library.
Martin
…On Thu, 7 Sep 2017, 18:13 FMMT666 ***@***.***> wrote:
So "isn't detected" means that "lp.ListAll()" does not see anything
or do you mean the kernel messages (e.g. output from "dmesg")?
Are you member of a group that allows access to audio (and MIDI) devices,
something like "audio", etc...
What distro are you using?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA_ot2lAEcqbV4nDjtCv8F9pnjlWroCiks5sgCQzgaJpZM4PP60f>
.
|
Will check that this weekend... |
No Jack in this install. Pulse audio...
…On Thu, 7 Sep 2017, 21:55 FMMT666 ***@***.***> wrote:
Will check that this weekend...
Do you have Jack installed?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA_ot9WJt_DUMRPj3gVIZ1OWqraUHkuFks5sgFgtgaJpZM4PP60f>
.
|
Mhh, that even works w/o being a member of audio/plugdev/orwhatever Did you eventually install any driver for the Launchpads? What exactly does happen? What does lp.ListAll() print?
You can also check your permissions or installation with "aconnect -i":
and later with that number of the device above (here it's "20"):
Does that work? Can you access the Launchpad that way? |
OK, so: Running this:
returns
Does it need an alsa config file in /etc/alsa/alsa.conf? When I do aconnect -i:
When I do aseqdump -p 28:
So that all seems to work. It's just that the python script can't seem to access the device without root. (Script is being run under the same user account -- martin -- as was aseqdump) |
Here's a comparison of them running with root and without:
|
Right, solved it! I added an alsa config file that reads: `seq.default { seq.hw { Now it works without root. Perhaps adding this to an FAQ/the docs in case anyone else hits it? Thanks so much again for your work on this library! |
Great work, thanks! Seems identical to #21. If you have got a little time, could you please do me a favour
(I assume you know how to do that. Just posting that for I also just installed Ubuntu 17.04 in a VM (skipping localization ragequits here) |
No worries! I can confirm that symlinking the default alsa configuration does not work. (No launchpads detected.) |
Thanks a lot! |
Yeah, sorry for not spotting the alsa output error earlier when I first made this post. Is there a way to provide alsa parameters to pygame? That could solve it without wholesale replacing the library... |
PyGame uses PortMidi (which itself uses Alsa under Linux, Core MIDI under macOS and |
Added your solution to the doc, including a mention. Thanks! |
That's great -- thanks so much!
…On 11/09/17 22:10, FMMT666 wrote:
Added your solution to the doc, including a mention.
Hope you're ok with that...
Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA_ot1PWP2uljJMZgzVgUIwKJq9ZEkZLks5shaHBgaJpZM4PP60f>.
--
Professor Martin Paul Eve
Chair of Literature, Technology and Publishing
Birkbeck, University of London
T: 0203 073 8420
E: [email protected]
W: https://www.martineve.com
R: 416, 43 Gordon Square, London, WC1H 0PD
Books: https://www.martineve.com/books/
Articles: https://www.martineve.com/c-v/
Series Editor: New Horizons in Contemporary Writing (Bloomsbury)
Director, Birkbeck Centre for Technology and Publishing
Founder, Open Library of the Humanities (https://www.openlibhums.org)
Chief Editor, Orbit (https://www.pynchon.net)
Senior Online Editor, Alluvium, (http://www.alluvium-journal.org)
|
For Fedora users: This seems to work on F39 sudo mkdir -p /usr/local/share/alsa
sudo ln -s /usr/share/alsa/alsa.conf /usr/local/share/alsa/alsa.conf |
OK, this is probably a silly question, but is there a way to avoid the need for root on Linux systems? My device isn't detected unless I run with sudo...
I added the following udev rule, but no luck:
ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="1235", ATTRS{idProduct}=="0036", MODE="660", GROUP="plugdev"
This is a Launchpad Mini Mk2
The text was updated successfully, but these errors were encountered: