userspace hdmi detection

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

userspace hdmi detection

ソリューションへジャンプ
2,830件の閲覧回数
allanmatthew
Contributor IV

How would it be possible for a userspace application to detect the status of the HDMI connection on the i.mx6?  For instance, when the HDMI is connected to a monitor, I'd like to start a process.

0 件の賞賛
返信
1 解決策
2,234件の閲覧回数
Sasamy
Contributor IV

Hi Allan,

cable connection status can be seen in sysfs

linux-2.6-imx.git - Freescale i.MX Linux Tree

# find /sys -name cable_state

/sys/devices/soc0/soc.0/20e0000.hdmi_video/cable_state

# cat /sys/devices/soc0/soc.0/20e0000.hdmi_video/cable_state

plugin

# cat /sys/devices/soc0/soc.0/20e0000.hdmi_video/cable_state

plugout

Alexander

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,234件の閲覧回数
art
NXP Employee
NXP Employee

Please refer to the Chapter 16 of the i.MX6 Series Linux BSP Reference Manual document, available as the part of the L3.14.28_1.0.0_LINUX_DOCS bundle on the Freescale web site (check the "Supporting Information" section):

http://www.freescale.com/products/arm-processors/i.mx-applications-processors-based-on-arm-cores/i.m...

In particular, it describes the hotplug detection capability of the L3.14.28 BSP HDMI driver.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
2,234件の閲覧回数
allanmatthew
Contributor IV

Hi Artur-

Thanks for this.  I looked through the documentation, but theres nothing obvious to me about the HPD status getting exposed to userspace.  It looks like it only generates an interrupt that the HDMI driver handles.

Is there a way to view the HPD status in userspace, like in sysfs or /proc?  Or do I need to look at a memory mapped register?

-Allan

0 件の賞賛
返信
2,235件の閲覧回数
Sasamy
Contributor IV

Hi Allan,

cable connection status can be seen in sysfs

linux-2.6-imx.git - Freescale i.MX Linux Tree

# find /sys -name cable_state

/sys/devices/soc0/soc.0/20e0000.hdmi_video/cable_state

# cat /sys/devices/soc0/soc.0/20e0000.hdmi_video/cable_state

plugin

# cat /sys/devices/soc0/soc.0/20e0000.hdmi_video/cable_state

plugout

Alexander

0 件の賞賛
返信