How to set default screen resolution in Crunchbang GNU/Linux (#!)

September 16, 2013

1. Check your screen name

Open a terminal and type this command:
xrandr

You’ll get a list of available screen sizes, along with the name of your screen. In my case, that’s default.

2. Run xrandr as an OpenBox startup command

Open the ~/.config/openbox/autostart file, and add this line:
xrandr --output {screen name} --mode {window size} &

e.g.:
xrandr --output default --mode 1280x800 &

That’s it! OpenBox will now use your desired screen resolution at startup.

Advertisements

3 Responses to “How to set default screen resolution in Crunchbang GNU/Linux (#!)”


  1. What about Hz for external monitor?


  2. If you don’t know how to configure xrandr you can use arandr which is a simple gui screen config tool

  3. ngocphamm Says:

    I’m not sure why but this doesn’t help with my Crunchbang 11 as a virtual machine under Parallels Desktop 9 for Mac. I need to set it in /etc/X11/xorg.conf. Ref: http://crunchbang.org/forums/viewtopic.php?pid=24807#p24807


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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: