[LINUX] CiT (Aureal) Remote Control in XBMC for Linux?

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
RocciaMax Offline
Junior Member
Posts: 4
Joined: Jan 2012
Reputation: 0
Post: #16
iLLNESS Wrote:from start to finish:
[....]

Hi there, same movie here, just got that remote and can't figure how to make ti work properly.

Something worked out of the box, things like prev/next and mouse control, but xbmc was unusable.

So I gave a try with the kernel module: a disaster, freezes during boot, and if it doesn't , keyboard and mouse (which are logitech HID devices, maybe it doesn't like all that hid junk?) are useless... if I boot without plugging the IR dongle in a usb, everything starts (almost) nicely, but then the remote does not work when i plug it in, the red LED doesn't even blink when I press a button...
I don't even know where to start looking for errors... any ideas?

Running Linux kernel 3.0.0.12 with Ubuntu oneiric on AMD64.

Thxbai
Max
find quote
skthetwo Offline
Junior Member
Posts: 2
Joined: Feb 2012
Reputation: 0
Post: #17
I've got it working - different variants of the patch for different ubuntu variants.. On my HTPC Linux XXXXX 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:12:07 UTC 2012 x86_64 GNU/Linux, the patch process exactly as described in #15 including the repository worked..

It did NOT work on my laptop - Linux XXXX 2.6.38-13-generic #54-Ubuntu SMP Tue Jan 3 13:38:12 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux . For that I had to edit the code as discussed in

https://bbs.archlinux.org/viewtopic.php?id=112796

Post #3 tells you to edit the report_fixup function to return a value..

Of course this variant of the code did NOT work on the HTPC.

Don't ask me why or how. I can read and write C of course but linux kernels is not exactly my field.
find quote
Ferrovol Offline
Junior Member
Posts: 2
Joined: Feb 2012
Reputation: 0
Post: #18
I tried to compile doing all steps as told iLLNESS, but I have errors on "make" process.
I use XBMC Dharma 10.1 with kernel Linux 2.6.32-29-generic
When I try do the "make" and after the "make install", I get this error:

[Image: 20120221000612.jpg]

Uploaded with ImageShack.us

What can I do to solve this problem?

I tried to compile in 3.0 kernel, and compile good, but later the remote doesn't work.
Sorry, but I don't know so much about linux and I don't know how I can capture the data of console.
I'll be waiting for your good replies.
Thanks
(This post was last modified: 2012-02-21 23:51 by Ferrovol.)
find quote
Ferrovol Offline
Junior Member
Posts: 2
Joined: Feb 2012
Reputation: 0
Post: #19
I got it.
Now it works.
I tried to compile a wrong version of gitorious.
The correct files are this:

http://gitorious.org/hid-aureal-kernel-m...all/master

Now it works, but also I added the maybourne code to the iLLNESS steps.
Thanks.
find quote
rolog Offline
Junior Member
Posts: 8
Joined: Dec 2012
Reputation: 0
Post: #20
Moin,
ich habe auch diese Remote. Ich möchte es aber nicht benutzen. ich hab es eigentlich für das IR USB empfänger gekauft. Ich möchte meine Harmony 555 als remote benutzen.
Erst ging der Harmony als MCE Remote gar nicht, dann als XBMC Keyboard (Microsoftkeyboard) funktioniert es etwas, und evtest hat output geziegt
wenn am Harmony tasten gedrückt werden.

Meine Frage ist, was muss ich genau tun damit ich der Harmony als MCE Remote benutzen kann?

Auf der Remote seite MCE remote aktivieren usw. kenne ich schon, mir geht es ehe drum was unter XBMC notwendig ist.

Ich denke die MCE Mappings sind alle OK geladen.

Bin auf:

Starting XBMC (12.0-BETA2 Git:0a4df7b), Platform: Linux (OpenELEC - Version: 2.95.3, 3.6.8 x86_64). Built on Dec 3 2012

Und das IR receiver meldet sich als:

Code:
[    0.252265] usbcore: registered new interface driver usbhid
[    0.252269] usbhid: USB HID core driver
....
[    1.323282] input: www.irfmedia.com  www.irfmedia.com  as /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/input/input2
[    1.323512] hid-generic 0003:0755:2026.0001: input,hidraw0: USB HID v1.10 Keyboard [www.irfmedia.com  www.irfmedia.com ] on usb-0000:00:1d.1-1/input0
....
[    1.351611] input: www.irfmedia.com  www.irfmedia.com  as /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.1/input/input3
[    1.351922] hid-generic 0003:0755:2026.0002: input,hidraw1: USB HID v1.10 Mouse [www.irfmedia.com  www.irfmedia.com ] on usb-0000:00:1d.1-1/input1


Code:
lsusb -v
                
Bus 003 Device 002: ID 0755:2026 Aureal Semiconductor
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0755 Aureal Semiconductor
  idProduct          0x2026
  bcdDevice           29.82
  iManufacturer           1 www.irfmedia.com
  iProduct                2 www.irfmedia.com
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           59
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      65
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               8
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     130
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               8
Device Status:     0x0000
  (Bus Powered)

Sehe keine aureal treiber geladen
Code:
root ~ # lsmod
Module                  Size  Used by
nvidia              11202925  40
snd_hda_codec_hdmi     21482  4
ath9k                  79305  0
ath9k_common            1697  1 ath9k
ath9k_hw              303741  2 ath9k_common,ath9k
snd_hda_codec_realtek    48816  1
snd_hda_intel          20954  2
coretemp                5575  0
snd_hda_codec          67780  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep               4444  1 snd_hda_codec
snd_pcm                50543  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
ath                    13362  3 ath9k_common,ath9k,ath9k_hw
snd_timer              14679  1 snd_pcm
snd                    37298  10 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_cod​ec,snd_hda_intel
snd_page_alloc          5858  2 snd_pcm,snd_hda_intel
xhci_hcd               69084  0
uvesafb                18764  1

Danke in voraus.
find quote
Gibby13 Offline
Junior Member
Posts: 20
Joined: Feb 2013
Reputation: 0
Post: #21
This made the remote work for me, I installed dkms so hopefully I won't have to recompile it each time I have a kernel update.

Two issues:

1. The volume up and volume down do not repeat... very annoying...

2. Some keys do nothing and some do something other than I want, I now it is probably an easy change but I want to get the above issue fixed. I am coming from MythTV that were on my frontends(stilling using mythtv for a backend/pvr), and they had an option in mythtv-frontend to edit keys inside mythtv, witch made it very easy.
find quote
Rob Xbox User Offline
Senior Member
Posts: 102
Joined: May 2007
Reputation: 0
Post: #22
Ok - I need help sorting this remote out. I know how to use putty though other than that I need an idiots guide - if possible.

The arrows on the remote currently move the cursor.

R

I will buy you a virtual beer if you help me sort out this remote...
find quote
Gibby13 Offline
Junior Member
Posts: 20
Joined: Feb 2013
Reputation: 0
Post: #23
(2013-02-16 23:20)Rob Xbox User Wrote:  Ok - I need help sorting this remote out. I know how to use putty though other than that I need an idiots guide - if possible.

The arrows on the remote currently move the cursor.

R

Do the following:

Code:
sudo apt-get install git
git clone git://gitorious.org/~fcatrin/hid-aureal-kernel-module/fcatrins-hid-aureal-kernel-module.git aureal
cd aureal
make
sudo make install
sudo echo "hid-aureal" >> /etc/initramfs-tools/modules
sudo echo "usbhid" >> /etc/initramfs-tools/modules
sudo update-initramfs -k all -u
sudo reboot

When it comes back up if it works correctly you can do the following so the next time the kernel is updated you don't have to do the above:

Code:
sudo apt-get install dkms
sudo cp -r aureal /usr/src/aureal-0.1
sudo cat <<EOF>> /usr/src/aureal-0.1/dkms.conf
PACKAGE_NAME="hid-aureal"
PACKAGE_VERSION="0.1"
BUILT_MODULE_NAME[0]="hid-aureal"
DEST_MODULE_LOCATION[0]="/updates"
CLEAN="make clean"
AUTOINSTALL="yes"
REMAKE_INITRD=yes
EOF

sudo dkms add -m aureal -v 0.1
sudo dkms build -m aureal -v 0.1
find quote
Rob Xbox User Offline
Senior Member
Posts: 102
Joined: May 2007
Reputation: 0
Post: #24
Thanks so much - I'll have a go at this later!

quote='Gibby13' pid='1339795' dateline='1361151570']
(2013-02-16 23:20)Rob Xbox User Wrote:  Ok - I need help sorting this remote out. I know how to use putty though other than that I need an idiots guide - if possible.

The arrows on the remote currently move the cursor.

R

Do the following:

Code:
sudo apt-get install git
git clone git://gitorious.org/~fcatrin/hid-aureal-kernel-module/fcatrins-hid-aureal-kernel-module.git aureal
cd aureal
make
sudo make install
sudo echo "hid-aureal" >> /etc/initramfs-tools/modules
sudo echo "usbhid" >> /etc/initramfs-tools/modules
sudo update-initramfs -k all -u
sudo reboot

When it comes back up if it works correctly you can do the following so the next time the kernel is updated you don't have to do the above:

Code:
sudo apt-get install dkms
sudo cp -r aureal /usr/src/aureal-0.1
sudo cat <<EOF>> /usr/src/aureal-0.1/dkms.conf
PACKAGE_NAME="hid-aureal"
PACKAGE_VERSION="0.1"
BUILT_MODULE_NAME[0]="hid-aureal"
DEST_MODULE_LOCATION[0]="/updates"
CLEAN="make clean"
AUTOINSTALL="yes"
REMAKE_INITRD=yes
EOF

sudo dkms add -m aureal -v 0.1
sudo dkms build -m aureal -v 0.1
[/quote]

I will buy you a virtual beer if you help me sort out this remote...
find quote
layzzzz Offline
Junior Member
Posts: 10
Joined: Feb 2013
Reputation: 0
Post: #25
Not working on 3.5.0-22 :

Code:
/hid-aureal-kernel-module$ sudo update-initramfs -k all -u
update-initramfs: Generating /boot/initrd.img-3.5.0-22-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-28-generic
grep: /boot/config-3.0.0-28-generic: No such file or directory
WARNING: missing /lib/modules/3.0.0-28-generic
Device driver support needs thus be built-in linux image!
WARNING: Couldn't open directory /lib/modules/3.0.0-28-generic: No such file or directory
FATAL: Could not open /lib/modules/3.0.0-28-generic/modules.dep.temp for writing: No such file or directory
FATAL: Could not load /lib/modules/3.0.0-28-generic/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.0.0-28-generic/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.0.0-28-generic/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.0.0-28-generic/modules.dep: No such file or directory


Reboot results in bootloop...Need to unplug the receiver to get a normal boot.
When i remove hid-aureal and usbhid from /etc/initramfs-tools/modules it boots as normal, and my remote works after reinstalling lirc and selecting proper remote. I think the drivers are already in the new kernel. So you just need to config lirc and xbmc.

Up till 3.0.0.28 you still need the drivers from gitorious.
(This post was last modified: 2013-02-28 21:15 by layzzzz.)
find quote
Gibby13 Offline
Junior Member
Posts: 20
Joined: Feb 2013
Reputation: 0
Post: #26
In your aureal directory run

Code:
make clean
make
sudo make install

Paste output here.

(2013-02-28 20:33)layzzzz Wrote:  Not working on 3.5.0-22 :

Code:
/hid-aureal-kernel-module$ sudo update-initramfs -k all -u
update-initramfs: Generating /boot/initrd.img-3.5.0-22-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-28-generic
grep: /boot/config-3.0.0-28-generic: No such file or directory
WARNING: missing /lib/modules/3.0.0-28-generic
Device driver support needs thus be built-in linux image!
WARNING: Couldn't open directory /lib/modules/3.0.0-28-generic: No such file or directory
FATAL: Could not open /lib/modules/3.0.0-28-generic/modules.dep.temp for writing: No such file or directory
FATAL: Could not load /lib/modules/3.0.0-28-generic/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.0.0-28-generic/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.0.0-28-generic/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.0.0-28-generic/modules.dep: No such file or directory


When rebooting bootloop...Need to unplug the receiver..
find quote
asko Offline
Junior Member
Posts: 33
Joined: Oct 2011
Reputation: 0
Post: #27
I have the same exact problem as Iyazzzz, nothing is working.

i followed Gibby13's post, here is my output.

[email protected]:~$ cd aureal
[email protected]:~/aureal$ make clean
rm -Rf *.ko *.o .tmp_versions .hid-aureal.* *.mod.c Module.symvers modules.order Module.markers
[email protected]:~/aureal$ make
make -C /lib/modules/3.5.0-25-generic/build SUBDIRS=/home/p8/aureal modules
make[1]: Entering directory `/usr/src/linux-headers-3.5.0-25-generic'
CC [M] /home/p8/aureal/hid-aureal.o
/home/p8/aureal/hid-aureal.c:47:2: warning: initialization from incompatible pointer type [enabled by default]
/home/p8/aureal/hid-aureal.c:47:2: warning: (near initialization for ‘aureal_driver.report_fixup’) [enabled by default]
Building modules, stage 2.
MODPOST 1 modules
CC /home/p8/aureal/hid-aureal.mod.o
LD [M] /home/p8/aureal/hid-aureal.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-25-generic'
[email protected]:~/aureal$ sudo make install
[sudo] password for p8:
make -C /lib/modules/3.5.0-25-generic/build SUBDIRS=/home/p8/aureal modules
make[1]: Entering directory `/usr/src/linux-headers-3.5.0-25-generic'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-25-generic'
[ -d /lib/modules/3.5.0-25-generic/updates ] || mkdir /lib/modules/3.5.0-25-generic/updates
cp hid-aureal.ko /lib/modules/3.5.0-25-generic/updates/
depmod -a
find quote
Gibby13 Offline
Junior Member
Posts: 20
Joined: Feb 2013
Reputation: 0
Post: #28
Do you have the kernel headers installed?

(2013-02-28 22:10)Gibby13 Wrote:  In your aureal directory run

Code:
make clean
make
sudo make install

Paste output here.

(2013-02-28 20:33)layzzzz Wrote:  Not working on 3.5.0-22 :

Code:
/hid-aureal-kernel-module$ sudo update-initramfs -k all -u
update-initramfs: Generating /boot/initrd.img-3.5.0-22-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-28-generic
grep: /boot/config-3.0.0-28-generic: No such file or directory
WARNING: missing /lib/modules/3.0.0-28-generic
Device driver support needs thus be built-in linux image!
WARNING: Couldn't open directory /lib/modules/3.0.0-28-generic: No such file or directory
FATAL: Could not open /lib/modules/3.0.0-28-generic/modules.dep.temp for writing: No such file or directory
FATAL: Could not load /lib/modules/3.0.0-28-generic/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.0.0-28-generic/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.0.0-28-generic/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.0.0-28-generic/modules.dep: No such file or directory


When rebooting bootloop...Need to unplug the receiver..

What does the following command show?
Code:
cat /etc/initramfs-tools/modules

(2013-03-05 22:44)asko Wrote:  I have the same exact problem as Iyazzzz, nothing is working.

i followed Gibby13's post, here is my output.

[email protected]:~$ cd aureal
[email protected]:~/aureal$ make clean
rm -Rf *.ko *.o .tmp_versions .hid-aureal.* *.mod.c Module.symvers modules.order Module.markers
[email protected]:~/aureal$ make
make -C /lib/modules/3.5.0-25-generic/build SUBDIRS=/home/p8/aureal modules
make[1]: Entering directory `/usr/src/linux-headers-3.5.0-25-generic'
CC [M] /home/p8/aureal/hid-aureal.o
/home/p8/aureal/hid-aureal.c:47:2: warning: initialization from incompatible pointer type [enabled by default]
/home/p8/aureal/hid-aureal.c:47:2: warning: (near initialization for ‘aureal_driver.report_fixup’) [enabled by default]
Building modules, stage 2.
MODPOST 1 modules
CC /home/p8/aureal/hid-aureal.mod.o
LD [M] /home/p8/aureal/hid-aureal.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-25-generic'
[email protected]:~/aureal$ sudo make install
[sudo] password for p8:
make -C /lib/modules/3.5.0-25-generic/build SUBDIRS=/home/p8/aureal modules
make[1]: Entering directory `/usr/src/linux-headers-3.5.0-25-generic'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-25-generic'
[ -d /lib/modules/3.5.0-25-generic/updates ] || mkdir /lib/modules/3.5.0-25-generic/updates
cp hid-aureal.ko /lib/modules/3.5.0-25-generic/updates/
depmod -a
(This post was last modified: 2013-03-05 23:18 by Gibby13.)
find quote
asko Offline
Junior Member
Posts: 33
Joined: Oct 2011
Reputation: 0
Post: #29
usbhid.

and now the ir reciever does not even light
(This post was last modified: 2013-03-05 23:54 by asko.)
find quote
Gibby13 Offline
Junior Member
Posts: 20
Joined: Feb 2013
Reputation: 0
Post: #30
Ok, run the following and post the output.

Code:
sudo echo "hid-aureal" >> /etc/initramfs-tools/modules
sudo update-initramfs -k all -u



(2013-03-05 23:52)asko Wrote:  usbhid
find quote