Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R/W DPCD through AUX channel #35

Open
qingniaoheyu opened this issue Oct 10, 2020 · 1 comment
Open

R/W DPCD through AUX channel #35

qingniaoheyu opened this issue Oct 10, 2020 · 1 comment

Comments

@qingniaoheyu
Copy link

Hi!
I'm working on an soft which can operate DPCD through AUX channel.
My thought is use NvAPI_GetDisplayPortInfo/NvAPI_SetDisplayPort to accomplish that,but when I dont know how to call original NvAPI(a.k.a. the low-level AP),could you please make it more specific for me(I've tried Delegate.NvAPI_GetDisplayConfig(),but didnot work)?

@falahati
Copy link
Owner

falahati commented Oct 10, 2020

Neither of these functions is supported as of now. Unfortunately. (NvAPI_GetDisplayPortInfo/NvAPI_SetDisplayPort)
You can add support fairly easily. You just need to put some time and check how other functions work so as to have some idea about the structure of the library and tools and helpers at your disposal.

The right way to call a supported function is either directly calling the low-level API via the GpuApi, DisplayApi, GeneralApi, or MosaicApi static classes or use the high-level abstraction classes to achieve the same result.
Regarding NvAPI_GetDisplayConfig, you can use the following code:

using NvAPIWrapper.Native;
var configs = DisplayApi.GetDisplayConfig();

or

using NvAPIWrapper.Display;
var paths = PathInfo.GetDisplaysConfig();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants