Re: Windows opening on wrong screen

2014-09-02 Thread Elv1313 .
Maybe one if the XCB "request" move it somewhere else. I am not sure
of that as I can't reproduce the issue (I have 5 screens, but with
Xineramma). You can try with Tyrannical (
https://github.com/Elv13/tyrannical ) as it disable some of those, I
am not sure. You can use the sample rc.lua to test using the Awesome
"-c" option. Some of the x property request are handled in strange
way. It may be while you have this bug. Without further debugging, I
can't tell. Tyrannical try to turn off some of those size/tag/position
request and replace them with its own, this is why there is a slim
chance it will bypass the bug.

On 2 September 2014 18:54, Andre Naujoks  wrote:
> Hu.
>
> Somewhere the list must have fallen of the e-mail-train. Putting the
> list back on. Sorry!
>
> Regards
>   Andre
>
> On 02.09.2014 14:18, David Sorkovsky wrote:
>>
>> Hi Andre,
>>
>> When I was playing with it I added a keyboard command something like the
>> following (can't remember exact syntax for sure) ...
>>
>>   awful.key({ modkey,   }, "i",
>>
>> function (c)
>>
>> naughty.notify({ text=screen })
>>
>> end),
>
> Hi again.
>
> I tried this:
>
> awful.key({ modkey, "Shift"   }, "i", function ()
> naughty.notify({text=mouse.screen}) end),
>
> and it worked as expected. I.e. it shows the correct  screen the mouse
> is currently on as a number in the top right of my primary screen.
>
>
> However, I looked a little bit deeper into the issue. Correct me if I am
> wrong, but for the "start-terminal" (and probably all others) case the
> final function called is spawn(...) in the file spawn.c!?
>
> If this is the case, then awesome must be doing some unusual stuff.
>
> I wrote the attached very simple test program.
> Compilable with
>
> gcc spawner.c -o spawner $(pkg-config --cflags --libs glib-2.0)
>
> This program opens a terminal on the screen the mouse is currently on
> (it does this so by itself by calling g_spawn_async, no thanks to me) in
> the same way (I think!) as awesome does.
>
> This works for fluxbox, gnome, kde and xfce on all my three screens.
> in awesome it works on the center and the left screen but not on the
> right screen. I infer from this, that the problem has nothing (or
> something very weird) to do with my setup.
>
> I don't know what to do without diving into the code of glib, which I'd
> like to avoid.
>
> Any ideas?
>
> Regards
>   Andre
>
>>
>>
>> -Original Message-
>> From: Andre Naujoks [mailto:nauts...@gmail.com]
>> Sent: Tuesday, 2 September 2014 9:51 PM
>> To: David Sorkovsky
>> Subject: Re: Windows opening on wrong screen
>>
>> On 02.09.2014 11:07, David Sorkovsky wrote:
>>>
>>> I think this is what you'd use, but I'm not sure how the different 'Y'
>>> resolutions will work. Note: This is my entire xorg.conf - None of the
>>> other stuff seems to be necessary
>>>
>>
>> I gave that config a shot. I had to replace the "LeftOf" and "RightOf"
>> options with absolute "Position" options and readded my mouse settings.
>>
>> The config works (and I will keep using it, thanks!), but the issue on the
>> right screen persists.
>>
>> I will try and debug this tonight. I don't see very big chances of me
>> finding something, but I'll give it a shot.
>>
>> Any hints on where to start looking would be greatly appreciated. The
> first
>> thing for me would be to check if the functions, which determine the
> current
>> screen behave correctly.
>>
>> Regards
>>   Andre
>>
>>>
>>> Section "Monitor"
>>>  Identifier   "DisplayPort-0"
>>>  VendorName   "DEL"
>>>  ModelName"DELL U2711"
>>>  Option  "PreferredMode" "2560x1440"
>>>  Option  "LeftOf" "HDMI-0"
>>> EndSection
>>>
>>> Section "Monitor"
>>>  Identifier  "HDMI-0"
>>>  VendorName  "GSM"
>>>  ModelName   "W2452"
>>>  Option  "PreferredMode" "1920x1200"
>>>  Option  "LeftOf" "DVI-0"
>>> EndSection
>>>
>>> Section "Monitor"
>>>  Identifier  "DVI-0"
>>>  VendorName  "PHL"
>>>  ModelName   "Philips 241SL"
>&

Re: Windows opening on wrong screen

2014-09-02 Thread Andre Naujoks
Hu.

Somewhere the list must have fallen of the e-mail-train. Putting the
list back on. Sorry!

Regards
  Andre

On 02.09.2014 14:18, David Sorkovsky wrote:
>
> Hi Andre,
>
> When I was playing with it I added a keyboard command something like the
> following (can't remember exact syntax for sure) ...
>
>   awful.key({ modkey,   }, "i",
>   
> function (c)
>   
> naughty.notify({ text=screen })
>   
> end),

Hi again.

I tried this:

awful.key({ modkey, "Shift"   }, "i", function ()
naughty.notify({text=mouse.screen}) end),

and it worked as expected. I.e. it shows the correct  screen the mouse
is currently on as a number in the top right of my primary screen.


However, I looked a little bit deeper into the issue. Correct me if I am
wrong, but for the "start-terminal" (and probably all others) case the
final function called is spawn(...) in the file spawn.c!?

If this is the case, then awesome must be doing some unusual stuff.

I wrote the attached very simple test program.
Compilable with

gcc spawner.c -o spawner $(pkg-config --cflags --libs glib-2.0)

This program opens a terminal on the screen the mouse is currently on
(it does this so by itself by calling g_spawn_async, no thanks to me) in
the same way (I think!) as awesome does.

This works for fluxbox, gnome, kde and xfce on all my three screens.
in awesome it works on the center and the left screen but not on the
right screen. I infer from this, that the problem has nothing (or
something very weird) to do with my setup.

I don't know what to do without diving into the code of glib, which I'd
like to avoid.

Any ideas?

Regards
  Andre

>
>
> -Original Message-
> From: Andre Naujoks [mailto:nauts...@gmail.com]
> Sent: Tuesday, 2 September 2014 9:51 PM
> To: David Sorkovsky
> Subject: Re: Windows opening on wrong screen
>
> On 02.09.2014 11:07, David Sorkovsky wrote:
>>
>> I think this is what you'd use, but I'm not sure how the different 'Y'
>> resolutions will work. Note: This is my entire xorg.conf - None of the
>> other stuff seems to be necessary
>>
>
> I gave that config a shot. I had to replace the "LeftOf" and "RightOf"
> options with absolute "Position" options and readded my mouse settings.
>
> The config works (and I will keep using it, thanks!), but the issue on the
> right screen persists.
>
> I will try and debug this tonight. I don't see very big chances of me
> finding something, but I'll give it a shot.
>
> Any hints on where to start looking would be greatly appreciated. The
first
> thing for me would be to check if the functions, which determine the
current
> screen behave correctly.
>
> Regards
>   Andre
>
>>
>> Section "Monitor"
>>  Identifier   "DisplayPort-0"
>>  VendorName   "DEL"
>>  ModelName"DELL U2711"
>>  Option  "PreferredMode" "2560x1440"
>>  Option  "LeftOf" "HDMI-0"
>> EndSection
>>
>> Section "Monitor"
>>  Identifier  "HDMI-0"
>>  VendorName  "GSM"
>>  ModelName   "W2452"
>>  Option  "PreferredMode" "1920x1200"
>>  Option  "LeftOf" "DVI-0"
>> EndSection
>>
>> Section "Monitor"
>>  Identifier  "DVI-0"
>>  VendorName  "PHL"
>>  ModelName   "Philips 241SL"
>>  Option  "PreferredMode" "1920x1080"
>>  Option  "RightOf" "HDMI-0"
>> EndSection
>>
>> Section "Device"
>>  Identifier  "Card0"
>>  Driver  "radeon"
>> EndSection
>>
>> Section "Screen"
>>  Identifier  "Screen"
>>  Device  "Card0"
>>  Monitor "DisplayPort-0"
>>  DefaultDepth 24
>>   SubSection "Display"
>>  Viewport0 0
>>  Depth   24
>>  Modes   "2560x1440" "1920x1200" "1920x1080"
>>  Virtual 6400 1440
>>  EndSubSection
>> EndSection
>>
>> -Original Message-
>> From: Andre Naujoks [mailto:nauts...@gmail.com]
>> Sent: Tuesday, 2 September 2014 5:18 PM
>> To: David Palacio; awesome@naquadah.org
>> Subject: Re: Windows opening on wrong screen
>>
>>

RE: Windows opening on wrong screen

2014-09-02 Thread David Sorkovsky
 
Hi Andre,

I also had a lot of trouble getting my system just right. I did lots of
playing with xorg.conf and with two screens from the built in graphics
controller of my CPU and this is my final config (two monitors but just one
screen)...

Section "Monitor"
Identifier  "HDMI1"
VendorName  "Samsung"
ModelName   "?"
Option  "PreferredMode" "1920x1080"
Option  "RightOf" "HDMI2"
EndSection

Section "Monitor"
Identifier  "HDMI2"
VendorName  "BenQ"
ModelName   "?"
Option  "PreferredMode" "1920x1080"
Option  "LeftOf" "HDMI1"
EndSection

Section "Device"
Identifier  "MotherboardVideo"
Driver  "intel"
VendorName  "Intel Corporation Xeon E3-1200 v2/3rd Gen
Core processor Graphics Controller (rev 09)"
EndSection

Section "Screen"
Identifier  "Screen"
Device  "MotherboardVideo"
Monitor "HDMI2"
DefaultDepth24
  SubSection "Display"
Viewport0 0
Depth   24
Modes   "1920x1080" "1920x1080"
Virtual 3840 1080
EndSubSection
EndSection

I got the identifiers from the "xrandr" info, so looking at yours, you'd
probably have "DisplayPort-0", "HDMI-0" and "DVI-0" where I have "HDMI1" and
"HDMI2"

Nice things was no Xinerama which seems to be the preferred way!

-Original Message-
From: Andre Naujoks [mailto:nauts...@gmail.com] 
Sent: Tuesday, 2 September 2014 5:18 PM
To: David Palacio; awesome@naquadah.org
Subject: Re: Windows opening on wrong screen

On 02.09.2014 03:23, David Palacio wrote:
> El Lun 01 Sep 2014 11:15:36 Andre Naujoks escribió:
>> Hi.
>>
>> I am just giving awesome a try and like it so far. I am on a debian 
>> sid with awesome version 3.4.15-1+b1.
>>
>> It has one quirk, where I think it is a bug.
>>
>> When I open a window (say a terminal with Mod4 + Return, but the 
>> application does not matter.), the window should apear on the current 
>> active screen. This works for two of my three screens, but not for 
>> the third. The same happens when I open a window via the 
>> right-mouse-click menu from the desktop, or when I use the top left 
>> button to bring up the menu.
>>
>> - I select the screen by either moving the mouse into it, or
Mod4+Ctrl+j/k.
>> - I start an application on my right-most screen and the window opens 
>> on my primary/center screen.
>>
>> I attached a screenshot of my layout, so you get an idea of what I am 
>> talking about. (the black stripes above the left and right screen are 
>> unused, i.e. the monitors end where the menu-bar is)
>>
>> As mentioned it works for the left and the center screen, but not for 
>> the right one.
>>
>> Am I doing something wrong or is this a bug? I am not familiar enough 
>> with lua or window managers at all to try my hand at this, but I can 
>> test and try patches.
>>
>> Regards
>>   Andre
> Hi Andre,
> 
> As you mention three screens I suspect you may be using two separated 
> GPUs at the same time in the same X screen. That is not well supported in
Awesome 3.4.
> I used to use three screens on a PC with a NVidia and integrated Intel 
> GPUs and ran into many problems with it. To improve my setup I made 
> some modifications to Awesome. You can check and compile it at:
> 
> https://github.com/dpalacio/awesome-randr-zaphod
> 
> It works in Zaphod mode and with video drivers that support RandR
extension. 
> It does not support Xinerama.
> 

Hi David,

Hm. I am not using two GPUs. Just one Radeon HD 6870 with four outputs, of
which three are used. My other E-Mail in reply to Elv1313 contains my
xorg.conf and an xrandr output. Maybe there is something borked there, but I
didn't have such problems before.

Regards
  Andre

--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


Re: Windows opening on wrong screen

2014-09-02 Thread Andre Naujoks
On 02.09.2014 03:23, David Palacio wrote:
> El Lun 01 Sep 2014 11:15:36 Andre Naujoks escribió:
>> Hi.
>>
>> I am just giving awesome a try and like it so far. I am on a debian sid
>> with awesome version 3.4.15-1+b1.
>>
>> It has one quirk, where I think it is a bug.
>>
>> When I open a window (say a terminal with Mod4 + Return, but the
>> application does not matter.), the window should apear on the current
>> active screen. This works for two of my three screens, but not for the
>> third. The same happens when I open a window via the right-mouse-click
>> menu from the desktop, or when I use the top left button to bring up the
>> menu.
>>
>> - I select the screen by either moving the mouse into it, or Mod4+Ctrl+j/k.
>> - I start an application on my right-most screen and the window opens on
>> my primary/center screen.
>>
>> I attached a screenshot of my layout, so you get an idea of what I am
>> talking about. (the black stripes above the left and right screen are
>> unused, i.e. the monitors end where the menu-bar is)
>>
>> As mentioned it works for the left and the center screen, but not for
>> the right one.
>>
>> Am I doing something wrong or is this a bug? I am not familiar enough
>> with lua or window managers at all to try my hand at this, but I can
>> test and try patches.
>>
>> Regards
>>   Andre
> Hi Andre,
> 
> As you mention three screens I suspect you may be using two separated GPUs at 
> the same time in the same X screen. That is not well supported in Awesome 
> 3.4. 
> I used to use three screens on a PC with a NVidia and integrated Intel GPUs 
> and ran into many problems with it. To improve my setup I made some 
> modifications to Awesome. You can check and compile it at:
> 
> https://github.com/dpalacio/awesome-randr-zaphod
> 
> It works in Zaphod mode and with video drivers that support RandR extension. 
> It does not support Xinerama.
> 

Hi David,

Hm. I am not using two GPUs. Just one Radeon HD 6870 with four outputs,
of which three are used. My other E-Mail in reply to Elv1313 contains my
xorg.conf and an xrandr output. Maybe there is something borked there,
but I didn't have such problems before.

Regards
  Andre

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


Re: Windows opening on wrong screen

2014-09-01 Thread David Palacio
El Lun 01 Sep 2014 11:15:36 Andre Naujoks escribió:
> Hi.
> 
> I am just giving awesome a try and like it so far. I am on a debian sid
> with awesome version 3.4.15-1+b1.
> 
> It has one quirk, where I think it is a bug.
> 
> When I open a window (say a terminal with Mod4 + Return, but the
> application does not matter.), the window should apear on the current
> active screen. This works for two of my three screens, but not for the
> third. The same happens when I open a window via the right-mouse-click
> menu from the desktop, or when I use the top left button to bring up the
> menu.
> 
> - I select the screen by either moving the mouse into it, or Mod4+Ctrl+j/k.
> - I start an application on my right-most screen and the window opens on
> my primary/center screen.
> 
> I attached a screenshot of my layout, so you get an idea of what I am
> talking about. (the black stripes above the left and right screen are
> unused, i.e. the monitors end where the menu-bar is)
> 
> As mentioned it works for the left and the center screen, but not for
> the right one.
> 
> Am I doing something wrong or is this a bug? I am not familiar enough
> with lua or window managers at all to try my hand at this, but I can
> test and try patches.
> 
> Regards
>   Andre
Hi Andre,

As you mention three screens I suspect you may be using two separated GPUs at 
the same time in the same X screen. That is not well supported in Awesome 3.4. 
I used to use three screens on a PC with a NVidia and integrated Intel GPUs 
and ran into many problems with it. To improve my setup I made some 
modifications to Awesome. You can check and compile it at:

https://github.com/dpalacio/awesome-randr-zaphod

It works in Zaphod mode and with video drivers that support RandR extension. 
It does not support Xinerama.

--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


Re: Windows opening on wrong screen

2014-09-01 Thread Andre Naujoks
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01.09.2014 21:04, Elv1313 . wrote:
> Hello Andre,
> 
> The current version of Awesome is 3.5.5. I cannot reproduce the
> issue there. The 3.4 version is not really supported anymore. You
> might want to try to upgrade. Please note that your config will
> need to be ported. The easiest way is to copy the new rc.lua then
> backport any changes you might have. If you can still reproduce the
> problem, please give more details about your drivers, distribution
> and, if applicable, xorg.conf.

Hi.

Thanks for the fast reply. I wasn't aware that Debian unstable was so
far behind.

I am on Debian unstable amd64.

I don't know if it matters heres my Kernel version:
Linux Buzz 3.14-2-amd64 #1 SMP Debian 3.14.15-2 (2014-08-09) x86_64
GNU/Linux

I switched to the version of awesome in the experimental repos, which is
3.5.5, but the issue persists.

Attached is my xorg.conf, I am using the open source radeon drivers.

Also attached my rc.lua, which has very few changes from the debian (and
i suppose upstream) one. I just changed the theme, which I copied from
the one installed and only changed the background image. The second
thing I changed is the default layout from layouts[1] to layouts[2],
which is awful.layout.suit.tile.

My xorg version is 7.7 ... I am basically "up-to-date" on Debian unstable.

And for completeness heres my xrandr output:

Screen 0: minimum 320 x 200, current 6400 x 1440, maximum 16384 x 16384
DisplayPort-0 connected 2560x1440+1920+0 (normal left inverted right x
axis y axis) 597mm x 336mm
   2560x1440 59.95*+
   1920x1200 59.88
   1920x1080 60.0060.0050.0059.94
   1920x1080i60.0059.94
   1600x1200 60.00
   1680x1050 59.95
   1280x1024 75.0260.02
   1280x800  59.81
   1152x864  75.00
   1280x720  60.0050.0059.94
   1024x768  75.0860.00
   800x600   75.0060.32
   720x576   50.00
   720x480   60.0059.94
   640x480   75.0060.0059.94
   720x400   70.08
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1920x1200+0+240 (normal left inverted right x axis y
axis) 518mm x 324mm
   1920x1200 59.95*+
   1600x1200 60.00
   1680x1050 59.88
   1280x1024 75.0260.02
   1280x960  75.04
   1024x768  75.0860.00
   800x600   75.0060.32
   640x480   75.0060.00
   720x400   70.08
DVI-0 connected 1920x1080+4480+360 (normal left inverted right x axis y
axis) 531mm x 299mm
   1920x1080 60.00*+
   1680x1050 59.88
   1280x1024 75.0260.02
   1440x900  59.90
   1152x864  75.0059.97
   1280x720  59.97
   1024x768  75.0870.0760.00
   832x624   74.55
   800x600   72.1975.0060.3256.25
   640x480   75.0072.8166.6760.00
   720x400   70.08

I played around with the order of the screens and put the left to the
right and vice versa. But that did not change anything. If I can try
anything else, let me know.

Thanks in advance for looking into this. I really appreciate it.

Regards
  Andre

> 
> On 1 September 2014 05:15, Andre Naujoks 
> wrote:
>> Hi.
>> 
>> I am just giving awesome a try and like it so far. I am on a
>> debian sid with awesome version 3.4.15-1+b1.
>> 
>> It has one quirk, where I think it is a bug.
>> 
>> When I open a window (say a terminal with Mod4 + Return, but the 
>> application does not matter.), the window should apear on the
>> current active screen. This works for two of my three screens,
>> but not for the third. The same happens when I open a window via
>> the right-mouse-click menu from the desktop, or when I use the
>> top left button to bring up the menu.
>> 
>> - I select the screen by either moving the mouse into it, or
>> Mod4+Ctrl+j/k. - I start an application on my right-most screen
>> and the window opens on my primary/center screen.
>> 
>> I attached a screenshot of my layout, so you get an idea of what
>> I am talking about. (the black stripes above the left and right
>> screen are unused, i.e. the monitors end where the menu-bar is)
>> 
>> As mentioned it works for the left and the center screen, but not
>> for the right one.
>> 
>> Am I doing something wrong or is this a bug? I am not familiar
>> enough with lua or window managers at all to try my hand at this,
>> but I can test and try patches.
>> 
>> Regards Andre




-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJUBNo9AAoJEFjpxyF47AzYa/MH/i+XpjWTjGoPZNBrXS/r/qZ8
F3Z02U2D0UJ2+1jAPLjdAOZnPvqSJMcYaxcfkf0PErCA5hu72ym27OvUJZ0S5eMk
a4WaNXuJS2GBPVj4V+Qe/fUu5JBz7VbJXkiVN/LTtQram0j8CZtwCVHzcIvnZrP7
2kMazBr8Kd+VS8+Zsh5skrNGZJW2pjTwWJLNSC5N8Due37HyKwS3I+dUOwO3Z0/K
5qQqzELSGUN/JArPgAOiWNTJJkax9bvt770Ze3ARhKt3Jl+GLT85ltkbXk7iJuLj
BsJA/st1noWujlWItII6rFHkCPMGMO7ms2fVLrBlDbYeBWNJWVon6IZ2pgfZk9I=
=D0rm
-END PGP SIGNATURE-
-- Standard awesome library
local gears = require("gears")
local awful = requir

Re: Windows opening on wrong screen

2014-09-01 Thread Elv1313 .
Hello Andre,

The current version of Awesome is 3.5.5. I cannot reproduce the issue
there. The 3.4 version is not really supported anymore. You might want
to try to upgrade. Please note that your config will need to be
ported. The easiest way is to copy the new rc.lua then backport any
changes you might have. If you can still reproduce the problem, please
give more details about your drivers, distribution and, if applicable,
xorg.conf.

On 1 September 2014 05:15, Andre Naujoks  wrote:
> Hi.
>
> I am just giving awesome a try and like it so far. I am on a debian sid
> with awesome version 3.4.15-1+b1.
>
> It has one quirk, where I think it is a bug.
>
> When I open a window (say a terminal with Mod4 + Return, but the
> application does not matter.), the window should apear on the current
> active screen. This works for two of my three screens, but not for the
> third. The same happens when I open a window via the right-mouse-click
> menu from the desktop, or when I use the top left button to bring up the
> menu.
>
> - I select the screen by either moving the mouse into it, or Mod4+Ctrl+j/k.
> - I start an application on my right-most screen and the window opens on
> my primary/center screen.
>
> I attached a screenshot of my layout, so you get an idea of what I am
> talking about. (the black stripes above the left and right screen are
> unused, i.e. the monitors end where the menu-bar is)
>
> As mentioned it works for the left and the center screen, but not for
> the right one.
>
> Am I doing something wrong or is this a bug? I am not familiar enough
> with lua or window managers at all to try my hand at this, but I can
> test and try patches.
>
> Regards
>   Andre

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.