Nvidia optimus - Howto configure xserver on dual screen?

view full story

http://askubuntu.com – I have notebook with nvidia optimus technology. I have installed bumblebee and everything seems to work fine. Problem has appear when I connected second monitor to my notebook. If I connect monitor after login then it works well. When I'm trying to start notebook with connected monitor then Xserver is not able to start. How to configure xserver to make it wokr? This is my hardware config: $ xrandr -q Screen 0: minimum 320 x 200, current 3040 x 900, maximum 8192 x 8192 LVDS1 connected 1600x900+1440+0 (normal left inverted right x axis y axis) 382mm x 214mm 1600x900 60.0*+ 1440x900 (HowTos)