[LINUX] IR/Lirc on s1-at5nm10e
#1
Hi,

Tring to get my remote to work on Ubuntu 10.10 on this box. I've used the drivers from ASrock 330 (they should be the same)

lspnp
Code:
00:00 PNP0a08 (unknown)
00:01 PNP0c01 System board
00:02 PNP0200 AT DMA controller
00:03 PNP0b00 AT real-time clock
00:04 PNP0800 AT speaker
00:05 PNP0c04 Math coprocessor
00:06 PNP0c02 Motherboard resources
00:07 PNP0c02 Motherboard resources
00:08 PNP0103 High-Precision Event Timer
00:09 PNP0c02 Motherboard resources
[b]00:0a NTN0530 (unknown)[/b] # Should be CIR device, same as ASrock 330 from what google tells me.
00:0b PNP0c02 Motherboard resources
00:0c PNP0c01 System board



dmesg | grep lirc
Code:
[    4.462485] lirc_dev: IR Remote Control driver registered, major 61
[    4.777537] lirc_wb677 receive probe
[    4.777556] lirc_wb677 w677hga: chip id high: 0xa5 expect:0xb4
[    4.777566] lirc_wb677 w677hga: chip id low: 0x13
[    4.777596] lirc_wb677 base io port address: 0x240
[    4.777604] lirc_wb677 irq number: 3
[    4.777631] lirc_wb677 cir wake up base io port address: 0x250
[    4.777639] lirc_wb677 cir wake up irq number: 3
[    4.777695] lirc_wb677 : init cir success
[    4.780798] lirc_wb677 Start calling lirc_register_driver().
[    4.780807] lirc_dev: lirc_register_driver: sample_rate: 0
[    4.782014] lirc_wb677 End calling lirc_register_driver().
[    4.782024] lirc_wb677 register lirc minor: 0
[    5.037885] lirc_wb677 : set use inc
[    5.037933] lirc_wb677: IO Ctrl Code:-2147194624



modinfo lirc_wb677
Code:
filename:       /lib/modules/2.6.35-23-generic/kernel/ubuntu/lirc/lirc_wb677/lirc_wb677.ko
license:        GPL
author:         Nuvoton PS Team
description:    LIRC driver for Nuvoton W83667HG-A & W83677HG CIR
srcversion:     6F7CFDC629BB46F728A21B0
alias:          acpi*:NTN0530:*
alias:          pnp:dNTN0530*
alias:          acpi*:WEC0530:*
alias:          pnp:dWEC0530*
depends:        lirc_dev
vermagic:       2.6.35-22-generic SMP mod_unload modversions
parm:           DRVNAME:Device file name in /dev/ and /sys/class/. (charp)
parm:           CIR_BASE:Base IO port address of 667/677 CIR device. (ushort)
parm:           CIR_IRQ_NUM:IRQ number for 667/677 CIR device. (ushort)
parm:           CIR_WAKE_BASE:Base IO port address of 667/677 CIR WAKE device. (ushort)
parm:           CIR_WAKE_IRQ_NUM:IRQ number for 667/677 CIR WAKE device. (ushort)
parm:           nopnp:Scan for device instead of relying on PNP. (default 0) (uint)

Shouldnt this alias: pnp:dNTN0530* make it so the name would appear in "lspnp" ?
But "irw" does not show any response (i assume it would trigger with whatever remote i point and click on it? tried 4 different just to be sure.)

If anyone have any inputs at all, please let me know.

- goodmode
Reply
#2
After some sleep i noticed that "lspnp" says "00:0a NTN0530 (unknown)" and that "modinfo lirc_wb677" says "alias: pnp:dNTN0530*"

As you can see there is a "d" in the front which i assume is the reason why it wont work. Is there any way i can add NTN0530 as an alias to lirc_wb677 ?
Reply
#3
i somehow got it working after several hours of work (it replied on mode2 -d /dev/lirc0) -- then i was stupid enough to reboot and i cannot figure out what changed during that very boot.

Other than that the box is brilliant. Cheap and clean design. and doesnt come with crap you might want to customize yourself (hdd, mem, remote)
Reply
#4
When I look at the asus website it shows a different driver.

This is the driver they listed for windows:

Winbond CIR Driver
Reply
#5
Amelandbor Wrote:When I look at the asus website it shows a different driver.

This is the driver they listed for windows:

Winbond CIR Driver

Hi and thank you for your input! Smile

i disassembled the box last night only to learn it has the same chipset as the ASRock 330 (lirc_wb677) and i got those drivers working partly. I tried every combination and version i could find of it, only thing that works is:

dpkg -i winbond drivers from asrock x86.deb
dpkg -i winbond drivers from asrock x64.deb

And then it works _TILL_ i reboot, then i have to do it all over again.. i cannot for the life of me figure out where it goes wrong, x86 does not work alone, nor does x64.

The next step when i get home today will be to install ubuntu x86 10.10 and try only the x86 driver.

I will create a how-to as soon as i get it up and running.
Reply
#6
One thing that interests me about this box is: when you turn this box fully off (not suspend or hibernate), is it possible to wake it up with ir remote? Have you goodmode tried it?
Reply
#7
john4 Wrote:One thing that interests me about this box is: when you turn this box fully off (not suspend or hibernate), is it possible to wake it up with ir remote? Have you goodmode tried it?

Yes, i have tried it and its not possible with the PCH a-100 remote (which i didnt expect)

HOWEVER, there is a feature in the bios that says "enable wakeup from CIR" -- so i assume its possible, with the right remote.
Reply
#8
Would be great if that's possible.

Then this would be the box to replace my Asrock ION 330.
Reply
#9
Any progress goodmode??
Reply
#10
Amelandbor Wrote:Any progress goodmode??

Hi,

Sorry for not getting back to you guys earlier. I've been to Riga the last days and job is hectic.

Hopefully ill get the chance to try this "patch" that is out later tonight, but i have to recompile the kernel... which i've heard can take a few on these boxes.

I will try to get an update later tonight.

BTW: When im done with configuring the box 100%, i will be doing a step-by-step how to.
Reply
#11
Amelandbor Wrote:Any progress goodmode??

OH and btw, i tried the Winbond IR drivers both for x86- and x64-Ubuntu (each on the correct version ofc.)

On both boxes i have to them 2-3 times before they work (checked using mode2 -d /dev/lirc0) -- And the perish after a reboot.

God knows why
Reply
#12
New kernel being compiled now Smile I'll post the deb if anyone wants it when its done.. (and if it works!)

Probably will be done by the time i get off work!

*Cheers*
Reply
#13
I just picked one of these up today and it will turn on from a powered off state using a MCE remote.

Gonna try installing RC2 on it now to see if I can get the remote to work in XBMC proper.
Reply
#14
regs79 Wrote:I just picked one of these up today and it will turn on from a powered off state using a MCE remote.

Gonna try installing RC2 on it now to see if I can get the remote to work in XBMC proper.

really? im def. picking up a MCE!

Can you please tell me how you got IrDA working at all on this box? (properly.)
Reply
#15
To turn it on and off I just pointed the remote at it and hit the power button. It just worked out of the box.

In the BIOS which looks like version 0305 there's a setting called "Power On By Remote Control" which is under the "APM Configuration". This was on by default for me.

For XBMC I don't actually have any of it working yet. I'm currently using the the HDD from an older HTPC and haven't updated it in a while. I'm hoping that if I reinstall with the latest version the in built receiver will just work. I've found this to always been the case when using the big old MCE USB receiver.

Will let you know how I go.
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] IR/Lirc on s1-at5nm10e0