xrandr is your(my) friend!
By Vtatkar-Oracle on Feb 02, 2009
I have had considerable difficulty connecting laptops (particularly ATI-based) to projectors at various conferences (the most annoying ones are where the projector is connected through an intermediate switch that multiplexes inputs) in order to get twinviews on dual-displays. Cant tell you about how many hours I and some of my colleagues have spent configuring, tuning, hand-coding xorg.conf files(an extremely tedious task). This is all on Solaris/OpenSolaris, though in some cases, Linux and even Windows didnt do any better!
Over the past few months, we now have xrandr in OpenSolaris which detects and sets displays to specifications. The typically 1024x768 is still the best resolution I can get in most places, but thats not the utility's shortcoming; its just the nature of the equipment.
You can typically just type the command:
xrandr --output VGA-0 --mode 1024x768
Yay, finally a solution that seems to work most of the time (there are still the odd times when I've found it doesnt get it right). The next trip to Sun TechDays in Hyderabad, India, would be a good test of this capability. I will be talking about Sun Studio compilers and tools again, this year. We have some new and cool features to talk about, so if you're in the area, drop in!