• This repository has been archived on 27/May/2024
  • Stars
    star
    124
  • Rank 288,207 (Top 6 %)
  • Language
    Shell
  • Created about 6 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Use android as second monitor for linux

Smartphone/tablet as second monitor for linux

Simple cli tool to create virtual monitor for Linux. You can use any remote desktop software(vnc,teamviewer ..) to connect to that monitor.

Review

Setup

The hard way (not that hard :3)

This script is example of Nexus 7 2013 as second monitor.You may need to change 1920 and 1200 to the resolution of your tablet screen. You may also need to change LVDS1 if the default monitor's name is different.

gtf 1920 1200 60 | grep -oP "\".+"

The output will be something similar to "1920x1200_60.00" 108.88 1920 1360 1496 1712 1200 1025 1028 1060 -HSync +Vsync. Copy everything into the next command.

xrandr --newmode "1920x1200_60.00" 108.88 1920 1360 1496 1712 1200 1025 1028 1060 -HSync +Vsync

xrandr --addmode VIRTUAL1 1920x1200_60.00

xrandr --output VIRTUAL1 --mode 1920x1200_60.00 --primary --right-of LVDS1

The easier way

  • Clone this git
    git clone https://github.com/ChipCE/Smartphone-tablet-as-second-monitor-for-linux
  • Change directory
    cd Smartphone-tablet-as-second-monitor-for-linux
  • Run install script as root and follow the instruction.
    sudo ./install.sh
  • run vmon setup to setup virtual monitor profile.
    This command need to be executed each time X server start.
  • run vmon enable to enable virtual monitor. If success, you will able to se an additional monitor in "display" setting.
  • Connect to host system using Teamviewr, VNC or any screen sharing program.
  • To disable vmon, run vmon disable

Configuration

vmon configuration

  • vmon config file are saved in /home/$USER/.vmon
  • You can add more custom resolution into resoluton.conf file.
  • Default resolution and default display(the main output display) can be set in vmon.conf.For more information about ouput displays and supported resolution profiles, run xrandr in terminal.

Other configuration (teamviewer)

  • To show cursor in tablet screen, enable "show remote cursor" in teamviewer(tablet).
  • To connect with wlan, enable "incomming lan connection" in Extras > Options(linux).
  • To connect via USB cable, you need adb installed and forward Teamviewer port with adb forward or enable USB Tethering in android setting.
  • To turn-off VIRTUAL1 output, run xrandr --output VIRTUAL1 --off

Troubleshooting

1.VIRTUAL1 not found error

If you get the output VIRTUAL1 not found error, create 20-intel.conf file:
sudo nano /usr/share/X11/xorg.conf.d/20-intel.conf Add the following configuration information into the file:

Section "Device"
    Identifier "intelgpu0"
    Driver "intel"
    Option "VirtualHeads" "2"
EndSection

and reboot.

2.Teamviewer error : Not ready. Please check your connection error

  • Check if teamviewerd has been started, if not start it
    systemctl start teamviewerd
  • install libicu and restart teamviewer.

More Repositories

1

WiFiMan

Wifi manager for ESP8266 with customizable web UI.
C++
68
star
2

Raspberry-pi-zero-console-hat

USB - UART interface for Raspberry Zero
23
star
3

Slicer-profile

Slicer profile for cutom build printer
Python
20
star
4

2018-Guide-to-Install-Ubuntu-desktop-13.04-on-Nexus-7-2012-and-Ubuntu-touch-15.04-on-Nexus-7-2013

2018 Guide to Install Ubuntu desktop 13.04 on Nexus 7 2012 and Ubuntu touch 15.04 on Nexus 7 2013
13
star
5

HevORT-lite

Lower cost, trim down version of MirageC79's HevORT corexy design
12
star
6

3d-printing

G-code
8
star
7

LGA775-Phoenix-bios-microcode-swapper

Tool to swap microcode in phoenix based BIOS.
C++
6
star
8

SprintLayout-macro

custom sprint layout macro
5
star
9

klipper-penguin-bridge

Simple tool exchange data with klipper via klipper variables
Python
5
star
10

Amadeus-theme-lightdm-gtk-greeter

CSS
3
star
11

juice-plus-pcb

Varios PCB design for 3D printers and drones
Python
2
star
12

thinkpad10-linux-config

2
star
13

dotfiles

Linux config files collection
Shell
2
star
14

tiny-power-monitor

Simple power monitor with Attiny85 ina219 ssd1306
C++
2
star
15

TH3D-Marlin2-EZBoard-cli-compiler

Python
2
star
16

chimera-probe

Experimental Hibryd micro switch + IR probe for 3d printer
1
star
17

Bear-upgrade-snakeoil-mod

Custom parts for bear upgrade
1
star
18

3d-design-resource

1
star
19

raspberry-cli-backup-tool

Shell
1
star
20

kiCad-library

Custom kiCad library
1
star
21

klipper-sd-bridge

Tool to "link" external sd card to klipper virtual-sd
1
star
22

TH3D-Unified-firmware-auto-compiler

Auto compile for TH3D Unified firmware
Python
1
star
23

raspi-nut-ups

Omron UPS NUT service installer for raspberry pi
Shell
1
star
24

ansible-tutorial

1
star