LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 04:05 PM   #1
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 302
Blog Entries: 7

Rep: Reputation: 44
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, 04:12 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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, 05:02 PM   #3
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 302

Original Poster
Blog Entries: 7

Rep: Reputation: 44
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, 05:50 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

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

Evo2.

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

Original Poster
Blog Entries: 7

Rep: Reputation: 44
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, 06:16 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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, 07:02 PM   #7
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 302

Original Poster
Blog Entries: 7

Rep: Reputation: 44
Thanks Evo2, very helpful!
 
  


Reply



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 07:53 PM
change resolution on command? drkstr Slackware 2 09-08-2006 11:12 PM
change monitor resolution from command line gschrade Linux - Newbie 2 04-23-2004 03:57 PM
Command to change screen resolution? pilot1 Fedora 7 12-17-2003 03:01 PM
[command line] Resolution change in RedHat 8 asiemer Linux - General 1 07-01-2003 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:59 AM.

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
Open Source Consulting | Domain Registration