Package Details: disper 0.3.1.1-1

Git Clone URL: https://aur.archlinux.org/disper.git (read-only)
Package Base: disper
Description: An on-the-fly display switch utility, intended to be used on laptops, especially with nVidia cards.
Upstream URL: https://github.com/apeyser/disper
Licenses: GPL
Submitter: Schnouki
Maintainer: Schnouki (chimpanzee)
Last Packager: Schnouki
Votes: 119
Popularity: 0.882324
First Submitted: 2009-01-23 02:01
Last Updated: 2018-08-24 08:26

Latest Comments

1 2 3 Next › Last »

Schnouki commented on 2018-08-24 08:29

Cool, thanks a lot!

Don't forget to update the .SRCINFO file though (with the "mksrcinfo" command from the pkgbuild-introspection package). I just did it for your latest changes.

chimpanzee commented on 2018-08-23 15:21

@schnouki: Since the upstream hasn't been updated since 2013, I just uploaded to github, applied the patch, and updated the PKGBUILD to pull from there. Going forward, there is now somewhere for bug fixes to be applied.

Schnouki commented on 2018-08-23 14:52

@chimpanzee: Sorry, somehow I didn't see the AUR notifications until just now... I added you as a maintainer, feel free to push a new version with the patch! Thanks :)

(Also: for sharing patches, it's better to use Pastebin or another similar site. Personally I like http://ix.io a lot!)

chimpanzee commented on 2018-08-06 13:47

I don't know what the protocol is for sharing a patch here:

diff --git a/PKGBUILD b/PKGBUILD index ec195ca..c060296 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,9 +7,16 @@ arch=('any') url="http://willem.engen.nl/projects/disper/" license=('GPL') depends=('python2') -source=(http://ppa.launchpad.net/disper-dev/ppa/ubuntu/pool/main/d/disper/disper_${pkgver}.tar.gz) -md5sums=('4474f6c98078cfab24f49db744eb1e80') -sha256sums=('7cefe3b9837f304bca6a6622081cf91ecfb23307d5934216d32a12eb2ecb0bd1') +source=(http://ppa.launchpad.net/disper-dev/ppa/ubuntu/pool/main/d/disper/disper_${pkgver}.tar.gz disper_0.3.1-fix_init.patch ) +md5sums=('4474f6c98078cfab24f49db744eb1e80' + 'b14b8e21842eda8d13e35a13cf9b84be') +sha256sums=('7cefe3b9837f304bca6a6622081cf91ecfb23307d5934216d32a12eb2ecb0bd1' + 'fa9b9098c8252809f02a4b59a49c9079355a60a7c96e37eecfdaf4a619b206e8') + +prepare() { + cd "$srcdir/disper" + patch -p1 <../disper_0.3.1-fix_init.patch +}

build() { cd "$srcdir/disper" diff --git a/disper_0.3.1-fix_init.patch b/disper_0.3.1-fix_init.patch new file mode 100644 index 0000000..d1a6be7 --- /dev/null +++ b/disper_0.3.1-fix_init.patch @@ -0,0 +1,34 @@ +diff -Naur disper/src/xrandr/init.py disper-new/src/xrandr/init.py +--- disper/src/xrandr/init.py 2011-09-09 16:20:45.000000000 +0200 ++++ disper-new/src/xrandr/init.py 2016-07-28 15:33:34.391703460 +0200 +@@ -83,10 +83,20 @@ + + from core import Screen, xlib, rr + ++xopendisplay = None ++class Display(Structure): pass ++ ++def get_display(name): ++ global xopendisplay ++ if xopendisplay is None: ++ xopendisplay = xlib.XOpenDisplay ++ xopendisplay.restype = POINTER(Display) ++ return xopendisplay(name) ++ + def get_current_display(): + """Returns the currently used display""" + display_url = os.getenv("DISPLAY") +- dpy = xlib.XOpenDisplay(display_url) ++ dpy = get_display(display_url) + return dpy + + def get_current_screen(): +@@ -98,7 +108,7 @@ + + def get_screen_of_display(display, count): + """Returns the screen of the given display""" +- dpy = xlib.XOpenDisplay(display) ++ dpy = get_display(display) + return Screen(dpy, count) + + def get_version(): -

tazee commented on 2016-05-08 04:36

segfaults here too

uberGeek commented on 2015-12-15 04:19

segfaults here too

Lowe commented on 2015-10-07 11:29

Yup I get segfault when running it as well.

produnis commented on 2015-07-31 06:20

Does anyone have problems with disper giving a SegFault?

peacememories commented on 2012-06-21 12:35

This is... quite sexy O.O

Anonymous comment on 2012-06-18 12:59

Yeah, I can also confirm that with 302.17, Nvidia driver finally works with xrandr now.

So I guess we no longer need disper?