Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
08-14-2003, 03:52 PM
|
#1
|
LQ Newbie
Registered: Aug 2003
Posts: 10
Rep:
|
X-server rebooting
I'm sure this question gotta be the most lamet and newbies question ever but I just installed Linux to day (my fist time ever using linux)
When i set my resolution to someting new (its 800*600 - and i REALLY need it to be 1280*1024) it tells me:
You need to log out and restart the X server for the changes to take effect.
My question is when i reboot my pc is that like rebooting X server?
cuz i can't get it to change the resolution to 1280*1024 i tryed with root account any my normal account (running redhat 9)
I'm sure i can finde the answer to my question on some homepage but i just can't stand this resolution.
Again im 100% to linux so please don't flame to mutch.
|
|
|
08-14-2003, 04:27 PM
|
#2
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
Well if you reboot the machine then you certainly are rebooting the X server. You could also try typing:
Ctrl+Alt+Backspace
to shutdown X.
|
|
|
08-16-2003, 04:15 AM
|
#3
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Please do not post the same thread more than 1 time, even if you reword the thread, it's the same thing. Thank You. Now, WRT the information you posted IN that second thread:
http://www.linuxquestions.org/questi...threadid=82475
Your Default Depth is 24. So you'll need to edit that 'Mode' portion to have more modes than the 2 that are there. If you want your Default Mode to be 1024x768 you'll want that to be listed first:
Code:
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x400"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Cool
|
|
|
08-16-2003, 04:23 AM
|
#4
|
LQ Newbie
Registered: Aug 2003
Posts: 10
Original Poster
Rep:
|
ok thx! ill let you know if it works... and im so sorry about the 2x thread
I have just been trying to change the resolution for like 8hours now and im going crezy!
|
|
|
08-16-2003, 04:24 AM
|
#5
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
No worries, now you know for future reference
Cool
|
|
|
08-16-2003, 05:51 AM
|
#6
|
LQ Newbie
Registered: Aug 2003
Posts: 10
Original Poster
Rep:
|
did not work still only get 800x600
EDIT: Do I need to set the DPI ?
Last edited by Mr-D; 08-16-2003 at 06:01 AM.
|
|
|
08-16-2003, 06:01 AM
|
#7
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Can you post up your XF86Config file?
Also, your distro might use XF86Config-4 so you might wanna edit both to make sure.
Cool
|
|
|
08-16-2003, 06:06 AM
|
#8
|
LQ Newbie
Registered: Aug 2003
Posts: 10
Original Poster
Rep:
|
# XFree86 4 configuration created by redhat-config-xfree86
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore"
EndSection
Section "Files"
# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
EndSection
Section "InputDevice"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "dk"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection
Section "InputDevice"
# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Unprobed Monitor"
HorizSync 31.5 - 37.9
VertRefresh 50.0 - 70.0
Option "dpms"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "nv"
VendorName "Videocard vendor"
BoardName "NVIDIA GeForce 4 (generic)"
VideoRam 131072
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x400"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "DRI"
Group 0
Mode 0666
EndSection
searching for XF86Config-4 ill edit it asap.
|
|
|
08-16-2003, 06:11 AM
|
#9
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Ok, looks like this might be your 'problem':
Code:
Section "Device"
Identifier "Videocard0"
Driver "nv"
VendorName "Videocard vendor"
BoardName "NVIDIA GeForce 4 (generic)"
VideoRam 131072
EndSection
Check the first thread in this forum. It describes how to install the Nvidia drivers.
Cool
|
|
|
08-16-2003, 06:37 AM
|
#10
|
LQ Newbie
Registered: Aug 2003
Posts: 10
Original Poster
Rep:
|
After installing and editing the cfg it looks like this:
# XFree86 4 configuration created by redhat-config-xfree86
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore"
EndSection
Section "Files"
# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "dk"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection
Section "InputDevice"
# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Unprobed Monitor"
HorizSync 31.5 - 37.9
VertRefresh 50.0 - 70.0
Option "dpms"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "NVIDIA GeForce 4 (generic)"
VideoRam 131072
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x400"
EndSubSection
SubSection "Display"
Depth 16
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "800x600" "640x480"
EndSubSection
EndSection
Section "DRI"
Group 0
Mode 0666
EndSection
What i dont get is when i change the resolution and restart X it goes from:
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x400"
EndSubSection
to:
SubSection "Display"
Depth 24
Modes "800x600" "640x480"
EndSubSection
EDIT: does my DPI have to be set ?
Last edited by Mr-D; 08-16-2003 at 06:42 AM.
|
|
|
08-16-2003, 06:45 AM
|
#11
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Comment out these lines as well:
Code:
Section "DRI"
Group 0
Mode 0666
EndSection
As for it dynamically changing, that might just be something your distro includes. You might wanna take a look around your distro's site's documentation to see if it mentions anything, you can also dig around in /etc/X11 to see if you can find any files that tweak it.
It might even be Xconfigurator. An option might be to give it the untouchable attribute:
chattr -i /etc/X11/XF86Config
What this will do is take away ANYONE's ability to modify that file. Be careful, and remember you did it if you choose to. Read up on the man page first:
man chattr
And the info:
info chattr
Before messing with it.
Cool
|
|
|
08-16-2003, 07:03 AM
|
#12
|
LQ Newbie
Registered: Aug 2003
Posts: 10
Original Poster
Rep:
|
oki thx for your time ill try it all till it works
EDIT: i all ready reinstalled 2 times in 2 days o_O
Last edited by Mr-D; 08-16-2003 at 07:11 AM.
|
|
|
08-17-2003, 07:51 AM
|
#13
|
LQ Newbie
Registered: Aug 2003
Posts: 10
Original Poster
Rep:
|
I tryed it all other then chattr -i /etc/X11/XF86Config and still no luck
Im still stuck @ 800x600
I even tryed to remove 800x600 in the XF86Config.. and then it was unable to start X up cuz there was no screen it said... took me some time to edit the XF86Config in text mode but its back to normal now.. i got no clue what to do now.. anyone else have had this problem ?
|
|
|
08-17-2003, 02:43 PM
|
#14
|
LQ Newbie
Registered: Aug 2003
Posts: 10
Original Poster
Rep:
|
well... ill ask around...
|
|
|
All times are GMT -5. The time now is 09:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|