Remastersys and AVLinux Forum
May 20, 2013, 03:52:47 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Remastersys depends on user donations to survive.  Please help keep Remastersys going.

http://www.remastersys.com
 
   Home   Remastersys Home Remastersys downloads Donate Login Register AV LINUX Home Help Search  
Pages: [1]
  Print  
Author Topic: Midisport 2x2  (Read 422 times)
0 Members and 1 Guest are viewing this topic.
rickbol
Jr. Member
**
Offline Offline

Posts: 18


« on: June 07, 2012, 10:03:23 AM »





Looks like hotplug of my midisport 2x2 isn't working. When I plug into the USB port and...

rickbol@showhorse:~$ lsusb
Bus 007 Device 003: ID 0b97:7772 O2 Micro, Inc. OZ776 CCID Smartcard Reader
Bus 007 Device 002: ID 0b97:7761 O2 Micro, Inc. Oz776 1.1 Hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 0763:1001 Midiman MidiSport 2x2
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

but ...

rickbol@showhorse:~$ pmidi -l
 Port     Client name                       Port name
 14:0     Midi Through                      Midi Through Port-0

Found old Debian Bug#574180 (midisport-firmware: udev rule is not working for midisport 2x2) and this smells like that, but the work around to modify /etc/udev/rules.d/42-midisport-firmware.rules doesn't work for me:

...change:
ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", ENV{PRODUCT}=="763/1001/*", RUN+="/sbin/fxload -s /usr/share/usb/maudio/MidiSportLoader.ihx -I /usr/share/usb/maudio/MidiSport2x2.ihx"

...to:
ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", ENV{PRODUCT}=="763/1001/*", RUN+="/sbin/fxload -s /usr/share/usb/maudio/MidiSportLoader.ihx -I /usr/share/usb/maudio/MidiSport2x2.ihx -D $env{DEVNAME}"


I can manually load the firmware and initialize the midisport if I know the device path for the usb device (from lsusb):

/sbin/fxload -s /usr/share/usb/maudio/MidiSportLoader.ihx -I /usr/share/usb/maudio/MidiSport2x2.ihx -D /dev/bus/usb/005/002

...pmidi:
rickbol@showhorse:~$ pmidi -l
 Port     Client name                       Port name
 14:0     Midi Through                      Midi Through Port-0
 20:0     MidiSport 2x2                     MidiSport 2x2 MIDI 1
 20:1     MidiSport 2x2                     MidiSport 2x2 MIDI 2

Any recommendations on how to get udev support working properly?

Thx,

Rick


Logged
joe k
Hero Member
*****
Offline Offline

Posts: 103


« Reply #1 on: June 07, 2012, 12:34:52 PM »

 Looks like there's a few posts. do a search of the posts on this forum.
Logged
rickbol
Jr. Member
**
Offline Offline

Posts: 18


« Reply #2 on: June 11, 2012, 06:21:51 PM »

I don't have much luck with the search on this forum. I searched "midisport" and "midiman" and come up empty.

I did manage to come up with a modification to /etc/udev/rules.d/42-midisport-firmware.rules that seems to work for me:

ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{PRODUCT}=="763/1001/*", RUN+="/sbin/fxload -s /usr/share/usb/maudio/MidiSportLoader.ihx -I /usr/share/usb/maudio/MidiSport2x2.ihx -D $env{DEVNAME}"

Rick
Logged
trulan
Global Moderator
Hero Member
*****
Offline Offline

Posts: 855


« Reply #3 on: June 11, 2012, 06:59:47 PM »

The problem, as you've mostly figured out, is with /etc/udev/rules.d/42-midisport-firmware.rules.  You can fix the problem by editing the file, as you did, or deleting that file altogether.  There's already a correct udev rule in /lib/udev/rules.d/42-midisport-firmware.rules which will work properly if the incorrect file in /etc/udev/rules.d is removed.  Apparently Debian moved the rule at some point and the old rule file was never deleted.  This was discussed in another thread on here somewhere previously, and will be fixed in AVLinux 6.0.

Of course. since you've got it working, you can leave it alone and all will be well.
« Last Edit: June 11, 2012, 07:01:32 PM by trulan » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!