modal window gets placed on unplugged monitor, makes system unusable

Hello, I can always reproduce this behavior. I am running Ubuntu 10.04 LTS and was going to post this as a bug report on gnome-keyring, but now suspect I can probably work around this within xmonad. In short: when using a laptop that will only at times be connected to an external monitor but also used "by itself", is there a way to make sure that a modal window will always get placed in a currently visible part of my desktop area? My problem is that when I boot my laptop by itself, a modal window that grabs all input focus (gnome-keyring's "please insert passphrase", which often pops up on Ubuntu systems if there is a known, encrypted wifi network within range) is getting placed in my external monitor which... is not plugged to the computer at all. The result is that no elements of the Gnome UI work at all: neither the menus on the panel nor (Gnome) keyboard shortcuts to launch apps do anything, which makes the system unusable. More generally (ie, besides a solution to this particular problem with gnome-keyring), is there a way for me to make sure xmonad will not place windows on parts of my screen that are inaccessible when my laptop is by itself? I think I have been experiencing a similar difficulty with Skype, where it would start but I couldn't see it. I thought: Skype crashed again, let me delete its config. That worked, but now I think it might have worked because Skype (by remembering its previous window position) was asking xmonad to place it on the external screen which was not (at that time) connected to the computer and thus its window stayed invisible for me (though skype was running). Not sure this made any sense, I tried my best. : ) Many thanks for any help and best! ~l

Lara Michaels
Hello,
I can always reproduce this behavior. I am running Ubuntu 10.04 LTS and was going to post this as a bug report on gnome-keyring, but now suspect I can probably work around this within xmonad.
In short: when using a laptop that will only at times be connected to an external monitor but also used "by itself", is there a way to make sure that a modal window will always get placed in a currently visible part of my desktop area? My problem is that when I boot my laptop by itself, a modal window that grabs all input focus (gnome-keyring's "please insert passphrase", which often pops up on Ubuntu systems if there is a known, encrypted wifi network within range) is getting placed in my external monitor which... is not plugged to the computer at all. The result is that no elements of the Gnome UI work at all: neither the menus on the panel nor (Gnome) keyboard shortcuts to launch apps do anything, which makes the system unusable.
This to me sounds like a Gnome/xrandr bug. It might be possible to work around this in xmonad, but I'm not sure if there's any functionality there to be able to do different things depending upon how many monitors are available. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

Lara Michaels writes:
More generally (ie, besides a solution to this particular problem with gnome-keyring), is there a way for me to make sure xmonad will not place windows on parts of my screen that are inaccessible when my laptop is by itself?
If you're using open source video drivers (ie, not the nvidia drivers) merely calling the command xrandr should refresh the number of displays you have, thus making everything work sanely. If you use the nvidia proprietary drivers this doesn't work, because nvidia fails at xrandr.

Many thanks, I will try this and report back! I am using the intel drivers, so this should work.
thanks!
~l
--- On Wed, 7/14/10, Justin Bogner
More generally (ie, besides a solution to this
From: Justin Bogner
Subject: [xmonad] Re: modal window gets placed on unplugged monitor, makes system unusable To: xmonad@haskell.org Date: Wednesday, July 14, 2010, 4:47 AM Lara Michaels writes: particular problem with gnome-keyring), is there a way for me to make sure xmonad will not place windows on parts of my screen that are inaccessible when my laptop is by itself?
If you're using open source video drivers (ie, not the nvidia drivers) merely calling the command xrandr should refresh the number of displays you have, thus making everything work sanely. If you use the nvidia proprietary drivers this doesn't work, because nvidia fails at xrandr.
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
participants (3)
-
Ivan Lazar Miljenovic
-
Justin Bogner
-
Lara Michaels