This forum has been archived. All content is frozen. Please use KDE Discuss instead.

External monitor issue with window sizes, and mouse speed

Tags: None
(comma "," separated)
Dreamer777
Registered Member
Posts
5
Karma
0
OS
Hello to everyone!

Every day I spend some time watching movies at my TV connected to laptop with KDE.
1) First problem happens when I attach cable (VGA) to laptop (1366x768) and "configure" external monitor Sony (1920x1080).
If I choose to place monitors horizontally, then mouse become "twice" faster moving in horizontal way, if vertically orient monitors then "twice" faster in that way.
I write twice in quotes because I think that it is not a 2, but (1366+1920)/1366 and (768+1080)/768 (or 1920/1366 and 1080/768) respectively to orientation of monitors and configuration.

2) Second and the most important problem happens then I disconnect external monitor by selecting in Krandr "disable".
I checked it only for horizontal placement...
Right after I push "apply" all of maximized windows compressed vertically, i.e. instead (768-panel_width) it becomes almost twice smaller. Here I think as well not twice, but 768*(768/1080).

So the problem is that the window manager thinks that maximal vertical space decreased by that value. New windows opened in the top of screen and have maximally that "twice smaller" vertical size. Even if I increase its size, then close window (for example dolphin), and start it again, vertical size would be decreased to that MAGIC max value, but horizontal would the same as I changed it. And all of maximization would cause window be compressed and put to the top part of the screen.

This problems stays until restart of X, or by connecting external monitor again (But after disconnecting, problem comes back).

I have tried this in some distribution: Debian, Mint, Ubuntu, Fedora, Arch, openSUSE.
In every this problem is present, so it could be only problem of KDE.

By the way using all those distributions with GNOME2, GNOME3 I have no problem.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Have you tried restarting KWin to see if this has any impact?

With regards to the mouse speed, I believe this is caused by the way X is treating the mouse settings - as it is responsible for implementing the mouse handling - KDE just sets the settings for you.

You can restart KWin by running in Konsole:
Code: Select all
kwin --replace


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Dreamer777
Registered Member
Posts
5
Karma
0
OS
1) connected monitor, configure horizontal placement, disconnect.

typed in konsole "kwin --replace"

tried to maximize, and it still maximized horizontally correct but vertically still twice compressed.

2) After that connected monitor again, configure vertical placement, disconnect.

WOW! windows maximized properly, BUT unmaximize is wrong! It get correct horizontal unmaximized size, but it still maximized vertically.

type in konsole "kwin --replace"

but no effect... Still gets wrong vertical size of unmaximized window.

3) After I again connect monitor and configure it horizontally, then disconnect.

And here we are! All windows again maximized wrongly.
And unmaximezed as well wrong. No matter how small was window before maximization, after i click unmaximize button it still maximized vertically, BUT to that MAGIC half value.

by the way, All of this I do in openSUSE 12.1 now.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Okay, as restarting KWin has no effect here, it is possible that X is keeping the input "alive" even though no monitor is there.

What is the output of "xrandr" with the following states please?
1) Monitor not connected, not configured (ie. state once logged in)
2) Monitor connected, but not configured
3) Monitor connected, and configured
4) Monitor disconnected, without having disabled it first.

Have you tried using xrandr to disable a display prior to disconnecting it (using xrandr --output <output name> --off)


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Dreamer777
Registered Member
Posts
5
Karma
0
OS
1) Monitor not connected, not configured (ie. state once logged in)
Code: Select all
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1366x768       60.0*+   48.4 
   1024x768       60.0 
   800x600        60.3     56.2 
   640x480        59.9 
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)


2) Monitor connected, but not configured
Code: Select all
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1366x768       60.0*+   48.4 
   1024x768       60.0 
   800x600        60.3     56.2 
   640x480        59.9 
VGA1 connected (normal left inverted right x axis y axis)
   1920x1080      60.0 +
   1280x1024      60.0 
   1360x768       60.0 
   1024x768       60.0 
   800x600        60.3 
   640x480        60.0 
HDMI1 disconnected (normal left inverted right x axis y axis)                       
DP1 disconnected (normal left inverted right x axis y axis)                         
DP2 disconnected (normal left inverted right x axis y axis)


3) Monitor connected, and configured
Code: Select all
Screen 0: minimum 320 x 200, current 3286 x 1080, maximum 8192 x 8192               
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1366x768       60.0*+   48.4 
   1024x768       60.0 
   800x600        60.3     56.2 
   640x480        59.9 
VGA1 connected 1920x1080+1366+0 (normal left inverted right x axis y axis) 880mm x 490mm
   1920x1080      60.0*+
   1280x1024      60.0 
   1360x768       60.0 
   1024x768       60.0 
   800x600        60.3 
   640x480        60.0 
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)


4) Monitor disconnected, without having disabled it first.
Code: Select all
Screen 0: minimum 320 x 200, current 3286 x 1080, maximum 8192 x 8192
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1366x768       60.0*+   48.4 
   1024x768       60.0 
   800x600        60.3     56.2 
   640x480        59.9 
VGA1 disconnected 1920x1080+1366+0 (normal left inverted right x axis y axis) 0mm x 0mm
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
  1920x1080 (0xe5)  148.5MHz
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock   67.5KHz
        v: height 1080 start 1084 end 1089 total 1125           clock   60.0Hz



At this moment nothing bad happens. Windows maximized correctly.
but after
5) xrandr --output <output name> --off
Code: Select all
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1366x768       60.0*+   48.4 
   1024x768       60.0 
   800x600        60.3     56.2 
   640x480        59.9 
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)


That problems appears.

So it seems that problem should be in xrandr or X itself ?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The problem appears to be in X itself.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Dreamer777
Registered Member
Posts
5
Karma
0
OS
Well, it was my first thought.

I tried the same in Gnome3, and there was NO PROBLEM with window maximization.

As well as in KDE3 I also have no such problem.
Dreamer777
Registered Member
Posts
5
Karma
0
OS
In Gentoo, KDE 4.7.4 I have no such a problem, BUT here different implementation of external monitor:

In openSUSE, Ubuntu, Arch linux, Linux Mint external monitor by default attached as external, but have a common edge through which I can move windows.

In Gentoo by default external monitor attached as prolongation of first, i.e. two monitors become one with common panel through two monitors. Wallpaper as well stretched...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The prolongataion of the screen is known as Xinerama I believe - and is a deprecated method as such - but was the recommended method when KDE 3.5 was developed, and likely was when the screen support for GNOME 3 was developed. It appears that X is not unregistering the newly created screen it creates properly - causing KWin some problems as far as I can tell.

The mouse speed issue is my primary reason for suspecting that this issue is centered in X rather than in KWin - as the window manager cannot affect the speed of the mouse pointer I believe.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]