Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Gentoo This forum is for the discussion of Gentoo Linux.


  Search this Thread
Old 07-24-2009, 07:25 AM   #1
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
Creative Audigy 2 ZS

Dear members,

I have had a problem quite a while with the remote controls used for the title-listed soundcard. Some while ago, I successfully got the use of both the remote control's and the external control panel's buttons via lirc, on my Gentoo 2008 installation.

It was set up to allow the controls to do things such as starting Kaffeine, or changing the kmix volume via dcop.

Now, however, I have the strange scenario whereby it will not work if I boot my computer straight into Linux, but if I start up in Windows first, restart the computer, then choose Linux, everything works perfectly.

What may be causing this nuisance and how may it be resolved?

Yours Faithfully,


P.S. Thanks for your time.
Old 08-01-2009, 06:25 PM   #2
Gentoo support team
Registered: May 2009
Posts: 21

Rep: Reputation: 17

Firstly, I'm going to report this post and ask that it be moved to the Gentoo subforum as you might get a better response there. Secondly, could you please post a little more information regarding your system? For instance, are you using ALSA? Also, does your sound work when you boot straight into Linux, or does that fail as well?
Old 08-04-2009, 12:26 PM   #3
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Original Poster
Rep: Reputation: 15
I'm using ALSA, yes, but it's unrelated, really. ALSA works perfectly. It's the remote control units that I'm having problems with and as far as lirc is concerned they have nothing to do with sound even though in this circumstance it's the one from my sound card I'm using. I'm using the volume control for just that, but I use other buttons for opening programs and issuing them commands.

lirc is running and looks on the surface to be working perfectly but the buttons do nothing unless I follow the pattern specified above. irw won't see the button presses unless I restart from windows first, either. It's as if Windows activates something in the soundcard that Linux doesn't. It seems to turn on the remote unit, if you will, whereas Linux won't, but will see it if Windows has already done so.

Thanks for the help.
Old 08-05-2009, 11:24 AM   #4
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Original Poster
Rep: Reputation: 15
Well, anyone looking for a solution, here it is...


Until now I wasn't able to make my remote work.
While posting in the EMU10K1 devel mailing list, someone said that it was necessary to
"initialize" the MIDI device used by the remote. A SysEx sequence has to be send to
'/dev/snd/midiC0D1'. The sequence is '0xf0, 0x00, 0x20,0x21, 0x61, 0x0, 0x00, 0x00,
0x7f, 0x0, 0xf7'.

The source code bellow is of a program that does just that. After modprobing the
modules with the correct options (the options are the same as the Platinum), just run
this prog to "initialize" the midi device. Voi-lá! The remote works! I think this is
an ugly hack. I'm sure that this can be implemented in the driver itself. Remember
that this "initialization" is only required by the Audigy 2 Platinum eX.

Hope this helps.

Miguel Duarte

// Programmer:    Craig Stuart Sapp [EMAIL PROTECTED]
// Creation Date: Mon Dec 21 18:00:42 PST 1998
// Last Modified: Mon Dec 21 18:00:42 PST 1998
// Filename:      ...linuxmidi/output/method1.c
// Syntax:        C
// $Smake:        gcc -O -o devmidiout devmidiout.c && strip devmidiout

#include <linux/soundcard.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>

int main(void) {
   char* device =  "/dev/snd/midiC0D1" ;
   unsigned char data[11] = {0xf0, 0x00, 0x20, 0x21, 0x61, 0x0, 0x00, 0x00, 
0x7f, 0x0, 0xf7};

   // step 1: open the OSS device for writing
   int fd = open(device, O_WRONLY, 0);
   if (fd < 0) {
      printf("Error: cannot open %s\n", device);

   // step 2: write the MIDI information to the OSS device
   write(fd, data, sizeof(data));

   // step 3: (optional) close the OSS device

   return 0;
OR Enter this at the console...

echo -e '\xf0''\x00''\x20''\x21''\x61''\x00''\x00''\x00''\x7f''\x00''\xf7' > /dev/snd/midiC0D1

Last edited by elprawn; 08-05-2009 at 11:54 AM.


audigy, creative, dcop, gentoo, lirc, windows, zs

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creative SB audigy LS X-FI eddygrinder Slackware 0 08-21-2008 11:01 AM
Creative Audigy 2 ZS pmcia Shamie Linux - Hardware 0 06-14-2006 11:59 AM
No sound! SB Audigy by creative mr_coffee Linux - Hardware 3 01-16-2006 11:20 PM
Creative Audigy and MIDI Cornholio Linux - General 0 12-24-2004 05:08 AM
creative audigy 2 drivers tsitras Linux - Hardware 0 03-19-2003 06:54 PM > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 08:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration