You are not logged in.

#1 2010-01-17 22:14:20

aewne
Member
Registered: 2009-04-05
Posts: 3

ASRock ION 330HT - MCE remote not working

Hi forum!
I recently purchased a new HTPC that I thought I'd set up with Arch, seeing as my previous one was also running Arch and I was very satisfied with the results. This new computer is a ASRock ION 330HT-BD nettop with an MCE remote. After installing the system, configuring what needs to be configured and compiling the latest svn revision of XBMC, I wanted to get the remote to work. So I installed LIRC and downloaded one of the preconfigured configs for the MCE type remotes and modprobed lirc_mceusb2 hoping this would do the trick. Then I fired up irw, but as it turns out, lirc wasn't recieving anything from the IR controller. I googled around a bit and found this thread on the XBMC forums.
As it turns out, Linux wasn't officially supported straight after ASRock launched their ION series of nettops. About half way through that XBMC thread I saw that there was an Ubuntu driver available as a .deb package with source.

Installing the package using dpkg available in AUR fails with:

dpkg: `update-rc.d' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.

I had a look around the makefile, but I'm no programmer. I'd say it looks pretty Ubuntu specific. So, I've come here to ask for your guidance. Has anyone had any luck compiling this driver? Actually it seems to be a kernel module from the looks of it.

The driver, with source, is available here.
For now I'm using my old StreamZap USB IR reciever.

Offline

#2 2010-03-01 21:24:19

Sigurd
Member
Registered: 2010-01-14
Posts: 7

Re: ASRock ION 330HT - MCE remote not working

I've tried compiling it with make, however the file lirc_wb677_common_extern.h contains some hardcoded include statements which isn't very portable. Also it seems that the module is supposed to be built with dkms, though I haven't had any luck with dkms yet. If there is anyone out there familiar with dkms or kernele module compiling in general it would be great with some help. If nobody have any ideas I will try to contact asrock or the driver developer.

Offline

#3 2010-03-12 11:36:04

Rude
Member
Registered: 2008-12-24
Posts: 12

Re: ASRock ION 330HT - MCE remote not working

I have the exact same issue. I got it working (with suspend fix and all) on the XBMC Live install with the Ubuntu backend, but I really want to run Arch for automatic updating and general coolness.
The driver seems very Ubuntu specific - has anyone contacted the developer yet?
Judging by the original threads discussing the lack of Linux driver, the support from them seemed pretty good.

Offline

#4 2010-03-13 18:14:06

aewne
Member
Registered: 2009-04-05
Posts: 3

Re: ASRock ION 330HT - MCE remote not working

Yeah, I sent them the following mail.

Are there any plans to make the remote's Linux drivers support more Linux distributions? I am currently running Arch Linux 2009.08 (kernel version 2.6.32, LIRC version 0.8.6) on my 330HT-BD, but the drivers provided only work with Ubuntu. Is there a less Ubuntu-specific version of the source code available?

This is the reply I got.

We did provide the source coed of the Linux driver.
Please kindly refer to our web site to download the driver.
The source coed is named : "lirc-nct677x-src-1.0.1-ubuntu9.10.deb"
http://www.asrock.com/nettop/download.a … HT&o=Linux

They seemed pretty dismissive about it.

Offline

#5 2010-03-17 15:14:06

Rude
Member
Registered: 2008-12-24
Posts: 12

Re: ASRock ION 330HT - MCE remote not working

I asked about the driver as well and got the following reply:

Dear ...,

        Currently, we don't have any plain to provide another version.

But you can write a Makefile to compile it.

It can be compiled without DKMS.(It needs lirc package, even it is compiled with DKMS).

And you should provide the same installing steps that are done by DEB package you have got.

Best regards,

I did manage to compile it with "make" and I got a .ko file, but "make install" then fails as there are ubuntu specific references and paths in there. I don't mind doing some legwork but I'm not really sure what needs to go where on arch. Anyone more experienced to have a look at it?

Offline

#6 2010-03-17 16:21:15

Rude
Member
Registered: 2008-12-24
Posts: 12

Re: ASRock ION 330HT - MCE remote not working

This is the makefile:

#!/bin/bash

# Notice :
#    for dkms, make cmd was defined in dkms.conf as MAKE[0]. generally we define it as 
#   MAKE[0] = "make ..."
#     however, when dkms build this target, it was invoked by "make KERNELRELEASE=xxx ..." instead
#   that cause the plain make file below can not work again : 
#
#        ifneq ($(KERNELRELEASE),)
#            obj-m := lirc_wb667.o
#            lirc_wb667-objs := lirc_wb667.o
#        else
#            KERNEL_SRC_TREE ?= /lib/modules/$(shell uname -r)/build
#            PWD := $(shell pwd)
#            modules modules_install clean:
#                make -C $(KERNEL_SRC_TREE) M=$(PWD) $@
#        endif
#
# it can not work because KERNELRELEASE was defined in dkms's case. so we should merge the two 
# cases together :

# on Linux 2.6 kernel
# If KERNELRELEASE is defined, we've been invoked from the
# kernel build system and can use its language.



    LIRC_DIR := /usr/src/lirc-0.8.6

    obj-m += lirc_wb677.o

    lirc_wb677-objs := lirc_wb677_main.o lirc_wb677_mouse_kbd.o

    KSRC ?= /lib/modules/$(shell uname -r)/build

    PWD := $(shell pwd)
modules:
    echo KERNELDIR=$(KSRC)
    $(MAKE) -C $(KSRC) -I $(LIRC_DIR) M=$(PWD) modules


# Following "install", "uninstall" and "clean" are not for dkms.

install:
    /etc/init.d/lirc stop
    rmmod lirc_wb677 || echo "lirc_wb677.ko is not executing"
    file="lirc_wb677.ko"; \
    dir="/lib/modules/$(shell uname -r)/kernel/ubuntu/lirc/lirc_wb677"; \
    if test -d "$$dir"; then echo ""; else mkdir -p $$dir; fi; \
    cp -vf *.ko $$dir
    depmod -a
    patch -p0 /usr/share/lirc/lirc.hwdb < /usr/share/lirc/lirc_nct667x-src-1.0.0-ubuntu9.10.patch
    @echo ""
    @echo "Hint: You can execute \"dpkg-reconfigure lirc\" to configure lirc."
    @echo "      And start lirc by executing \"/etc/init.d/lirc start\""

uninstall:
    /etc/init.d/lirc stop
    ( rmmod lirc_wb677 ) || echo "lirc_wb677.ko is not executing"
    dir="/lib/modules/$(shell uname -r)/kernel/ubuntu/lirc/lirc_wb677"; \
    if test -d "$$dir"; then rm -R $$dir; fi;
    depmod -a
    patch -R -p0 /usr/share/lirc/lirc.hwdb < /usr/share/lirc/lirc_nct667x-src-1.0.0-ubuntu9.10.patch

clean:
    rm -rf *.o *.ko *.mod.c Module.symvers .tmp_versions .*.cmd

Looking at that with an inexperienced eye, I can see the following:

1. LIRC_DIR := /usr/src/lirc-0.8.6    <-- That is different on Arch. I suppose it uses the Lirc source code to compile this thing? I suppose I could download that and put it in the /usr/src dir, but how would one actually go about sorting this the proper Arch way?
Also I suppose it would be a lot better to make that a dynamic thing that is not so version specific?

2. The next thing I see is the /etc/init.d/lirc stop and start scripts. This should be /etc/rc.d/lircd.

3. dir="/lib/modules/$(shell uname -r)/kernel/ubuntu/lirc/lirc_wb677"; \  I really don't know what should be in here, as well as the rest of the file. We obviously don't have a /kernel/ubuntu/lirc folder, but what is supposed to be there?

Hope someone spots the obvious fixes looking at this, if I get this working I will wipe my HTPC and go from Ubuntu to Arch instantly big_smile

Offline

#7 2010-04-24 09:25:39

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: ASRock ION 330HT - MCE remote not working

User Fitzcarraldo managed to get it working on Sabayon Linux:

http://forum.sabayon.org/viewtopic.php?p=114286#p114286

Seems it took him a lot of work but it could provide some insight on how to build it on Arch


ᶘ ᵒᴥᵒᶅ

Offline

#8 2010-05-05 12:14:37

tidalf
Member
Registered: 2010-02-06
Posts: 21

Re: ASRock ION 330HT - MCE remote not working

It work out of box i don't know where people are struggling
Just put the lirc-0.8.6 source code in /usr/src then type make in the src directory you can extract from the deb src file & it works.
With newer kernel, we have to use the patch provided in the lirc arch PKGBUILD.

I've done a PKGBUILD, but lost it^^ if someone insist I can make it again.

Offline

#9 2010-05-29 13:12:05

bkuri
Member
From: Mexico City
Registered: 2010-01-08
Posts: 27
Website

Re: ASRock ION 330HT - MCE remote not working

tidalf wrote:

It work out of box i don't know where people are struggling
Just put the lirc-0.8.6 source code in /usr/src then type make in the src directory you can extract from the deb src file & it works.
With newer kernel, we have to use the patch provided in the lirc arch PKGBUILD.

I've done a PKGBUILD, but lost it^^ if someone insist I can make it again.

PLEASE make it again! I can't seem to be able to get it to work...

Basically what I've been able to do is to extract the src files from the deb package, download LIRC using ABS, and compile the lirc_wb677 module that way. I then copied the resulting lirc_wb677 module dir to the lirc/src/lirc-0.8.6/drivers dir and executed the following:

# pacman -U lirc-0.8.6-4-i686.pkg.tar.xz

... but that got me nowhere. sad

I'm sure I'm on the right track, but I just can't seem to understand where the compiled lirc_wb677 module should be placed.

A PKGBUILD that can streamline that process would be very helpful!

Thanks in advance, tidalf.

Last edited by bkuri (2010-05-29 13:28:38)


Dell XPS 13 (9350) // i7 // 16GB // 512GB

Offline

#10 2010-05-29 13:23:44

bkuri
Member
From: Mexico City
Registered: 2010-01-08
Posts: 27
Website

Re: ASRock ION 330HT - MCE remote not working

Looking at that with an inexperienced eye, I can see the following:

1. LIRC_DIR := /usr/src/lirc-0.8.6    <-- That is different on Arch. I suppose it uses the Lirc source code to compile this thing? I suppose I could download that and put it in the /usr/src dir, but how would one actually go about sorting this the proper Arch way?
Also I suppose it would be a lot better to make that a dynamic thing that is not so version specific?

2. The next thing I see is the /etc/init.d/lirc stop and start scripts. This should be /etc/rc.d/lircd.

3. dir="/lib/modules/$(shell uname -r)/kernel/ubuntu/lirc/lirc_wb677"; \  I really don't know what should be in here, as well as the rest of the file. We obviously don't have a /kernel/ubuntu/lirc folder, but what is supposed to be there?

Hope someone spots the obvious fixes looking at this, if I get this working I will wipe my HTPC and go from Ubuntu to Arch instantly big_smile

Just in case this helps any, here's how I had to modify the Makefile in order to successfully compile the module in Arch: http://pastebin.com/gaQyhLvG

As you can probably tell, I had no idea what to do about the "patch" lines... I'm not even sure if we need them in our case...

Any help with this issue would be appreciated. Everything else runs perfect on my HTPC.

Last edited by bkuri (2010-06-04 16:46:48)


Dell XPS 13 (9350) // i7 // 16GB // 512GB

Offline

#11 2010-06-04 20:03:12

bkuri
Member
From: Mexico City
Registered: 2010-01-08
Posts: 27
Website

Re: ASRock ION 330HT - MCE remote not working

bump smile


Dell XPS 13 (9350) // i7 // 16GB // 512GB

Offline

#12 2010-06-07 03:09:13

bkuri
Member
From: Mexico City
Registered: 2010-01-08
Posts: 27
Website

Re: ASRock ION 330HT - MCE remote not working

bump


Dell XPS 13 (9350) // i7 // 16GB // 512GB

Offline

#13 2010-07-01 18:03:42

twarkie
Member
Registered: 2007-09-16
Posts: 24

Re: ASRock ION 330HT - MCE remote not working

Bumping this again smile

I just got my ASRock ION 330HT and want to have Arch on it, of course. I got everything to work perfectly, except from the remote. Is there any progress on this?

Offline

#14 2010-07-01 21:57:56

twarkie
Member
Registered: 2007-09-16
Posts: 24

Re: ASRock ION 330HT - MCE remote not working

Yes, finally, I got it working.

I found this AUR package, http://aur.archlinux.org/packages.php?ID=36673
Unfortunately, it's made for kernel 2.6.33 while the current one is 2.6.34. So I simply replaced all entries in the PKGBUILD and install files to 2.6.34. Then I had to change to source for the patch file so that it fetched the patch for 2.6.33 kernel, since there's none for .34. This worked perfect for me.

Last edited by twarkie (2010-07-01 21:58:28)

Offline

#15 2010-07-01 23:30:18

bkuri
Member
From: Mexico City
Registered: 2010-01-08
Posts: 27
Website

Re: ASRock ION 330HT - MCE remote not working

EDIT: It's working! Thanks a bunch for all your help. smile

Last edited by bkuri (2010-07-05 22:36:53)


Dell XPS 13 (9350) // i7 // 16GB // 512GB

Offline

#16 2010-07-02 00:04:30

AnnubisArch
Member
Registered: 2010-07-01
Posts: 3

Re: ASRock ION 330HT - MCE remote not working

twarkie wrote:

Yes, finally, I got it working.

I found this AUR package, http://aur.archlinux.org/packages.php?ID=36673
Unfortunately, it's made for kernel 2.6.33 while the current one is 2.6.34. So I simply replaced all entries in the PKGBUILD and install files to 2.6.34. Then I had to change to source for the patch file so that it fetched the patch for 2.6.33 kernel, since there's none for .34. This worked perfect for me.

I followed this and the package is compiling, modprobe loads correctly the kenel module and lirc starts corretly But when i execute irw nothing happens, no codes are showed. However, if i execute:

mode2 --device=/dev/lirc0

when a button is pressed, a lot of codes showns on screen.

¿Have do you get working this remote with irw?

Last edited by AnnubisArch (2010-07-02 00:15:12)

Offline

#17 2010-07-02 09:51:17

twarkie
Member
Registered: 2007-09-16
Posts: 24

Re: ASRock ION 330HT - MCE remote not working

AnnubisArch wrote:
twarkie wrote:

Yes, finally, I got it working.

I found this AUR package, http://aur.archlinux.org/packages.php?ID=36673
Unfortunately, it's made for kernel 2.6.33 while the current one is 2.6.34. So I simply replaced all entries in the PKGBUILD and install files to 2.6.34. Then I had to change to source for the patch file so that it fetched the patch for 2.6.33 kernel, since there's none for .34. This worked perfect for me.

I followed this and the package is compiling, modprobe loads correctly the kenel module and lirc starts corretly But when i execute irw nothing happens, no codes are showed. However, if i execute:

mode2 --device=/dev/lirc0

when a button is pressed, a lot of codes showns on screen.

¿Have do you get working this remote with irw?

My guess is that you have the incorrect config for that remote. Copy /usr/share/lirc/remotes/lirc_wb677/lircd.conf.wb677 to /etc/lircd.conf and restart lircd.

Offline

#18 2010-07-02 10:46:20

Hiram
Member
From: Brisbane, Australia
Registered: 2010-02-13
Posts: 67
Website

Re: ASRock ION 330HT - MCE remote not working

I'm afraid I'm getting stuck at the modprobe. I'm running this: modprobe lirc_wb667, with this output:

FATAL: Module lirc_wb667 not found.

However, I KNOW the module exists. At least, I think so?

[root@media lirc_wb677]# find /lib -name "lirc*"
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_mceusb.ko
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_i2c.ko
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_it87.ko
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_sasem.ko
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_ene0100.ko
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_dev.ko
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_sir.ko
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_ite8709.ko
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_imon.ko
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_streamzap.ko
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_wb677.ko
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_wpc8769l.ko
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_ttusbir.ko
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_serial.ko
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_atiusb.ko
/lib/modules/2.6.34-ARCH/kernel/drivers/misc/lirc_igorplugusb.ko

6th from the bottom, so I'm not sure what I'm doing wrong. Any help would be great.

Offline

#19 2010-07-02 10:55:09

Rude
Member
Registered: 2008-12-24
Posts: 12

Re: ASRock ION 330HT - MCE remote not working

You are probing for 667 as opposed to 677 - correct that and it should be fine.

Offline

#20 2010-07-02 10:59:00

Hiram
Member
From: Brisbane, Australia
Registered: 2010-02-13
Posts: 67
Website

Re: ASRock ION 330HT - MCE remote not working

... well, that's embarrassing. Literally, I've made that typo over a dozen times. I've restarted my machine 5 or so times, thinking there was some weird problem.

Haha thanks for that!

Offline

#21 2010-07-02 14:55:13

AnnubisArch
Member
Registered: 2010-07-01
Posts: 3

Re: ASRock ION 330HT - MCE remote not working

twarkie wrote:

My guess is that you have the incorrect config for that remote. Copy /usr/share/lirc/remotes/lirc_wb677/lircd.conf.wb677 to /etc/lircd.conf and restart lircd.

No. lircd.conf is correct (I checked it). There is more information:

My /etc/lirc/lircd.conf: http://pastebin.com/Cg87DFmF

My /etc/lirc/lircrc: http://pastebin.com/vn8YhcZ2

My /etc/conf.d/lircd.conf: http://pastebin.com/RpSVixrJ

$ cat /var/log/messages | grep lirc
Jul  2 16:18:06 HTPC kernel: [   10.290940] lirc_dev: IR Remote Control driver registered, major 61 
Jul  2 16:18:06 HTPC kernel: [   10.344251] lirc_wb677 w677hga: chip id high: 0xb4
Jul  2 16:18:06 HTPC kernel: [   10.344265] lirc_wb677 w677hga: chip id low: 0x73 expect:0x73
Jul  2 16:18:06 HTPC kernel: [   10.344944] lirc_dev: lirc_register_driver: sample_rate: 0
Jul  2 16:28:59 HTPC kernel: [   10.455698] lirc_dev: IR Remote Control driver registered, major 61 
Jul  2 16:28:59 HTPC kernel: [   10.467868] lirc_wb677 w677hga: chip id high: 0xb4
Jul  2 16:28:59 HTPC kernel: [   10.467883] lirc_wb677 w677hga: chip id low: 0x73 expect:0x73
Jul  2 16:28:59 HTPC kernel: [   10.468451] lirc_dev: lirc_register_driver: sample_rate: 0
$ lsmod | grep lirc
lirc_wb677             25628  0 
lirc_dev                8884  1 lirc_wb677

There is something wrong on my system?

Offline

#22 2010-07-02 15:59:58

AnnubisArch
Member
Registered: 2010-07-01
Posts: 3

Re: ASRock ION 330HT - MCE remote not working

AnnubisArch wrote:
twarkie wrote:

My guess is that you have the incorrect config for that remote. Copy /usr/share/lirc/remotes/lirc_wb677/lircd.conf.wb677 to /etc/lircd.conf and restart lircd.

No. lircd.conf is correct (I checked it). There is more information:

My /etc/lirc/lircd.conf: http://pastebin.com/Cg87DFmF

My /etc/lirc/lircrc: http://pastebin.com/vn8YhcZ2

My /etc/conf.d/lircd.conf: http://pastebin.com/RpSVixrJ

$ cat /var/log/messages | grep lirc
Jul  2 16:18:06 HTPC kernel: [   10.290940] lirc_dev: IR Remote Control driver registered, major 61 
Jul  2 16:18:06 HTPC kernel: [   10.344251] lirc_wb677 w677hga: chip id high: 0xb4
Jul  2 16:18:06 HTPC kernel: [   10.344265] lirc_wb677 w677hga: chip id low: 0x73 expect:0x73
Jul  2 16:18:06 HTPC kernel: [   10.344944] lirc_dev: lirc_register_driver: sample_rate: 0
Jul  2 16:28:59 HTPC kernel: [   10.455698] lirc_dev: IR Remote Control driver registered, major 61 
Jul  2 16:28:59 HTPC kernel: [   10.467868] lirc_wb677 w677hga: chip id high: 0xb4
Jul  2 16:28:59 HTPC kernel: [   10.467883] lirc_wb677 w677hga: chip id low: 0x73 expect:0x73
Jul  2 16:28:59 HTPC kernel: [   10.468451] lirc_dev: lirc_register_driver: sample_rate: 0
$ lsmod | grep lirc
lirc_wb677             25628  0 
lirc_dev                8884  1 lirc_wb677

There is something wrong on my system?

It works! it works! After a second reboot, it has mysteriously started working.

Thanks a lot for your comments!

Offline

#23 2010-07-27 20:05:08

echasslau
Member
Registered: 2007-09-21
Posts: 113

Re: ASRock ION 330HT - MCE remote not working

I think it's some kind of irony. I've created the lirc_wb677 package but don't get it working.
I've tried the howto at the wiki but with no success.

With the following and irw everything is working. But when I use /etc/rc.d/lircd it's not working.

lird -n -d /dev/lirc0
# /etc/conf.d/lircd.conf
#
#Chosen Remote Control
REMOTE="Nuvoton Transceivers/Remotes"
REMOTE_MODULES="lirc_dev lirc_wb677"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
#REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
#REMOTE_LIRCD_CONF="lirc_wb677/lircd.conf.wb677"
REMOTE_LIRCD_ARGS="-d /dev/lirc0 -p 0666"

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="true"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF="/etc/lirc/lircmd.conf"

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""

Offline

#24 2010-07-27 20:11:22

echasslau
Member
Registered: 2007-09-21
Posts: 113

Re: ASRock ION 330HT - MCE remote not working

Ok, forget it. I had to use the original lircd.conf

Offline

Board footer

Powered by FluxBB