Re: [RP] [RFC v3] Add xrandr support

2016-12-05 Thread Mathieu OTHACEHE

Hi,

> I use ratpoison with xrandr for a few weeks (now with the xrandr branch
> on the official git repo), and it works well!

Thanks Clément :)

> 1. ':restart' command puts windows onto a display that isn't the primary
> display (VGA1).

Ok. I'll propose a patch soon.

> 2. With a default conf (no xrandr command at all) and VGA1 plugged:

This one is more delicate. I think it's about how screen mirroring is
handled in ratpoison. I didn't investigate it yet but I think that when
a screen is mirrored, we should add only one screen which resolution is

resolution = min(resolution_screen1, resolution_screen2, ...)

I have to think more about it.

Mathieu

___
Ratpoison-devel mailing list
Ratpoison-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/ratpoison-devel


Re: [RP] [RFC v3] Add xrandr support

2016-12-03 Thread Clément Lassieur
Hi,

I use ratpoison with xrandr for a few weeks (now with the xrandr branch
on the official git repo), and it works well!

A few things though (sorry if the vocabulary I use isn't accurate):

1. ':restart' command puts windows onto a display that isn't the primary
display (VGA1).

Here is my xrandr init command (generated with arandr):

--8<---cut here---start->8---
xrandr --output VIRTUAL1 --off --output DP3 --off --output DP2 --off
--output DP1 --off --output TV1 --off --output HDMI2 --off --output
HDMI1 --off --output LVDS1 --primary --mode 1280x800 --pos 0x768
--rotate normal --output VGA1 --mode 1024x768 --pos 0x0 --rotate normal
--8<---cut here---end--->8---

Here is the output of the 'xrandr' command:

--8<---cut here---start->8---
LVDS1 connected primary 1280x800+0+768 (normal left inverted right x axis y 
axis) 261mm x 163mm
   1280x800  59.99*+  50.00  
   1024x768  60.00  
   800x600   60.3256.25  
   640x480   59.94  
   640x400   60.00  
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
TV1 unknown connection (normal left inverted right x axis y axis)
   848x480   59.94 +
   640x480   59.94 +
   1024x768  59.94  
   800x600   59.94  
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 376mm x 
301mm
   1280x1024 60.02 +  75.02  
   1152x864  75.00  
   1024x768  75.03*   60.00  
   800x600   75.0060.32  
   640x480   75.0059.94  
   720x400   70.08  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
--8<---cut here---end--->8---

2. With a default conf (no xrandr command at all) and VGA1 plugged:

The size of the windows I spawn on LVDS1 is 1024x768, with margins at
bottom and right, so that the full display size (window + margins) is
1280x800.

Output of 'xwininfo' on the problematic window:

--8<---cut here---start->8---
xwininfo: Window id: 0xed "xterm"

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1020
  Height: 754
  Depth: 24
  Visual: 0x20
  Visual Class: TrueColor
  Border width: 1
  Class: InputOutput
  Colormap: 0x22 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -258+0  -258-44  +0-44
  -geometry 127x50+0+0
--8<---cut here---end--->8---

I expect windows to take the full display size instead, and no margins.
If I do 'C-t N' before spawning windows, I get the behaviour I expect.

Output of 'xwininfo' after I did 'C-t N':

--8<---cut here---start->8---
xwininfo: Window id: 0xed "xterm"

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1276
  Height: 784
  Depth: 24
  Visual: 0x20
  Visual Class: TrueColor
  Border width: 1
  Class: InputOutput
  Colormap: 0x22 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -2+0  -2-14  +0-14
  -geometry 159x52+0+0
--8<---cut here---end--->8---

Output of 'xrandr':

--8<---cut here---start->8---
Screen 0: minimum 8 x 8, current 1280 x 800, maximum 32767 x 32767
LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 261mm x 
163mm
   1280x800  59.99*+  50.00  
   1024x768  60.00  
   800x600   60.3256.25  
   640x480   59.94  
   640x400   60.00  
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
TV1 unknown connection (normal left inverted right x axis y axis)
   848x480   59.94 +
   640x480   59.94 +
   1024x768  59.94  
   800x600   59.94  
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 376mm x 
301mm
   1280x1024 60.02 +  75.02  
   1152x864  75.00  
   1024x768  75.03*   60.00  
   800x600   75.0060.32  
   640x480   75.0059.94  
   720x400   70.08  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

Re: [RP] [RFC v3] Add xrandr support

2016-12-01 Thread Mathieu OTHACEHE

> Results. The xrandr support works perfectly. Details to follow.

Good to know, thanks Rob !

Mathieu

___
Ratpoison-devel mailing list
Ratpoison-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/ratpoison-devel


Re: [RP] [RFC v3] Add xrandr support

2016-12-01 Thread Rob Paisley
Ratpoison:

Results. The xrandr support works perfectly. Details to follow.

# Before xrandr issues rotate/enable third monitor
$ ratpoison -c version -c fdump -c sdump
ratpoison 1.4.9-xrandr1
(frame :number 0 :x 0 :y 0 :width 1600 :height 1200 :screenw 1600 :screenh 1200 
:window 18874369 :last-access 0 :dedicated 0)
DVI-0 133 0 0 1600 1200 1,DisplayPort-0 132 0 0 1600 1200 0

# After xrandr
$ ratpoison -c version -c fdump -c sdump
ratpoison 1.4.9-xrandr1
(frame :number 0 :x 0 :y 0 :width 1200 :height 1600 :screenw 1200 :screenh 1600 
:window 18874369 :last-access 9 :dedicated 0)
DisplayPort-1-1 67 0 0 1600 1200 0,DisplayPort-0 132 1600 0 1200 1600 0,DVI-0 
133 2800 0 1200 1600 1

I didn't bother with a :restart as it appears to have done everything
properly.

As always, thanks for keeping this window manager current!

Rob

On Tue, Nov 22, 2016 at 09:51:57AM +0100, Mathieu OTHACEHE wrote:
> 
> Hi Rob,
> 
> Thanks for testing ! As Jeremie said, the output of your sdump command
> seems to point there's a problem with your build.
> 
> The expected behaviour is that when you issue your rotate.sh, xrandr
> will notify ratpoison, and your screens should be detected and setup as
> if you have restarted ratpoison.
> 
> However, I have not tested support for vertical + horizontal screen
> setup. I'll test the new xrandr branch with your screen setup when I'll
> get some spare-time.
> 
> Thanks,
> 
> Mathieu
> 
> ___
> Ratpoison-devel mailing list
> Ratpoison-devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/ratpoison-devel

___
Ratpoison-devel mailing list
Ratpoison-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/ratpoison-devel


Re: [RP] [RFC v3] Add xrandr support

2016-11-22 Thread Mathieu OTHACEHE

Hi Rob,

Thanks for testing ! As Jeremie said, the output of your sdump command
seems to point there's a problem with your build.

The expected behaviour is that when you issue your rotate.sh, xrandr
will notify ratpoison, and your screens should be detected and setup as
if you have restarted ratpoison.

However, I have not tested support for vertical + horizontal screen
setup. I'll test the new xrandr branch with your screen setup when I'll
get some spare-time.

Thanks,

Mathieu

___
Ratpoison-devel mailing list
Ratpoison-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/ratpoison-devel


Re: [RP] [RFC v3] Add xrandr support

2016-11-20 Thread Jeremie Courreges-Anglas
Mathieu OTHACEHE  writes:

> Drop deprecated xinerama support and replace it with xrandr.
>
> Signed-off-by: Mathieu OTHACEHE 
> ---
>
> Hi,
>
> Here is v3, to address Jeremie review and rebase patch on top of recent 
> changes.

Thank you Mathieu.

I've prepared some snapshots:

  http://wxcvbn.org/~jca/distfiles/ratpoison-1.4.9-beta.tar.gz
  http://wxcvbn.org/~jca/distfiles/ratpoison-1.4.9-beta.tar.xz

PGP signatures:

  http://wxcvbn.org/~jca/distfiles/ratpoison-1.4.9-beta.tar.gz.sig
  http://wxcvbn.org/~jca/distfiles/ratpoison-1.4.9-beta.tar.xz.sig

It would be nice to get test reports from people with multiple screens
setups.  The more reports I get the earlier we can publish a new
release. ;)

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE


signature.asc
Description: PGP signature
___
Ratpoison-devel mailing list
Ratpoison-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/ratpoison-devel