LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Retrieving X11 display settings at run-time? (https://www.linuxquestions.org/questions/linux-software-2/retrieving-x11-display-settings-at-run-time-461083/)

matthias_k 07-05-2006 01:01 AM

Retrieving X11 display settings at run-time?
 
Hi guys,

I am using Linux for a couple of years now, but I am encountering a big problem recently, especially with newer distros (I think in particular those which incorporate XGL).

The problem is that I can't boot X11 anymore. It doesn't crash or even report errors, but the screen will just stay black. I'm using a Radeon 9800 Pro and an Acer 17" TFT.
I tried everything, using other video drivers (ati, radeon, fglrx) and tuning the monitor settings, but no luck. Even using my Ubuntu box'es xorg.conf where it works just fine will produce the same results.

The problem occured with the Kororaa XGL live-cd and with the recent RC3 of SUSE Enterprise Desktop 10 (SLED10). Here is the xorg.conf I am using with the latter: http://dump.finitestate.org/xorg.conf.txt

Grep'ing through the X11 log for warnings yields this:

Code:

matthias:suse$ cat var/log/Xorg.0.log | grep \(WW\)
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) The directory "/usr/X11R6/lib/X11/fonts/Speedo" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/PEX" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/cyrillic" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/latin2/misc" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/latin2/75dpi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/latin2/100dpi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/latin2/Type1" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/latin7/75dpi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/baekmuk" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/japanese" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/kwintv" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/ucs/misc" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/ucs/75dpi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/ucs/100dpi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/hellas/misc" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/hellas/75dpi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/hellas/100dpi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/hellas/Type1" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/misc/sgi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/xtest" does not exist.
(WW) The directory "/opt/kde3/share/fonts" does not exist.
(WW) fglrx: No matching Device section for instance (BusID PCI:1:0:1) found
(WW) fglrx(0): Bad V_BIOS checksum
(WW) fglrx(0): board is an unknown third party board, chipset is supported
(WW) fglrx(0): Specified desktop setup not supported: 8
(WW) fglrx(0): Option "CalcAlgorithm" is not used

No errors were indicated.

Now, the only thing I can imagine is that XGL somehow sends my TFT into a bad display mode, so I was wondering if there is a possibility to read from the command line what display mode X11 is using when I start it? I want to check if this is the problem.

Or maybe you know where the problem is? I'm getting pretty desperate...

Thanks,
Matthias

leonscape 07-05-2006 07:37 PM

I think that "fglrx: No matching Device section for instance (BusID PCI:1:0:1) found" is the problem is a device section specified does the PCI bit match?

vbisis 07-06-2006 12:30 AM

Quote:

fglrx: No matching Device section for instance (BusID PCI:1:0:1) found
Thats probably nothing just means, that the graphics adapter probably has to Output devices like dvi and vga and only one is configured, though you could try to plug your monitor to the other one.

But I think is strange is this part of the log file:
Quote:

(WW) fglrx(0): Bad V_BIOS checksum
(WW) fglrx(0): board is an unknown third party board, chipset is supported
(WW) fglrx(0): Specified desktop setup not supported: 8
Sounds almost as if there is something wrong with your graphics card. Did you flash some differnet BIOS on the card, I know it is possible to do that with some ATI cards?

Quote:

(WW) The directory "/usr/X11R6/lib/X11/fonts/Speedo" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/PEX" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/cyrillic" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/latin2/misc" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/latin2/75dpi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/latin2/100dpi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/latin2/Type1" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/latin7/75dpi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/baekmuk" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/japanese" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/kwintv" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/ucs/misc" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/ucs/75dpi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/ucs/100dpi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/hellas/misc" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/hellas/75dpi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/hellas/100dpi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/hellas/Type1" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/misc/sgi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/xtest" does not exist.
(WW) The directory "/opt/kde3/share/fonts" does not exist.
That is probably the easiest part to begin with: xserver obviously doesn't find any fonts, so maybe you should start with correcting paths to fonts directorys in your xorg.conf

Good luck,

Isis

matthias_k 07-06-2006 02:16 AM

Hi,

the line with the missing device section is meaningless, as you said. It's only important if you use two monitors.

As to the other three lines (bad BIOS chksum etc): I get the exact same output on my Ubuntu box, and it works just fine. The "unknown 3rd party board" just means it doesn't know the vendor of my graphics card (it's an ATI card), but it does recognize my chipset.

The font paths, yes that's pretty strange. I might look into that, but I doubt it's the problem.

Oh and to my initial question: Is there a way to determine which display mode X is currently using while it's running?

vbisis 07-06-2006 03:57 AM

Hmm I don't know a different way than to switch to a console and do a tail -f /var/log/Xorg.0.log

Maybe there is something wrong with the frequencies you entered in your xorg.conf? Does your Monitor just shows a blank screen or does it go to standby mode?

gkiagia 07-06-2006 09:49 AM

When using the fglrx driver, it is possible to change display modes using ctrl+alt++ or ctrl+alt+-
I am not sure if this is a feature of the fglrx driver or the X server itself, but it should work at least with the fglrx driver.
Now, if you use these combinations and you get your screen working, then the problem is the display mode.
In addition, if I remember correctly, when I tried once to use xgl with fglrx, I had the same problem but I was able to see the cursor.

As for detecting the display mode... here is part of my Xorg.0.log:
Code:

(II) fglrx(0): Supported VESA Video Modes:
(II) fglrx(0): 720x400@70Hz
(II) fglrx(0): 640x480@60Hz
(II) fglrx(0): 640x480@67Hz
(II) fglrx(0): 640x480@72Hz
(II) fglrx(0): 640x480@75Hz
(II) fglrx(0): 800x600@56Hz
(II) fglrx(0): 800x600@60Hz
(II) fglrx(0): 800x600@72Hz
(II) fglrx(0): 800x600@75Hz
(II) fglrx(0): 832x624@75Hz
(II) fglrx(0): 1024x768@60Hz
(II) fglrx(0): 1024x768@70Hz
(II) fglrx(0): 1024x768@75Hz
(II) fglrx(0): 1280x1024@75Hz
(II) fglrx(0): 1152x870@75Hz
(II) fglrx(0): Manufacturer's mask: 0
(II) fglrx(0): Supported Future Video Modes:
(II) fglrx(0): #0: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
(II) fglrx(0): Supported additional Video Mode:
(II) fglrx(0): clock: 108.0 MHz  Image Size:  338 x 271 mm
(II) fglrx(0): h_active: 1280  h_sync: 1328  h_sync_end 1440 h_blank_end 1688 h_border: 0
(II) fglrx(0): v_active: 1024  v_sync: 1025  v_sync_end 1028 v_blanking: 1066 v_border: 0
(II) fglrx(0): Ranges: V min: 56  V max: 75 Hz, H min: 31  H max: 82 kHz, PixClock max 140 MHz
(II) fglrx(0): Monitor name: NEC LCD1711M

My display mode is shown here:
Code:

(II) fglrx(0): #0: hsize: 1280  vsize 1024  refresh: 60  vid: 32897


All times are GMT -5. The time now is 04:05 AM.