Archive for the ‘Fedora 8’ Category

Monitor Hotplug with Xrand 1.2 - Xinerama replacement

Wednesday, March 19th, 2008

On my notebook i’ve used to have init script which would enable/disable Xinerama extension depending if second display connected or by modifying /etc/X11/xorg.conf. This would require X restart in order to pick up the changes.

Xrandr is used to set the size, orientation and/or reflection of the outputs for a screen. Even more importantly since Xrandr v 1.2 it detects hotplugged monitors, can enable/disable them and reconfigure X “on the fly”. Xrandr can not only discover connected display on the fly, it can also put display in xinerama like mode with 2 mointors sharing same display.

To see what is connected to system run xrandr.

On my laptop primary display called LVDS and external monitor called VGA.

To enable second monitor in xenarama like mode( note that there are also right-of,below, below)

xrandr –output LVDS –left-of VGA –auto.

Or disable second monitor

xrandr –output VGA –off

And all of this online!

References:

Xorg Xrandr v1.2 on thinkwiki