ASRock ION 330HT (2nd gen) - built-in IR, which lirc driver?

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
X3lectric Offline
Closed Account
Posts: 1,756
Joined: Feb 2006
Location: in a Dropbox
Post: #471
lol what a looser with a capital L
find quote
vikjon0 Offline
---
Posts: 2,430
Joined: Apr 2009
Reputation: 7
Location: Sweden
Post: #472
ok, unsubscribed.
find quote
scalpel Offline
Senior Member
Posts: 106
Joined: Jun 2010
Reputation: 0
Post: #473
I installed kernel 2.6.37, remote working but have double presses in xbmc. So i turn off lirc and now works but only cursors keys. I will be grateful for any info to get it working.
find quote
lachmac Offline
Junior Member
Posts: 3
Joined: Jan 2011
Reputation: 0
Post: #474
I also upgraded the kernel, and am now looking for a "how-to" to get the remote working.

scalpel Wrote:I installed kernel 2.6.37, remote working but have double presses in xbmc. So i turn off lirc and now works but only cursors keys. I will be grateful for any info to get it working.
find quote
scalpel Offline
Senior Member
Posts: 106
Joined: Jun 2010
Reputation: 0
Post: #475
it works but somethings wrong with keymap or similiar
find quote
xp314a Offline
Junior Member
Posts: 4
Joined: Sep 2010
Reputation: 0
Post: #476
I was able to get LIRC working with the nuvoton-cir kernel module. I'm not sure at what point the module was added to the Ubuntu kernel, but I know for sure that it is in 2.6.38-5-generic (the default kernel in the latest Natty build).

Something to note, at some point in all this I started having to use 'sudo irw' rather than just 'irw'.

To confirm the module is in your kernel build, run 'lsmod | grep nuvoton' and you should see something like:

Code:
nuvoton_cir            17643  0
rc_core                25760  10 mceusb,ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decode​r,rc_rc6_mce,ir_nec_decoder,nuvoton_cir

Just make sure 'nuvoton_cir' is there.

To make LIRC work with the in-kernel module, I had to install LIRC 0.9.0-pre1. I compiled it from Git and, to avoid having to deal with configuration and initscripts, I installed it right over the top of the apt package. The commands to do this are (you may have to install dependencies for this to work):

Code:
git clone git://lirc.git.sourceforge.net/gitroot/lirc/lirc
cd lirc
./autogen.sh
./configure --with-driver=userspace --prefix=/usr
make
sudo make install

Then I ran 'sudo dpkg-reconfigure lirc' and selected 'Windows Media Center Transceivers/Remotes (all)' under 'Remote control configuration' and 'None' under 'IR transmitter'.

At this point I was getting the appropriate response in 'sudo irw', but I got no response from XBMC. Everything appeared to be in order, so I just rebooted and the remote started working properly.

Something to note, before I installed the new version of LIRC, immediately upon booting from the new kernel, the arrow keys were working. Apparently the in-kernel decoding passes the arrow key presses (and some others) to XBMC. Once you get LIRC working with the in-kernel module, you will have double key presses for some keys. In this thread on the LIRC mailing list, a guy posts a link to here with a new initscript that disables the in-kernel decoding. Replace /etc/init.d/lirc with this new initscript. Then give it execute permissions with 'sudo chmod +x /etc/init.d/lirc'. Note that I had to download the file to my laptop then scp it my ASRock, because I couldn't get it download via wget.

Also, before I installed the new version of LIRC, I uninstalled all the ASRock IR driver packages, as they are no longer needed.

Hopefully I didn't miss anything.
find quote
scalpel Offline
Senior Member
Posts: 106
Joined: Jun 2010
Reputation: 0
Post: #477
Thanks for reply, but tell me can you use remote in other programs like by only built in kernel modules?
find quote
xp314a Offline
Junior Member
Posts: 4
Joined: Sep 2010
Reputation: 0
Post: #478
I would think so, but I can't say for sure as I don't have any other programs to test (I just run xbmc-live over a Ubuntu minimal install).
find quote
Rooster242 Offline
Junior Member
Posts: 23
Joined: Feb 2011
Reputation: 2
Post: #479
vikjon0 Wrote:X3lectric, I went for you solution after all, the current version is the smoothest. Thank you very much.

I changed it around to one line dpkg. It works fine and is a bit quicker.


Code:
mkdir Downloads
cd Downloads

Code:
wget
http://ppa.launchpad.net/yavdr/stable-vdr/ubuntu/pool/main/n/nct677x-dkms/lirc-nct677x-src_1.0.4-1yavdr1_all.deb http://ppa.launchpad.net/yavdr/stable-vdr/ubuntu/pool/main/n/nct677x-dkms/nct677x-dkms_1.0.4-1yavdr1_all.deb http://dl.dropbox.com/u/4325533/lirc-nct677x-1.0.4-ubuntu10.04_kernel2.6.32-25.deb
http://dl.dropbox.com/u/4325533/lirc-nct677x-x64-1.0.4-ubuntu10.04_kernel2.6.32-25.deb

Code:
sudo dpkg -i nct677x-dkms_1.0.4-1yavdr1_all.deb lirc-nct677x-src_1.0.4-1yavdr1_all.deb lirc-nct677x-1.0.4-ubuntu10.04_kernel2.6.32-25.deb

EDIT:
I have made a complete and clean config and I am creating a clonezilla restore disk right now. If I can find a good place I will upload it somewhere.

Had all kinds of issues after messing around with this for hours. Finally reinstalled XBMC Live on my ASRock ION 3D and followed X3lectric and vikjon0 instructions and violla, works like a charm with the 2.6.32-26 kernel. Thanks guys!

Oh, and I backed up my xbmc profile and restored it after the reinstall... worked great! Kept all my settings and libraries, didn't have to reconfigure a thing.
find quote
demod Offline
Junior Member
Posts: 6
Joined: Apr 2007
Reputation: 0
Post: #480
Quick update, there was a problem in the latest kernel with relation to the Asrock (nuvoton) code. It worked perfectly, but just would not power on or resume from standby.

This was killing me as I wanted to get off the xbmcfreak install I had of one of the release candidates. So I set out to find the fix, anyways a month later I've found it, posted the fix to the dev, and its all working perfectly.

My main reason for moving was boot speed. With a bit of tinkering I could get my xbmcfreak ION 330HT to boot in 45sec.

The guys at openelec made an instant kernel patch and have included the bug fix in their latest RC3. I now cold boot in 20s from power on! Didn't need to muck about with anything, just installed and go.

Go for the ION builds:
http://www.openelec.tv/get-openelec

The patch is also making its way to official kernel releases, I've been told it might make 2.6.38. If not, it'll go into 2.6.39, and 2.6.38.1.
find quote
Post Reply