Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 281024

Summary: New ebuild: media-video/disper-0.2.3
Product: Gentoo Linux Reporter: José María Fernández González <josemariafg>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: CONFIRMED ---    
Severity: enhancement CC: denilsonsa, gentoo, jesse, mlist, peach
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://willem.engen.nl/projects/disper/
Whiteboard: EBUILD
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 621570    
Attachments: media-video/disper-0.2.3.ebuild
media-video/disper-0.3.0.ebuild
media-video/disper-0.3.0.ebuild
python2/3 aware disper-0.3.0.ebuild
disper-0.3.0-delay_backend_init.patch

Description José María Fernández González 2009-08-10 18:45:56 UTC
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.
Comment 1 José María Fernández González 2009-08-10 18:46:51 UTC
Created attachment 200854 [details]
media-video/disper-0.2.3.ebuild
Comment 2 James Earl Spahlinger 2009-08-10 20:39:03 UTC
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.

Comment 3 David Smith 2010-03-11 23:02:56 UTC
FYI - Ebuild/program installs and works perfectly here on my FX2700M
Comment 4 Ortwin Glueck 2011-03-10 08:35:29 UTC
works HP EliteBook with amd64 and nVidia Quatro
Comment 5 Lyall Pearce 2011-04-08 00:43:26 UTC
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.
Comment 6 Espen Fossen 2011-06-06 13:43:41 UTC
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
Comment 7 Espen Fossen 2011-06-06 15:29:34 UTC
Created attachment 276029 [details]
media-video/disper-0.3.0.ebuild

fixes path to install python scripts
Comment 8 Alex Domingo 2011-07-17 12:06:37 UTC
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 :)
Comment 9 sg313 2012-04-16 09:45:45 UTC
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
Comment 10 sg313 2012-04-16 09:46:49 UTC
Created attachment 309125 [details]
python2/3 aware disper-0.3.0.ebuild
Comment 11 sg313 2012-04-16 09:47:30 UTC
Created attachment 309127 [details]
disper-0.3.0-delay_backend_init.patch
Comment 12 sg313 2012-04-16 10:39:39 UTC
I submitted a bug concerning the early backend initialization and the issue is now fixed in the current head.