Bug 259386 - krandr keeps virtual size of two monitors after one monitor was being turned off.
Summary: krandr keeps virtual size of two monitors after one monitor was being turned ...
Status: RESOLVED DUPLICATE of bug 194558
Alias: None
Product: krandr
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Gustavo Pichorim Boiko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-09 23:37 UTC by Erik Boritsch
Modified: 2012-06-20 07:52 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Boritsch 2010-12-09 23:37:52 UTC
Version:           unspecified (using KDE 4.4.3) 
OS:                Linux

I have a dual-monitor setup on my Intel X3100 with KDE. LVDS1 is my laptops monitor, VGA1 is an external monitor.

If I place VGA1 under LVDS1 or right-of LVDS1 and then turn off or disconnect the external monitor, krandr disables the external monitor, shows it as disabled, yet my mouse is able to escape the lowest (or the rightmost) border of the screen as if the monitor were still on.

This "virtual" space disappears after I issue "xrandr --output VGA1 --auto". Below I shall post the xrandr output of the bug.

If I place VGA1 above or left of LVDS1, everything works fine, only under and right of placement produces this faulty behavior. Happens if I set absolute positions as well.

This issue happens throughout various KDE versions up to the latest 4.5 (have not tested 4.6 beta).

I hope it will be a simple bug to fix because it's a very annoying one if you connect beamers and external monitors all the time :-)

Reproducible: Always

Steps to Reproduce:
1. Connect external VGA display to the notebook.
2. Configure krandr for the extended desktop so the external display is placed right of or under notebooks display, e.g. LVDS|VGA
3. Disable external monitor in krandr or disconnect it.

Actual Results:  
Mouse escapes rightmost or lowest screen border as if there still were a monitor there.

Expected Results:  
Normal restore of resolutions and virtual display size. Mouse stays in visible display area.

xrandr output after placing VGA1 under LVDS1 and disconnecting it (the mouse still escapes the lowest screen border):
xrandr 
Screen 0: minimum 320 x 200, current 1680 x 1850, maximum 8192 x 8192                                                                                                                                       
VGA1 disconnected 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 297mm                                                                                                                    
LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm                                                                                                                       
   1280x800       59.9*+                                                                                                                                                                                    
   1024x768       60.0                                                                                                                                                                                      
   800x600        60.3     56.2                                                                                                                                                                             
   640x480        59.9                                                                                                                                                                                      
  1680x1050 (0x43)  146.2MHz                                                                                                                                                                                
        h: width  1680 start 1784 end 1960 total 2240 skew    0 clock   65.3KHz                                                                                                                             
        v: height 1050 start 1053 end 1059 total 1089           clock   60.0Hz 


xrand output after issuing "xrandr --output VGA1 --auto":
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 8192 x 8192                                                                                    
VGA1 disconnected (normal left inverted right x axis y axis)                                                                                            
LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm                                                                   
   1280x800       59.9*+                                                                                                                                
   1024x768       60.0                                                                                                                                  
   800x600        60.3     56.2                                                                                                                         
   640x480        59.9
Comment 1 Erik Boritsch 2011-01-29 21:26:48 UTC
The bug is still there with KDE SC 4.6.0.
Comment 2 apodtele 2011-04-28 16:44:11 UTC
You are asking for a plug-n-play functionality over VGA connection, which dates back to 1987 aka Windows 2.0 era. If possible, this belongs to X.org not KDE.
 
krandr discovers that VGA is disabled once you run it, not before. If you hit "Apply" you should be fine. Should krandrtray constantly probe is a monitor is present? That is only useful for those who constantly play with monitors.
Comment 3 Erik Boritsch 2011-05-07 09:58:35 UTC
That's not what the bug is about. VGA plug-n-play works fine here, at least in Kubuntu 11.04 (didn't work in OpenSuse, but I guess it's a distro problem).

The problem is, after I turn off external monitor in krandr (either by disconnecting or by telling krandr to turn it off), the mouse still escapes my primary monitor and moves where the external monitor used to be. I need to run 'xrandr --auto' to make the external monitor disappear.

Note though that it happens only if external display is placed right-of or under notebooks display, otherwise krandr works as intended.

Should be fairy easy to confirm this bug — you only need a laptop with a free video card driver where resolutions are set with xrandr (don't know if nvidias proprietary solution has this bug as well).

A workaround would be running 'xrandr --auto' each time krandr recognizes a monitor disconnection, but I have no idea how to do this.
Comment 4 Oswald Buddenhagen 2011-06-12 14:33:48 UTC

*** This bug has been marked as a duplicate of bug 194558 ***