16 votes

Topic deleted by author

8 comments

  1. [2]
    mtset
    Link
    It's worth noting that I get this behavior by default on Ubuntu and Kubuntu. Configuring it yourself without a GUI seems like a pain in the butt but there are settings for all of these (or, at...

    I have a USB-C dock that provides both power and a Thunderbolt display output over the single cable to the laptop. I think I am similar to most people in wanting the following behavior from the laptop:

    • When the lid is closed, suspend if no external monitor is connected. If an external monitor is connected, shut off the built-in display and use the external one exclusively, but do not suspend.
    • Lock the screen automatically after a period of inactivity.
    • While locked, all connected displays should be powered down.
    • When an external display is connected, begin using it automatically.
    • When an external display is disconnected, stop using it. If the lid is closed when the external display is disconnected, go into suspend mode.

    It's worth noting that I get this behavior by default on Ubuntu and Kubuntu. Configuring it yourself without a GUI seems like a pain in the butt but there are settings for all of these (or, at least, all but one? I don't know how to turn on/off the last one, but it is the default) in GNOME's settings and KDE's power settings.

    Edit for more setup deets: I get this behavior on a Thinkpad T480 with Ubuntu 21.10 and a Thinkpad T490s with Kubuntu 21.10, both connected to a CalDigit USB-C Pro Dock.

    11 votes
    1. drannex
      Link Parent
      I was about to say, nearly all of these are settings in KDE (and one of the main reasons why I prefer KDE over any other environment).

      I was about to say, nearly all of these are settings in KDE (and one of the main reasons why I prefer KDE over any other environment).

      6 votes
  2. [6]
    2zla
    Link
    I always thought that xrandr made things pretty easy. I more familiar with Debian, but I would assume you can get the package on Ubuntu. I set two xrandr commands to aliases and memorize my...

    I always thought that xrandr made things pretty easy. I more familiar with Debian, but I would assume you can get the package on Ubuntu. I set two xrandr commands to aliases and memorize my terminal hot key. When I can’t see the display, hit the terminal hot key, and blindly type the alias to output video correctly. It’s not the most seamless process but it worked.

    I guess you’re right, it shouldn’t be that difficult..

    7 votes
    1. whbboyd
      Link Parent
      autorandr will probably solve your usecase, unless there's more than a handful of external monitors you're regularly connecting. It detects the set of monitors that are connected and uses that to...

      autorandr will probably solve your usecase, unless there's more than a handful of external monitors you're regularly connecting. It detects the set of monitors that are connected and uses that to look up a stored layout and apply it.

      5 votes
    2. [3]
      mtset
      Link Parent
      What desktop environment do you use?

      What desktop environment do you use?

      3 votes
      1. [2]
        2zla
        Link Parent
        Open box or lxde :)

        Open box or lxde :)

        1 vote
        1. mtset
          Link Parent
          Not to be That Person, but as a former heavy i3 user... If you're using a highly custom desktop environment, it's gonna be That Hard. Sad but inevitable, I think.

          Not to be That Person, but as a former heavy i3 user... If you're using a highly custom desktop environment, it's gonna be That Hard. Sad but inevitable, I think.

          1 vote
    3. FluffyKittens
      (edited )
      Link Parent
      I’ve been wondering how to set up something like that, on X11 debian too no less. Thanks for sharing your approach! Edit: Autorandr worked beautifully for my use case (specifically, I have two...

      I’ve been wondering how to set up something like that, on X11 debian too no less. Thanks for sharing your approach!

      Edit: Autorandr worked beautifully for my use case (specifically, I have two hi-res monitors, slightly offset from each other on different framerates, and my settings get broken every time Lutris shuts off the secondary monitor (to work around a weird issue with fullscreen wine games not capturing the mouse)), and genuinely took <5 min to set up.

      2 votes