LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   X-server rebooting (https://www.linuxquestions.org/questions/linux-newbie-8/x-server-rebooting-82031/)

Mr-D 08-14-2003 03:52 PM

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% :newbie: to linux so please don't flame to mutch.

Crashed_Again 08-14-2003 04:27 PM

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.

MasterC 08-16-2003 04:15 AM

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

Mr-D 08-16-2003 04:23 AM

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!

MasterC 08-16-2003 04:24 AM

No worries, now you know for future reference ;)

Cool

Mr-D 08-16-2003 05:51 AM

did not work still only get 800x600

EDIT: Do I need to set the DPI ?

MasterC 08-16-2003 06:01 AM

Can you post up your XF86Config file?

Also, your distro might use XF86Config-4 so you might wanna edit both to make sure.

Cool

Mr-D 08-16-2003 06:06 AM

# 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.

MasterC 08-16-2003 06:11 AM

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

Mr-D 08-16-2003 06:37 AM

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 ?

MasterC 08-16-2003 06:45 AM

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

Mr-D 08-16-2003 07:03 AM

oki thx for your time ill try it all till it works :)

EDIT: i all ready reinstalled 2 times in 2 days o_O

Mr-D 08-17-2003 07:51 AM

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 ?

Mr-D 08-17-2003 02:43 PM

well... ill ask around...


All times are GMT -5. The time now is 08:20 PM.