Jump to content

AMD 5870m Laptop - Need help with wake from sleep and VGA Port auto disconnect.


Kuebeker
 Share

2 posts in this topic

Recommended Posts

There are 2 issues with my card which I need help resolving. 

 

 

#1 Main Display's Wake from Sleep displays weird colors and noise. 

- The resolution is OK. 

- I can barely read the text.

- HDMI port wake from sleep is perfect. 

- VGA is not tested, I don't have a VGA cable. 

 

 

#2 VGA Auto Port Disconnect.

This laptop has 2 external ports, one VGA and one HDMI. 

Note: A port is active when the IOReg flag ATY,ActiveFlags != 1

 

Both cannot work at the same time and according to IOREG the VGA port is the default port and is always active (ATY,ActiveFlags = 10) even if no monitor is pluggedin in while the HDMI is disabled (ATY,ActiveFlags = 1 ). When the HDMI cable is plugged in, the VGA port gets disconnected (ATY,ActiveFlags = 1 ) and the HDMI port activates (ATY,ActiveFlags = 40).

 

The effects of an always on VGA port is shown in the screenshot below: 

The desktop on the right is the VGA desktop. It is present even if no display is connected.. 

 

 

I need to find a way to force the VGA port disconnect.

Untitled.tiff

Link to comment
Share on other sites

Well I guess Ill answer my self. 

 

I disabled the VGA through Frambuffer. 

VGA Hotplug detect can not be changed by FrameBuffers. Next step, would be DSDT but I do not thick I will spend more time on this. HDMI hot plug detect works perfectly so the hell with VGA! 

 

Sleep works. 

I coped the following code in my _DMS method. 

I do not know what part of the code make work sleep or the combination needed, it just works. 

 

With the proper framebuffer selected there is no noise and no GPU freeze.  

"@0,display-link-component-bits",
Buffer (0x04)
{
    0x06, 0x00, 0x00, 0x00
},
"@0,display-pixel-component-bits",
Buffer (0x04)
{
    0x06, 0x00, 0x00, 0x00
},
"AAPL00,Dither",
Buffer (0x04)
{
    0x00, 0x00, 0x00, 0x00
},
"@0,display-dither-support",
Buffer (0x04)
{ 
    0x00, 0x00, 0x00, 0x00
},

I'ed like to thank my self the the good work I did.  :thumbsup_anim:

  • Like 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...