userspace hdmi detection

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

userspace hdmi detection

跳至解决方案
2,760 次查看
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,164 次查看
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,164 次查看
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,164 次查看
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,165 次查看
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 项奖励
回复