Refresh display, adapting to monitor resolution

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Refresh display, adapting to monitor resolution

Jean-Baptiste Mestelan
Hello,

Is there a way to have XMonad adapt the display to the resolution of the plugged monitor(s)?
My problem is: at home, I have the laptop attached to one monitor. I suspend the session (systemctl hibernate), and resume it at work where I use a higher-resolution monitor. The display remains as it was set when starting the X session. The only way I have found to have the new monitor settings detected is to restart the X session (slim restart), which obviously kills user programs. So the question is: is there a command I can run to have the display adapt to the capabilities of the current monitor?

Thanks for attention.

_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Reply | Threaded
Open this post in threaded view
|

Re: Refresh display, adapting to monitor resolution

Alexandre Medeiros
Hi friend,

I have a similar setup, at home I have a single monitor and use the laptop screen and the monitor and at work I have two monitors and don't use the laptop screen. I don't use XMonad itself to change the resolution, I use a program called autorandr, all you need to do is configure your resolution with xrandr and then save the profile with autorandr and it automatically detects the displays and the profile you saved for them. XMonad automatically adapts to this, changing the resolution and moving xmobar to the primary display.

Hope this helps you!

Best Regards,

On Fri, Jan 10, 2020 at 6:20 AM Jean-Baptiste Mestelan <[hidden email]> wrote:
Hello,

Is there a way to have XMonad adapt the display to the resolution of the plugged monitor(s)?
My problem is: at home, I have the laptop attached to one monitor. I suspend the session (systemctl hibernate), and resume it at work where I use a higher-resolution monitor. The display remains as it was set when starting the X session. The only way I have found to have the new monitor settings detected is to restart the X session (slim restart), which obviously kills user programs. So the question is: is there a command I can run to have the display adapt to the capabilities of the current monitor?

Thanks for attention.
_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad


--
Alexandre Medeiros
Software Engineer @ Nubank
BSc Computer Science - University of Campinas

_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Reply | Threaded
Open this post in threaded view
|

Re: Refresh display, adapting to monitor resolution

Jean-Baptiste Mestelan
Thank you very much, Alexandre, for your kind answer.

Yes, I vaguely suspected that the answer might come from X tooling, rather than XMonad itself; but thanks for putting up with me.

Looking at autorandr right now: it looks perfect for what I want.

Best regards.


On Fri, 10 Jan 2020 at 15:59, alexandre medeiros <[hidden email]> wrote:
Hi friend,

I have a similar setup, at home I have a single monitor and use the laptop screen and the monitor and at work I have two monitors and don't use the laptop screen. I don't use XMonad itself to change the resolution, I use a program called autorandr, all you need to do is configure your resolution with xrandr and then save the profile with autorandr and it automatically detects the displays and the profile you saved for them. XMonad automatically adapts to this, changing the resolution and moving xmobar to the primary display.

Hope this helps you!

Best Regards,

On Fri, Jan 10, 2020 at 6:20 AM Jean-Baptiste Mestelan <[hidden email]> wrote:
Hello,

Is there a way to have XMonad adapt the display to the resolution of the plugged monitor(s)?
My problem is: at home, I have the laptop attached to one monitor. I suspend the session (systemctl hibernate), and resume it at work where I use a higher-resolution monitor. The display remains as it was set when starting the X session. The only way I have found to have the new monitor settings detected is to restart the X session (slim restart), which obviously kills user programs. So the question is: is there a command I can run to have the display adapt to the capabilities of the current monitor?

Thanks for attention.
_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad


--
Alexandre Medeiros
Software Engineer @ Nubank
BSc Computer Science - University of Campinas
_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad

_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad