TheKikGen / MPC-LiveXplore-bootstrap

Bootstrap for Akai MPCs and Force
20 stars 9 forks source link

Error : MPC public raw midi open failed ! (name was 'hw:0,0,0') #10

Closed legsmechanical closed 11 months ago

legsmechanical commented 1 year ago

Getting this with midimapper running iamforce2 on Live 2. It seems that the mapper is reading the wrong public raw device? amidi says it's hw:1,0,0

Terminal output (running manually due to issue #9):

Welcome to the MPC OS ssh mod !
Linux mpc-live-ii 5.15.89-inmusic-2023-01-18-rt56 #1 SMP PREEMPT_RT Mon May 22 11:20:09 UTC 2023 armv7l GNU/Linux
Your IP address is 192.168.0.188
WARNING : you have root permissions. You may harm your system.
root@mpc-live-ii:~# systemctl stop inmusic-mpc
root@mpc-live-ii:~# /usr/bin/az01-launch-MPC
*** TKGL MPC BOOTSTRAP ***
MPC Live Mk II detected
Mounted usb disks : /media/TKGL_BOOTSTRAP
bootstrap script found : /media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]/scripts/tkgl_bootstrap
umount: /media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]/modules/mod_iamforce2/force-assets/mnt: not mounted.
rm: can't remove '/media/az01-internal/Settings/MPC/remoteScreen': No such file or directory
rm: can't remove '/media/az01-internal/Settings/MPC/*.crashinfo': No such file or directory
chmod: /media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]/modules/mod_iamforce2/force-assets/mnt/usr/bin/MPC: Read-only file system

__ __| |           |  /_) |     ___|             |           |
  |   __ \   _ \  ' /  | |  / |      _ \ __ \   |      _` | __ \   __|
  |   | | |  __/  . \  |   <  |   |  __/ |   |  |     (   | |   |\__ \
 _|  _| |_|\___| _|\_\_|_|\_\\____|\___|_|  _| _____|\__,_|_.__/ ____/

[tkgl INFO    ]  ---------------------------------------------------------
[tkgl INFO    ]  TKGL_MIDIMAPPER Version : BETA2
[tkgl INFO    ]  (c) The KikGen Labs.
[tkgl INFO    ]  https://github.com/TheKikGen/MPC-LiveXplore
[tkgl INFO    ]  ---------------------------------------------------------
[tkgl INFO    ]  MPC args : --tkplg=/media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]/modules/mod_iamforce2/tmm-IamForce-NONE.so 
[tkgl INFO    ]  
[tkgl INFO    ]  --tkplg specified. File /media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]/modules/mod_iamforce2/tmm-IamForce-NONE.so will be used for midi mapping
[tkgl INFO    ]  Product code : ACVB (MPC Live 2)
[tkgl INFO    ]  Midi mapping /media/TKGL_BOOTSTRAP/tkgl_bootstrap_[ProjectData]/modules/mod_iamforce2/tmm-IamForce-NONE.so plugin successfully loaded.
[tkgl INFO    ]  IamForce : Force emulation on MPC devices, by The Kikgen Labs
[tkgl INFO    ]  IamForce : Version V2.0 BETA
[tkgl INFO    ]  IamForce : Default client name () and port (-1) will be used.
[tkgl DEBUG   ]  Port scan MATCH  MPC Live II MPC Private
[tkgl INFO    ]  MPC controller Private hardware port Alsa name is hw:0,0,1. Sequencer id is 20:1.
[tkgl INFO    ]  MPC controller Public  hardware port Alsa name is hw:0,0,0. Sequencer id is 20:0.
ALSA lib rawmidi_hw.c:235:(snd_rawmidi_hw_open) open /dev/snd/midiC0D0 failed: No such file or directory
[tkgl ***FATAL]  Error : MPC public raw midi open failed ! (name was 'hw:0,0,0')
root@mpc-live-ii:~# amidi --list-devices
Dir Device    Name
IO  hw:1,0,0  MPC Public
IO  hw:1,0,1  MPC Private
IO  hw:1,0,2  MPC MIDI Port A
IO  hw:1,0,3  MPC MIDI Port B
root@mpc-live-ii:~#
TheKikGen commented 11 months ago

This bug was solved. it was an issue at the Alsa midi level.