* External Monitor under Pismo
@ 2001-04-02 20:18 Jason E. Stewart
2001-04-03 11:24 ` Andrew Sharp
0 siblings, 1 reply; 24+ messages in thread
From: Jason E. Stewart @ 2001-04-02 20:18 UTC (permalink / raw)
To: debian-powerpc, stewart.sadler, linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 806 bytes --]
Hey All,
So after 7 months of flailing I finally got my Pismo to run it's
external monitor port, yeah!!!
3 days before I had a talk to give about our OpenSource project, I
realized I was going to be using OpenOffice under linux, and I
couldn't actually drive a projector... So after I got done panicing I
hit google. I find a link on the YDL lists about the 'mirror' program
that appears to have been originally written by Paul Mackeras.
It gives me the functionality I need, but unfortunately it doesn't
seem to work with 2.4 kernels, only 2.2. The program is doing some
pretty low-level memory mojo which I am clueless about.
Could someone slightly wiser point out what would change between 2.2
and 2.4 that would cause this to break? Is it the base memory offset
for the framebuffer?
Cheers!
jas.
[-- Attachment #2: mirror2.c --]
[-- Type: application/octet-stream, Size: 3644 bytes --]
/*
* Copyright (C) 1996 Paul Mackerras (paulus@linuxcare.com.au)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
* Minor changes made by Stewart J Sadler (stewart.sadler@roke.co.uk) Oct 2000
*/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/fcntl.h>
#include <sys/mman.h>
/* SJS apparently not used
static inline void eieio()
{
asm volatile("eieio" : :);
} */
unsigned long regs;
/************************************************************************/
static inline unsigned int ld(int regno)
{
unsigned int x;
asm volatile ("lwbrx %0,0,%1; eieio" : "=r" (x) : "r" (regs + regno));
return x;
}
/************************************************************************/
static inline void st(int regno, unsigned int x)
{
asm volatile ("stwbrx %0,0,%1; eieio" : : "r" (x), "r" (regs + regno));
}
/************************************************************************/
static void print_usage(void)
{
printf("Usage = mirror2 [-h ][-o mirror_level ][-m offset]\n");
printf(" -h Help/ print usage\n");
printf(" -o Set mirroring to mirror_level (0=off 1=on ?)\n");
printf(" -m PCI offset for device as a Hex number\n");
}
/************************************************************************/
static void get_arguments(int ac, char **av,int *on,unsigned long *offset)
{
int arg;
char *thisArg;
/* defaults */
*on=1;
*offset=0xa0000000;
if(ac==1)
{
print_usage();
}
for(arg=1;arg<ac;arg++)
{
thisArg=av[arg];
if(thisArg[0]=='-')
{
switch(tolower(thisArg[1]))
{
case 'o':
*on=1;
if(arg+1<ac)
{
arg++;
*on=atoi(av[arg]);
printf("Mirroring level = %d\n",*on);
}
break;
case 'm':
if(arg+1<ac)
{
arg++;
sscanf(av[arg],"%lx",offset);
printf("Mirror Offset = %lX\n",*offset);
}
break;
case 'h':
print_usage();
break;
}
}
}
}
/************************************************************************/
int main(int ac, char **av)
{
int fd, on;
int a, x;
unsigned long memoryOffset=0x81000000;
if ((fd = open("/dev/mem", O_RDWR)) < 0) {
perror("/dev/mem");
exit(1);
}
get_arguments(ac,av,&on,&memoryOffset);
regs = (unsigned long)
mmap(0, 0x1000, PROT_READ|PROT_WRITE, MAP_SHARED, fd, memoryOffset);
if (regs == -1) {
perror("mmap");
exit(1);
}
st(0x300, ld(0x200));
st(0x304, ld(0x204));
st(0x308, ld(0x208));
st(0x30c, ld(0x20c));
st(0x324, ld(0x224));
st(0x32c, ld(0x22c));
st(0x3f8, on? ((ld(0x50) & 0x700) | 0x2210000): 0x4000000);
st(0x3e0, ld(0x2e0));
st(0x3e4, ld(0x2e4));
x = ld(0x8) & ~0xff;
st(0x8, x | 2);
a = ld(0x9);
st(0x8, x | 0xaa);
st(0x9, a & ~0x20000);
st(0x8, x | 3);
a = ld(0x9);
st(0x8, x | 0xab);
st(0x9, a);
st(0x8, x | 4);
a = ld(0x9);
st(0x8, 0xac);
st(0x9, a);
st(0x58, (ld(0x58) & ~0x10));
st(0x54, on? (ld(0x54) | 0x8000): (ld(0x54) & ~0x8000));
exit(0);
}
[-- Attachment #3: Type: text/plain, Size: 1 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-02 20:18 External Monitor under Pismo Jason E. Stewart
@ 2001-04-03 11:24 ` Andrew Sharp
2001-04-03 15:15 ` Tuomas Kuosmanen
2001-04-03 18:08 ` Jason E. Stewart
0 siblings, 2 replies; 24+ messages in thread
From: Andrew Sharp @ 2001-04-03 11:24 UTC (permalink / raw)
To: Jason E. Stewart; +Cc: debian-powerpc, stewart.sadler, linuxppc-dev
Does your laptop have a key sequence that will switch the output
from LCD to CRT(external monitor) and back? Mine does. Fn-F8.
It's directly tied to the hardware and doesn't need any support in X
or Linux. Of course it's an x86 laptop, but it's the same video
controller, so maybe your Pismo has something similar? I have to
hit it a couple-o' three times to get it to switch, and it does a
three way deal: LCD, external, and both simultaneously.
a
"Jason E. Stewart" wrote:
>
> Hey All,
>
> So after 7 months of flailing I finally got my Pismo to run it's
> external monitor port, yeah!!!
>
> 3 days before I had a talk to give about our OpenSource project, I
> realized I was going to be using OpenOffice under linux, and I
> couldn't actually drive a projector... So after I got done panicing I
> hit google. I find a link on the YDL lists about the 'mirror' program
> that appears to have been originally written by Paul Mackeras.
>
> It gives me the functionality I need, but unfortunately it doesn't
> seem to work with 2.4 kernels, only 2.2. The program is doing some
> pretty low-level memory mojo which I am clueless about.
>
> Could someone slightly wiser point out what would change between 2.2
> and 2.4 that would cause this to break? Is it the base memory offset
> for the framebuffer?
>
> Cheers!
> jas.
>
> --------------------------------------------------------------------
> Name: mirror2.c
> mirror2.c Type: text/x-csrc
> Encoding: quoted-printable
>
> --------------------------------------------------------------------
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-03 11:24 ` Andrew Sharp
@ 2001-04-03 15:15 ` Tuomas Kuosmanen
2001-04-04 1:12 ` Steven Hanley
2001-04-04 2:03 ` Jason E. Stewart
2001-04-03 18:08 ` Jason E. Stewart
1 sibling, 2 replies; 24+ messages in thread
From: Tuomas Kuosmanen @ 2001-04-03 15:15 UTC (permalink / raw)
To: Andrew Sharp
Cc: Jason E. Stewart, debian-powerpc, stewart.sadler, linuxppc-dev
Hi!
"mirror" works fine for me even on kernel 2.4.3 on my Pismo. Weird. This
kernel is from Ben's rsync and it contains the pismo sleep code as well.
rsync -avz --delete penguinppc.org::linux-2.4-benh linux-2.4-benh
I got scared because I am going to GUADEC (a GNOME conference in
Denmark) this weekend and it would have sucked badly if it didnt work,
but so far it looks good :o)
I originally had just a binary of "mirror" which worked, but I compiled
the one which was attached to Jason's mail and it worked as well.
Best wishes,
Tuomas
On 03 Apr 2001 04:24:12 -0700, Andrew Sharp wrote:
> Does your laptop have a key sequence that will switch the output
> from LCD to CRT(external monitor) and back? Mine does. Fn-F8.
> It's directly tied to the hardware and doesn't need any support in X
> or Linux. Of course it's an x86 laptop, but it's the same video
> controller, so maybe your Pismo has something similar? I have to
> hit it a couple-o' three times to get it to switch, and it does a
> three way deal: LCD, external, and both simultaneously.
>
> a
>
>
> "Jason E. Stewart" wrote:
> >
> > Hey All,
> >
> > So after 7 months of flailing I finally got my Pismo to run it's
> > external monitor port, yeah!!!
> >
> > 3 days before I had a talk to give about our OpenSource project, I
> > realized I was going to be using OpenOffice under linux, and I
> > couldn't actually drive a projector... So after I got done panicing I
> > hit google. I find a link on the YDL lists about the 'mirror' program
> > that appears to have been originally written by Paul Mackeras.
> >
> > It gives me the functionality I need, but unfortunately it doesn't
> > seem to work with 2.4 kernels, only 2.2. The program is doing some
> > pretty low-level memory mojo which I am clueless about.
> >
> > Could someone slightly wiser point out what would change between 2.2
> > and 2.4 that would cause this to break? Is it the base memory offset
> > for the framebuffer?
> >
> > Cheers!
> > jas.
> >
> > --------------------------------------------------------------------
> > Name: mirror2.c
> > mirror2.c Type: text/x-csrc
> > Encoding: quoted-printable
> >
> > --------------------------------------------------------------------
>
>
________________________________________________________________________
Tuomas Kuosmanen - Art Director -
Ximian - tigert@ximian.com -
www.ximian.com
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-03 11:24 ` Andrew Sharp
2001-04-03 15:15 ` Tuomas Kuosmanen
@ 2001-04-03 18:08 ` Jason E. Stewart
1 sibling, 0 replies; 24+ messages in thread
From: Jason E. Stewart @ 2001-04-03 18:08 UTC (permalink / raw)
To: debian-powerpc, linuxppc-dev
"Andrew Sharp" <andy@netfall.com> writes:
> Does your laptop have a key sequence that will switch the output
> from LCD to CRT(external monitor) and back? Mine does. Fn-F8.
> It's directly tied to the hardware and doesn't need any support in X
> or Linux. Of course it's an x86 laptop, but it's the same video
> controller, so maybe your Pismo has something similar? I have to
> hit it a couple-o' three times to get it to switch, and it does a
> three way deal: LCD, external, and both simultaneously.
AFAIK there is no such beast for Apple laptops. Under MacOS, in order
to get the OS to recognize a new external source, you have to sleep
the laptop and wake it up.
I would be very happy if someone could prove me wrong ;-)
jas.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-03 15:15 ` Tuomas Kuosmanen
@ 2001-04-04 1:12 ` Steven Hanley
2001-04-04 2:03 ` Jason E. Stewart
1 sibling, 0 replies; 24+ messages in thread
From: Steven Hanley @ 2001-04-04 1:12 UTC (permalink / raw)
To: linuxppc-dev
On Tue, Apr 03, 2001 at 06:15:13PM +0300, Tuomas Kuosmanen wrote:
> "mirror" works fine for me even on kernel 2.4.3 on my Pismo. Weird. This
> kernel is from Ben's rsync and it contains the pismo sleep code as well.
>
> rsync -avz --delete penguinppc.org::linux-2.4-benh linux-2.4-benh
>
> I got scared because I am going to GUADEC (a GNOME conference in
> Denmark) this weekend and it would have sucked badly if it didnt work,
> but so far it looks good :o)
>
> I originally had just a binary of "mirror" which worked, but I compiled
> the one which was attached to Jason's mail and it worked as well.
hmm, well Paul got mirror working on Hugh Blemmings slightly pre pismo
laptop at linux.conf.au, some 8 line hack or so he did with his usual
panache. At the time I assumed it would not work with my pismo as it was a
different machine. (as Paul has pointed out on occasion) But this is good
news if benh's kernesl will work with the mirror program, I am also running
one currently to use sleep (which works perfectly, hooray ben :), will give
it a try on my pismo if I get a free moment some time today.
Oh yeah I notice Paul was at that kernel hackers thing in the US that has
just happened, were there any other ppc hackers there? Cort? Ben? any of the
mvista people?
See You
Steve
--
sjh@wibble.net http://wibble.net/~sjh/
Look Up In The Sky
Is it a bird? No
Is it a plane? No
Is it a small blue banana?
YES
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-03 15:15 ` Tuomas Kuosmanen
2001-04-04 1:12 ` Steven Hanley
@ 2001-04-04 2:03 ` Jason E. Stewart
2001-04-04 8:38 ` Tuomas Kuosmanen
1 sibling, 1 reply; 24+ messages in thread
From: Jason E. Stewart @ 2001-04-04 2:03 UTC (permalink / raw)
To: Tuomas Kuosmanen
Cc: Andrew Sharp, Jason E. Stewart, debian-powerpc, stewart.sadler,
linuxppc-dev
"Tuomas Kuosmanen" <tigert@ximian.com> writes:
> Hi!
>
> "mirror" works fine for me even on kernel 2.4.3 on my Pismo. Weird. This
> kernel is from Ben's rsync and it contains the pismo sleep code as well.
>
> rsync -avz --delete penguinppc.org::linux-2.4-benh linux-2.4-benh
>
> I got scared because I am going to GUADEC (a GNOME conference in
> Denmark) this weekend and it would have sucked badly if it didnt work,
> but so far it looks good :o)
>
> I originally had just a binary of "mirror" which worked, but I compiled
> the one which was attached to Jason's mail and it worked as well.
Glad it helped. I updated my copy of 2.4-benh, and it works now???!!!
So I'm really happy ;-)
Now...
Since I'm mirroring the LCD I only get 1024x768, and the pismo can
drive a 1600x1200@16 bit depth. So what needs to happen to aty128fb.c
to support the external monitor, and what can I do to make it happen??
Thanks,
jas.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-04 2:03 ` Jason E. Stewart
@ 2001-04-04 8:38 ` Tuomas Kuosmanen
0 siblings, 0 replies; 24+ messages in thread
From: Tuomas Kuosmanen @ 2001-04-04 8:38 UTC (permalink / raw)
To: Jason E. Stewart
Cc: Andrew Sharp, Jason E. Stewart, debian-powerpc, stewart.sadler,
linuxppc-dev
On 03 Apr 2001 19:03:28 -0700, Jason E. Stewart wrote:
> "Tuomas Kuosmanen" <tigert@ximian.com> writes:
>
> > Hi!
> >
> > "mirror" works fine for me even on kernel 2.4.3 on my Pismo. Weird. This
> > kernel is from Ben's rsync and it contains the pismo sleep code as well.
> >
> > rsync -avz --delete penguinppc.org::linux-2.4-benh linux-2.4-benh
> >
> > I got scared because I am going to GUADEC (a GNOME conference in
> > Denmark) this weekend and it would have sucked badly if it didnt work,
> > but so far it looks good :o)
> >
> > I originally had just a binary of "mirror" which worked, but I compiled
> > the one which was attached to Jason's mail and it worked as well.
>
> Glad it helped. I updated my copy of 2.4-benh, and it works now???!!!
> So I'm really happy ;-)
>
> Now...
>
> Since I'm mirroring the LCD I only get 1024x768, and the pismo can
> drive a 1600x1200@16 bit depth. So what needs to happen to aty128fb.c
> to support the external monitor, and what can I do to make it happen??
>
That is beyond *me* but maybe someone else knows. I am just the artist
dude 'round the corner who likes to hack with perl and stuff.. :-)
I think there is no support for the external monitor in that sense in
the driver. In macos it can do real dualhead, so that would be possible
at least in theory, and it would be pretty nice. But currently I think
the mirrored display is all we have for Pismo. Which works nice for
projectors though.
Tuomas
________________________________________________________________________
Tuomas Kuosmanen - Art Director -
Ximian - tigert@ximian.com -
www.ximian.com
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
@ 2001-04-04 9:21 Iain Sandoe
2001-04-04 17:01 ` Andrew Sharp
0 siblings, 1 reply; 24+ messages in thread
From: Iain Sandoe @ 2001-04-04 9:21 UTC (permalink / raw)
To: Tuomas Kuosmanen, E. Jason Stewart
Cc: Andrew Sharp, E. Jason Stewart, debian-powerpc, stewart.sadler,
linuxppc-dev
>> Since I'm mirroring the LCD I only get 1024x768, and the pismo can
>> drive a 1600x1200@16 bit depth. So what needs to happen to aty128fb.c
>> to support the external monitor, and what can I do to make it happen??
>>
>
> That is beyond *me* but maybe someone else knows. I am just the artist
> dude 'round the corner who likes to hack with perl and stuff.. :-)
>
> I think there is no support for the external monitor in that sense in
> the driver. In macos it can do real dualhead, so that would be possible
> at least in theory, and it would be pretty nice. But currently I think
> the mirrored display is all we have for Pismo. Which works nice for
> projectors though.
My understanding is that it still needs adding - as a first step you need
someone who has signed the NDA to get the specs for the ATI chips... and
understands how to write X servers... ;-)
you could try asking Ani Joshi?
ciao,
Iain.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-04 9:21 Iain Sandoe
@ 2001-04-04 17:01 ` Andrew Sharp
2001-04-04 18:43 ` Jason E. Stewart
0 siblings, 1 reply; 24+ messages in thread
From: Andrew Sharp @ 2001-04-04 17:01 UTC (permalink / raw)
To: Iain Sandoe
Cc: Tuomas Kuosmanen, E. Jason Stewart, debian-powerpc,
stewart.sadler, linuxppc-dev
One has to question whether anyone would be interested in adding
this to a frame buffer driver, assuming that it isn't already
there. Perhaps you would be able to get a lot more direct info from
another list, like one dedicated more to laptops or X.
I've actually seen an XF86Config for driving the external monitor at
different resolution(s) from the LCD, but I can't find that info at
the moment. I don't know if it works with the frame buffer
server/driver, but I know that it works with the mach64 server for
3.3.6. If I could find it, it would be worth trying....
a
Iain Sandoe wrote:
>
> >> Since I'm mirroring the LCD I only get 1024x768, and the pismo can
> >> drive a 1600x1200@16 bit depth. So what needs to happen to aty128fb.c
> >> to support the external monitor, and what can I do to make it happen??
> >>
> >
> > That is beyond *me* but maybe someone else knows. I am just the artist
> > dude 'round the corner who likes to hack with perl and stuff.. :-)
> >
> > I think there is no support for the external monitor in that sense in
> > the driver. In macos it can do real dualhead, so that would be possible
> > at least in theory, and it would be pretty nice. But currently I think
> > the mirrored display is all we have for Pismo. Which works nice for
> > projectors though.
>
> My understanding is that it still needs adding - as a first step you need
> someone who has signed the NDA to get the specs for the ATI chips... and
> understands how to write X servers... ;-)
>
> you could try asking Ani Joshi?
> ciao,
> Iain.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
@ 2001-04-04 17:29 Iain Sandoe
2001-04-05 1:58 ` Andrew Sharp
0 siblings, 1 reply; 24+ messages in thread
From: Iain Sandoe @ 2001-04-04 17:29 UTC (permalink / raw)
To: Andrew Sharp
Cc: Tuomas Kuosmanen, E. Jason Stewart, debian-powerpc,
stewart.sadler, linuxppc-dev
> One has to question whether anyone would be interested in adding
> this to a frame buffer driver, assuming that it isn't already
> there.
because it's useful? ;-)
>Perhaps you would be able to get a lot more direct info from
> another list, like one dedicated more to laptops or X.
well maybe.. - whoever asked the original question? ;-)
> I've actually seen an XF86Config for driving the external monitor at
> different resolution(s) from the LCD, but I can't find that info at
> the moment. I don't know if it works with the frame buffer
> server/driver, but I know that it works with the mach64 server for
> 3.3.6. If I could find it, it would be worth trying....
yes - mach64 (IIRC OK on Lombard) - but the Pismo has the later chip set
which isn't done yet (AFAIK).
Iain.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-04 18:43 ` Jason E. Stewart
@ 2001-04-04 18:01 ` Michel Dänzer
2001-04-04 19:28 ` Jason E. Stewart
0 siblings, 1 reply; 24+ messages in thread
From: Michel Dänzer @ 2001-04-04 18:01 UTC (permalink / raw)
To: Jason E. Stewart
Cc: Andrew Sharp, Iain Sandoe, Tuomas Kuosmanen, debian-powerpc,
stewart.sadler, linuxppc-dev
"Jason E. Stewart" wrote:
>
> "Andrew Sharp" <andy@netfall.com> writes:
>
> > One has to question whether anyone would be interested in adding
> > this to a frame buffer driver, assuming that it isn't already
> > there. Perhaps you would be able to get a lot more direct info from
> > another list, like one dedicated more to laptops or X.
>
> X has radically changed from XF3 to XF4. The limit of my X hacking was
> identifying some patches to the mouse driver code so that multiple
> mice could be used independantly. I've never worked with video
> drivers. I don't really want to now, I just want Rage driver to
> support my external video port, and if that means writing it myself
> I'm willing to learn. I'm just looking for the correct person/people
> to pester in order to get started.
>
> Ani Joshi sounds like a good starting person, Michel Danzer, maybe?
No promises as I'm very busy to say the least, but I might look into it
sometime.
Does anyone know if the old "CRTOnly" option (which was always commented out
in the source) worked?
--
Earthling Michel Dänzer (MrCooper) \ Debian GNU/Linux (powerpc) developer
CS student, Free Software enthusiast \ XFree86 and DRI project member
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-04 17:01 ` Andrew Sharp
@ 2001-04-04 18:43 ` Jason E. Stewart
2001-04-04 18:01 ` Michel Dänzer
0 siblings, 1 reply; 24+ messages in thread
From: Jason E. Stewart @ 2001-04-04 18:43 UTC (permalink / raw)
To: Andrew Sharp
Cc: Iain Sandoe, Tuomas Kuosmanen, E. Jason Stewart, debian-powerpc,
stewart.sadler, linuxppc-dev
"Andrew Sharp" <andy@netfall.com> writes:
> One has to question whether anyone would be interested in adding
> this to a frame buffer driver, assuming that it isn't already
> there. Perhaps you would be able to get a lot more direct info from
> another list, like one dedicated more to laptops or X.
X has radically changed from XF3 to XF4. The limit of my X hacking was
identifying some patches to the mouse driver code so that multiple
mice could be used independantly. I've never worked with video
drivers. I don't really want to now, I just want Rage driver to
support my external video port, and if that means writing it myself
I'm willing to learn. I'm just looking for the correct person/people
to pester in order to get started.
Ani Joshi sounds like a good starting person, Michel Danzer, maybe?
> I've actually seen an XF86Config for driving the external monitor at
> different resolution(s) from the LCD, but I can't find that info at
> the moment. I don't know if it works with the frame buffer
> server/driver, but I know that it works with the mach64 server for
> 3.3.6. If I could find it, it would be worth trying....
Don't know. I need XF4 and Rage128.
jas.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-04 18:01 ` Michel Dänzer
@ 2001-04-04 19:28 ` Jason E. Stewart
2001-04-04 21:45 ` Michel Dänzer
0 siblings, 1 reply; 24+ messages in thread
From: Jason E. Stewart @ 2001-04-04 19:28 UTC (permalink / raw)
To: Michel D?nzer
Cc: Jason E. Stewart, Andrew Sharp, Iain Sandoe, Tuomas Kuosmanen,
debian-powerpc, stewart.sadler, linuxppc-dev
"Michel Dänzer" <michdaen@iiic.ethz.ch> writes:
> "Jason E. Stewart" wrote:
> >
> > Ani Joshi sounds like a good starting person, Michel Danzer, maybe?
>
> No promises as I'm very busy to say the least, but I might look into it
> sometime.
Actually, all I'm asking for is a little coaching, and I'm
volunteering to do the coding myself.
> Does anyone know if the old "CRTOnly" option (which was always commented out
> in the source) worked?
It's been a few months since I built the code from scratch, and I
never used that option. That seems like a place to start.
Should I just use apt-get to grab the server source, or do I need Ani
Joshi's tree especially? Where is the CRTOnly option located (saves me
running a recursive find ...)
Thanks,
jas.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-04 19:28 ` Jason E. Stewart
@ 2001-04-04 21:45 ` Michel Dänzer
2001-04-04 23:19 ` Jason E. Stewart
0 siblings, 1 reply; 24+ messages in thread
From: Michel Dänzer @ 2001-04-04 21:45 UTC (permalink / raw)
To: Jason E. Stewart
Cc: Andrew Sharp, Iain Sandoe, Tuomas Kuosmanen, debian-powerpc,
stewart.sadler, linuxppc-dev
"Jason E. Stewart" wrote:
> > Does anyone know if the old "CRTOnly" option (which was always commented
> > out in the source) worked?
>
> It's been a few months since I built the code from scratch, and I
> never used that option. That seems like a place to start.
>
> Should I just use apt-get to grab the server source, or do I need Ani
> Joshi's tree especially?
Both should be more or less equivalent. The best would of course be to get it
from CVS.
> Where is the CRTOnly option located (saves me running a recursive find ...)
xc/programs/Xserver/hw/xfree86/drivers/ati/r128_driver.c
--
Earthling Michel Dänzer (MrCooper) \ Debian GNU/Linux (powerpc) developer
CS student, Free Software enthusiast \ XFree86 and DRI project member
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-04 23:19 ` Jason E. Stewart
@ 2001-04-04 22:22 ` Michel Dänzer
2001-04-05 19:55 ` Jason E. Stewart
2001-04-05 23:46 ` Jason E. Stewart
0 siblings, 2 replies; 24+ messages in thread
From: Michel Dänzer @ 2001-04-04 22:22 UTC (permalink / raw)
To: Jason E. Stewart; +Cc: debian-powerpc, linuxppc-dev
"Jason E. Stewart" wrote:
> > > Should I just use apt-get to grab the server source, or do I need Ani
> > > Joshi's tree especially?
> >
> > Both should be more or less equivalent. The best would of course be to get
> > it from CVS.
>
> Fine by me. What repository should I use,
> anoncvs@anoncvs.xfree86.org:/cvs
Yes. Note that the current trunk doesn't contain CRTOnly anymore in "favour"
of a "UseBIOSDisplay" option (very portable ;). I suggest getting the
xf-4_0_2-branch .
> or is there a PPC specific tree I need?
There's only Ani's tree I know of, but the r128 driver is rather well
integrated in the official XFree86 so you shouldn't need it. And I personally
prefer submitting stuff upstream directly.
--
Earthling Michel Dänzer (MrCooper) \ Debian GNU/Linux (powerpc) developer
CS student, Free Software enthusiast \ XFree86 and DRI project member
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-04 21:45 ` Michel Dänzer
@ 2001-04-04 23:19 ` Jason E. Stewart
2001-04-04 22:22 ` Michel Dänzer
0 siblings, 1 reply; 24+ messages in thread
From: Jason E. Stewart @ 2001-04-04 23:19 UTC (permalink / raw)
To: Michel D?nzer; +Cc: debian-powerpc, linuxppc-dev
"Michel Dänzer" <michdaen@iiic.ethz.ch> writes:
> "Jason E. Stewart" wrote:
>
> > Should I just use apt-get to grab the server source, or do I need Ani
> > Joshi's tree especially?
>
> Both should be more or less equivalent. The best would of course be to get it
> from CVS.
Fine by me. What repository should I use,
anoncvs@anoncvs.xfree86.org:/cvs
or is there a PPC specific tree I need?
Thanks,
jas.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-04 17:29 Iain Sandoe
@ 2001-04-05 1:58 ` Andrew Sharp
2001-04-05 5:55 ` Jason E. Stewart
0 siblings, 1 reply; 24+ messages in thread
From: Andrew Sharp @ 2001-04-05 1:58 UTC (permalink / raw)
To: debian-powerpc; +Cc: linuxppc-dev
Iain Sandoe wrote:
>
> > One has to question whether anyone would be interested in adding
> > this to a frame buffer driver, assuming that it isn't already
> > there.
>
> because it's useful? ;-)
Interesting word. I wonder what it means. But all seriousness
aside, what I meant was that if I was going to do some development
on this, I would also simultaneously work on getting the aty128
direct driver to work. In other words if it's already in the 128
driver, then I would try to get that working on Pismo, rather than
try adding CRT support to the fb driver. I'm trying to make sense,
really I am. Someone else mentioned that X4 and X3 vary greatly. I
am aware of those differences.
> > I've actually seen an XF86Config for driving the external monitor at
> > different resolution(s) from the LCD, but I can't find that info at
> > the moment. I don't know if it works with the frame buffer
> > server/driver, but I know that it works with the mach64 server for
> > 3.3.6. If I could find it, it would be worth trying....
OK, some I'm starting to get the clue that Pismo is the G3 powerbook
w/ rage128, as opposed to Wallstreet, which is G3 PB w/mach64? A
couple more years and I'm sure I'll have it straight.
a
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-05 1:58 ` Andrew Sharp
@ 2001-04-05 5:55 ` Jason E. Stewart
0 siblings, 0 replies; 24+ messages in thread
From: Jason E. Stewart @ 2001-04-05 5:55 UTC (permalink / raw)
To: Andrew Sharp; +Cc: debian-powerpc, linuxppc-dev
"Andrew Sharp" <andy@netfall.com> writes:
> Iain Sandoe wrote:
> >
> > because it's useful? ;-)
>
> Interesting word. I wonder what it means. But all seriousness
> aside, what I meant was that if I was going to do some development
> on this, I would also simultaneously work on getting the aty128
> direct driver to work. In other words if it's already in the 128
> driver, then I would try to get that working on Pismo, rather than
> try adding CRT support to the fb driver. I'm trying to make sense,
> really I am. Someone else mentioned that X4 and X3 vary greatly. I
> am aware of those differences.
I'm not clear how the drivers are all related to one another. I
believe that the framebuffer is the actual server module, while the
r128_driver.c is just the low level stuff. I'm not sure at all, but I
suppose I'll know a lot more in a few days ;-)
> OK, some I'm starting to get the clue that Pismo is the G3 powerbook
> w/ rage128, as opposed to Wallstreet, which is G3 PB w/mach64? A
> couple more years and I'm sure I'll have it straight.
Sorry, yes, pismo is the G3 Firewire.
jas.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-05 19:55 ` Jason E. Stewart
@ 2001-04-05 19:48 ` Michel Dänzer
2001-04-05 21:49 ` Jason E. Stewart
0 siblings, 1 reply; 24+ messages in thread
From: Michel Dänzer @ 2001-04-05 19:48 UTC (permalink / raw)
To: Jason E. Stewart; +Cc: debian-powerpc, linuxppc-dev
"Jason E. Stewart" wrote:
> > > > > Should I just use apt-get to grab the server source, or do I need
> > > > > Ani Joshi's tree especially?
> > > >
> > > > Both should be more or less equivalent. The best would of course be to
> > > > get it from CVS.
> > >
> > > Fine by me. What repository should I use,
> > > anoncvs@anoncvs.xfree86.org:/cvs
> >
> > Yes. Note that the current trunk doesn't contain CRTOnly anymore in
> > "favour" of a "UseBIOSDisplay" option (very portable ;). I suggest getting
> > the xf-4_0_2-branch .
>
> Ok. grabbed it. Now all I really need to build is just the Rage128
> driver, right? I don't have to build the entire system. Do you know
> what I need to comment out in the config files to just build the
> minimum subset?
cp config/cf/{xf86site,host}.def
Uncomment '#define BuildServersOnly YES' in host.def and remove all drivers
but ati for XF86CardDrivers .
make World 2>&1|tee World.log
Will take about an hour (Pismo/400).
grep '\*\*\*' World.log
Check any matches this yields.
Good luck!
PS: Hope I don't forget anything ;)
--
Earthling Michel Dänzer (MrCooper) \ Debian GNU/Linux (powerpc) developer
CS student, Free Software enthusiast \ XFree86 and DRI project member
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-04 22:22 ` Michel Dänzer
@ 2001-04-05 19:55 ` Jason E. Stewart
2001-04-05 19:48 ` Michel Dänzer
2001-04-05 23:46 ` Jason E. Stewart
1 sibling, 1 reply; 24+ messages in thread
From: Jason E. Stewart @ 2001-04-05 19:55 UTC (permalink / raw)
To: Michel D?nzer; +Cc: debian-powerpc, linuxppc-dev
"Michel Dänzer" <michdaen@iiic.ethz.ch> writes:
> "Jason E. Stewart" wrote:
>
> > > > Should I just use apt-get to grab the server source, or do I need Ani
> > > > Joshi's tree especially?
> > >
> > > Both should be more or less equivalent. The best would of course be to get
> > > it from CVS.
> >
> > Fine by me. What repository should I use,
> > anoncvs@anoncvs.xfree86.org:/cvs
>
> Yes. Note that the current trunk doesn't contain CRTOnly anymore in "favour"
> of a "UseBIOSDisplay" option (very portable ;). I suggest getting the
> xf-4_0_2-branch .
Ok. grabbed it. Now all I really need to build is just the Rage128
driver, right? I don't have to build the entire system. Do you know
what I need to comment out in the config files to just build the
minimum subset? I still haven't gotten around to compiling Dan
Berlin's latest FireWire code, so my 80Gb Maxtor drive is parked,
unused...
jas.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-05 19:48 ` Michel Dänzer
@ 2001-04-05 21:49 ` Jason E. Stewart
0 siblings, 0 replies; 24+ messages in thread
From: Jason E. Stewart @ 2001-04-05 21:49 UTC (permalink / raw)
To: Michel D?nzer; +Cc: debian-powerpc, linuxppc-dev
"Michel Dänzer" <michdaen@iiic.ethz.ch> writes:
> "Jason E. Stewart" wrote:
>
> > Ok. grabbed it. Now all I really need to build is just the Rage128
> > driver, right? I don't have to build the entire system. Do you know
> > what I need to comment out in the config files to just build the
> > minimum subset?
>
> cp config/cf/{xf86site,host}.def
>
> Uncomment '#define BuildServersOnly YES' in host.def and remove all drivers
> but ati for XF86CardDrivers .
>
> make World 2>&1|tee World.log
>
> Will take about an hour (Pismo/400).
>
> grep '\*\*\*' World.log
>
> Check any matches this yields.
>
>
> Good luck!
>
>
> PS: Hope I don't forget anything ;)
Great Thanks, Michel. Build is running with CRTOnly uncommented. I'll
let you know in an hour or so (Pismo/500)...
jas.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-05 23:46 ` Jason E. Stewart
@ 2001-04-05 23:28 ` Michel Dänzer
2001-04-06 3:04 ` Steven Hanley
0 siblings, 1 reply; 24+ messages in thread
From: Michel Dänzer @ 2001-04-05 23:28 UTC (permalink / raw)
To: Jason E. Stewart; +Cc: debian-powerpc, linuxppc-dev
"Jason E. Stewart" wrote:
> I don't want to mess up my existing configuration so I only want to
> 'make install' if I can get it to happily install someplace other than
> /usr/X11R6/*
You'd have to set ProjectRoot in host.def before the build.
> Shouldn't I just need to install
>
> xc/programs/Xserver/hw/xfree86/drivers/ati/r128_drv.o
>
> into /usr/X11R6/lib/modules/drivers and restart the X server?
Bingo! Backup the original one though. ;)
--
Earthling Michel Dänzer (MrCooper) \ Debian GNU/Linux (powerpc) developer
CS student, Free Software enthusiast \ XFree86 and DRI project member
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-04 22:22 ` Michel Dänzer
2001-04-05 19:55 ` Jason E. Stewart
@ 2001-04-05 23:46 ` Jason E. Stewart
2001-04-05 23:28 ` Michel Dänzer
1 sibling, 1 reply; 24+ messages in thread
From: Jason E. Stewart @ 2001-04-05 23:46 UTC (permalink / raw)
To: Michel D?nzer; +Cc: Jason E. Stewart, debian-powerpc, linuxppc-dev
"Michel Dänzer" <michdaen@iiic.ethz.ch> writes:
> "Jason E. Stewart" wrote:
>
> Yes. Note that the current trunk doesn't contain CRTOnly anymore in "favour"
> of a "UseBIOSDisplay" option (very portable ;). I suggest getting the
> xf-4_0_2-branch .
Yeah!!! It's done!!!
I don't want to mess up my existing configuration so I only want to
'make install' if I can get it to happily install someplace other than
/usr/X11R6/*
Shouldn't I just need to install
xc/programs/Xserver/hw/xfree86/drivers/ati/r128_drv.o
into /usr/X11R6/lib/modules/drivers and restart the X server? Or do I
need other files as well?
Thanks,
jas.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: External Monitor under Pismo
2001-04-05 23:28 ` Michel Dänzer
@ 2001-04-06 3:04 ` Steven Hanley
0 siblings, 0 replies; 24+ messages in thread
From: Steven Hanley @ 2001-04-06 3:04 UTC (permalink / raw)
To: debian-powerpc, linuxppc-dev
On Fri, Apr 06, 2001 at 01:28:59AM +0200, Michel Dänzer wrote:
> You'd have to set ProjectRoot in host.def before the build.
it is detailed nicely on http://dri.sourceforge.net/doc/DRIcompile.html
which also mentions
9.3 Update Locale Information
To update your X locale information do the following:
cd ~/DRI-CVS/build/xc/nls
../config/util/xmkmf -a
make
make install
This will prevent a locale error message from being printed when you run
Xlib programs.
which I defintely reccomend doing, and I wonder why the how to compile X
guuides never seem to mention this that I have seen, the first time I
compiled X 4 for my pismo I was wondering for about a month why I was
getting the locale error, until I compiled dri server and followed those
directions I still didnt know. From what I can tell when you build all of X
this is done anyway, but not when you build server only.
See You
Steve
--
sjh@wibble.net http://wibble.net/~sjh/
Look Up In The Sky
Is it a bird? No
Is it a plane? No
Is it a small blue banana?
YES
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 24+ messages in thread
end of thread, other threads:[~2001-04-06 3:04 UTC | newest]
Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-02 20:18 External Monitor under Pismo Jason E. Stewart
2001-04-03 11:24 ` Andrew Sharp
2001-04-03 15:15 ` Tuomas Kuosmanen
2001-04-04 1:12 ` Steven Hanley
2001-04-04 2:03 ` Jason E. Stewart
2001-04-04 8:38 ` Tuomas Kuosmanen
2001-04-03 18:08 ` Jason E. Stewart
-- strict thread matches above, loose matches on Subject: below --
2001-04-04 9:21 Iain Sandoe
2001-04-04 17:01 ` Andrew Sharp
2001-04-04 18:43 ` Jason E. Stewart
2001-04-04 18:01 ` Michel Dänzer
2001-04-04 19:28 ` Jason E. Stewart
2001-04-04 21:45 ` Michel Dänzer
2001-04-04 23:19 ` Jason E. Stewart
2001-04-04 22:22 ` Michel Dänzer
2001-04-05 19:55 ` Jason E. Stewart
2001-04-05 19:48 ` Michel Dänzer
2001-04-05 21:49 ` Jason E. Stewart
2001-04-05 23:46 ` Jason E. Stewart
2001-04-05 23:28 ` Michel Dänzer
2001-04-06 3:04 ` Steven Hanley
2001-04-04 17:29 Iain Sandoe
2001-04-05 1:58 ` Andrew Sharp
2001-04-05 5:55 ` Jason E. Stewart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).