As included from previous blog entry of changing VGA setting or VGA screen resolution using Gnome system-config-display, which can be found here, here's another entry on how to force VGA screen resolution into your X settings directly via terminal.
As you know, X uses default configuration files, one of them is /etc/X11/xorg.conf. X reads this file during the process of launching and logging into X via runlevel 5. Settings for mouse, keyboard, VGA card, display resolution, regional language, screen types, VGA drivers and other modules used by X are basically declared and can be found from this X conf file.
If you want to change your VGA settings directly via terminal or force screen VGA resolution changes due to some *unknown driver issues, you can edit this file directly. Remember to do proper backups when editing linux configuration files.
1. Backing up xorg.conf
# cp /etc/X11/xorg.conf /etc/X11/xorg.conf.good
2. Launch your favorite terminal editor and edit xorg.conf
3. Inside xorg.conf, find the "Section Screen" which declares supported screen resolution for your currently detected VGA card. A sample of screen section layout is shown below:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "640x480"
EndSubSection
EndSection
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE:
If you strongly believe and have proof that your VGA card supports a non-declared screen resolution besides from the above shown modes or if your VGA card driver manuals or websites showed that your VGA card supports the screen resolution you wish to achieve, proceed with the following with caution.
4. Here, assuming that we are going to force a VGA screen resolution mode of 1024x768 into xorg.conf and you are done with xorg.conf backup file. Edit the xorg.conf lines that says 'Modes' under Screen Section like shown below
From
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Modes "800x600" "640x480"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Modes "1024x768" "800x600" "640x480"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
and save xorg.conf.
5. Close all opened applications. Restart X by hitting Ctrl+Alt+Backspace key combinations and see the effects of xorg.conf changes.
Success?
If X hangs after giving it some time like 60 seconds or more, and you wish to revert back recent changes from your xorg.conf, simply press Ctrl+F1 and login as root via TTYs. Then copy your backup xorg.conf.good file overwriting the non-working xorg.conf. Go back to X mode by hitting Ctrl+F7 and from there, try to hit Ctrl+Alt+Backspace for another X restart attempt.
Success?
If X does not restart again, try to go back to currently logged in root user via Ctrl+F1. As root, issue one of the following to stop a malfunctioning X or restart a new process from one of the below X commands.
To stop X
# gdm-stop
To restart X
# gdm-restart
To have a safe mode restart of X
# gdm-safe-restart
To launch a new X
# startx
There are times you need to kill an existing non-functioning Gnome X process by using kill.
Gnome X has a feature of detecting non-responsive and redundant failed launchng of Gnome X. If any attempts to launch X failed for several consecutive times, Gnome X automatically prompts you to have a new X setup and launches a new X setup. This is the same like launching it during a fresh linux installation.
This works for me during my old laptop, I hope it works for you too with your Fedora boxes as well.
Subscription
Categories
- HowTos (612)
- Linux Devices (40)
- Linux Diggs (620)
- Linux News (1541)
- Linux Videos (24)
Recent Posts
Blog Archive
-
▼
2007
(340)
-
▼
August
(95)
- KCron - GUI task scheduler
- Linux backups powered by Tar
- INQ7 front page image retrieval
- using wget for data and file transfers
- BibleTime - Bible study from Linux howto
- human readable DVD/CD drive technical details
- sound-juicer - alternative audio CD ripper install
- Stellarium - watch the sky from Linux
- Munin - monitor linux hosts install howto
- blocking yahoo chat messenger
- string manipulation using cut linux command
- graphing skystream DVB receiver's Eb/No and signal...
- BZFlag - 3D multi-player tank game install howto
- screenshot and snapshot creations howtos
- string parsing using bash
- grep multiple character from string or file
- enable and disable of telnet service
- grep multiple strings from a file
- remove spaces from filenames
- ISO creation and CD/DVD burning from terminal
- send a message to user's terminal
- retrieve GMail emails via terminal using fetchmail
- more of activating and deactivating network card
- set new mysql password
- TIP: enable thumbnail display images from apache
- monitor large mailbox users
- using the linux yes command
- string manipulation using tr linux command
- install and play 2D chess game in linux
- more firefox tips and tricks
- recover root password on linux
- establish ssh connection from different port
- uniq linux command
- remove blank lines using grep or sed
- date and time sync via NTP server howto
- who am I
- delete spam email and folder regularly howto
- hello world bash and perl script
- passwordless rdesktop session with XP howto
- force VGA screen resolution and screen mode
- RealPlayer 10 for linux install howto
- Grip - CD ripper install howto
- Banshee - music management and playback
- gnome music applet install howto
- Pirut and yum-updatesd - software management
- Alacarte - editing panel menus install howto
- access NTFS drive in Fedora
- FileLight - graphical disk usage and statistics
- TestDisk- partition tool install howto
- using /dev/null in linux terminal
- yahoo messenger in fedora install howto
- check and repair MS-DOS file systems howto
- using fdformat and mkdosfs from terminal
- Tremulous - Quake 3 install howto
- block consecutive IP address using scripts
- using floppy linux command from terminal
- display word or text file in reversed pattern
- convert a file to equivalent hex/binary code
- spell check text file from terminal
- create screen timer from linux howto
- recreate deleted /dev/null
- harddisk monitoring using smartctl
- bind ssh to selected IP address
- restrict su command to superuser only
- thunderbird install howto
- dovecot POP3/POP3S server with SSL/TLS install howto
- qpopper POP3 server install howto
- my other linux pages
- more ssh log parsing and monitoring
- checking daemon service bash script
- HTML CHM help file viewer install howto
- du - the disk usage linux command howto
- gnome language translator install howto
- display linux memory information howto
- display the number of processor howto
- 3d tabletennis game install howto
- Nokia N70 on Fedora via USB data cable
- Fedora 7 as guest host from VirtualBox
- at - jobs scheduling howto
- Nokia 70 linux connection via bluetooth dongle howto
- crontab - jobs scheduling howto
- managing daemon services howto
- create your own linux OS distro howto
- kernel devel headers install howto
- more multimedia browser plugins install howto
- numlock on with X install howto
- Fedora and RHEL differences
- create virtual terminals with single ssh connection
- virtual CentOS using VMWare 5.5.4 install howto
- VMware workstation 5.5.4 install howto
- 50 quick linux command tips part 4
- 5 SysAds permanent static route story
- ssh log parsing and monitoring
- removable drives, devices and media preferences
- gnome-blog desktop blogging install howto
-
▼
August
(95)
Tuesday, August 21, 2007
force VGA screen resolution and screen mode
Subscribe to:
Post Comments (Atom)
ILoveTux - howtos and news | About | Contact | TOS | Policy
0 comments:
Post a Comment