Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#73192 - [darktable] 3.8.0-2 lacks "portmidi" dependency to support midi devices as input devices

Attached to Project: Community Packages
Opened by AP Perrin (apperrin) - Wednesday, 29 December 2021, 22:42 GMT
Last edited by Caleb Maclennan (alerque) - Sunday, 23 January 2022, 08:55 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Caleb Maclennan (alerque)
Bruno Pagani (ArchangeGabriel)
Morten Linderud (Foxboron)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description :
Darktable 3.8 revamped its shortcuts system and introduced game and MIDI controllers support, as alternative input devices. They're big time savers when you have to process a lot of photos.

Additional info :
* darkable 3.8.0-2

Steps to reproduce :
- Plug a MIDI controller (USB or other...).
- Start Darktable with "-d input" parameters (to see what Darktable sees as input devices).
- In the output, "[midi_open_devices] PortMidi initialized" does not appear, which means that Darktable ignores completely any connected MIDI device. Consequently, it's impossible to create a shortcut in DT linked to a button/potentiometer on the MIDI controller.

Possible ways to solve this lack :
- Add "portmidi" (the "portmidi" Arch package seems to match) as a dependency to compile the package. I deduced from this forum post :
https://discuss.pixls.us/t/how-to-get-my-midi-device-running-in-dt/28465
...and from Darktable sources (grepping "portmidi" in the sources)
This task depends upon

Closed by  Caleb Maclennan (alerque)
Sunday, 23 January 2022, 08:55 GMT
Reason for closing:  Fixed
Additional comments about closing:  2:3.8.0-3
Comment by Vincent THOMAS (vithom) - Thursday, 06 January 2022, 21:35 GMT
Hello,
I can confirm that with 'portmidi' package installed, and a self-compiled version from the darktable repositiory, it works: midi devices are supported and the line "[midi_open_devices] PortMidi initialized" appears correctly in the logs.
Comment by Caleb Maclennan (alerque) - Friday, 21 January 2022, 09:36 GMT
Can you guys try darktable 2:3.8.0-3 from [community-testing]:

pacman -U https://archlinux.org/packages/community-testing/x86_64/darktable/download

I added portmidi as an optdepends and makedepends, so it is now built with support and will look for it on the system, but it doesn't seem to require it to run. I don't have portmidi on my system and it seems to still run fine, with the downside of a console warning that it can't find it. This seems better than requiring all users to install portmidi if we can avoid it because that also pulls in a dependency on libasound, something not everybody may want.

I don't have any relevant devices to test with, so somebody that does should give this a spin to see if it works.
Comment by AP Perrin (apperrin) - Friday, 21 January 2022, 17:02 GMT
It now works as intended. Thanks !! :)

$ darktable -d input .

0,406332 [input device] Input devices found:
[...]
1,500245 [midi_open_devices] PortMidi initialized
1,500259 [midi_open_devices] found midi device 'Midi Through Port-0' via 'ALSA'
1,500262 [midi_open_devices] found midi device 'Midi Through Port-0' via 'ALSA'
1,500264 [midi_open_devices] found midi device 'X-TOUCH MINI MIDI 1' via 'ALSA'
1,500266 [midi_open_devices] found midi device 'X-TOUCH MINI MIDI 1' via 'ALSA'
[midi_open_devices] opened midi device 'X-TOUCH MINI MIDI 1' via 'ALSA' as midi0
4,473930 Controller: Channel 10, Data1 1, Data2 1
4,474200 [dt_shortcut_move] shortcut received: CC1, descendre
4,505286 Controller: Channel 10, Data1 1, Data2 4
4,505455 [dt_shortcut_move] shortcut received: CC1, monter
[...]
7,005244 Controller: Channel 10, Data1 2, Data2 7
7,005588 [dt_shortcut_move] shortcut received: CC2, monter
7,137588 Controller: Channel 10, Data1 2, Data2 6
7,137804 [dt_shortcut_move] shortcut received: CC2, descendre
7,159521 Controller: Channel 10, Data1 2, Data2 3
[...]
Comment by Bruno Pagani (ArchangeGabriel) - Saturday, 22 January 2022, 21:32 GMT
@alerque: Well given gtk3 pulls libasound… ;p But having it as an optdep does not hurt either. :)

Loading...