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 09-21-2004, 04:45 AM   #1
joeyBig
LQ Newbie
 
Registered: Jul 2004
Posts: 23

Rep: Reputation: 15
which file has the display properties in Linux


hi there,

I need the file which stores all the information regarding the display properties,
for different distributions.
for instance, in Redhat 9.0,
where does the application redhat-config-xfree86 stores its values, such as,
Monitor Type (Model),
DPI information,
Video card type,
Driver,
Resolution,
Color Depth,
Horizontal and Vertical refresh rates etc...

thanks 'n regards,
joe.
 
Old 09-21-2004, 04:51 AM   #2
dawharl
LQ Newbie
 
Registered: Sep 2004
Distribution: debian, gentoo, red hat
Posts: 16

Rep: Reputation: 0
That would be

/etc/X11/XF86Config


greetz Marco
 
Old 09-21-2004, 05:12 AM   #3
joeyBig
LQ Newbie
 
Registered: Jul 2004
Posts: 23

Original Poster
Rep: Reputation: 15
Is there any system calls to fetch the display settings

hi dawharl,

thank you for the help.
I am having another querry,
does redhat-config-xfree86 stores all its settings in /etc/X11/XF86Config?
I need to extract the display settings and other display related details.
extracting from /etc/X11/XF86Config will be very tough.
Is there any alternative method to get all the display details.
Is there any system call to retrieve those display settings.

thanks and regards,
joe.
 
Old 09-21-2004, 05:24 AM   #4
dawharl
LQ Newbie
 
Registered: Sep 2004
Distribution: debian, gentoo, red hat
Posts: 16

Rep: Reputation: 0
Honestly I'm not quite sure if the program that you're using only stores in the XF86Config, although I find it likely .

About the extracting, that shouldn't be to hard to do, could you be a bit more specific, would you like to have te details is a text file?

If so, than you could for instance try:
Code:
cat /etc/X11/XF86Config | grep <detail>  > <filetowriteto>
this would put lines which contain the <detail> word(s), into a file
 
Old 09-21-2004, 05:39 AM   #5
joeyBig
LQ Newbie
 
Registered: Jul 2004
Posts: 23

Original Poster
Rep: Reputation: 15
thanks buddy...

dawharl,

Thank you for u'r eforts.
I 'll extract the details from XF86config as you said.
If u happened to come across any system calls or other possible ways (in C), do mail me at pravinjoelraj@yahoo.com
thank you,
hope to hear from you.

regards,
joe
 
Old 09-21-2004, 08:16 AM   #6
dawharl
LQ Newbie
 
Registered: Sep 2004
Distribution: debian, gentoo, red hat
Posts: 16

Rep: Reputation: 0
Personaly I wouldn't do it in C.

Perhaps you can try perl or python?

Both not to difficult languages, You could make the filthering of the file better by using regular expressions in perl.
 
Old 09-22-2004, 02:04 AM   #7
joeyBig
LQ Newbie
 
Registered: Jul 2004
Posts: 23

Original Poster
Rep: Reputation: 15
thank you dawharl,

hi dawharl,
I checked the file 'n it is the most suitable file.
redhat-config-xfree86 stores all its settings in the same file u said.
as for as the Language to use, this project is in C, which is already half way.
the core idea, is to collect all the information regarding a pc 'n its peripherals, under Linux.
so I have to do it in C. :-) that's not a problem.
 
  


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 properties windows off screen? Bill Johns Linux - Software 2 03-27-2005 06:59 PM
problem configuring display properties in mandrake 10 install surlymike Mandriva 1 09-01-2004 08:18 PM
how do i change display properties lil213 Linux - Software 5 11-06-2003 10:39 PM
File system's properties hotrodowner Linux - General 3 07-04-2002 10:20 AM
display properties Syncrm Linux - General 4 01-11-2002 11:24 AM

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

All times are GMT -5. The time now is 05:07 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
Open Source Consulting | Domain Registration