Comments (11)
isn't this kind of too long?
from linux-sunxi.
I'm not tested <15 sec.
But 15sec is no problem to use hdmi. After connect cable we should wait <15sec.
from linux-sunxi.
isnt the original delay set at 200ms?
hdmi_delay_ms(200); @ drv_hdmi.c
from linux-sunxi.
Yes, you right. Then better to increase hdmi_delay_ms. And make suspend for it.
from linux-sunxi.
i have tesed 1sec with good response. but I believe 2 sec is reasonable for cutting down on the polling and getting a good detection.
from linux-sunxi.
thanks @Quarx2k for the fix. This is a long issue of Allwinner. I looked at this today. Another way to fix is to change in drivers/video/sun4i/hdmi/aw/hdmi_core.c function __s32 main_Hpd_Check(void); change the hdmi_delay_ms(1) to hdmi_delay_ms(10). i can not explain it with my current understanding of the kernel schedule. can anyone explain this?
from linux-sunxi.
I think that we could simply replace hdmi_delay_ms() with msleep(). Please correct me if I am wrong.
from linux-sunxi.
On Tue, Sep 11, 2012 at 6:19 PM, Aliaksei Katovich <[email protected]
wrote:
I think that we could simply replace hdmi_delay_ms() with msleep(). Please
correct me if I am wrong.yes, that also works. can anyone explain this?
โ
Reply to this email directly or view it on GitHubhttps://github.com/amery/linux-allwinner/issues/43#issuecomment-8455122.
Keep simple, stay foolish.
from linux-sunxi.
does msleep(1) produce the same effect as hdmi_delay_ms(1)?
from linux-sunxi.
On Tue, Sep 11, 2012 at 6:46 PM, Aliaksei Katovich <[email protected]
wrote:
does msleep(1) produce the same effect as hdmi_delay_ms(1)?
no. hdmi_delay_ms uses set_current_state(TASK_INTERRUPTIBLE), but msleep
uses schedule_timeout_uninterruptible(timeout). Interesting, i need to
google the difference between TASK_INTERRUPTIBLE and TASK_UNINTERRUPTIBLE.
but from hardware point of view, they are the same, wait for some time, and
check again.โ
Reply to this email directly or view it on GitHubhttps://github.com/amery/linux-allwinner/issues/43#issuecomment-8455695.
Keep simple, stay foolish.
from linux-sunxi.
On Tue, Sep 11, 2012 at 6:46 PM, Aliaksei Katovich
<[email protected]wrote:
does msleep(1) produce the same effect as hdmi_delay_ms(1)?no. hdmi_delay_ms uses set_current_state(TASK_INTERRUPTIBLE), but
msleep
uses schedule_timeout_uninterruptible(timeout). Interesting, i need to
google the difference between TASK_INTERRUPTIBLE and
TASK_UNINTERRUPTIBLE.
but from hardware point of view, they are the same, wait for some time,
and
check again.
I would anyway recommend to use plain msleep() here, regardless of your
findings. E.g. jiffies calculations like this (see. hdmi_delay_ms)
__u32 timeout = t*HZ/1000
look suspicious to me.
รข
Reply to this email directly or view it on
GitHub<https://github.com/amery/linux-allwinner/issues/43#issuecomment-
8455695>.--
Keep simple, stay foolish.โ
Reply to this email directly or [1]view it on GitHub.
[J6T91GIPIyhU-8ti4GCGP71oDyae5wcKbWrmQLuV4jMv0PuTIo6eLnz7eoGYz3O_.gif]References
from linux-sunxi.
Related Issues (20)
- GC2035 camera driver is unavailable at sunxi-next ? HOT 1
- sunxi-mmc 1c0f000.mmc: reset err -524 HOT 1
- Allwinner A33 -4.15.0-rc2-ga615204e7 - Logitech mouse - musb_hdrc error
- Best WiFi and Bluetooth IC for Sunxi
- thermal zone failes
- Ethernet and the h3-orangepi dts file HOT 1
- Can't get HDMI out on OrangePi One on sunxi-next HOT 2
- sunxi-next drm can't set unusual resolutions HOT 4
- Mainline: MMC-Error -110 on Vacuum HOT 4
- mainline 5.3-rc3: usb not working in otg mode
- FEL mode repeatedly connects and disconnects. Is this normal? HOT 3
- sunxi-mail seems to be down / unavailable HOT 1
- system can not login( 3.4.113-sun8i #6 )
- fbtft spi lcd not working after update to from 5.10.43 to 5.10.60 HOT 1
- Cedrus on A23
- sunxi-v3s uart1's reg can't operate HOT 2
- Error with toolchain compilation
- Include module kernel/drivers/iio/humidity/dht11.ko
- [Website] Website is down HOT 1
- sun8i-H3 NanoPi Neo Unable to wake from suspend with Power Button
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linux-sunxi.