Git Product home page Git Product logo

hidpi-daemon's Introduction

HiDPi-Daemon

What is this

Build to solve "topleft issues" on Hanckintosh after turning on the HiDPi and after first wake.

Like this:

How does it work

When the daemon start, it creats a wake/sleep events handler. refer Registering and unregistering for sleep and wake notifications

When wake detected, the handler will reset the resolution(by callinng /Applications/RDM.app/Contents/MacOS/SetResX) for you automatically then the daemon will unload it self.(Just because you don't need it for second wake)

To make sure it works: Install RDM.app as /Application/RDM.app Install hidpi-daemon as /usr/local/bin/hidpi-daemon

Run at start by creating/Library/LaunchDaemons/com.edward-p.hidpi.daemon.plist" using -o option. You can change by changing the following:

#define LAUNCHD_PATH "/Library/LaunchDaemons/com.edward-p.hidpi.daemon.plist"
#define STOP_DAEMON_COMMAND "launchctl unload /Library/LaunchDaemons/com.edward-p.hidpi.daemon.plist"

Usage

 Usage:	hidpi-daemon <[Options] [Values]> <[Option]>

 Options:

    -d	Default Resolution: 1920x1080 etc.
    -r	HiDPi(Retina) Resolution: 1600x900 etc.
    -o	Export launchd.plist to file.
    -h	Print this help.

 examples:

    hidpi-daemon -d 1920x1080 -r 1600x900
 Note:
    Assume that you have installed it as /usr/local/bin/hidpi-deamon
    Assume that you have installed RDM.app in /Application
    sudo hidpi-daemon -d 1920x1080 -r 1600x900 -o
        Then launchd.plist will appeared into /Library/LaunchDaemons
        as "com.edward-p.hidpi.daemon.plist"

hidpi-daemon's People

Watchers

James Cloos avatar 宁南 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.