Install xbindkeys:

<code>
sudo apt-get install xbindkeys xbindkeys-config
</code>

Get this python script:
   * {{:howtos:aticonfig_switch.py|aticonfig_switch.py}}


and place it e.g. in ~/bin

Make it executable:

<code>
chmod +x aticonfig_switch.py
</code>


Now run:
<code>
xbindkeys-config
</code>

and bind the script to a key kombination. I use //Winkey+S//.

The next time you resume after having docked or resuming in the dock you just wait to the login dialog comes up (the one you cannot see :-P), type in the password and press the key kombination. You should now get the screen to your monitor after a couple of seconds.


//Source: http://cpbotha.net //