Remastersys and AVLinux Forum
May 24, 2013, 01:02:05 PM *
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: HOW TO: Install hdjmod - dkms driver to connect your midi dj mixer with mixxx  (Read 2593 times)
0 Members and 1 Guest are viewing this topic.
philgood
Jr. Member
**
Offline Offline

Posts: 10


« on: April 05, 2012, 04:39:49 PM »

First of all, congratulations for AVLinux. I had no trouble playing 4 songs (2 on decks + 2 on samplers) through mixxx, on an old single core rig.
Basically i followed instructions given on the link bellow to grab the .src for the driver and install it using the dkms framework.
-First grab the .src for the driver. In a terminal:
Code:
wget http://slist.lilotux.net/linux/deejay/mixxx/hdjmod-1.31-source-only.dkms.tar.gz
-Now install the dkms framework (if not already installed on your system). I had to enable security updates in synaptic in order to make the package visible.
Become root.
Code:
su
Code:
apt-get install dkms
-Notify dkms of the tarball we got on first step:
Code:
dkms ldtarball --archive=hdjmod-1.31-source-only.dkms.tar.gz
-Build the module:
Code:
dkms build -m hdjmod -v 1.31
-Now install it
Code:
dkms install -m hdjmod -v 1.31
-Check that the driver is indeed installed:
Code:
dkms status
-Note: At this step the driver should be installed and working after a system reboot and - or- plugin in unpluging the usb device. However it did not work for me. What i did to overcome is to tell dkms to build a .deb package so i can install it manually. Did not work either. (Error while trying to copy files from var/lib/dkms to /tmp).
So, to build the .deb package, while we are still in root, we're going to install alien:
Code:
apt-get install alien
-Now we need to locate the tarball with the newly created driver. This should be under,
Code:
/var/lib/dkms/hdjmod/1.31/tarball
-Indeed inside folder tarball is our file: hdjmod-1.31.dkms.tar.gz
Copy it to your home folder or elsewhere, cd to that folder through terminal, and tell alien to make a .deb of it:
Code:
alien -k hdjmod-1.31.dkms.tar.gz
-After that you should have a .deb package to the folder where you copied the tarball at the previous step.
Exit root session.
-Locate the .deb, double click on it, and install it through gdebi. Done.
You can see the driver installed if you search for hdjmod in synaptic.
Also you can see it in the system information under kernel modules as hdj_mod.
Again, reboot, unplug plug your usb device and launch mixxx. Browse to options/preferences/midi controllers and select your device by name. For me it reads hercules.
Select yours, tick enable, load the preset matching your device, and happy mixing.

Source: http://slist.lilotux.net/linux/deejay/mixxx/readme_driver_dkms.txt


« Last Edit: April 05, 2012, 10:39:33 PM by philgood » Logged
tonyoptical
Full Member
***
Offline Offline

Posts: 47


« Reply #1 on: May 26, 2012, 04:02:14 PM »

Hi

I am on AV Linux 5.03 as well ;-) I built/installed the hdjmod as well but i am not happy with it ...
Without the Controller enabled in the Alpha Mixxx it's running quite fine.
If i enable the controller it works but the mixxx process consumes > 100% shown by "top".

dkms status is telling me this:

hdjmod, 1.31, 3.2.16-rt27-avl-3-pae, i686: installed
dkms.conf: Error! No 'DEST_MODULE_LOCATION' directive specified.
dkms.conf: Error! No 'PACKAGE_NAME' directive specified.
dkms.conf: Error! No 'PACKAGE_VERSION' directive specified.
vboxguest, 4.1.0, 3.0.1-avl-3, i686: installed
vboxhost, 4.1.14, 3.2.16-rt27-avl-3-pae, i686: installed

in dmesg i can find this:

[    7.685018] hdj_create_bulk_interface() Could not find bulk-out endpoint
[    7.685021] hdj_create_bulk_interface() Failed, rc:-22
[    7.685022] hdj_probe(): snd_usb_create_streams() failed
[    7.685024] hdj_probe(): reached __error
[    7.685041] uninit_continuous_reader() operation already in progress, or bad state

Any hints?
Thx.
« Last Edit: May 26, 2012, 04:32:11 PM by tonyoptical » Logged
philgood
Jr. Member
**
Offline Offline

Posts: 10


« Reply #2 on: June 02, 2012, 10:22:02 AM »

Hello, first you should check in control center/system information if hdjmod is shown under modules. I don't remember the exact path right now.
Based on dkms errors you posted, perhaps the module isn't installed properly.
Logged
tonyoptical
Full Member
***
Offline Offline

Posts: 47


« Reply #3 on: June 02, 2012, 03:20:27 PM »

Hi

In System Information - Kernel Modules i can find it:

Path: /lib/modules/3.2.16-rt27-avl-3-pae/updates/dkms/hdj_mod.ko
Used Memory: 114,73KiB

I therefor believe it's installed properly ..
Maybe i should go back to kernel 3.0.30-avl-8-pae ...
[EDIT] No change on 3.0.30 - >120% CPU Load

BTW: Which kernel are you running and what's top showing?
« Last Edit: June 02, 2012, 03:35:58 PM by tonyoptical » Logged
philgood
Jr. Member
**
Offline Offline

Posts: 10


« Reply #4 on: June 03, 2012, 09:58:55 PM »

Hello,
I'm using the stock kernel (3.0.16). I cannot inform you of what top says right now because i'm running my other installation also avlinux but, with fglrx driver.
I will report back about it later. Bare in mind that i'm on an old single core rig so cpu load could be high also here.
Could you try with the 3.0.16 kernel also? This could be the reason judging by the logs you posted above.
Logged
tonyoptical
Full Member
***
Offline Offline

Posts: 47


« Reply #5 on: June 11, 2012, 01:18:33 PM »

Hi

I have tested in 3.0.6 as well. Same result. Without the activated DJ Control the mixxx process is in the 20's % CPU load.
Activating the Controller and the load is far beyond 100% ....

Same effect on all kernels from the current stock one to all the currently available successors.
Logged
philgood
Jr. Member
**
Offline Offline

Posts: 10


« Reply #6 on: June 12, 2012, 01:30:02 PM »

Hi, in all those tests, you've being using later mixxx (1.11)? I'm asking this because you mentioned "alpha" in a previous post.
Logged
tonyoptical
Full Member
***
Offline Offline

Posts: 47


« Reply #7 on: June 13, 2012, 02:10:46 PM »

Hi

Yes - i am using Mixxx 1.11.0-alpha2 because this is the only mixxx version which displays waveforms on my Nvidia-based lenovo R61i.
All the previous versions crashed as soon as waveforms had been enabled....
Logged
philgood
Jr. Member
**
Offline Offline

Posts: 10


« Reply #8 on: July 08, 2012, 12:00:53 PM »

Hello friend, i gave mixxx 1.11 beta a try and despite the fact that the AVLinux install i used had the fglrx driver, it worked pretty good.
Have you gave beta a try yet? I'm sure it should work for you one way or another.
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!