screen resolution and xmobar

Hi! Started using Xmonad and love it, but: I'm using a laptop that I sometimes dock. I then have the laptop screen turned off and use instead a much larger separate screen. The resolution gets messed up when I login Xmonad (I guess it retained the laptop's original resolution). I then run*xrandr --output HDMI3 --mode 1920x1200* to change it to the larger screen's full resolution, and everything looks nice. But the xmobar doesn't stretch across the full width of the screen and the background desktop image is tiled to fill the whole screen... I guess what I'm asking is, how can I best set up .xsession and / or xmonad.hs (and .xmobarrc) to make this work? Ultimately I'd like it to work when I dock my laptop but also when the laptop isn't docked... Many thanks in advance for any kind of help! Yakir Gagnon Queensland Brain Institute (Bldg 79) University of Queensland St Lucia, Brisbane QLD 4072 Australia cell +61 0424 393 332

On 06/26/2013 10:34 AM, Yakir Gagnon wrote:
Hi! Started using Xmonad and love it, but:
I'm using a laptop that I sometimes dock. I then have the laptop screen turned off and use instead a much larger separate screen. The resolution gets messed up when I login Xmonad (I guess it retained the laptop's original resolution). I then run*/xrandr --output HDMI3 --mode 1920x1200/* to change it to the larger screen's full resolution, and everything looks nice. But the xmobar doesn't stretch across the full width of the screen and the background desktop image is tiled to fill the whole screen... I guess what I'm asking is, how can I best set up .xsession and / or xmonad.hs (and .xmobarrc) to make this work? Ultimately I'd like it to work when I dock my laptop but also when the laptop isn't docked...
Many thanks in advance for any kind of help!
Yakir Gagnon Queensland Brain Institute (Bldg 79) University of Queensland St Lucia, Brisbane QLD 4072 Australia
cell +61 0424 393 332
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad Hi, Yakir. It seems to be xmonad issue only, it uses screen resolution retrieved when X session started and did not update it dynamically. I wonder what xmonad module is responsible for that issue and how it could be fixed.
I'm reproducing this bug every day and it is actually the last thing that stops me from using xmobar every day. -- Best regards, dmitry malikov !

Ah... too bad. Maybe someone else knows what to do?
On 26/06/2013 6:16 PM, "Dmitry Malikov"
On 06/26/2013 10:34 AM, Yakir Gagnon wrote:
Hi! Started using Xmonad and love it, but:
I'm using a laptop that I sometimes dock. I then have the laptop screen turned off and use instead a much larger separate screen. The resolution gets messed up when I login Xmonad (I guess it retained the laptop's original resolution). I then run*xrandr --output HDMI3 --mode 1920x1200* to change it to the larger screen's full resolution, and everything looks nice. But the xmobar doesn't stretch across the full width of the screen and the background desktop image is tiled to fill the whole screen... I guess what I'm asking is, how can I best set up .xsession and / or xmonad.hs (and .xmobarrc) to make this work? Ultimately I'd like it to work when I dock my laptop but also when the laptop isn't docked...
Many thanks in advance for any kind of help!
Yakir Gagnon Queensland Brain Institute (Bldg 79) University of Queensland St Lucia, Brisbane QLD 4072 Australia
cell +61 0424 393 332
_______________________________________________ xmonad mailing listxmonad@haskell.orghttp://www.haskell.org/mailman/listinfo/xmonad
Hi, Yakir. It seems to be xmonad issue only, it uses screen resolution retrieved when X session started and did not update it dynamically. I wonder what xmonad module is responsible for that issue and how it could be fixed.
I'm reproducing this bug every day and it is actually the last thing that stops me from using xmobar every day.
-- Best regards, dmitry malikov !
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

On Wed, Jun 26, 2013 at 4:14 AM, Dmitry Malikov
On 06/26/2013 10:34 AM, Yakir Gagnon wrote:
I'm using a laptop that I sometimes dock. I then have the laptop screen turned off and use instead a much larger separate screen. The resolution gets messed up when I login Xmonad (I guess it retained the laptop's original resolution). I then run*xrandr --output HDMI3 --mode 1920x1200* to change it to the larger screen's full resolution, and everything looks nice. But the xmobar doesn't stretch across the full width of the screen and the background desktop image is tiled to fill the whole screen... I guess what I'm asking is, how can I best set up .xsession and / or xmonad.hs (and .xmobarrc) to make this work? Ultimately I'd like it to work when I dock my laptop but also when the laptop isn't docked...
Hi, Yakir. It seems to be xmonad issue only, it uses screen resolution retrieved when X session started and did not update it dynamically. I wonder what xmonad module is responsible for that issue and how it could be fixed.
Sounds like https://code.google.com/p/xmonad/issues/detail?id=526 ? Except that xmobar stretching across the screen is something xmobar should be doing, not xmonad (an xmonad bug could lead to the result being covered up, but status bars must do their own positioning). -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

On 26/06/2013, Dmitry Malikov
It seems to be xmonad issue only, it uses screen resolution retrieved when X session started and did not update it dynamically. I wonder what xmonad module is responsible for that issue and how it could be fixed.
There is http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-DynamicBars.html which can be used to restart xmobar when screens change. However, I run into https://code.google.com/p/xmonad/issues/detail?id=538 when I try to use it. I've contacted the maintainer, who has confirmed that something weird is going on, but I haven't heard back since then.

On Wed, 26 Jun, 2013 at 17:40:49 GMT, Dmitri Iouchtchenko wrote:
There is http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-DynamicBars.html which can be used to restart xmobar when screens change. However, I run into https://code.google.com/p/xmonad/issues/detail?id=538 when I try to use it. I've contacted the maintainer, who has confirmed that something weird is going on, but I haven't heard back since then.
Ack, sorry. I finally have a dual monitor setup at home to play around with. I'll play around with the patch here once I track down a compile issue in darcs (float redefined in X.StackSet?). What to the maintainers think about applying the patch in the bug to xmonad proper? Is xrandr something we can assume these days[1]? I don't remember the status of it with the nvidia blob or frglx drivers and I'm not sure how the new call would work on those setups. --Ben [1]It's non-optional in X11; I just don't know what the calls do if xrandr isn't actually wired up.
participants (5)
-
Ben Boeckel
-
Brandon Allbery
-
Dmitri Iouchtchenko
-
Dmitry Malikov
-
Yakir Gagnon