LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-03-2005, 07:06 PM   #1
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Rep: Reputation: 30
Display setting


How come i can't adjust my RHL 9 display resolution from 640 * 800 to 1024 * 800 or more ? It let me selected it but it won't changed. My driver is sis6326 4 mb ram. Thanks

Regards
Daniel
 
Old 02-03-2005, 08:36 PM   #2
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
You may need to find your display's refresh settings and change your xf86config file. That's the horizontal and vertical frequency specs.

(sorry, I'm not a linux machine right now, or I would post an example.)
 
Old 02-05-2005, 11:18 AM   #3
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Hi, where is this file located ?

Rgds
Daniel

Quote:
Originally posted by itsjustme
You may need to find your display's refresh settings and change your xf86config file. That's the horizontal and vertical frequency specs.

(sorry, I'm not a linux machine right now, or I would post an example.)
 
Old 02-05-2005, 11:52 AM   #4
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
I'm not sure whether it goes for RH but under Debian it's in /etc/X11 folder with the name XF86Config-4.
 
Old 02-05-2005, 12:25 PM   #5
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Hi, what command can let me find that file in the hard drive ? i won't go around searching each folder. Thanks

Rgds
Daniel


Quote:
Originally posted by harken
I'm not sure whether it goes for RH but under Debian it's in /etc/X11 folder with the name XF86Config-4.
 
Old 02-05-2005, 01:19 PM   #6
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
I just told you where it is. In the /etc/X11/ folder. I repeat, it might not be the same for you.
Anyway, to see if it's there: 'cd /etc/X11' If it says something like "/etc/X11: No such file or direcory" then I can't help you anymore. If not, try: 'ls XF86Config-4'. Again, if it says not found...sorry. If it just repeats like a parrot the same name under the command prompt it's ok.

Try that and we'll see how it goes.

P.S. To search for a file use the 'find' and/or 'whereis' commands.
 
Old 02-05-2005, 09:20 PM   #7
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
I do it like this:

$ su -
(password)
# find / -name 'xf86config*'

Or, you could

# updatedb
# locate xf86config

or

# which xf86config

It might be xf86config-4, so repeat with that.

But.... normally it's in /etc/X11 as mentioned.

Good luck...
 
Old 02-05-2005, 09:28 PM   #8
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Opps sorry miss out that sentence. ok i'll seach for it. Thanks

Rgds
Daniel


Quote:
Originally posted by harken
I just told you where it is. In the /etc/X11/ folder. I repeat, it might not be the same for you.
Anyway, to see if it's there: 'cd /etc/X11' If it says something like "/etc/X11: No such file or direcory" then I can't help you anymore. If not, try: 'ls XF86Config-4'. Again, if it says not found...sorry. If it just repeats like a parrot the same name under the command prompt it's ok.

Try that and we'll see how it goes.

P.S. To search for a file use the 'find' and/or 'whereis' commands.
 
Old 02-06-2005, 10:14 AM   #9
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Hi, i use some word editor but got error when editing the file. Erro is "Error writing to xf86config". I noticed that the permission is only 'rw' does it matters ? pls advise thanks

Rgds
Daniel


Quote:
Originally posted by itsjustme
I do it like this:

$ su -
(password)
# find / -name 'xf86config*'

Or, you could

# updatedb
# locate xf86config

or

# which xf86config

It might be xf86config-4, so repeat with that.

But.... normally it's in /etc/X11 as mentioned.

Good luck...
 
Old 02-06-2005, 10:17 AM   #10
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Can the file be edited ? It got error when i try to modify it. Error writing to xf86config. Permission is only rw. btw do you have any example ? pls advise. Thanks

Rgds
Daniel


Quote:
Originally posted by harken
I just told you where it is. In the /etc/X11/ folder. I repeat, it might not be the same for you.
Anyway, to see if it's there: 'cd /etc/X11' If it says something like "/etc/X11: No such file or direcory" then I can't help you anymore. If not, try: 'ls XF86Config-4'. Again, if it says not found...sorry. If it just repeats like a parrot the same name under the command prompt it's ok.

Try that and we'll see how it goes.

P.S. To search for a file use the 'find' and/or 'whereis' commands.
 
Old 02-06-2005, 11:32 AM   #11
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
The rw permission means 'read/write' which should be ok. But for who is it rw? Type 'ls -l /etc/X11/XF86Config-4'. If it says something like '-rw-r--r--' (and it should be this way) then most likely you fogot the su part. That's why you get the error: the file can be written only by root, but read by everyone.
So, do it like this: 'su' -- type the root's password; then use pico (or vim, whatever): 'pico /etc/X11/XF86Config-4'. When you're done, pressing Ctrl-X will ask you for saving the changes, answer 'y', then it'll ask you for the file name...just press Enter.

edit: Mind the capital letters of the file's name. 'xf86config-4' is different than 'XF86Config-4' for Linux.

Last edited by harken; 02-06-2005 at 11:34 AM.
 
Old 02-06-2005, 11:43 AM   #12
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
And here's an excerpt from my xorg.conf file on my slackware machine. It is the same file, basically, as your xf86config file (or, XF86Config, or XF86Config-4, or whatever it is in Red Hat 9, I forget). This shows the section where you will input your Horizontal and Vertical refresh info for your particular monitor:
Quote:
# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"

Identifier "E750"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

HorizSync 31.0 - 92.0

# HorizSync 30-64 # multisync
# HorizSync 31.5, 35.2 # multiple fixed sync frequencies
# HorizSync 15-25, 30-50 # multiple ranges of sync frequencies

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

VertRefresh 55-160

EndSection
Before you go editing it, you may just want to look at it. Try:
$ less xf86config

Keep at it. You'll get there.

Last edited by itsjustme; 02-06-2005 at 11:44 AM.
 
Old 02-06-2005, 07:07 PM   #13
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
The error is not only written by root and read by everyone. i use su - and enter password. i use different word editor also the same. Error attempting write to file xxx. The permission is correct like what you say and is assigned to root. The permission number is 2.

Rgds
Daniel


Quote:
Originally posted by harken
The rw permission means 'read/write' which should be ok. But for who is it rw? Type 'ls -l /etc/X11/XF86Config-4'. If it says something like '-rw-r--r--' (and it should be this way) then most likely you fogot the su part. That's why you get the error: the file can be written only by root, but read by everyone.
So, do it like this: 'su' -- type the root's password; then use pico (or vim, whatever): 'pico /etc/X11/XF86Config-4'. When you're done, pressing Ctrl-X will ask you for saving the changes, answer 'y', then it'll ask you for the file name...just press Enter.

edit: Mind the capital letters of the file's name. 'xf86config-4' is different than 'XF86Config-4' for Linux.
 
Old 02-11-2005, 04:38 AM   #14
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Hi, sorry late reply. When i edit the XF86Config, i change to resolution from 800 X 600 to 1024 X768, the screen will turn bigger instead of turning smaller that is 1024 X768 and most of the time it will hang. How come it become like that ?

Rgds
Daniel


Quote:
Originally posted by itsjustme
And here's an excerpt from my xorg.conf file on my slackware machine. It is the same file, basically, as your xf86config file (or, XF86Config, or XF86Config-4, or whatever it is in Red Hat 9, I forget). This shows the section where you will input your Horizontal and Vertical refresh info for your particular monitor:

Before you go editing it, you may just want to look at it. Try:
$ less xf86config

Keep at it. You'll get there.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
display setting jupiter3437 Linux - General 1 08-07-2005 03:18 AM
xlsfonts is dependant on DISPLAY setting not working on one display with Redhat iainsear Linux - General 0 12-21-2004 07:24 AM
xlsfonts is dependant on DISPLAY setting not working on one display with Redhat iainsear Linux - General 0 12-21-2004 07:19 AM
Display setting sanjay2004 Linux - Software 2 12-12-2004 09:47 AM
setting display after chroot darthczyz Linux - Newbie 2 04-05-2004 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:23 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration