Changing Video Resolution in Linux Terminal

Open terminal & type: “xrandr -s 1024×768”

Just replace 1024×768 with the resolution that you want and as long as it’s supported the display will switch immediately. Personally I came across wanting to do this to add it to the remote control button script in the previous post as Hulu Desktop uses alot of CPU at 1360×768 (Native resolution for my LG 37LG30 HDTV) and my video was dropping fames on my Linux Desktop (AMD 2Ghz Socket 939 single core). Here’s what I did to the script for reference:

begin
prog = irexec
remote = mceusb
button = RecTV
config = killall Boxee; xrandr -s 800×600 && huludesktop&
end
begin
prog = irexec
remote = mceusb
button = DVD
config = killall huludesktop; xrandr -s 1360×768 && /opt/boxee/run-boxee-desktop&
end
Note the && between changing the resolution and launching the new app, this ensures that the resolution change command has completed before the new app has been started.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s