LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 09-25-2006, 01:24 PM   #1
erwinfletch
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Rep: Reputation: 0
CRT or LCD monitor?


Hi-

I'd like to know if it's possible to programmatically find out if the monitor being used is a CRT or LCD. More specifically, does the monitor have a sub-pixel display.

Is this info stored in a config file somewhere that I can parse?

Thanks!
 
Old 09-25-2006, 02:13 PM   #2
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
I do not know if there is a way to find that out, but ... most LCDs now a days work on the high end res 1024x1280 so yo can use JavaScript (I assume you are doing some web development?) to test for the resolution.

Hope this helps.

R
 
Old 09-25-2006, 02:56 PM   #3
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,858
Blog Entries: 1

Rep: Reputation: Disabled
You can also either:

1. look into the DDC API:
http://en.wikipedia.org/wiki/VESA_Display_Data_Channel (any supported monitor)

or

2. parse the XF86Config file (Linux only)

Last edited by paulsm4; 09-25-2006 at 03:00 PM.
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
analog lcd monitor not working after installing a digital lcd monitor nishlq Linux - Hardware 6 08-18-2006 02:18 PM
from CRT to LCD monitor - help boyd98 AIX 7 09-07-2005 03:08 PM
Switching from CRT to LCD Question Centinul Linux - Hardware 3 07-27-2005 06:42 PM
Replaced CRT with LCD monitor steve123 Linux - Hardware 1 09-05-2003 01:10 AM
Redhat 9 Switching between CRT And LCD NEONLUG Linux - Hardware 2 04-27-2003 08:33 PM


All times are GMT -5. The time now is 08:50 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration