Re: [Xpert]ATI Radeon Mobility M6/7 LW on IBM Thinkpad T30 (Simultaneous CRT/LCD Display)

2002-07-11 Thread hy0

 Excellent!!

 I compiled a fresh XFree distribution and moved the drm kernel driver
 radeon.o and agpgart.o away from the kernel-module search paths. Now I
 am getting exactly what I want on both the CRT and the LCD. The CRT has
 a refresh rate of 75 Hzwhere its usable :-)

 However! DRI isnt working. Relevant lines from XFree86.0.log (the whole
 file is at http://www.senfamily.org/xfree/XFree86.0.log_20020711 ):

 [drm] failed to load kernel module radeon
 (II) RADEON(0): [drm] drmOpen failed
 (EE) RADEON(0): [dri] DRIScreenInit failed.  Disabling DRI.
 If I cant use the radeon.o from the kernel, where can I compile one
 from? Its not obvious where in the Xfree tree it is. 'make World' under
 xc didnt seem to produce one.

DRI didn't work because you don't have the kernel driver (radeon.o) on your
system. To compile DRI kernel driver, go to
xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel directory, do
'make -fMakefile.linux'. You may have compile problem if you are using some
new version of kernel. If so, you can download a version of Linux kernel
(like 2.4.18) from www.kernel.org which should contain the standard DRI
kernel driver (not Gatos one).

 Also, how about AGP? Should I be using:
   Option AGPMode 1
 in the device section? Do I need agpgart.o from the kernel for AGP
support?

You don't have to specify AGPMode, the default is 1x. You can use this
option to set 2x or 4x mode.
You do need agpgart module for DRI to work, the best way is to compile it
into the kernel. If you want to use it as a separate module, make sure to
load agpgart.o before radeon.o.

 Last but not the least, where can I get the source for the ati_drv and
 radeon_drv modules that you sent me?

I sent two patches to xfree a few months ago, the first is in current CVS,
not sure if the second got in yet (the patches are too big, they may take
quite a bit time to merge). Anyway, those patches are not quite complete. At
present I really don't have much free time to sync with current CVS and make
another patch. I'm thinking, maybe a little latter, I'll put everything
together with the 2D support for all the new cards on my systems and make a
patch to the CVS code. Before then, if you want the code, I can send you the
source with no new card support.

 Thanks VERY much!
 DS


___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



Re: [Xpert]ATI Radeon Mobility M6/7 LW on IBM Thinkpad T30 (Simultaneous CRT/LCD Display)

2002-07-09 Thread hy0

It looks like you are still loading Gatos drm kernel driver (can't get too
much from your corrupted log file). The drivers I sent you will NOT work
with any Gatos drivers, it will lock up for sure if you still have the Gatos
version of drm kernel driver (radeon.o) on your system to be loaded. Try to
disable DRI or replace the DRI kernel driver (radeon.o) with the one from
stock X4.2 or from Linux distributions like RH7.3.
Specifying ati or radeon in your config file should give the same
result. If not, your drivers are broken somehow.
If you prefer to using Gatos drivers, posting your problem to Gatos forum
may help you better. But I doubt they will have a better solution for your
current problem.

Hui

- Original Message -
From: D. Sen [EMAIL PROTECTED]
To: hy0 [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, July 09, 2002 9:06 AM
Subject: Re: [Xpert]ATI Radeon Mobility M6/7 LW on IBM Thinkpad T30
(Simultaneous CRT/LCD Display)


 Well I tried your drivers. In short, they didnt work. Both the LCD and
 CRT came up with distorted lines (which can best be described as noise)
 and my machine froze.

 I tried using ati and radeon in the card section and have attached
 my XF86Config-4. The logs can be found at
 http://www.senfamily.org/xfree/XFree86.0.log_HUI
 and
 http://www.senfamily.org/xfree/XFree86.0.log_HUI.radeon

 The XF86Config-4 file was also overwritten with garbage after I tried to
 use radeon as my driver. (This could be a file system corruption due
 to the freeze + rebooting)

 So far, a single monitor configuration using the old radeon (GATOS?)
 driver is working best for me. I reported that using ati and a dual
 headed configuration worked too. However, power management is broken in
 that configuration. The screen distorts if the machine is left alone for
 a while or the machine is put into 'suspend/sleep' mode.

 I am stuck with a 50 Hz refresh display on the CRT with both the
 multi-headed 'ati' driver and the single-headed 'radeon' driver. I have
 chosen to use the 'radeon' as it seems to support power management.

 DS


 hy0 wrote:
  If you are trying to mirror your LCD on the CRT, try attached binary
  drivers. This is a version with the native 2nd-head mirroring feature
for
  X4.2x.
  Simply replace radeon_drv.o and ati_drv.o on your system (under
  /usr/X11R6/lib/modules/drivers/). Use just the single head config for
your
  LCD (remove all the dual-screen stuffs from your config file). The
driver
  will detect and bring up your CRT to its best refresh (suppose your CRT
is
  DDC capable, if not, there are options let you configure it). You can
also
  configure two heads with different resolution with some special options
(let
  me know if you ever need them), the driver will handle panning.
 
  This approach is better than the dual-screen approach in following ways:
  1. With dual-screen, DRI is disabled. You can enable DRI with this one.
  2. Overlay won't work on your CRT with the dual-screen setup. It'll work
  here.
  3. Less overhead. With dual-screen, only half of video ram can be used
for
  one screen...
  4. With dual-screen, you may have problem with the hw cursor on your 2nd
  head (not sure if it's fixed).
  5. should be easier to setup with this one.
 
  Attached drivers have been tested by several people on a few M6 based
  laptops and other systems. It should work with M7 based systems. If you
want
  to give it a try, let me know whether it works for you. If not, send me
your
  log and config file.
 
  Hui
 
 
  - Original Message -
  From: D. Sen [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Monday, July 08, 2002 4:43 PM
  Subject: Re: [Xpert]ATI Radeon Mobility M6/7 LW on IBM Thinkpad T30
  (Simultaneous CRT/LCD Display)
 
 
 
 Michel Daenzer wrote:
 On Mon, 2002-07-08 at 17:24, D. Sen wrote:
 
  
   Well, I think I set up my XF86Config-4 to do what you suggested. I
 am including it with this email. However, X crashes on me when I try to
 invoke startx (including /var/log/XFree86.0.log as well).
  
   If I change the screen directive for the Card1 device from
Screen
 1 to Screen 0, I get a display on the external CRT (the LCD is just
 backlit with a blank screen).
  
   Any ideas?
 
 
  [...]
 
 
   (II) RADEON(0): Shutting down Xvideo subsystems
   (II) RADEON(0): membase=0xe800 memsize=0x0400 
   gpSize=0x0008
 
 
  This looks like you're using GATOS drivers, does the crash occur with
  stock XFree86 drivers?
 
 
 Specifying the ati driver as opposed to the radeon driver does work
 better. X isnt crashing anymore. I am also getting a display on both the
 LCD and the CRT screen. However, I dont seem to be able to change the
 refresh rate on the CRT. I have tried quite a few different modelines
 but the refresh rate doesnt change from the 50 Hz (It seems to pick the
 modeline from the bios settings for the clock rate, etc)
 
 The new XFree86.0.Log is at
 http://cafebleu.no-ip.org:9135/xfree

Re: [Xpert]ATI Radeon Mobility M6/7 LW on IBM Thinkpad T30(Simultaneous CRT/LCD Display)

2002-07-08 Thread Michel Dänzer

On Mon, 2002-07-08 at 17:24, D. Sen wrote: 
 
 Well, I think I set up my XF86Config-4 to do what you suggested. I am including it 
with this email. However, X crashes on me when I try to invoke startx (including 
/var/log/XFree86.0.log as well).
 
 If I change the screen directive for the Card1 device from Screen 1 to Screen 
0, I get a display on the external CRT (the LCD is just backlit with a blank screen).
 
 Any ideas?

[...]

 (II) RADEON(0): Shutting down Xvideo subsystems
 (II) RADEON(0): membase=0xe800 memsize=0x0400 agpSize=0x0008

This looks like you're using GATOS drivers, does the crash occur with
stock XFree86 drivers?


-- 
Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member   /  CS student, Free Software enthusiast
___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



Re: [Xpert]ATI Radeon Mobility M6/7 LW on IBM Thinkpad T30(Simultaneous CRT/LCD Display)

2002-07-07 Thread Michel Dänzer

On Sun, 2002-07-07 at 20:16, D. Sen wrote:
 I would like to have a 70-80 Hz refresh rate CRT display simultaneously
 with my LCD display on my laptop equipped with the ATI Radeon Mobility
 chipset. This is especially for presentations where I can control my LCD
 screen and have the others watch what I am doing on a bigger screen
 (perhpas even on a projector). I havent been able to figure out how to
 configure my XF86Config-4 to do this. If I set the CrtScreen Option, I
 only get a display on the external monitor. If I dont, then the server
 scans the LCD screen for clock rates and the best I can achieve on the
 external display is a refresh rate of around 53 Hz.

Set up multihead with two device sections containing the Screen
directive and two screen sections. Make the screens overlap in the
layout section if you want mirroring.


 lspci -vv reports:
 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility
 M6 LW (prog-if 00 [VGA])
 
 XFree86 -configure reports:
 BoardName   Radeon Mobility M7 LW
 
 Dont know if the the difference in M6/7 between the lspci output and 
 XFree86 probe is of any use.

lspci is just not quite correct.


-- 
Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member   /  CS student, Free Software enthusiast
___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert