Giter VIP home page Giter VIP logo

Comments (2)

MErenB avatar MErenB commented on May 27, 2024 2

TL;DR
VirtScreen was not working for me. I manually adjusted the second monitor setup myself using HDMI-1-1 port instead of VIRTUAL1. After that, VirtScreen started working with HDMI-1-1 port without any errors.

Hello @bogdanmitsevski. I have Nvidia graphics card in my laptop and I don't have the VIRTUAL1 option as well.

image

You can see the available display outputs for me. I tried them one by one and selecting every one of them resulted in some long error. You can see it below.

image

I manually extend my monitor without VirtScreen. After that, magically VirtScreen started working. Maybe the VirtScreen runs these commands with additional flags and they cause the error, I don't know.

I suggest that ignore any error message and proceed. It worked for me despite a lot of error messages.

  1. Obtain the required information about the resolution. Change the 1920 1080 resolution values if you like.
    $ cvt 1920 1080

  2. Copy the part of the cvt output and paste it shown below. This will make the output named "1920x1080_60.00" accessible.
    $ xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync

  3. Add this new mode to one of the available display outputs. (HDMI-0 or DVI-0 for your case.)
    $ xrandr --addmode HDMI-0 1920x1080_60.00

  4. Finally place the new screen relative to the main screen.
    $ xrandr --output HDMI-0 --mode 1920x1080_60.00 --left-of eDP-1-1

To find what is your main screen:
$ xrandr -q
and in the output find the one that says connected primary bla bla..

  1. At this step, download the arandr, open it and see if HDMI-0 (or which output you choose) is there.
    $ sudo apt-get install arandr
    $ arandr

image
ARandR is the GUI for these stuff. We can see HDMI-1-1 there!

  1. Run the x11vnc and test if the system works.
    $ x11vnc -repeat -forever -nopw -multiptr

Now try to connect from your tablet. x11vnc uses port 5900 as default.

This comment contains the knowledge I gathered after I was unable to make VirtScreen work. Hope it helps you or anyone interested :)

from virtscreen.

SotchNam avatar SotchNam commented on May 27, 2024

your trick used to work but probably after some updates or idk, it no longer works, i had this handy script which i used:

sudo xrandr --newmode "2400x1080_60.00"  216.00  2400 2552 2808 3216  1080 1083 1093 1120 -hsync +vsync
sudo xrandr --addmode HDMI-A-0 2400x1080_60.00
sudo xrandr --output HDMI-A-0 --mode 2400x1080_60.00 --left-of eDP

but now whenever i try to run it, the whole system crashes, i get a frozen screen and journalctl shows the following

Jun 30 03:19:13 T14Station sudo[55139]:    sotch : TTY=pts/0 ; PWD=/home/sotch ; USER=root ; COMMAND=>
Jun 30 03:19:13 T14Station sudo[55139]: pam_unix(sudo:session): session opened for user root(uid=0) b>
Jun 30 03:19:14 T14Station sudo[55139]: pam_unix(sudo:session): session closed for user root
Jun 30 03:19:14 T14Station kernel: BUG: kernel NULL pointer dereference, address: 0000000000000054
Jun 30 03:19:14 T14Station kernel: #PF: supervisor read access in kernel mode
Jun 30 03:19:14 T14Station kernel: #PF: error_code(0x0000) - not-present page
Jun 30 03:19:14 T14Station kernel: PGD 0 P4D 0 
Jun 30 03:19:14 T14Station kernel: Oops: 0000 [#1] PREEMPT SMP NOPTI
Jun 30 03:19:14 T14Station kernel: CPU: 8 PID: 39298 Comm: kworker/u32:5 Tainted: G           OE     >
Jun 30 03:19:14 T14Station kernel: Hardware name: LENOVO 20XGS05S03/20XGS05S03, BIOS R1NET50W (1.20) >
Jun 30 03:19:14 T14Station kernel: Workqueue: events_unbound commit_work

Any idea? Thanks

from virtscreen.

Related Issues (20)

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.