Hacker News new | ask | show | jobs
by pdebruic 4943 days ago
One thing that works for me is setting up scripts using arandr for each display config. Then before undocking I open a terminal fullscreen and run the script for the post-docking config. The script pauses when asking for my password. I then undock the laptop and open it and type my password. The laptop screen wakes up no problem. I do the same thing when I want to dock it. This is definitely more annoying than things happening automatically, but less annoying than rebooting.
1 comments

I did that too, but I went the extra step of writing a little Ruby script to switch between them based on the number of outputs xrandr says is connected, and then I bound that to a keyboard shortcut, so I don't have to mess around in the terminal. I just hit ctrl-alt-M.

https://gist.github.com/4171654