Wednesday, December 14, 2011

Putting your monitor in portrait mode

I have a wonderful HP LP2475W monitor with a pivoting standard:
http://ii.alatest.com/product/full/5/8/HP-LP2275-LP2475-0.jpg

I wondered if it was easy to use the portrait mode under Linux.

When using proprietary nvidia drivers it is no problem at all:
1. Add the following line to the Device-section for the graphics-card (in /etc/X11/xorg.conf):

Option "RandRRotation" "on"


2. Use these two commands:
xrandr -o 1 Rotate to portrait
xrandr -o 0 Rotate to landscape


3. Add this to rc.xml keybindings to use Openbox keybindings Super + Left (W+ Left) for Portrait and Super + Right back to Landscape Mode

xterm -e "xrandr -o 0"   Screen in Portait Mode
xterm -e "xrandr -o 1" Screen in Landscape Mode

Thanks to this article: http://symlink.dk/linux/config/pivot/

No comments:

Blog Archive