Package Details: disper 0.3.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: http://willem.engen.nl/projects/disper/
Licenses: GPL
Submitter: Schnouki
Maintainer: Schnouki
Last Packager: Schnouki
Votes: 118
Popularity: 0.723091
First Submitted: 2009-01-23 02:01
Last Updated: 2015-06-11 13:05

Latest Comments

1 2 3 Next › Last »

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?

Schnouki commented on 2012-06-18 12:02

I haven't upgraded to 302.17 yet, but it seems that this versions drops TwinView in favor of Xinerama. So you can probably just use xrandr, or graphical tools such as arandr.

peacememories commented on 2012-06-18 11:19

Disper is working again for me. (see previous problem)
Don't need it anymore, though. Switched to nouveau.

Anonymous comment on 2012-06-18 10:12

# 'disper -e -d auto'
could not switch to metamode 52: resolution not found

Seems like nvidia-302.17 broke disper. Are there any workarounds?