Code Monkey home page Code Monkey logo

m27q's Introduction

Gigabyte M27Q Settings Controller

This Python library allows you to control the Gigabyte M27Q settings via USB. Feel free to contribute further settings.

The initial implementation was based on this gist.

On Linux you might be required to create a udev rule in, e.g. /etc/udev/rules.d/10-local.rules to allow USB traffic to the monitor with:

SUBSYSTEM=="usb", ATTRS{idVendor}=="2109", ATTR{idProduct}=="8883", MODE="0666".

Example

This is a simple script to simulate the KVM switch button

from m27q import MonitorControl


with MonitorControl() as m:
    m.toggle_kvm()

m27q's People

Contributors

p403n1x87 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

m27q's Issues

Ways to switch inputs?

Another question - not an issue really.

On my monitor, I have a displayport and hdmi connected (not using USB-C or the KVM switch... since it seems to only work with the USB-C). If I attached a USB-C cord to run a script like this, could I modify the script to tell the monitor to switch inputs between the Displayport and HDMI?

My old BenQ monitor had a DDC/CI capabilities that allowed me to do this... which I really miss...

A Question Rather Than An Issue

First off, thanks for writing this. The placement of the KVM button on the monitor is quite awkward for my setup (left is my Macbook on a stand, middle is the monitor, right is another monitor propped up vertically and lined up on the monitor). Accessing the button would require me to constantly move the right monitor and I was looking for a remote (either a wired hardware or what) as a solution and came across your code.

Question though, upon reading you mentioned that its controlled via USB. If my Macbook is connected via the Thunderbolt port and my desktop is connected via USB-B type then any of the machines can trigger the "switch"?

But what if I want to connect a Raspberry Pi or an Arduino so that I have an accessible button on my desk, would any of the USB ports (aside from the USB C and USB-B) work? Or did you only mean "via upstream USB" ports?

Q: control multiple m27q monitors

Created a Github account just to comment on this, so if I'm leaving this in the wrong area I do apologize. I have been searching for a way to select the input on my 3 m27q monitors independently from my Windows machine for quite some time. As you probably already know, the OSD Sidekick app will only control one monitor. Would this even be possible? I'm by no means a coder.

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.