Locate built in Infrared Reciever for VM passthrough


Recommended Posts

MB: Biostar TA970

Super IO Chip: ITE IT8728F

CIR Controller IO=220h; IRQ=10;

 

It is located at /dev/ttyS0/ at least, as near as I can tell... more on this later.

 

Based on the Kodi wiki I tried to look at the devices...

 

Output of cat /proc/bus/input/devices (doesn't look too good):

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
U: Uniq=
H: Handlers=kbd
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
U: Uniq=
H: Handlers=kbd
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/devices/platform/pcspkr/input/input2
U: Uniq=
H: Handlers=kbd
B: PROP=0
B: EV=40001
B: SND=6

 

lspci (both with the CIR on, and off in the BIOS... no change):

root@Server:~# lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (external gfx0 port B) (rev 02)
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD/ATI] RD990 I/O Memory Management Unit (IOMMU)
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port B)
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port D)
00:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port H)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
00:15.1 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 1)
00:15.2 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB900 PCI to PCI bridge (PCIE port 2)
00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 5
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cedar HDMI Audio [Radeon HD 5400/6300 Series]
02:00.0 RAID bus controller: Marvell Technology Group Ltd. MV64460/64461/64462 System Controller, Revision B (rev 01)
03:00.0 SCSI storage controller: HighPoint Technologies, Inc. RocketRAID 230x 4 Port SATA-II Controller (rev 02)
06:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)

 

 

I have the below suggestion (unRAID gives me an error when added to the XML):

 

I would guess it is serial based, so you might be able to use this for passing through

<hostdev mode='capabilities' type='misc'>
  <source>
    <char>/dev/ttyS0</char>
  </source>
</hostdev>

Where /dev/ttyS0 is the device you are passing through. You will have to change it to match your device.

Link to comment

i'm going to ask the obvious question...

 

do you have the optional cir receiver they mention here ?

 

http://www.biostar.com.tw/app/en/support/faq_content.php?S_ID=700

 

it seems that it is just a header until you get another part...

 

but it could be lost in translation as it mostly in pictograms

 

Sounds like he has it:

 

lspci (both with the CIR on, and off... no change):

 

But looking at the link sparkly provided...did you also enable it in the BIOS?

 

Please follow the instruction here for enable the CIR function.

 

1. You will need to Enable the CIR device in BIOS. It's under BIOS>Advanced>Super IO> CIR controller.

If you don't Enable it, CIR driver will not install properly due to unable to detect the CIR device.

Link to comment
Did you try with the different /dev/ttySX?

 

The XML gives an error when trying to save it.

 

i'm going to ask the obvious question...

 

do you have the optional cir receiver they mention here ?

 

http://www.biostar.com.tw/app/en/support/faq_content.php?S_ID=700

 

it seems that it is just a header until you get another part...

 

but it could be lost in translation as it mostly in pictograms

 

Yes, it is installed and enabled, it has worked previously when this was a bare metal HTPC motherboard.

 

In the unraid command line, what does this command return:

 

setserial -g /dev/ttyS[0123]

 

Or this...

 

dmesg | grep tty

 

John

 

setserial -g /dev/ttyS[0123]
/dev/ttyS0, UART: unknown, Port: 0x03f8, IRQ: 4

 

Which doesn't line up with what the BIOS tells me, however, if it works. It works.

 

I'm also guessing by the "UART: unkown" that means that the driver isn't part of unRAID, so it can't be passed anyway. Is that correct?

Link to comment
  • 1 month later...

Whoops, kind of forgot about this... it is /dev/ttyS0/

 

I guess the other big point is how do I go about installing the driver for this? I have a second board I can play with with say... OpenELEC or some other distro installed it for testing without having to take my unRAID box offline.

 

Edit:

 

I looked at the Windows INF driver and it's a ITECIR, the *nix driver for which is apparently here... however, I know dick all about building my own driver/kernel for *nix

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.