LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to change the size of the screen without reinstalling slackware (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-change-the-size-of-the-screen-without-reinstalling-slackware-691153/)

3sdf 12-17-2008 03:14 AM

how to change the size of the screen without reinstalling slackware
 
I installed slackware 12.1 on my laptop computer.When install it,as I didn't know the size of the screen(1200*800 which I reflected later),I chose the default option which is about 1078*800 or something like that.The installing is finished,and the machine can be booted.however,no matter it is in shell mode or GUI mode,the screen is left two black rectangles on the left and right sides.I want to fix it,but I do not know how to do it without reinstall it.Can anyone help me on how to fix this problem?

brianL 12-17-2008 03:55 AM

Try the easiest way first, run xorgsetup, as root. If that doesn't work, there are other ways without reinstalling.

benoy4007 12-17-2008 04:44 AM

Run kernal with "single" from grub or lilo.
Then use vi or vim to edit /etc/X11/xorg.conf

OR

Replace with old backup file "xorg.conf" located in the same folder.
Use " cp /etc/X11/~xorg.conf /etc/X11/xorg.conf

nyle 12-17-2008 10:58 AM

Quote:

Originally Posted by brianL (Post 3378321)
Try the easiest way first, run xorgsetup, as root. If that doesn't work, there are other ways without reinstalling.

Unless "xorgsetup" is a valid link, I'm pretty sure the command is "xorgconfig"

But he can manually edit /etc/X11/xorg.conf as well.

brianL 12-17-2008 11:16 AM

With xorgconfig you have to know your monitor's specs in more detail. xorgsetup worked for me on both my laptop & desktop, getting the optimum resolution right away: 1280x800 and 1280x1024.

nyle 12-18-2008 08:42 AM

Hot damn, that's news to me. I always hated how Slackware would make me have to search for monitor specifications before I could configure X. That will save me the trouble. Thanks!

nflenz 12-18-2008 09:07 AM

Quote:

Originally Posted by brianL (Post 3378321)
Try the easiest way first, run xorgsetup, as root. If that doesn't work, there are other ways without reinstalling.

I think the easiest way is to just let Xorg configure it for you. Close the X Window System, then run:

Code:

# Xorg -configure
This will create a new file named xorg.conf.new. You can test it with:

Code:

$ X -config /path/to/xorg.conf.new
If that works, backup your old xorg.conf and replace it with xorg.conf.new.

mrrangerman 12-18-2008 10:35 AM

Make a copy of your xorg.conf file, cp /etc/X11/xorg.conf /etc/X11/xorg.conf.old Now edit xorg.conf favorite-editor /etc/X11/xorg.conf Now at the bottom of the file you will find the Mode section, add the resolution to the left you want to have at bootup. Save and exit restart x Ctrl+Alt+Backspace.


Note: If you cd into the X11 directory you can skip the path in the command. Just cp xorg.conf xorg.conf.old

3sdf 12-20-2008 07:06 AM

I selected KDE at the beginning and after I have reinstalled it,the shell mode becomes nomal yet their are still GUI mode problem.

3sdf 01-03-2009 10:10 AM

After I have run xorgsetup to make a new configuration file,new problem is comming,the size of the screen is just fit the size the the computer LCD.However,all words in KDE was missing,I don't know why.Can any one tell me how to fix?


All times are GMT -5. The time now is 02:15 PM.