Re: X ATI driver? - solved, sort of

2006-06-18 Thread Walt Pawley
Operationally, at least, I seem to resolved my problem with
Xorg 6.9.0 and using the Mach32 ATI video card.

I included lines in xorg.conf.new in Section "Device" ...

Option  "tv_out" "false"
Option  "tv_standard" "None"

I suspect only the latter is necessary but haven't experimented to see.

The reason for doing this seems to me to be some bugs in the
ATI driver arrangement and Xorg general code. It seems that
there are many implementations of strncasecmp in different
packages, despite what seems to be a "standard" available in
libc (???). Xorg's is xf86strncasecmp and is written so that it
goes ahead and dereferences a null pointer if one is passed to
it - hence the segment error crash.

The null pointer comes from the string TvStd not being
initialized when ATIProcessOptions runs with the "Xorg
-configure" generated xorg.conf.new file. While I haven't
traced how the variable gets defined, by changing the option
above, that would seem to be the effect as it quits crashing
subsequently.
-- 

Walter M. Pawley <[EMAIL PROTECTED]>
Wump Research & Company
676 River Bend Road, Roseburg, OR 97470
 541-672-8975
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: X ATI driver?

2006-06-18 Thread bsd
> On 6/17/06 6:56 PM +0100, [EMAIL PROTECTED] wrote on Re: X ATI driver?
>
>>ATI cards with X Windows are a bit of a pain. As I understand it, ATI
>> have
>>not released their specs etc so that any X driver is reverse engineered.
>>NVIDA does provide drivers which do work. I have an old MACH32 in a
>> server
>>and could only get it to work as using the Vesa drivers. It runs at
>>1024x768, but I was not too bothered as the machine after setting up runs
>>headless.
>>
>>My advice is try the VESA drivers if that fails try and change to NVIDA.
>
> Rob,
>
> I'm finding the docs less than helpful about all this. If I
> don't use the suggested configuration, then I need to fill in a
> bunch of stuff I don't know about - or, so it seems, at least.
> Here's what the configuration file looks like after doing Xorg
> -configure.
>

Snip

> Any chance you could show me how to either do the changes to
> VESA or NVDIA or to find the documents that are supposed to be
> helpful, preferentially off list (I'll write a report for the
> list if we can get it working). I've tried a few things and
> they tend to belch for not being correct but they don't give me
> any clues about to correct them.
> --
>
> Walter M. Pawley <[EMAIL PROTECTED]>
> Wump Research & Company
> 676 River Bend Road, Roseburg, OR 97470
>  541-672-8975
>

Walt,

It was some ago, that I had the problem with ATI. ISTR that I used one of
the other config tools. Have a look at the FreeBSD page:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html

There are other config tools listed.

I think I used xorgconfig and tried the various options starting at the
lowest resolutions until I got as far as possible.

As far as Changing to Nvidia that is just a matter of getting a Nvidia
card and swopping it with the ATI. Nvidia do have drivers on their site
for 3d etc with instructions on what to do.

Rob



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: X ATI driver?

2006-06-17 Thread Walt Pawley
At 2:35 PM -0500 6/17/06, Nikolas Britton wrote:
>On 6/17/06, Walt Pawley <[EMAIL PROTECTED]> wrote:
>> At 10:42 AM -0500 6/17/06, Nikolas Britton wrote:
>>
>> >What kind of ATI card is this?
>>
>> There's a label on what's probably an E-PROM that says
>>
>>   PCI MACH32
>>   113-23000-110
>>   (C) 1995
>>
>
>Wow thats old!!! Get a new video card.

Pearls before swine, eh? I don't think that's a good solution
for this beast. It's all pretty antiquated stuff and the money
for new hardware is not in the cards, much less the wallet.
Besides ...

>> FWIW: the card worked with FreeBSD 5.3.
>
>Yes but what were you using for X11? Xfree86? what version?

Xorg 6.7.0 as I recall.
-- 

Walter M. Pawley <[EMAIL PROTECTED]>
Wump Research & Company
676 River Bend Road, Roseburg, OR 97470
 541-672-8975
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: X ATI driver?

2006-06-17 Thread Nikolas Britton

On 6/17/06, Walt Pawley <[EMAIL PROTECTED]> wrote:

At 10:42 AM -0500 6/17/06, Nikolas Britton wrote:

>What kind of ATI card is this?

There's a label on what's probably an E-PROM that says

  PCI MACH32
  113-23000-110
  (C) 1995



Wow thats old!!! Get a new video card.



FWIW: the card worked with FreeBSD 5.3.


Yes but what were you using for X11? Xfree86? what version?



--
BSD Podcasts @:
http://bsdtalk.blogspot.com/
http://freebsdforall.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: X ATI driver?

2006-06-17 Thread bsd
> At 10:42 AM -0500 6/17/06, Nikolas Britton wrote:
>
>>What kind of ATI card is this?
>
> There's a label on what's probably an E-PROM that says
>
>   PCI MACH32
>   113-23000-110
>   (C) 1995
>
>>... Here's a wild guess: it might be the
>>DRI/DRM crap, disable it, in xorg.conf, and try again:
>>
>>Section "Module"
>>Load  "extmod"
>>Load  "glx" <-
>>Load  "dri" <-
>>Load  "dbe"
>>Load  "record"
>>Load  "xtrap"
>>Load  "type1"
>>Load  "freetype"
>>EndSection
>
> I commented out those two lines. It still fails.
>
> FWIW: the card worked with FreeBSD 5.3.
> --
>

ATI cards with X Windows are a bit of a pain. As I understand it, ATI have
not released their specs etc so that any X driver is reverse engineered.
NVIDA does provide drivers which do work. I have an old MACH32 in a server
and could only get it to work as using the Vesa drivers. It runs at
1024x768, but I was not too bothered as the machine after setting up runs
headless.

My advice is try the VESA drivers if that fails try and change to NVIDA.

Rob

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: X ATI driver?

2006-06-17 Thread Walt Pawley
At 10:42 AM -0500 6/17/06, Nikolas Britton wrote:

>What kind of ATI card is this?

There's a label on what's probably an E-PROM that says

  PCI MACH32
  113-23000-110
  (C) 1995

>... Here's a wild guess: it might be the
>DRI/DRM crap, disable it, in xorg.conf, and try again:
>
>Section "Module"
>Load  "extmod"
>Load  "glx" <-
>Load  "dri" <-
>Load  "dbe"
>Load  "record"
>Load  "xtrap"
>Load  "type1"
>Load  "freetype"
>EndSection

I commented out those two lines. It still fails.

FWIW: the card worked with FreeBSD 5.3.
-- 

Walter M. Pawley <[EMAIL PROTECTED]>
Wump Research & Company
676 River Bend Road, Roseburg, OR 97470
 541-672-8975
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: X ATI driver?

2006-06-17 Thread Nikolas Britton

On 6/17/06, Walt Pawley <[EMAIL PROTECTED]> wrote:

I have an old box I've been messing with. I had it running X on
FreeBSD 5.3, seemingly well enough. I decided to move to 6.1,
installed more RAM, a bigger hard disk and a CD-RW drive that
can see CD-Rs (unlike the original old SCSI CD drive) and chose
an "install everything" from CD. Things went well ... until I
tried bringing up X.

Since then, I've been studying, hunting through archives, etc.
and have become mired in too much data. So, I'm asking for help.

Here's what happens when I configure and then text X ...

vulcan# Xorg -configure

X Window System Version 6.9.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 6.9
Build Operating System: FreeBSD 6.1 i386 [ELF]
Current Operating System: FreeBSD vulcan.wump.org 6.1-RELEASE
FreeBSD 6.1-RELEASE #0: Sun May  7 04:42:56 UTC 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP i386
Build Date: 24 March 2006
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Jun 16 23:12:36 2006
List of video drivers:
apm
ark
ati
atimisc
chips
cirrus
cyrix
dummy
glint
i128
i740
i810
mga
neomagic
nsc
nv
r128
radeon
rendition
s3
s3virge
savage
siliconmotion
sis
tdfx
tga
trident
tseng
via
vmware
vesa
vga
(++) Using config file: "/root/xorg.conf.new"


Xorg detected your mouse at device /dev/sysmouse.
Please check your config if the mouse is still not
operational, as by default Xorg tries to autodetect
the protocol.

Your xorg.conf file is /root/xorg.conf.new

To test the server, run 'X -config /root/xorg.conf.new'

vulcan# gdb X
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no
debugging symbols found)...
(gdb) run -config /root/xorg.conf.new
Starting program: /usr/X11R6/bin/X -config /root/xorg.conf.new
(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...
X Window System Version 6.9.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 6.9
Build Operating System: FreeBSD 6.1 i386 [ELF]
Current Operating System: FreeBSD vulcan.wump.org 6.1-RELEASE
FreeBSD 6.1-RELEASE #0: Sun May  7 04:42:56 UTC 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP i386
Build Date: 24 March 2006
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Jun 16 23:14:02 2006
(++) Using config file: "/root/xorg.conf.new"
(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x0809854d in xf86strncasecmp ()
(gdb) bt
#0  0x0809854d in xf86strncasecmp ()
#1  0x286a7cb9 in ATIProcessOptions () from
/usr/X11R6/lib/modules/drivers/atimisc_drv.so
#2  0x286b8748 in ATIPreInit () from
/usr/X11R6/lib/modules/drivers/atimisc_drv.so
#3  0x0806e2f1 in InitOutput ()
#4  0x080c3d84 in main ()
(gdb)

I don't really know how to use gdb effectively, but this makes
it look like the ATI driver is getting tangled up processing
the configuration file to me. ???
--



What kind of ATI card is this?... Here's a wild guess: it might be the
DRI/DRM crap, disable it, in xorg.conf, and try again:

Section "Module"
   Load  "extmod"
   Load  "glx" <-
   Load  "dri" <-
   Load  "dbe"
   Load  "record"
   Load  "xtr