LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 03-11-2013, 05:05 PM   #1
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 290
Blog Entries: 7

Rep: Reputation: 43
Red face How do I change the Resolution with a Bash Command?


I am running Debian 6 and I would like to find two good commands relating to the screen resolution. One is how to find out what the current resolution of the monitor is, and the other is a command to change the resolution. I know this has to be so simple, but I can't find it in any of the resources that I have. Thanks in advance!
 
Old 03-11-2013, 05:12 PM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,591

Rep: Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244
Hi,

xrandr is probably what you are looking for. You'll have to read some documentation to find the correct options.

Evo2.
 
Old 03-11-2013, 06:02 PM   #3
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 290
Blog Entries: 7

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by evo2 View Post
Hi,

xrandr is probably what you are looking for. You'll have to read some documentation to find the correct options.

Evo2.
Thanks, Evo2, but this program isn' isntalled on my Debian Squeeze system, when I typed it, nothing happened, and there were no entries in either man or info for it. Perhaps a different command? This is a very basic install, if it matters. I like this basic install because it is helping me get down into the nitty gritty of the OS.
 
Old 03-11-2013, 06:50 PM   #4
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,591

Rep: Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244
Hi,

are you running x11? xrandr is provided by the x11-xserver-utils package.

Evo2.

Last edited by evo2; 03-11-2013 at 06:51 PM.
 
Old 03-11-2013, 07:06 PM   #5
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 290
Blog Entries: 7

Original Poster
Rep: Reputation: 43
I'm sorry, evo2, I should've read your post more carefully. I am not running X at all on this machine........text mode OS only, (hones my CLI skills). So I'm not running any one of the X servers.
 
Old 03-11-2013, 07:16 PM   #6
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,591

Rep: Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244
Hi,

without X11, you're in frame buffer territory. grub can pass options to the kernel at boot time and loading the different frame buffer kernel modules may change the resolution.

In addition to this there have been recent developments in regard to the kernel setting up the video. See for example:
http://wiki.debian.org/KernelModesetting

I've never really bothered to play around in the framebuffer too much: I find X11 much more convenient. Sorry I can't be of more help.

Evo2.
 
1 members found this post helpful.
Old 03-11-2013, 08:02 PM   #7
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 290
Blog Entries: 7

Original Poster
Rep: Reputation: 43
Thanks Evo2, very helpful!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] command line script to change resolution of png files kaz2100 Programming 3 06-04-2007 08:53 PM
change resolution on command? drkstr Slackware 2 09-09-2006 12:12 AM
change monitor resolution from command line gschrade Linux - Newbie 2 04-23-2004 04:57 PM
Command to change screen resolution? pilot1 Fedora 7 12-17-2003 04:01 PM
[command line] Resolution change in RedHat 8 asiemer Linux - General 1 07-01-2003 08:04 PM


All times are GMT -5. The time now is 08:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration