Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've set up a Compaq laptop for dual boot between WinXP-HE and SuSE 9.3 and it looks like it works. But then I set the screen resolution to a bad value within the GUI (I set it to 1280x1024 when I wanted to change to 1280x768). Now the GUI no longer will comes up when I boot linux.
I looked in xorg.conf (and the backup copies of it) and they only list "default" for the screen resolution. Is there another configuration file somewhere where my erroneous entry is stored that I can edit to fix this problem.
Look at DefaultDepth and find out at which depth it is defaulted to. Then, under SubSection "Display", look for the color depth, in my case, it is 24. Supported resolution is listed in "Modes". You can specify multiple screen resolution like this.
Quote:
Modes "1280x960" "1024x768" "800x600"
X reads the line from left to right. So, the default resolution must be listed as the first entry.
Good luck.
p.s. If you can't get it with this simple instruction, post your xorg.conf here so that we can have a better look into this.
thanks for the help, but I'm not sure that when I set the resolution to the improper value, it changed anything in the xorg.conf file. Below is the latter part of the file (typed in by hand since I don't yet have a way of getting stuff off the new laptop electronically).
Incidently, the line in the boot sequence that gives an error is:
initrd(hd0,2)/boot/initrd
and the error is something about an invalid argument.
From the prompt type su then your password.
type nano /etc/X11/xorg.conf
next type
<ctrl key>+w and type in Modes "default"
then change the "default" to what koyi posted
Modes "1280x960" "1024x768" "800x600"
then you are going to want to type <ctrl>+x and choose Y to save and Y to overwrite.
Be sure you are editing the correct line though. This should overwrite whatever you did in Yast or whatever you used
Originally posted by jhwhite thanks for the help, but I'm not sure that when I set the resolution to the improper value, it changed anything in the xorg.conf file.
It depends on what did you use to change the resolution. I am not sure about this but it seems that XFCE doesn't change the xorg.conf directly. It saves the config in another place(I didn't care to find out but I think it is under the home directory...). Not sure about YAST, GNOME, KDE, etc, though.
Quote:
Incidently, the line in the boot sequence that gives an error is:
initrd(hd0,2)/boot/initrd
and the error is something about an invalid argument.
Now I wonder if it is really the resolution that is causing the problem. Perhaps it is caused by another factor. What is the "invalid argument" that initrd is complaining about? Would you mind to post the error message?
Sure, only if the above posts didn't help you much.
From previous post by koyi:
-----
Now I wonder if it is really the resolution that is causing the problem. Perhaps it is caused by another factor. What is the "invalid argument" that initrd is complaining about? Would you mind to post the error message?
------
I went back and looked at the error and I was probably wrong about initrd giving the error. It may be that the initrd line was the last thing executed successfully. When I boot, this is what I see (with allowance for typos):
You passed an undefined mode number.
Press <RETURN> to see video modes available, <SPACE> to continue or wait 30 secs
<end of transcription from screen>
I press the space bar at this point and boot continues to a console type login prompt.
I tried using "sax2 -a" to create a new xorg.conf which appeared successful, but the system behaved the same with the new one when it rebooted.
There's probably a simple fix for this for a person that knows something about linux but that's not me. I've used Unix before, even writing some C code under it, but I've never done anything on the administration side so I definitely qualify as a newbie.
So... since I haven't added any user files to the system, I'm going to just redo the installation. Either way, (repeating the installation or finding the corrupted config file) I'm going to learn something from the process and that's the idea.
Thanks for the help. This site is a great source of info.
Originally posted by jhwhite
kernal (hd0,2)/boot/vmlinuz root=/dev/hda3 vga=794 selinux=0 splash=Silent Console=tty0 resume=/dev/hda2
[Linux-bzImage, setup=0x1600, size=0x18b5f6]
initrd (hd0,2)/boot/initrd
[Linux-initrd@0x17cfa000, 0x1e5f39 bytes]
You passed an undefined mode number.
Press <RETURN> to see video modes available, <SPACE> to continue or wait 30 secs
<end of transcription from screen>
If you have already formatted your hard disk and redone the installation, this may not matter anymore. But I think this error is caused by the "vga=794" line on the boot command.
Try this if you still can.
1. At the Grub boot screen when you can select which OS to boot. Press "e" to edit the boot parameter.
2. At the line starts with "kernel", press "e" again to edit the line.
3. Now, move the cursor with the arrow keys and delete the parameter "vga=794". Then press "Enter".
4. Now the line should look like:
Thanks for the tip. I have reformatted the linux partitions and reloaded linux. The system seems to be be working again. I'll go back and check what it is using for that line in the boot script to see if that is different now to see if that was indeed the problem. In the meantime, I'm going to be really careful about configuration changes that I make until I better understand how to fix things when I break them.
thanks
joe
Just for your information, the vga parameter given to the kernel at boot time specify the mode of the framebuffer used when the computer boots up. I am not sure if this is the correct explanation so if anyone has something to say please feel free to do so.
If you are interested you can read the whole article. But to make it simple, let's look at an example. If you specify "vga=0x31A", then the screen display will be 1280x1024@16bits. But remember that this has nothing to do with X itself. In your case, it is specified as "vga=794". As you should have already noticed, this is just the difference of a hex value and a decimal value. So, no big deal here.
I will suggest that you check that the settings you changed last time to see what it actually changes. Does it change the resolution in X or it changes the resolution of the framebuffer?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.