Kodi Community Forum
ASRock ION 330HT (2nd gen) - built-in IR, which lirc driver? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: ASRock ION 330HT (2nd gen) - built-in IR, which lirc driver? (/showthread.php?tid=61840)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33


Official ASRock drivers - srv1973 - 2010-12-24

Hi,

Has anybody tried the steps in this post on the Ubuntu forums? Seems like the official ASRock driver now works fine, but this report was from 2 days ago and there are no further follow-up posts to this (yet).


- daftykins - 2010-12-24

Hi all, just to chime in I have the remote working fine with Lucid Lynx v10.04.1 and my ASRock Ion 330 HT-BD. I've written it up here:

http://www.techblo.gg/?p=163

Hope that helps. I've yet to confirm passthrough (AC3 and DTS) audio over HDMI as working, but hope to soon.


- vikjon0 - 2010-12-24

Quote:I've written it up here:

http://www.techblo.gg/?p=163

Yes, that option hit me earlier today. My first try didnt work, probably because I have messed around too much (installed a 37 kernel and some other stuff). Good to here you got it working. I will try with a fresh installation later.


- vikjon0 - 2010-12-25

Ok, I tried it from scratch and got the nvidia problem again but finally managed to sort it out. The problem was missing headers. Didn't see that in any kernel related posts, perhaps it is not needed when synaptic is used....

This will fix the HT remote on xbmcLive10 by downgrading the kernel:
Quote:sudo apt-get install linux-image-2.6.32-25-generic
sudo apt-get remove linux-image-2.6.32-26-generic
(sudo apt-get remove linux-image-2.6.32-27-generic)*

sudo update-grub
sudo reboot

mkdir Downloads
cd Downloads

wget 'http://europe.asrock.com/downloadsite/drivers/Nettop/Ubuntu/IR(10.04)2.6.32-25.zip'
unzip 'IR(10.04)2.6.32-25.zip'

sudo dpkg -i lirc-nct677x-1.0.4-ubuntu10.04_kernel2.6.32-25.deb

select remote:
nuvoton


sudo apt-get --purge remove nvidia-*
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install nvidia-glx-185 nvidia-settings

(sudo nvidia-xconfig)**

*Sometimes removing 26 automatically installs 27...
**Re-gen xorg.conf



- DaSingh - 2010-12-25

X3lectric Wrote:If you find this guide helpful, please add to my positive forum reputation, with positive comment.

It took me a few days to come up with it and I think it deserves some recognition. (thats cause some ppl are ungrateful whatsits)

1) wget lirc-nct677x-src_1.0.4-1yavdr1_all.deb 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 or http://dl.dropbox.com/u/4325533/lirc-nct677x-x64-1.0.4-ubuntu10.04_kernel2.6.32-25.deb

2) dpkg -i nct677x-dkms_1.0.4-1yavdr1_all.deb file

let the process run then

3) dpkg -i lirc-nct677x-src_1.0.4-1yavdr1_all.deb

let process run

Bare in mind thers 32 bit and 64bit .25 debs. (dont worry about the it being for .25 kernel version, it works)

if you have 64 bit the the last step is

4a) dpkg -i lirc-nct677x-x64-1.0.4-ubuntu10.04_kernel2.6.32-25.deb

if you have 32 bit the last step is

4b) dpkg -i lirc-nct677x-1.0.4-ubuntu10.04_kernel2.6.32-25.deb

Your remote should work staright away without reboot BUT

If after this your remote dont work try

dpkg-reconfigure lirc
(you may need to run this several times untils theres no errors)

Always select nuvoton receivers and transceivers on first screen and none on second...

IMPORTANT
Please ensure you dont have PAE kernels...ONLY linux-image-generic x86 or x64 or 386 are compatible with the drivers.

DO NOT PM
me with support requests.

Thanks for posting this guide, however I am still not having any joy and keep getting errors which I will post once I have repeated the process again with a fresh install....

My setup is XBMC Live (xbmc-10.0-live.iso) installed to hdd

When I go into System Info the keneral is 2.6.32.26-generic.

So far this is what I have done.

Installed XBMCLive
Opened Putty.exe and logged in
Entered the following commands
Code:
wget http://ppa.launchpad.net/yavdr/stable-vdr/ubuntu/pool/main/n/nct677x-dkms/lirc-nct677x-src_1.0.4-1yavdr1_all.deb
wget http://ppa.launchpad.net/yavdr/stable-vdr/ubuntu/pool/main/n/nct677x-dkms/nct677x-dkms_1.0.4-1yavdr1_all.deb
wget http://dl.dropbox.com/u/4325533/lirc-nct677x-1.0.4-ubuntu10.04_kernel2.6.32-25.deb

Then the following:
Code:
sudo dpkg -i nct677x-dkms_1.0.4-1yavdr1_all.deb
entered password
sudo dpkg -i lirc-nct677x-src_1.0.4-1yavdr1_all.deb

sudo dpkg -i lirc-nct677x-1.0.4-ubuntu10.04_kernel2.6.32-25.deb
Noticed two [color=red][fail][/color]

has come up with package configuration screen, seleceted Nuvoton Transceivers/Remotes and None for the second page.

But still something not right as remote dont work and theres two [fail] items

Code:
Setting up lirc-nct677x (1.0.4-ubuntu10.04_kernel2.6.32-25) ...
Copy patch file...
* Stopping remote control daemon(s): LIRC                               [ OK ]
`/usr/share/lirc_wb677/lirc_wb677.ko' -> `/lib/modules/2.6.32-26-generic/kernel/ubuntu/lirc/lirc_wb677/lirc_wb677.ko'
/etc/lirc/lircrc not existed. copy it directly.
patching file /usr/share/lirc/lirc.hwdb
* Stopping execution daemon: irexec                                     [fail]
* Stopping remote control daemon(s): LIRC                               [fail]
* Loading LIRC modules                                                  [ OK ]
* Starting remote control daemon(s) : LIRC                              [ OK ]
* Starting execution daemon: irexec                                     [ OK ]

xbmc@XBMCLive:~$

Should I be adding sudo? Without it it says I need to be superuser... Dont know anything about linux so all a learning curve.

Any help would be appreciated Smile

If I run sudo dpkg-reconfigure lirc I get the following:
Code:
xbmc@XBMCLive:~$ sudo dpkg-reconfigure lirc
* Stopping execution daemon: irexec                                     [ OK ]
* Stopping remote control daemon(s): LIRC                               [ OK ]
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service udev reload

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the reload(8) utility, e.g. reload udev
* Loading LIRC modules                                                  [ OK ]
* Starting remote control daemon(s) : LIRC                              [ OK ]
* Starting execution daemon: irexec                                     [ OK ]
xbmc@XBMCLive:~$

SCRAP THAT!

Did sudo reboot NOW REMOTE WORKING! Many thanks your a legend! Happy Holidays and hope you feel better!


- vikjon0 - 2010-12-25

and this do the same by upgrading the kernel to 37 where no drivers are needed. 25 is probably a safer bet, but forward and up etc...

This would be a cleaner process but since the repository nvidia drivers does not work with this kernel the complexity is pretty much equal.

Quote:sudo add-apt-repository ppa:kernel-ppa/ppa
sudo apt-get update

sudo apt-get install linux-image-generic-lts-backport-natty
(sudo apt-get install linux-image-2.6.37-10-generic)*
sudo reboot

sudo apt-get install linux-headers-$(uname -r)
sudo apt-get --purge remove nvidia-*

mkdir Downloads
cd Downloads

wget http://us.download.nvidia.com/XFree86/Linux-x86/260.19.29/NVIDIA-Linux-x86-260.19.29.run
sh NVIDIA-Linux-x86-260.19.29.run

(nvidia-installer --uninstall)**

*Tested version
**Uninstall nvidia



- vikjon0 - 2010-12-25

Quote:Any help would be appreciated
Well, the last error refers to irexec which you probably dont have....if so that would explain the fail...if you didn't do it already just reboot and test the remote.

EDIT:
Quote:SCRAP THAT!
Ok, feel free to delete the irrelevant text from you post then to save space...


- DaSingh - 2010-12-25

vikjon0 Wrote:Well, the last error refers to irexec which you probably dont have....if so that would explain the fail...if you didn't do it already just reboot and test the remote.

EDIT:

Ok, feel free to delete the irrelevant text from you post then to save space...

Dont think theres any need to delete as it will show other users complete process. Although error appeared I repeated sudo dpkg-reconfigure lirc
which fixed the error and then a reboot was required for remote to work.

Off-Topic:
Just need to figure out how to access shares on my Win7 machine now, can access from XP machine without problems but keeps asking me for username and pass on Win7 machine.


- gadgetgeek - 2010-12-27

DaSingh Wrote:Thanks for posting this guide, however I am still not having any joy and keep getting errors which I will post once I have repeated the process again with a fresh install....

My setup is XBMC Live (xbmc-10.0-live.iso) installed to hdd

When I go into System Info the keneral is 2.6.32.26-generic.

So far this is what I have done.

Installed XBMCLive
Opened Putty.exe and logged in
Entered the following commands
Code:
wget http://ppa.launchpad.net/yavdr/stable-vdr/ubuntu/pool/main/n/nct677x-dkms/lirc-nct677x-src_1.0.4-1yavdr1_all.deb
wget http://ppa.launchpad.net/yavdr/stable-vdr/ubuntu/pool/main/n/nct677x-dkms/nct677x-dkms_1.0.4-1yavdr1_all.deb
wget http://dl.dropbox.com/u/4325533/lirc-nct677x-1.0.4-ubuntu10.04_kernel2.6.32-25.deb

Then the following:
Code:
sudo dpkg -i nct677x-dkms_1.0.4-1yavdr1_all.deb
entered password
sudo dpkg -i lirc-nct677x-src_1.0.4-1yavdr1_all.deb

sudo dpkg -i lirc-nct677x-1.0.4-ubuntu10.04_kernel2.6.32-25.deb
Noticed two [color=red][fail][/color]

has come up with package configuration screen, seleceted Nuvoton Transceivers/Remotes and None for the second page.

But still something not right as remote dont work and theres two [fail] items

Code:
Setting up lirc-nct677x (1.0.4-ubuntu10.04_kernel2.6.32-25) ...
Copy patch file...
* Stopping remote control daemon(s): LIRC                               [ OK ]
`/usr/share/lirc_wb677/lirc_wb677.ko' -> `/lib/modules/2.6.32-26-generic/kernel/ubuntu/lirc/lirc_wb677/lirc_wb677.ko'
/etc/lirc/lircrc not existed. copy it directly.
patching file /usr/share/lirc/lirc.hwdb
* Stopping execution daemon: irexec                                     [fail]
* Stopping remote control daemon(s): LIRC                               [fail]
* Loading LIRC modules                                                  [ OK ]
* Starting remote control daemon(s) : LIRC                              [ OK ]
* Starting execution daemon: irexec                                     [ OK ]

xbmc@XBMCLive:~$

Should I be adding sudo? Without it it says I need to be superuser... Dont know anything about linux so all a learning curve.

Any help would be appreciated Smile

If I run sudo dpkg-reconfigure lirc I get the following:
Code:
xbmc@XBMCLive:~$ sudo dpkg-reconfigure lirc
* Stopping execution daemon: irexec                                     [ OK ]
* Stopping remote control daemon(s): LIRC                               [ OK ]
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service udev reload

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the reload(8) utility, e.g. reload udev
* Loading LIRC modules                                                  [ OK ]
* Starting remote control daemon(s) : LIRC                              [ OK ]
* Starting execution daemon: irexec                                     [ OK ]
xbmc@XBMCLive:~$

SCRAP THAT!

Did sudo reboot NOW REMOTE WORKING! Many thanks your a legend! Happy Holidays and hope you feel better!

Thanks worked great for me :-)


- X3lectric - 2010-12-29

Im glad it worked, Nod np, but if you read my how-to does specify already you run dpkg-reconfigure lirc in fact it even says, sometimes run it more then once...

see below... Smile I like to cover my bases Wink

X3lectric Wrote:*snip

If after this your remote dont work try

dpkg-reconfigure lirc
(you may need to run this several times untils theres no errors)

Always select nuvoton receivers and transceivers on first screen and none on second...

IMPORTANT
Please ensure you dont have PAE kernels...ONLY linux-image-generic x86 or x64 or 386 are compatible with the drivers.

DO NOT PM
me with support requests.

I think however this can be improved, can anyone suggest a simpler way to fix this issue?

Or maybe we all ask for a driver for each kernel all the time and annoy them enough to do it, after all thats what we had to do when machine was released.

Though I know openelec knows about the lirc implementation of this. it's quite public in his posts. Once its in lirc any distro that uses lirc will workoutof box... HAve no idea of progress, Im sure it will be ok... Though it will have to be compiled whenever lirc supports nct677x, asrock as show theyy are a bit slow on the uptake with real drivers...

But it works none the less, lets be happy about that.


- vikjon0 - 2010-12-29

Quote:a simpler way to fix this issue?
I prefer to downgrade / upgrade the kernel, not sure it is more simple but less text Wink

Once 2.6.37 reach stable I think we should go for that as a standard solution. I am not sure it will be officially supported in Lucid so that leaves xbmcbuntu - 10.10 unless we can convince someone to cook a new live build.


- X3lectric - 2010-12-29

your talking about maverick drivers,mate so you know XBMCLive is not BASED on maverick but linux.

I prefer finding a fix, rather then pass out on bug fixes, just because...

Unfortunatly only limited good how tos are found... IM sure in your case your missing out...

BUt your box your choice.


- vikjon0 - 2010-12-29

Quote:your talking about maverick drivers,mate so you know XBMCLive is not BASED on maverick but linux.
No, thats not what I am talking about. I have tested both downgrading xbmcLive from 26 => 25 and upgrading to an un-official .37 and I know very well that it is based on Lucid. Both solution is working fine but the latter is perhaps more risky. Downgrading to 25 I think have to be regarded as a safe solution.

Never mind. I know you have a fix and I will keep out of the discussion.


- kridued - 2010-12-29

Hey guys

Check this out! http://forum.xbmc.org/showpost.php?p=658379&postcount=384

The remote works here

\\kridued


[Live 10.00] Dharma Lirc but based on a Ubuntu 10.10 - guyf - 2010-12-29

As you read in http://forum.xbmc.org/showpost.php?p=676315&postcount=13

You'll see that ubuntu backported some of the lirc into the kernel stuff so you don't need to install a 2.6.37 the ubuntu kernel 2.6.35 is good for me.

Kind regards
Forskieken