Using Xubuntu 7.10 gusty, want to create own monitor section in xorg.conf
I'm using Xubuntu 7.10 and I would like to create my own monitor section under xorg.conf.
I will try to give as many details as possible and try to remain as organized as possible at the same time. WHAT I WOULD LIKE TO DO AND WHY: I'm using Xubuntu 7.10 and I would like to create my own monitor section under xorg.conf. You're probably thinking to yourself something like, "Why doesn't he just go to Screens and Graphics and play around till he finds one that works?". Well that answer to that simply is that none of them have the DPI I require with said resolution: 1024 X 768. I cannot find a simple guide on editting my DPI. The following link seems to work for most people: Ubuntu/Xubuntu Linux notes and tips: Ubuntu: set correct DPI for X server Compared to how it loked before (which you'll see if you click any of the links in the History section of this post) the DPI really isn't that bad. Allow me to take you a screenshot: http://www.geocities.com/lookin4buss...fthissucks.jpg It's just that I have a mother who has to use this computer as well, and her eyesight isn't the greatest. It also gives her more ammunition as to why I should put Windows back on the computer and I'm sure we all know that I don't need that. HISTORY: I suppose you're wondering how I wound up in this predicament. Well, I installed Xubuntu 7.10 on my little brother's MPC Client Pro 345. I doubt any other details of the computer are really that important. Everything looked great on it, however, I decided to install my NVIDIA GeForce 4 MX-SE so that he could play games on his computer. I went through what I thought was a successful install untill I discovered that I could not utilize 3d accelleration for the life of me. More details really aren't that important, but if you would like to know the full story feel free to click here: GeForce4 MX 440-SE cannot use 3d acceleration - Ubuntu Forums which then led to: Small text after installing NVIDIA GeForce4 MX 440-SE - Ubuntu Forums and finally: Cannot get my DPI set correctly!!!! - Ubuntu Forums After I finally got the driver to install correctly with 3d acceleration an option what I thought was that hmmm the system font is now way too small, however, everyone keeps telling me that its actually my DPI that is too small. Thus, the quest for the ability to reset my DPI and discover what I should set it at has begun, and I've since decided that writing my own "driver" or "monitor section" in xorg.conf would be a lot easier. MY UNDERSTANDING OF THE DPI GUIDES: The following guide seems to be working for most people: Howto: Fix Xfce fonts « Xubuntu Blog I followed it with out an issue until I got to the thid step which is a link to another guide: Ubuntu/Xubuntu Linux notes and tips: Ubuntu: set correct DPI for X server Let's try to follow my thoughts as I followed this guide: First off, it said there was a screenshot for an example.... either I've got a browser issue or there isn't one at all... no worries, let's continue. Okay, paste a specific command at the end of mousepad ~/.config/xfce4/Xft.xrdb? You got it! Save, exit. Step two, add a couple more commands under the "files section of my /etc/X11/xorg.conf. You got it! I already got familiar with this file do to the trials and tribulations of my graphics card endeavours. Save, exit. Step three, Configure my DPI settings in /etc/X11/xorg.conf? .... hmmm well no one told me where that was, and I can't seem to find "DPI" when I search the file.... okay here's a link to another guide... perhaps this one will actually do something! Okay so I can use Code:
xdpyinfo | grep resolution Code:
xrdb -query Oh can I? Fine, first one gave me: Code:
resolution: 80x80 dots per inch is that my DPI? I suppose dots per inch would stand for that... so how do I know what DPI I'm supposed to use? What is that default setting that looked so good on the other computers I've put Ubuntu and Xubuntu on? Too bad I don't have any of them readily available. The next command, lets see what that gives us: The first time I did it all it gave me was Code:
*customization: -color Code:
*customization: -color To change DPI values create a file ~/.Xresources or edit ~/.config/xfce4/Xft.xrdb Okay I created Xresources... logged out logged back in... nothing... still the same Lets edit Xft.xrdb okay lets open it to edit it okay the contents are: Code:
Xft.antialias: 1 Then it said to try adding this to the monitor section of my xorg.conf Code:
DisplaySize XXX XXX (in my case it's 270 203) XXX is calculated by using formula 25.4 * pixels (height or width) / DPI. I have absolutely no clue how to find how many pixels 323mm or 245mm is, I googled around and found several different explanations as to how to find it with all different results so I can't finish the equation. The last thing says: Note: X Window System has it's own DPI value set in /etc/X11/xorg.conf Well, we already know I can't find a DPI section anywhere in xorg.conf, so that's out of the question. ...this guide sucks. WHAT I DO KNOW: Here are my monitor's stats. To be breif, it is a MPC CM720F 17" Flat CRT OSD Monitor (98kHz) Dark. To be more detailed: MPC Computers Support Site or Part no.: MNN001193-00 Automatic Recovery Time -- Off/Sleep Mode: < 10 Seconds CRT Dot Pitch: (Diagonal) 0.25 mm CRT Size: 17in (16.0in Viewable) CRT Technology: Invar Shadow Mask Flat Color CRT Maximum Resolution: 1600 x 1200 Number of Display Colors: True Color - 16.7 million colors Physical Dimensions (H x W x D): 402 x 410 x 420mm Power Consumption -- Normal Operation: < 120 Watts typical (Green LED) Power Consumption -- Off/Sleep Mode: < 5 Watts (Orange LED) Scanning Frequency -- Horizontal: 30 - 98 kHz Scanning Frequency -- Vertical: 50 - 160 Hz Scanning Frequency: Maximum Pixel Clock: 202.5 MHz Signal Connector Cable: Black Captive cable with DB-15 Type video connector (Blue - Pantone #661C) Signal interface: Analog Weight (Kg): 21.0 Kgs While following the guide I have measured the area of the computer screen in mm which comes to: 323 X 245 Here is what the monitor section of my xorg.conf looks like now: Code:
Section "Monitor" Code:
Section "Monitor" |
Wow.. You sure get an award for trying..
First thing I would do is make a backup of your working xorg.conf file..just in case you can always get it back again.. to backup do a cp(present xorg.conf xorg.conf.backup) Second is just a suggestion but I would set both the horizontal and vertical frequencies much higher but do not exceed mfgr. specs.. That should allow better DPI's after tweaking more..Thats about all i can suggest for now..I will look around for more info..I know i stored it somewhere.. goodluck:twocents: jolphil EDIT: I just looked up the helper package for getting a correct modeline by installing my KUBUNTU not exactly the same as your xbuntu but try as root say "gtf 1024 768 75" no quotes and see if it comes up with a modeline note the pixel clock required and see if both you graphics card and monitor will support it.. You may want to google gtf and see how best how to use it to help your situation |
Helpful post
|
To set the correct DPI:
Calculate the proper screen size like so: 25.4 * screen_width / 96 = w (rounded down) 25.4 * screen_height / 96 = h (rounded down) Set DisplaySize in "Monitor" section in your /etc/X11/xorg.conf to w h as calculated above. Set the following options in your "Screen" section: Option "UseEdidDpi" "false" Option "DPI" "96 x 96" "UseEdidDpi" MUST be set above "DPI" Restart X sudo /etc/init.d/gdm restart |
Look in /var/log/Xorg.0.conf to see what dpi it is selecting and maybe where it is coming from.
I tried many of the ways of specifying the dpi in xorg.conf and none of them made any difference. I forget now how I finally figured out where my DPI was coming from. It wasn't easy to find. When I read this thread, I was very upset with myself, because I had figured it out, and set it the way I wanted and totally forgot how. I should have left myself a note somewhere. Anyway, I did a grep through my whole disk and found it. I'm using the Mepis distribution. IIUC, the way dpi is set on my system is something set up by Mepis. In some other distribution it may be done some other way. The line I edited when I first figured this out (that I just found with GREP) now says Code:
ServerArgsLocal=-dpi 82 -nolisten tcp It is in the section [X-:*-Core] of the file /etc/kde3/kdm/kdmrc Quote:
Quote:
If I understand correctly, you really want things to display larger, rather than low res. Not everything obeys dpi, so some things will be smaller at higher res. But most of that should be manageable with a few program specific tweaks and give much better results than trying to make the fonts look decent at 1024x768 Once you figure out how to control dpi, you just need to intentionally give it a wrong dpi. Set the resolution much higher than 1024x768, maybe all the way to 1600x1200. Then make the dpi number higher than the correct value (if you use 1600x1200 probably you'll want dpi 1.5 times the correct value). That should give you many more dots per character at standard point sizes and a much more readable display. Quote:
1024 pixels in 12.8 inches would be 80 dpi (most fonts look terrible at 80 dpi). 1600 pixels in 12.8 inches would be 125 dpi. The fonts would look a lot better, but still be too small. 1600 pixels in 12.8 inches with fonts magnified by 1.5 would be 188 dpi. Try it. See what things look like. You'll probably need to tweak a few icon and font config choices but I bet that's less effort than fixing the fonts for 1024x768. |
All times are GMT -5. The time now is 11:10 AM. |