Disper is an on-the-fly command-line display switch utility. It is intended to be used just before giving a presentation with a laptop, when all one wants is that the beamer, which has just been connected, is able to show whatever you prepared. Reproducible: Always Steps to Reproduce: NVidia driver users can use nvidia-settings for screen switching, but it is not easy to automate, for instance, the use of the laptop in clamshell mode from command-line in a clean way. XRandR 1.2 compliant drivers are also supported by this application, thus providing an unified command line program.
Created attachment 200854 [details] media-video/disper-0.2.3.ebuild
Thank you for this ebuild, you may also want to investigate putting your ebuild in the sunrise overlay which is located at http://www.gentoo.org/proj/en/sunrise/. When/if the ebuild is put into sunrise, please let us know on this bug.
FYI - Ebuild/program installs and works perfectly here on my FX2700M
works HP EliteBook with amd64 and nVidia Quatro
Works with an HP EliteBook 8540w with amd64, advanced docking station with HP Compaq LA2405wg (24") external screen. Only issue is disper gives no ability to specify the relative offset. My metamode 2 metamodes are :- Docked backend: nvidia associated displays: DFP-0, DFP-3 metamode: DFP-0: 1920x1080 @1920x1080 +1920+120, DFP-3: 1920x1200 @1920x1200 +0+0 scaling: stretched, stretched Undocked backend: nvidia associated displays: DFP-0 metamode: DFP-0: 1920x1080 @1920x1080 +0+0 scaling: stretched What I ended up doing was positioning the screens using nvidia-settings, then exporting the disper settings into a file and re-loading the relevant settings, as appropriate.
Created attachment 276013 [details] media-video/disper-0.3.0.ebuild Rewritten ebuild for disper 0.3.0. Can be found along with disper-indicator 0.2.1 at: https://github.com/espenaf/espenaf-overlay
Created attachment 276029 [details] media-video/disper-0.3.0.ebuild fixes path to install python scripts
Working great here on amd64 with x11-drivers/nvidia-drivers-275.09.07. Now the VGA switch on my laptop is working as intended. I think that there is a small flaw in the ebuild. The dependency on python should be done with PYTHON_DEPEND instead of the DEPEND="dev-lang/python". Thank you for the ebuild :)
The ebuild did not work on my system for two reasons. First, my system uses python3 by default, and disper seems to require python2. Second, disper cannot output --help if no backends are availabe, hence the docs cannot be build as they rely on help2man executing disper --help. Please find the ebuild and patch attached which - make sure package depends on python 2 - set python version for the package to 2 and convert shebands accordingly - patch disper to delay backend initialization so help2man can work
Created attachment 309125 [details] python2/3 aware disper-0.3.0.ebuild
Created attachment 309127 [details] disper-0.3.0-delay_backend_init.patch
I submitted a bug concerning the early backend initialization and the issue is now fixed in the current head.