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 |
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.
|
|
09-21-2004, 05:45 AM
|
#1
|
LQ Newbie
Registered: Jul 2004
Posts: 23
Rep:
|
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.
|
|
|
09-21-2004, 05:51 AM
|
#2
|
LQ Newbie
Registered: Sep 2004
Distribution: debian, gentoo, red hat
Posts: 16
Rep:
|
That would be
/etc/X11/XF86Config
greetz Marco
|
|
|
09-21-2004, 06:12 AM
|
#3
|
LQ Newbie
Registered: Jul 2004
Posts: 23
Original Poster
Rep:
|
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.
|
|
|
09-21-2004, 06:24 AM
|
#4
|
LQ Newbie
Registered: Sep 2004
Distribution: debian, gentoo, red hat
Posts: 16
Rep:
|
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
|
|
|
09-21-2004, 06:39 AM
|
#5
|
LQ Newbie
Registered: Jul 2004
Posts: 23
Original Poster
Rep:
|
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
|
|
|
09-21-2004, 09:16 AM
|
#6
|
LQ Newbie
Registered: Sep 2004
Distribution: debian, gentoo, red hat
Posts: 16
Rep:
|
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.
|
|
|
09-22-2004, 03:04 AM
|
#7
|
LQ Newbie
Registered: Jul 2004
Posts: 23
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:14 PM.
|
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
|
|