在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):brunodles/linux-second-screen开源软件地址(OpenSource Url):https://github.com/brunodles/linux-second-screen开源编程语言(OpenSource Language):Shell 100.0%开源软件介绍(OpenSource Introduction):linux-second-screenScripts to repurpose old android device as second monitor on linux WarnningThis script is using Legacy nVidea Driver and may not be compatible anymore. It was created on 2017 and it's not actively maintained. Please be carefull if you insist to use it. One alternative cold be using the evdi kernel module. Look here for more details. UsageThis repo have many bash scripts to interact with android using adb. Each script have it's own function. DeviceA simple wrapper to select target device by name. Add device
Usage
DisplayChange host (linux) display settings. With this script we can create, change settings or remove of virtual displays. It does not care about positioning the virtual displays, this should be done using your favorite monitor app. E.g.: xrandr, arandr or some other you like. droidGeneral commands for android. This script is a wrapper for adb, with it we can:
inputAn reimplementation of input script on android. Some devices doesn't have tap and swipe command, so this script tries to reprotuce theses commands. keyboardSend multiple KEY_EVENTS in a single string.
The idea here is to simplify the way to send keyboard inputs.
This script replaces
terminalThis script is a wrapper to interact with screen, a screen manager for terminal. Using screen we can share a terminal session like. The idea is use it like a vnc, and connect other devices to keep a terminal session running on then like server logs or status. vncA wrapper for vnc commands. We have only two commands here:
SetupFirst we need to run setup to install all tools we need to run this. There are tools that we doesn't provide, like adb (Android Debug Bridge), it comes with android sdk. You will have to setup adb into your path. Then run setup. You will be prompt to put your password to install necessary tools. We may split setup into multiple phases later, for optional instalation.
Restart you computer, if you created virtual display.
When you login again you will see How to create a extended display? - Intel's graphic card onlyWith these scripts it gets simple. But we still need to make some touches to make then integrated. may I make this on main. I high recomend you to write a script to start your own devices, this will make your life a lot easier. So I will write the step-by-step in a script-like. Step 1 - get information from your deviceWe need to know the resolution from our device, it's orientation and screen size inches. Based on these two informations we can create one virtual display.
Step 2 - calculate virtual display resolutionNow we have the resolution let's calculate an virtual display size
Step 3 - set virtual display resolutionLet's set the resolution for display 1. Depending on orientation we change order of width and height.
Step 4 - share display on vnc
Step 5 - share vnc connection directly to device
Here we can also use Step 6 - cleanShutdown display and remove configurations from it.
if you still want to do it by handFollow this tutorial. Similar apps
Splashtop appear to have a beta, for linux. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论