Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 571544 - x11-wm/awesome-3.5.6-r1:0 : multiple separate screens
Summary: x11-wm/awesome-3.5.6-r1:0 : multiple separate screens
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Coacher
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 545526
  Show dependency tree
 
Reported: 2016-01-11 12:47 UTC by Manfred Knick
Modified: 2016-04-14 14:38 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
add "epatch_user" to ebuild function src_prepare() (awesome-3.5.6-r1.ebuild__add__epatch_user.patch,438 bytes, patch)
2016-01-11 13:00 UTC, Manfred Knick
Details | Diff
reset focus if X11 screen changes (event.c__screen-changed.patch,450 bytes, patch)
2016-01-11 13:04 UTC, Manfred Knick
Details | Diff
sample xorg.conf.d : 2 VGA , 4 Monitors (xorg.conf.d.tar,20.00 KB, application/x-tar)
2016-01-11 13:07 UTC, Manfred Knick
Details
sample ~/.config/awesome/rc.lua (rc.lua,20.18 KB, text/x-lua)
2016-01-11 13:08 UTC, Manfred Knick
Details
sample ~/bin/ startup file for the three additional awesome sessions (awesome-on-four,253 bytes, text/plain)
2016-01-11 13:10 UTC, Manfred Knick
Details
sample ~/bin command file to setup the four session backgrounds (bg.awesome,349 bytes, text/plain)
2016-01-11 13:11 UTC, Manfred Knick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manfred Knick 2016-01-11 12:47:32 UTC
x11-wm/awesome-3.5.6-r1:0 has some problems 
when running on multiple _separate_ X11 screens.

This setup is also known as "ZapHod" mode : no TwinView, esp. no Xinerama.

The details are already provided UPSTREAM :

. . . https://github.com/awesomeWM/awesome/issues/598   ::   bug #598

"Regression:
 Multiple separate X11 screens setup (Zaphod, no Xinerama) fails; 
 WORKAROUND: start multiple instances"

Find attached patches which are specific for Gentoo.

Thanks.
Comment 1 Manfred Knick 2016-01-11 13:00:47 UTC
Created attachment 422556 [details, diff]
add "epatch_user" to ebuild function src_prepare()

"EAPI=5" provides "epatch_user" functionality:
enable it.
Comment 2 Manfred Knick 2016-01-11 13:04:01 UTC
Created attachment 422558 [details, diff]
reset focus if X11 screen changes

c.f. upstream bugs  #598  referencing fix in #607
Comment 3 Manfred Knick 2016-01-11 13:07:52 UTC
Created attachment 422560 [details]
sample xorg.conf.d : 2 VGA , 4 Monitors
Comment 4 Manfred Knick 2016-01-11 13:08:53 UTC
Created attachment 422562 [details]
sample ~/.config/awesome/rc.lua
Comment 5 Manfred Knick 2016-01-11 13:10:11 UTC
Created attachment 422564 [details]
sample ~/bin/ startup file for the three additional awesome sessions
Comment 6 Manfred Knick 2016-01-11 13:11:05 UTC
Created attachment 422566 [details]
sample ~/bin command file to setup the four session backgrounds
Comment 7 Manfred Knick 2016-01-11 13:24:55 UTC
# add "epatch_user" to ebuild function src_prepare()
I created my local ebuild into
. . . /usr/local/portage/local-overlay/x11-wm/awesome/

#  reset focus if X11 screen changes
This has to go into
. . . /etc/portage/patches/x11-wm/awesome-3.5.6-r1

# sample xorg.conf.d
Naturally, this has to be placed as
. . . /etc/X11/xorg.conf.d

# sample ~/.config/awesome/rc.lua
. . . startx /usr/bin/awesome -c ~/.config/awesome/rc.lua -- -layout Four

NOTABENE:
The following file names are referenced in this rc.lua "Menu" section:

#  sample ~/bin/ startup file for the three additional awesome sessions
I placed this as
. . . ~/bin/awesome-on-four

# sample ~/bin command file to setup the four session backgrounds
I placed this as
. . . ~/bin/bg.awesome
It is already prepared to have additional applications added on startup.
NOTABENE/
Comment 8 Manfred Knick 2016-01-11 18:53:18 UTC
Package-wise, I think it boils down to applying the backported patch

  https://bugs.gentoo.org/attachment.cgi?id=422558&action=diff

to Gentoo's awesome package.

The rest of the info should find it's way into some kind of "How-To" @ awesome.
Perhaps a hint can be added to the output of emerging awesome with portage, later.
Comment 9 Coacher 2016-01-14 11:59:19 UTC
Hello.

It seems x11-wm/awesome was abandoned by everyone else.
I am a new co-maintainer. Thank you very much for your contributions and info references. I've included your upstream patch and epatch_user support in 3.5.6-r2.
Please go ahead and try it.

commit b20d603e09c271470a4066f84456a71f2d10d7a0
Author: Ilya Tumaykin <itumaykin@gmail.com>
Date:   Thu Jan 14 14:35:53 2016 +0300

    x11-wm/awesome: revbump to 3.5.6-r2 wrt bug 571544

    Backport upstream fix for focus problems with multiple
    running awesome instances. Add epatch_user support.

    Gentoo-Bug: 571544

    Package-Manager: portage-2.2.26