LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-01-2008, 06:17 PM   #1
OldAl
Member
 
Registered: Oct 2006
Location: Canberra, Australia
Distribution: ubuntu MATE LTS
Posts: 102

Rep: Reputation: 15
Configuring 22" wide format LCD


Yesterday I bought BenQ FP222W (Analog, 22" wide format LCD) monitor. I would greatly appreciate any and all help I can get on configuring it on my amd64 PC with openSUSE 10.3 OS. I have read the thread "need help setting up wide screen LCD", particularly the suggestions by jschiwal. I understood it as recommending to edit the /etc/X11/xorg.conf, which I am willing to try, but have not done yet. (Currently my suse 10.3 is "broken" with 800x600 screen, struggling with w/h ratio 4/3, whilst I need 8/5). Monitor "natively" supports 1600x1050, 56-76 Hz image frequency, 30-82 kHz Line frequency.

I have tried to use sax2 with two commands with various parameters:
"sax2 -a" - no luck
"sax2 -V 0:1024x640@70" - no luck, either.

To do that I went to console (ctrl+alt+F1), logged in, switched to root, killed the x-win server with "init 3", issued sax2 command, then ran the x-win server by "init 5". Is this wrong and if so why?

All help and advice will be greatly appreciated.

OldAl.
 
Old 03-01-2008, 06:23 PM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
unless Suse has a gui tool, I think you're going to have to edit your xorg.conf file. It's not really that hard, just sudo or su to root, then edit the file by adding the Hsync and Vert. refresh range to the Monitor section, and the resolution to your mode line (not sure about your particular monitor, but I'm guessing that should probably be 1680x1050, not 1600). If your video card supports that resolution, I think that should be all you need to do. If you're still having trouble, post your xorg.conf and we'll try to set you up.
 
Old 03-01-2008, 06:48 PM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

Rep: Reputation: Disabled
Just had to configure a 22" myself. After probing it with different settings I commented sync lines out and X started up perfectly using DDC, 1680x1050.
 
Old 03-01-2008, 07:21 PM   #4
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194
I looked up the specs for you:
http://www.benq.com/products/LCD/?pr...specifications

Native resolution 1680x1050
Horizontal Frequency 30 - 82 (KHz)
Vertical Frequency 56 - 76 (Hz)
Video Bandwidth 25 - 165 (MHz)

I put those values into videogen
Code:
videogen -m=1680x1050 -mhf=82 -mvf=76 -mdc=165
and got the output
Code:
Modeline "1680x1050" 165.00 1680 1736 1816 2152 1050 1052 1056 1105  # 165 MHz, 76.7 kHz, 69.4 Hz
You probably don't really need to add a modeline (to the monitor section of /etc/X11/xorg.conf). You probably don't really even need to edit /etc/X11/xorg.conf at all. But once you know how to select exact resolution and timing by adding modelines, it's actually easier than the more automated methods.

Be sure to make a copy of /etc/X11/xorg.conf before editing it.

Then you can edit it with your favorite GUI text editor, and use Ctrl-Alt-Backspace to kill and restart the X server to try the new settings. If it works, great.

If it doesn't, X is then pretty sick. It sounds like you know how to log into terminal mode at that point. I've never fully understood the consequences of changing run level and for some of what I do when I have a bad /etc/xorg.conf changing run level seems to be too much. Instead of changing run level, I've had perfect results with
Code:
/etc/init.d/kdm stop
to clean up after X dies and
Code:
/etc/init.d/kdm start
to restart it (except that in some distributions that should be gdm instead of kdm). I assume I don't need to tell you how to restore from the backup of xorg.conf if you remembered to make one.

Last edited by johnsfine; 03-01-2008 at 07:24 PM.
 
Old 03-01-2008, 08:44 PM   #5
OldAl
Member
 
Registered: Oct 2006
Location: Canberra, Australia
Distribution: ubuntu MATE LTS
Posts: 102

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by slackhack View Post
unless Suse has a gui tool, I think you're going to have to edit your xorg.conf file. It's not really that hard, just sudo or su to root, then edit the file by adding the Hsync and Vert. refresh range to the Monitor section, and the resolution to your mode line (not sure about your particular monitor, but I'm guessing that should probably be 1680x1050, not 1600). If your video card supports that resolution, I think that should be all you need to do. If you're still having trouble, post your xorg.conf and we'll try to set you up.
You are quite right - it is 1680x1050. My old age and frustration is showing... I am quite happy to try to edit the xorg.conf and will report my experience with it.

Thank you for the offer to post xorg.conf. Hopefully I will not have to do that, but the offer gives me some peace of mind (so, again hopefully, my fingers will press fewer wrong keys).

I am really grateful,

OldAl.
 
Old 03-01-2008, 08:49 PM   #6
OldAl
Member
 
Registered: Oct 2006
Location: Canberra, Australia
Distribution: ubuntu MATE LTS
Posts: 102

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Emerson View Post
Just had to configure a 22" myself. After probing it with different settings I commented sync lines out and X started up perfectly using DDC, 1680x1050.
I have a really miserable lack of understanding of acronyms - what is DDC? You really give me encouragement to do the editing of /etc/X11/xorg.conf - I will not forget to save the old xorg.conf in a directory called /etc/X11/trash :-)

Thank you for your good advice,

OldAl.
 
Old 03-01-2008, 08:51 PM   #7
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

Rep: Reputation: Disabled
DDC: Display Data Channel (VESA)
Code:
Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "WDE"
        ModelName    "LCM-22w2"
#       HorizSync    30.0 - 80.0
#       VertRefresh  60.0 - 75.0
        Option      "DPMS"
EndSection
Above is the whole contents of my Monitor section.
 
Old 03-01-2008, 09:00 PM   #8
OldAl
Member
 
Registered: Oct 2006
Location: Canberra, Australia
Distribution: ubuntu MATE LTS
Posts: 102

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by johnsfine View Post
I looked up the specs for you:
http://www.benq.com/products/LCD/?pr...specifications
(snip...)

You probably don't really need to add a modeline (to the monitor section of /etc/X11/xorg.conf). You probably don't really even need to edit /etc/X11/xorg.conf at all. But once you know how to select exact resolution and timing by adding modelines, it's actually easier than the more automated methods.
(snip...)
Thank you for your detailed response and instructions. Thanks for looking up the spec - my quoting 1600x1050 was my mistake - it is 1680x1050, as is shown in the printout of p 37 of the "user manual" that comes on the BenQ CD.

I will printout your instructions for my reference and keep it in front of me when I proceed to edit the xorg.conf file! For sure, I will first make a copy of it!

Your carefully thought out response is greatly appreciated and it will probably will be appreciated by others who are bound to fall in the same desperate state as I found myself.

Sincerely,
OldAl.
 
Old 03-01-2008, 09:01 PM   #9
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 77
Quote:
Originally Posted by Emerson View Post
DDC: Display Data Channel (VESA)
Yes, and if that was not clear for the OP, what it means is that if you comment out everything in your Monitor section, the X server will automatically chose the correct resolution and refresh rate by asking the monitor through the DDC.
 
Old 03-01-2008, 09:09 PM   #10
OldAl
Member
 
Registered: Oct 2006
Location: Canberra, Australia
Distribution: ubuntu MATE LTS
Posts: 102

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Emerson View Post
DDC: Display Data Channel (VESA)
(snip...)
Above is the whole contents of my Monitor section.
Thanks for that! Made a copy to "Kate" of your contents of Monitor section (together with some other detailed instructions). Will print that out on paper and keep it in front of my nose when I do edit the xorg.conf (using vi editor).

This instant reply is great - its quicker than I can implement/try the suggestions...

Many thanks,

OldAl.
 
Old 03-01-2008, 09:30 PM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
I'm curious if you have the "videogen" program mentioned. I'm using SuSE 10.3 and I don't think I have that program. I do have "gtf" however. For an LCD monitor I'd use a refresh rate of 60HZ. SuSE has a "use Modes[0]" entry in the Monitor section, so if you generate a modeline yourself put it in the Modes[0] section and not the "Monitor" section. Make sure to edit out the ".00" part of the Modeline label. Xorg doesn't seem to work with it. Then insert the Label in double quotes in the Section Screen / Subsection Display / Modes entries. Even if you let xorg.conf figure out the Modeline itself, I think you need a Modes entry for your resolution.

Which card are you using? If it is nvidia, you will want to install the nvidia drivers. In YaST2 -> Software there is a "Community Repositories" section that will include repositories for "NVidia" and for "ATI". That will make it easier to install a driver using the package manager. If you run an install program, nvidia's install program installs /usr/bin/nvidia-xconfig. Running that as root (in init level 3) might generate a working xorg.conf file that works.

Good Luck!
 
Old 03-01-2008, 09:41 PM   #12
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

Rep: Reputation: Disabled
Actually, you can "steal" modelines from Xorg log. I'll add here my Screen section, with LCD you normally do not need to specify wide range of configurations.
Code:
Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Modes   "1680x1050"
                Depth     16
        EndSubSection
EndSection
Quote:
This instant reply is great - its quicker than I can implement/try the suggestions...
Yea, people are different ... it's Saturday night here, why I'm not out there doing silly things as normal people do ... ?
 
Old 03-01-2008, 09:44 PM   #13
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194
Quote:
Originally Posted by OldAl View Post
when I do edit the xorg.conf (using vi editor).
Do you know how to use vi? It isn't beginner friendly!

I may not have been clear enough: xorg.conf is only used to start X. It isn't used while X is running, so you can edit it while X is running (I assume at an inferior but visible resolution). So you can use kwrite or whatever other simply GUI editor you like.

In the monitor section, you may already find the HorizSync and VertRefresh lines with the values read from your display 30 - 82 and 56 - 86. If not, it is a good idea to put those in. The # on those lines in Emerson's example is a comment character, telling X to ignore those lines. You probably don't want that # there.

That monitor section is where you would add the modeline. Then the name of the modeline "1680x1050" usually should be referenced on the Modes lines in the Display subsection(s) of the Screen section.
 
Old 03-01-2008, 09:50 PM   #14
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

Rep: Reputation: Disabled
Quote:
Originally Posted by johnsfine View Post
The # on those lines in Emerson's example is a comment character, telling X to ignore those lines. You probably don't want that # there.
So you know SuSE comes with an old Xorg version which is not DDC aware?
 
Old 03-02-2008, 12:01 AM   #15
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
I installed the RCS package and make backups before editing.

cd /etc/X11
sudo mkdir RCS # ( just for the first time )
sudo ci -l xorg.conf

This will allow you to backup different versions of your xorg.conf file. If the RCS directory exists, the backup will be there which reduces clutter.

You can go back to the latest backup with "sudo co -l xorg.conf".

There are options to restore an earlier backup as well.

Last edited by jschiwal; 03-02-2008 at 05:44 AM. Reason: fixed typo
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
gdb "not in executable format: File format not recognized" tcma Programming 9 07-18-2007 06:02 AM
samsung 226bw lcd wide screen monitor on linux tirtildim Linux - Hardware 1 03-16-2007 10:30 AM
need help setting up wide screen LCD mr_scary Linux - Hardware 5 12-29-2006 11:24 PM
Mplayer woes: "[format] Sample format big-endian AC3 not yet supported" killahsmurf Linux - Software 0 11-26-2006 09:44 AM
"perl: warning: Setting locale failed." System wide problem Darek84CJ Debian 3 01-25-2006 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:45 AM.

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