GithubHelp home page GithubHelp logo

vinayasathyanarayana / linux-second-screen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brunodles/linux-second-screen

0.0 0.0 0.0 9 KB

App use any android device as second monitor on linux

License: MIT License

Shell 100.00%

linux-second-screen's Introduction

linux-second-screen

App to use any android device as second monitor on linux.

How it will work

The app may have multiples MainActivities.

  1. Push the app using adb
  2. Ask device for it's resolution. (using adb or the app)
  3. Create a virtual display matching device answer
  4. Start vnc server
  5. Push host's configurations to device
  6. Start the app using adb
    We already made some of those things using a simple script.

The power of the script

Take a look at the monitor.sh.
This script will create the virtual monitor and start x11vnc server for you.
You only need to pass those parameters, if you want. The parameters could be passed in any order

  • Device resolution using [width]x[height], without bracets. Sample 800x600
  • -v - VIRTUAL display to be used. Sample v1, v2, v3
  • -left or `-right - the position of your device, related to you display
  • -hst - Subtract status bar size from virtual display
  • -hsb - Subtract system bar size from virtual display

Mixing with ADB?

Some Android device return can return the resolution throught command line.
To use that you will need to enable developer mode on your device. Check this to enable.
To finish you'll need to point your adb location inside the script file.
With this you don't need to pass any parameters to the script.
(This is only recomended for developers)

For those who aren't using a laptop.

In script file, there's a comment on top asking you to select one of those fisical.
So if you are using VGA or HDMI video output, comment fisical="LVDS1" and uncomment your video output.

if you still want to do it by hand

Follow this tutorial.

Similar apps

This app will be made by the rage because we have a lot of apps for all other platforms Only linux isn't supported by those apps.

Splashtop appear to have a beta, for linux.
\o/

linux-second-screen's People

Contributors

brunodles 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.