Git Product home page Git Product logo

evdipp's Introduction

evdipp

Build Status

Simple C++ wrapper for DisplayLink evdi library, with some example client code. Currently undocumented, but hopefully simple enough to be useful even as-is.

Contents

This project is a very simple example of how to write a complete client for DisplayLink's evdi/libevdi.

It includes:

  • a very thin C++ wrapper for the library, called libevdipp, which also includes a simple terminal-based example,
  • a simple Qt app which uses evdi to add an additional screen an show its contents in a window.

twoscreens

Building

You need cmake to build. EVDI is defined as external project which will be cloned from git as part of the build.

To build the example terminal app, you need libev/libev++ and Boost. To build the Qt example, you obviously need Qt 5 dev packages installed. If you're using recent Ubuntu, you can do it by executing

sudo apt-get install -y libboost-filesystem-dev libev-dev qtbase5-dev

Then, you can build it by pretty standard chain of commands:

mkdir build
cd build
export DEST=$HOME/target
cmake -DCMAKE_INSTALL_PREFIX=$DEST -DCMAKE_INSTALL_RPATH=$DEST/lib ..
make install

Running

Any client app for EVDI at the moment must be run by root to be able to function - so, using sudo is required.

Both example app, and the Qt client require an input file with an EDID of a monitor that they should connect to evdi. You can get one from any monitor you have (see /sys/class/drm/*/edid), or source it from the net - for example from Google's autotest project.

evdipp's People

Contributors

mlukaszek avatar eddie-064 avatar eddieracer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.