Display only sample code for duplicate display

Tommy Huang 21 Reputation points
2024-10-18T00:33:23.3466667+00:00

Hi~

I try to compile the kernel mode display-only miniport for display adaptor.

However, when I install this driver into the system, then the duplicate display function is gone.

After removed this driver and install back inbox Microsoft basic display driver, the duplicate display function will come back again.

Does anyone know how to keep duplicate display function worked with this sample code?

BR,

Windows development Windows Driver Kit (WDK)
Windows for business Windows Server User experience Other
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2024-10-21T07:20:18.89+00:00

    Hello,

    The kernel-mode display-only miniport driver (KMDOD) is a minimal driver example provided for use with virtual machines. KMDOD drivers are not full-feature display drivers like those provided by graphics hardware manufacturers. They are intended to provide a basic display experience with minimal overhead.

    If you’re losing the ability to duplicate displays after installing your custom KMDOD driver, it’s likely because the sample does not include functionality for advanced features such as multiple monitor support, including duplicating displays. To maintain the duplicate display feature, you’ll need to implement the required multi-monitor support in your driver code.

    Here are some steps you should consider:

    The sample KMDOD driver likely requires extensions to support multi-monitor configurations. You would need to modify the driver’s source code to handle multiple paths for video output.

    You will need to dive into the Windows Display Driver Model (WDDM) and implement the necessary support for Enumerating GPU engine capabilities and handling multi-monitor scenarios. This includes supporting additional VidPN (Video Present Network) management operations.

    Make sure your modifications adhere to the WDDM requirements for multi-monitor setups, which would allow Windows to understand that your driver can handle more than one display output.

    Best Regards,

    Hania Lian

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.