LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-02-2007, 03:20 AM   #1
Ian B Christie
LQ Newbie
 
Registered: Dec 2004
Location: Melbourne; Australia
Distribution: Ubuntu 8.10, Xubuntu, 64Studio
Posts: 23

Rep: Reputation: 15
Red face Changed screen resolution and now I can't login


I'm setting up an AMD Sempron box with Kubuntu 6.10. I am using an old Daewoo monitor. I changed the screen resolution from something high (1200 x something) to a more useable (on this monitor) 800 x 600. I also chose the monitor from the manufacturer list. It all seemed OK and popped up a message to restart the X-server to use the new settings. I did a reboot (didn't notice the "restart X" option in the login/out menu) and now when I try to login I just get dumped back to the login screen. I can login as any other user and everything works fine, it's just that my personal login was the one which (in Kubuntu) has the su option.

I can login to a shell and can su from there but I don't know what I need to do to restore the screen resolution for my account to something which will work. I presume there is a file which I can edit to fix this but I don't know which file. If there is a log file which would be useful for diagnosis please tell me and I'll put the contents here.

Cheers
Ian Christie
 
Old 04-02-2007, 03:50 AM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
You could have a look at /var/log/xorg.0.log.

The file that may need some editing is /etc/X11/xorg.conf. Maybe you could post it here so people can get an idea what may be wrong.
 
Old 04-02-2007, 04:52 AM   #3
uma mahesh
LQ Newbie
 
Registered: Feb 2007
Posts: 15

Rep: Reputation: 0
u need to edit /etc/X11/xorg.conf

Instead of booting from hard disk boot from the linux 1st cd and then edit
In that file change the entry for Screen0
U will find "1200*968" "800*600" "640*480"
now remove "1200*968" and save it.

Now restart from harddisk
 
Old 04-02-2007, 06:36 AM   #4
Ian B Christie
LQ Newbie
 
Registered: Dec 2004
Location: Melbourne; Australia
Distribution: Ubuntu 8.10, Xubuntu, 64Studio
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks guys; I'm sure you are pointing me in the right direction.
xorg.conf has a section like this:-

Section "Monitor"
identifier "518X"
vendorname "Daewoo"
modelname "Daewoo 518X"
HorizSync 30.0-54.0
VertRefresh 50.0-120.0
modeline "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
modeline "640x480@72" 31.5 640 664 704 832 480 489 491 520 -vsync -hsync
modeline "640x480@75" 31.5 640 656 720 840 480 481 484 500 -vsync -hsync
modeline "640x480@85" 36.0 640 696 752 832 480 481 484 509 -vsync -hsync
modeline "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
modeline "800x600@72" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
modeline "800x600@75" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
modeline "800x600@85" 56.3 800 832 896 1048 600 601 604 631 +hsync +vsync
modeline "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
modeline "832x624@75" 57.284 832 864 928 1152 624 625 628 667 -vsync -hsync
modeline "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
modeline "1024x768@43" 44.9 1024 1032 1208 1264 768 768 776 817 +hsync interlace +vsync
modeline "1152x768@54" 64.995 1152 1178 1314 1472 768 771 777 806 +hsync +vsync
modeline "1280x854" 80.0 1280 1309 1460 1636 854 857 864 896 +hsync +vsync
gamma 1.0
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "518X"
DefaultDepth 24
SubSection "Display"
depth 24
virtual 1280 854
modes "1024x768@60" "1024x768@43" "832x624@75" "1152x768@54" "800x600@60" "1280x854" "800x600@85" "800x600@75" "800x600@72" "800x600@56" "640x480@85" "640x480@75" "640x480@72" "640x480@60"
EndSubSection
EndSection

By comparison the file xorg.conf1 looks like:-

Section "Monitor"
Identifier "518X"
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "518X"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "720x400" "640x480" "1x1"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "720x400" "640x480" "1x1"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "720x400" "640x480" "1x1"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "720x400" "640x480" "1x1"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "720x400" "640x480" "1x1"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "720x400" "640x480" "1x1"
EndSubSection
EndSection

Is there any significance to this?

Should I edit xorg.conf or should I just cut and paste the section from xorg.conf1?

Cheers
Ian
 
Old 04-02-2007, 10:02 PM   #5
Ian B Christie
LQ Newbie
 
Registered: Dec 2004
Location: Melbourne; Australia
Distribution: Ubuntu 8.10, Xubuntu, 64Studio
Posts: 23

Original Poster
Rep: Reputation: 15
OK; I've bitten the bullet and done a reinstall. Screen has installed at 1024 x 768 so I'll just accept that and not fiddle. Thanks anyway, I now know more about configuration than I did previously so your answers wern't wasted. Thanks again
Cheers
Ian
 
Old 04-03-2007, 12:41 AM   #6
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Just press the Ctrl, Alt, and '+' keys simultaneously to scroll through the various resolutions in your xorg.conf file. (Note that the '+' key refers to the + key on the numeric keypad, not the +/= key adjacent to the Backspace key)
 
  


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
screen resolution changed on restart SVwander Ubuntu 4 01-15-2007 03:49 PM
KDE 3.4 login screen has changed Yalla-One Linux - Software 5 03-28-2005 07:09 PM
Wine: Red Alert: screen resolution not changed properly drowstar Linux - Games 2 05-21-2004 08:02 AM
changed to unsupported screen resolution!!! edzvan Linux - Newbie 1 03-30-2004 09:09 AM
Changed resolution. now blank screen after boot up. Kazt Red Hat 26 10-23-2003 11:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:47 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