PowerBook5,6? (was: Mac mini)

2005-04-07 Thread Bernhard Reiter
On Thu, Apr 07, 2005 at 04:56:18PM +1000, Benjamin Herrenschmidt wrote:
> On Thu, 2005-04-07 at 08:44 +0200, Colin Leroy wrote:
> > On Thu, 07 Apr 2005 15:48:43 +1000
> > Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote:
> > 
> > > the nice toy is unfortunately ... back at Apple for repairs.
> > 
> > Ah, the joys of Apple's Rev A hardware :)
> 
> Heh... well, yesterday, I also finally got to play with the iMac G5 that
> IBM ordered a while ago (just delivered) and ... it was DOA (Dead On
> Arrival). A nice brick, but still a brick ... going back to Apple too :(

Seems you have bad luck with getting new apple hardware to be bale to hack it.
So did you get your hands on a Powerbook5,6 meanwhile ? ;-)
I though you had mentioned that a friend of yours had ordered one
and it would be ironic if this also would have gone back apple...

I am having a post Februaray Powerbook5,6 here with German keyboard
and having sound and better sleep support would be great.

Someone told me that xorg releases could do external SVGA mirroring
for the previous powerbook models 15" with ati. Did somebody test this
with the new February Powerbook 15" model?


lspci -v
:00:10.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility 
Radeon 9600 M10] (prog-if 00 [VGA])
Subsystem: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]
Flags: bus master, 66MHz, medium devsel, latency 255, IRQ 48
Memory at b800 (32-bit, prefetchable) [size=128M]
I/O ports at 802400 [size=256]
Memory at b000 (32-bit, non-prefetchable) [size=64K]
Expansion ROM at f100 [disabled] [size=128K]
Capabilities: [58] AGP version 2.0
Capabilities: [50] Power Management version 2


pgpZsifjkPw9Q.pgp
Description: PGP signature


Re: Sound drivers for newer machines: need help

2005-04-11 Thread Bernhard Reiter
PowerBook 15" post feb-2005:
I can confirm the quoted readings
and I am not getting another message by find like Ben.

On Sat, Apr 09, 2005 at 10:50:30AM +0200, Johannes Berg wrote:
> PowerBook5,6
> 
> > for i in `find /proc/device-tree -name layout-id -print`; do echo $i && 
> > hexdump -n4 $i; done
> 
> /proc/device-tree/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL 
> PROTECTED]/[EMAIL PROTECTED]/sound/layout-id
> 000  0046
> 004

On Sun, Apr 10, 2005 at 01:13:49PM +0100, Ben Hill wrote:
> PowerBook5,6

> > for i in `find /proc/device-tree -name layout-id -print`; do echo $i && 
> > hexdump -n4 $i; done
> 
> find: /proc/device-tree/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL 
> PROTECTED]/[EMAIL PROTECTED]/pulses/rev: No such file or directory
> /proc/device-tree/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL 
> PROTECTED]/[EMAIL PROTECTED]/sound/layout-id
> 000  0046
> 004


pgppHqQ0Tmixs.pgp
Description: PGP signature


Re: [PATCH] pmac: Improve sleep code of tumbler driver

2005-04-11 Thread Bernhard Reiter
On Mon, Apr 11, 2005 at 10:45:00AM +0200, Colin Leroy wrote:
> On Mon, 11 Apr 2005 18:34:34 +1000
> Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote:
> 
> > On Mon, 2005-04-11 at 10:18 +0200, Colin Leroy wrote:

> > > I suppose it also fixes the occasionnal loud static noise that
> > > sometimes at wakeup, for example on iBook G4s. Good :)

Just a side comment:
I had static noise with my lombard for a while.
My lombard developed really strange habits and is in non-usable state now.
Still this sound problem was there and the bug only got closed
because the maintainer did not believe me. :(

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=259352&archive=yes

> > I don't know, tell me. I didn't know about this problem.
> 
> It was reported here:
> http://lists.debian.org/debian-powerpc/2005/01/msg00781.html
> 
> I didn't personnaly report it because it was hard to track it down;
> it'd happen about once in twenty resumes (more often when you're in a
> quiet place with strangers around, evidently, according to Murphy's
> law), and nothing unusual appeared in dmesg (even with SND_DEBUG, which
> doesn't debug much on ppc anyway). I just got used to mute the ibook
> before sending it to sleep.


pgpVnm2Rxl4po.pgp
Description: PGP signature


Re: Noise in X bitmaps. Beige G3.

2005-04-11 Thread Bernhard Reiter
On Mon, Apr 11, 2005 at 11:50:30AM +0100, David Deans wrote:
> I'm currently running Debian Linux Sarge on an old beige Powermac G3,
> 266Mhz. Up till now I have run the machine without X without problems,

> However, X seems to suffer from occasional problems in rendering the
> screen. Every now and again, X will render a bitmap or a window with a
> whole bunch of noise in it. You can "clear" the noise away by running
> a window slowly over the affected area, but it usually returns.
> 
> Is this a common problem? 



> Kernel: 2.6.8
> Memory: 92.1MB
> Video: 2Meg, ATI Rage Pro. I do not use the framebuffer.

My old lombard used to render artifacts in images 
and it was introduced at some point with an update of the xserver.
It also had a rage pro.

You could try switching off some hardware acceleration options
as I found some emails saying the hardware had problems with some of those.
This worked for me with vectors, it might help with images, too.

For reference see:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=268015


> Monitor: M1212 Color display
> Boot system: BootX on MacOS9 startup.
> 
> I've included by XF86Config file incase it is of any use. 


pgpUrAUhJqrSi.pgp
Description: PGP signature


Re: [PATCH] pmac: Improve sleep code of tumbler driver

2005-04-11 Thread Bernhard Reiter
On Mon, Apr 11, 2005 at 05:25:56PM +0200, Wouter van Heyst wrote:
> > Just a side comment:
> > I had static noise with my lombard for a while.
> > My lombard developed really strange habits and is in non-usable state now.
> > Still this sound problem was there and the bug only got closed
> > because the maintainer did not believe me. :(
> 
> What strange habits?

It all started gradually with it sometimes not coming back from sleep.
This was when I tested 2.6.x with x<=8 kernels from Debian.
Going back to old kernels did not help, though they did run nicely 
for a longer period.

Later it got worse:
The timer made pauses, the system time was off afterwards, 
though the hardware clock was still fine.
Disk and mouse would still move, but any command that needed a signal
for time would not work (e.g. sleep 1) on a shell would pause for a minute.
The machine did not make computing mistakes, it just took a break.
This started after I compiled a lot of KDE stuff during a few
hacking days at aKademy, so maybe this has something to do with overheating.

Currently the system sometimes does not start up at all.
Even when doing a reset there is not startup sound or it hard freezes
a few minutes later.

I did try the test CD from Apple, but could not find anything.
No MacOS on that machine anymore.

I zapped the nvram several time now, without further help 
and my diagnosis is that the hardware has some problems.

Bernhard




pgp8IjrvQZhyj.pgp
Description: PGP signature


Re: [PATCH] pmac: sound support for latest laptops

2005-04-13 Thread Bernhard Reiter
On Tue, Apr 12, 2005 at 10:59:20PM -0700, Brian C wrote:
> Sorry to be dense, but could someone explain step-by-baby-step how to
> apply that patch? I've got a new Powerbook I'd like to try it on, but
> don't know exactly how to proceed.

First you need to be able to compile, set up and run your own kernel.
There should be enough written documentation for this already.

Then you save the patch file and use the command patch to apply
the changes to the source code before compiling your new kernel.
http://www.linuxhq.com/patch-howto.html



pgp9h1bc6M1Yl.pgp
Description: PGP signature


External Monitor from PowerBook5,6

2005-04-14 Thread Bernhard Reiter
On Fri, Apr 08, 2005 at 09:11:40AM +1000, Benjamin Herrenschmidt wrote:
> On Thu, 2005-04-07 at 17:07 +0200, Bernhard Reiter wrote:
> > I am having a post Februaray Powerbook5,6 here with German keyboard
> > 
> > Someone told me that xorg releases could do external SVGA mirroring
> > for the previous powerbook models 15" with ati. Did somebody test this
> > with the new February Powerbook 15" model?
> 
> It should work

Trying 6.8.2 I have problems.
(there are nice instructions to compile it on
http://blogs.vislab.usyd.edu.au/index.php/Steve/2004/09/09/installing_a_non_intrusive_x
)

It seems that most options of Mirroring and the CRT2 in the radeon drivers
need to use MergeFB. However so far I can only see something if I 
specify Option "UseFBDev" "true" and thus MergeFB gets disabled.
When MergeFB is in place, even without error messages I have a black
laptop screen (with one horizontal dark line in the lower part).
Whether I have a second screen attached or not makes no difference.

Trying multihead with two Screens after the example from
http://www.johnleach.co.uk/documents/powerpc/XF86Config-4.dualhead
also was not successful. I tried with VGA Flatpanel what has 1280x1024 
dimensions. This was also unsuccessful.
When enabling UseFBDev for the second screen then I could see something
on it: Moving the mouse. Still it was not working in a way that it
could be used at all.

What should I try to come closer to a useful Mirror mode?
Can somebody confirm that UseFBDev is required for the laptop panel?


> > lspci -v
> > :00:10.0 VGA compatible controller: ATI Technologies Inc RV350 
> > [Mobility Radeon 9600 M10] (prog-if 00 [VGA])
> > Subsystem: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]
> > Flags: bus master, 66MHz, medium devsel, latency 255, IRQ 48
> > Memory at b800 (32-bit, prefetchable) [size=128M]
> > I/O ports at 802400 [size=256]
> > Memory at b000 (32-bit, non-prefetchable) [size=64K]
> > Expansion ROM at f100 [disabled] [size=128K]
> > Capabilities: [58] AGP version 2.0
> > Capabilities: [50] Power Management version 2


pgpDmMqMdHRBe.pgp
Description: PGP signature


Re: External Monitor from PowerBook5,6

2005-04-14 Thread Bernhard Reiter
On Thu, Apr 14, 2005 at 07:46:02PM +0930, John Steele Scott wrote:
> Bernhard Reiter <[EMAIL PROTECTED]> writes:

> I have mirroring working on my iBook G4 with a Radeon 9200. Xorg 6.8.2 does
> not include the necessary code for this, so there are two things you can try:
> 
> 1) Try Xorg HEAD.

As Ubuntu seems to have a lot of patches in their packages,
I will try HEAD. 

> 2) See what patches Ubuntu uses in their Xorg package. They have backported
>some of Ben's work from HEAD, and so their Xorg (6.8.2-10) can do mirroring
>at least on my iBook.

Thanks for the hints!


pgpo7dPSnfClZ.pgp
Description: PGP signature


Re: External Monitor from PowerBook5,6

2005-04-14 Thread Bernhard Reiter
On Thu, Apr 14, 2005 at 12:51:12PM +0200, Bernhard Reiter wrote:
> On Thu, Apr 14, 2005 at 07:46:02PM +0930, John Steele Scott wrote:
> > Bernhard Reiter <[EMAIL PROTECTED]> writes:
> 
> > I have mirroring working on my iBook G4 with a Radeon 9200. Xorg 6.8.2 does
> > not include the necessary code for this, so there are two things you can 
> > try:
> > 
> > 1) Try Xorg HEAD.
> 
> I will try HEAD. 

Did CVS checkout and compiled.
Strangely enough I had to restart compilation a few times
because of compiler and assembler error. 
It always worked the second time on the same file.
So now I have a fresh CVS build of xorg.

I still cannot get a pictures without using "UseFBDev".
There is also a 
(WW) INVALID IO ALLOCATION b: 0xf400 e: 0xf4ff correcting
(EE) end of block range 0xefff < begin 0xf000

During various experiments I could see some output to the external monitor.
When plugging it in while booting I get some traces from radeonfb,
probably disorted because of the different sizes (laptop panel
1280x854, external 1280x1024.).

When I try to only use the laptop screen without UseFBDEV, it fails.
The screen stays dark.

BTW: I am on 2.6.11 something here. Is the kernel crucial for 
this funcationality?


pgpQNbymZbKpk.pgp
Description: PGP signature


Re: External Monitor from PowerBook5,6

2005-04-14 Thread Bernhard Reiter
On Thu, Apr 14, 2005 at 05:30:02PM +0200, Bernhard Reiter wrote:

> So now I have a fresh CVS build of xorg.
> 
> I still cannot get a pictures without using "UseFBDev".
> There is also a 
> (WW) INVALID IO ALLOCATION b: 0xf400 e: 0xf4ff correcting
> (EE) end of block range 0xefff < begin 0xf000
> 
> During various experiments I could see some output to the external monitor.
> When plugging it in while booting I get some traces from radeonfb,
> probably disorted because of the different sizes (laptop panel
> 1280x854, external 1280x1024.).

Strangely enough, if I try a dual head setup and UseFBDev on the external
monitor I managed with one setting to get a display on both, though
the background of the external monitor is not correct. The mouse
can float over though. Trying to display a menu or window on the
external monitor has effects on the first monitor, so this is not
getting much closer.

Hints badly wanted.



pgp5KJ7jMyPTT.pgp
Description: PGP signature


Re: External Monitor from PowerBook5,6 not working

2005-04-15 Thread Bernhard Reiter
On Thu, Apr 14, 2005 at 06:02:05PM +0200, Bernhard Reiter wrote:
> On Thu, Apr 14, 2005 at 05:30:02PM +0200, Bernhard Reiter wrote:
> 
> > So now I have a fresh CVS build of xorg.
> > 
> > I still cannot get a pictures without using "UseFBDev".

This seems the first thing that should work I guess,
pictures without UseFBDev. Am I right?
Whom I could offer my help as tester?

> > There is also a 
> > (WW) INVALID IO ALLOCATION b: 0xf400 e: 0xf4ff correcting
> > (EE) end of block range 0xefff < begin 0xf000
> > 
> > During various experiments I could see some output to the external monitor.
> > When plugging it in while booting I get some traces from radeonfb,
> > probably disorted because of the different sizes (laptop panel
> > 1280x854, external 1280x1024.).
> 
> Strangely enough, if I try a dual head setup and UseFBDev on the external
> monitor I managed with one setting to get a display on both, though
> the background of the external monitor is not correct. The mouse
> can float over though. Trying to display a menu or window on the
> external monitor has effects on the first monitor, so this is not
> getting much closer.
> 
> Hints badly wanted.


pgp5Ptojv5jhU.pgp
Description: PGP signature


Re: External Monitor from PowerBook5,6 not working

2005-04-18 Thread Bernhard Reiter
On Sat, Apr 16, 2005 at 09:59:23AM +1000, Benjamin Herrenschmidt wrote:
> On Fri, 2005-04-15 at 12:04 +0200, Bernhard Reiter wrote:
> > On Thu, Apr 14, 2005 at 06:02:05PM +0200, Bernhard Reiter wrote:
> > > On Thu, Apr 14, 2005 at 05:30:02PM +0200, Bernhard Reiter wrote:
> > > 
> > > > So now I have a fresh CVS build of xorg.
> > > > 
> > > > I still cannot get a pictures without using "UseFBDev".
> 
> Hrm... UseFBDev does not work with dual head. 
> If you are using X.org CVS
> HEAD, it should work with VGA out (but not DVI yet).

I am a bit in the dark how I should configure this.
Shall I use "UseFBDev" and then what?

As mentioned, I get unusable disorted output when the external 
monitor is plugged in via VGA (over the dvi port) and I am booting my kernel.
But this is unrelated to the xserver.

My understanding of Option "VGAAccess" from the manpage tells me 
that this is not the right option for this.


pgpAp1uNGXK1d.pgp
Description: PGP signature


Re: State of Java on PPC

2005-04-18 Thread Bernhard Reiter
On Sat, Apr 16, 2005 at 09:18:30AM -0700, Wilhelm Fitzpatrick wrote:
> 
> On Apr 16, 2005, at 9:10 AM, Paul J. Lucas wrote:
> 
> > A few years ago, the state of Java on Linux/PPC was less than
> > that of Java on x86.  Has that improved?
> 
> The state of Java on Linux/PPC has not really changed at all since a 
> year ago, that I am aware of.

But I have heard that the Free Software implementations,
like gcj and Classpath have made significant progress lately.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: making mouse event with keys

2005-04-18 Thread Bernhard Reiter
On Sun, Apr 17, 2005 at 01:03:46PM -0600, Mauro wrote:
> On Sun, 2005-04-17 at 14:54 -0400, Tamas K Papp wrote:
> > Hi,
> > 
> > In I11, I would like certain keys (F11, F12) to behave as if I pressed
> > the mouse buttons 2 or 3.  Is it possible?

Yes,
the "showkey" or "xev" commands are your friends to find out 
what numbers those keys produce.
Next put them into the files in
/proc/sys/dev/mac_hid# ls
mouse_button2_keycode  mouse_button3_keycode  mouse_button_emulation
echo 1 >mouse_button_emulation


> > I searched the list archives but found nothing, maybe I used the wrong
> > keywords...
> > 
> > Tamas
> 
> If its an ibook, try reading towards the end of
> http://ubuntuppc.webplazahosting.com/index.php?Sarge%20to%20Hoary


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: some way to start gtkbuttons at X startup

2005-04-24 Thread Bernhard Reiter
On Sat, Apr 23, 2005 at 11:34:32AM +0200, Matthias Grimm wrote:
> On Fri, 22 Apr 2005 10:01:57 +0300
> Eddy Petrisor <[EMAIL PROTECTED]> wrote:

> > how do I "compile it with gnome session management" ?
> > This would be nice enough.
> 
> ./configure --with-gnome

In gnome you could also add it to the applications for a session.
Find the button to start gnome-session-properties
(Usually under applications -> desktop settings -> complex).
go to the tab "start applications" and "add".



pgpZYP14rBWfw.pgp
Description: PGP signature


Re: External Monitor from PowerBook5,6 not working

2005-04-25 Thread Bernhard Reiter
More experiments getting any external monitor to work
on a post-February 2005 PowerBook5,6 15".
My goal is clone mode so I can use a beamer.

I am using 2.6.12-rc3 now 
(I can confirm that sounds works)
Using the DVI-to-VGA adaptor I connect a 17"flat panel.

Booting up, the external monitor gets a signal, but stays blank.
Starting up Xorg (CVS HEAD from two weeks ago) using UseFB, 
I get nothing on the external one. Trying no UseFB, 
it never finds a good mode for the second monitor and disables it,
there is no display on the laptop panel then, like a switched off backlight.
Here is a Xorg.log file, trying with MergeFB:
http://intevation.de/Intevation/~bernhard/ppc/powerbook5,6/Xorg.0.log-mergefb-20050425

Starting the old Xfree4.3.x from debian I do get a picture on the
external monitor from then on. It stays disorted, though.
The best I could get was a correctly looking mouse pointer
or disorted stuff.

As I do get _some_ output on the external monitor, 
maybe this is only a problem of configuring the right values.
My experiments have not brought usable results.

Bernhard


On Mon, Apr 18, 2005 at 10:41:29AM +0200, Bernhard Reiter wrote:
> On Sat, Apr 16, 2005 at 09:59:23AM +1000, Benjamin Herrenschmidt wrote:
> > On Fri, 2005-04-15 at 12:04 +0200, Bernhard Reiter wrote:
> > > On Thu, Apr 14, 2005 at 06:02:05PM +0200, Bernhard Reiter wrote:
> > > > On Thu, Apr 14, 2005 at 05:30:02PM +0200, Bernhard Reiter wrote:
> > > > 
> > > > > So now I have a fresh CVS build of xorg.
> > > > > 
> > > > > I still cannot get a pictures without using "UseFBDev".
> > 
> > Hrm... UseFBDev does not work with dual head. 
> > If you are using X.org CVS
> > HEAD, it should work with VGA out (but not DVI yet).
> 
> I am a bit in the dark how I should configure this.
> Shall I use "UseFBDev" and then what?
> 
> As mentioned, I get unusable disorted output when the external 
> monitor is plugged in via VGA (over the dvi port) and I am booting my kernel.
> But this is unrelated to the xserver.





pgpU0yk3UzS6H.pgp
Description: PGP signature


Re: External Monitor from PowerBook5,6 not working

2005-04-26 Thread Bernhard Reiter
Hi John,

first thanks for your suggestions.

On Mon, Apr 25, 2005 at 10:52:14PM +0930, John Steele Scott wrote:
> Bernhard Reiter <[EMAIL PROTECTED]> writes:
> > More experiments getting any external monitor to work
> > on a post-February 2005 PowerBook5,6 15".
> > My goal is clone mode so I can use a beamer.
> >
> > I am using 2.6.12-rc3 now 
> > (I can confirm that sounds works)
> > Using the DVI-to-VGA adaptor I connect a 17"flat panel.
> 
> Have you tried creating a modeline for your monitor? 


Yes, I tried a few things. 
Not being an expert I have no systematic approach about what to try next.


> That is what fixed it for
> me, although I didn't have the IO errors like you are getting.
> 
> From this part of your Xorg log:
> (II) RADEON(0): clock: 108.0 MHz   Image Size:  338 x 270 mm
> (II) RADEON(0): h_active: 1280  h_sync: 1328  h_sync_end 1440 h_blank_end 
> 1688 h_border: 0
> (II) RADEON(0): v_active: 1024  v_sync: 1025  v_sync_end 1028 v_blanking: 
> 1066v_border: 0
> 
> I would try and have a section like this in my xorg.conf

I tried it, but it did not help. 
Here is the log:
http://intevation.de/Intevation/~bernhard/ppc/powerbook5,6/Xorg.log-mergefb-20050426


> 
> Section "Monitor"
>   Identifier  "Standardbildschirm"
>   ModeLine"1280x1024" 108.0 1280 1328 1440 1688 1024 1025 1028 
> 1066
> EndSection
> 
> Section "Screen"
>   Identifier  "Default Screen"
>   Device  "ATI Technologies, Inc. RV350 [Mobility Radeon 9600 
> M10]"
>   Monitor "Standardbildschirm"
>   DefaultDepth24
>   SubSection "Display"
>   Depth   24
>   Modes   "1280x854" "1280x1024"
>   EndSubSection
> EndSection


pgpuZaWAPpfHh.pgp
Description: PGP signature


Re: external Display and FBDev

2005-04-29 Thread Bernhard Reiter
On Fri, Apr 29, 2005 at 01:20:32AM +0200, Carsten Friede wrote:
> Just for fun, I switched my CRT on the external video connector of my 
> iBook G4. After trying several options in the XF86Config-4, I disabled 
> "UseFBDev". Bingo! It works!
> But as it is working for my CRT, the display of my iBook doesn't seem 
> to get synced anymore. So, is there a workaround for this?

Lucky you!

I would be glad if I'd get this far with my Powerbook5,6 15" 
ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]

Ben, you got nothing I could try to help getting this fixed?

Best,
Bernhard


pgphi7yyw0k2X.pgp
Description: PGP signature


Re: external Display and FBDev (some success!)

2005-05-02 Thread Bernhard Reiter
On Sat, Apr 30, 2005 at 10:49:04AM +1000, Benjamin Herrenschmidt wrote:
> On Fri, 2005-04-29 at 10:45 +0200, Bernhard Reiter wrote:

> > I would be glad if I'd get this far with my Powerbook5,6 15" 
> > ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]

> It works with X.org provided you use an analog (VGA) output. 

This morning I had a partial success!
The problem seems to have been a bad CVS build of xorg
(either I pulled the CVS at a bad time or my build had problems).

With the new build from friday it actually worked almost directly,
I had to tune the timings and resolutions a bit.
Below the relevant lines from my xorg.conf.

My build still has rendering problems in the details (mostly fonts),
but this might be another issue with the current CVS or 
some active acceleration.

This is a good step forwards as I need this external output for presentations.
Thanks to everybody who helped with suggestions,
especially Ben, Johannes Berg, John Steele Scott.

> The digital
> part of the DVI connector doesn't quite work yet (I know how to kick it
> into life by banging some chip registers, it's just that X.org does a
> few wrong assumptions there). Well... at least on previous models, I'm
> not 100% sure on how the latest one in the 5,6 is wired...

Am I right in assuming that once your coworked gets one of these,
and your tiem allows it, you will give it a try? :)

Best Regards,
Bernhard



Section "Device"
Identifier  "ATI Technologies, Inc. RV350 [Mobility Radeon 9600 
M10]"
#   Driver  "ati"
Driver  "radeon"
BusID   "PCI:0:16:0"
#   Option  "UseFBDev"  "true"
#Option"MetaModes""1280x854-1024x768"
 Option"MetaModes""1280x854-1280x1024"
EndSection

Section "Monitor"
Identifier  "Standardbildschirm"
#HorizSync  28-50
#VertRefresh43-75
HorizSync   24-80
VertRefresh 50-75
Option  "DPMS"
EndSection

Section "Screen"
Identifier  "Default Screen"
Device  "ATI Technologies, Inc. RV350 [Mobility Radeon 9600 
M10]"
Monitor "Standardbildschirm"
DefaultDepth24
SubSection "Display"
Depth   24
Modes   "1280x854" "1280x1024" "1024x768"
Virtual 1280 1024
#Virtual1024 768
EndSubSection
EndSection



pgphs0X7ZgaNi.pgp
Description: PGP signature


Re: external Display and FBDev (some success!)

2005-05-02 Thread Bernhard Reiter
On Mon, May 02, 2005 at 10:16:05AM +0200, Bernhard Reiter wrote:
> On Sat, Apr 30, 2005 at 10:49:04AM +1000, Benjamin Herrenschmidt wrote:
> > On Fri, 2005-04-29 at 10:45 +0200, Bernhard Reiter wrote:
> 
> > > I would be glad if I'd get this far with my Powerbook5,6 15" 
> > > ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]
> 
> > It works with X.org provided you use an analog (VGA) output. 
> 
> This morning I had a partial success!
> The problem seems to have been a bad CVS build of xorg
> (either I pulled the CVS at a bad time or my build had problems).
> 
> With the new build from friday it actually worked almost directly,
> I had to tune the timings and resolutions a bit.
> Below the relevant lines from my xorg.conf.

# works on a PowerBook 5,6 (Post Feb 2005 15")
# with Iyama external flat panel monitor 1280x1024
# with xorg CVS HEAD build from 20050429
# there are rendering problems, though.

> My build still has rendering problems in the details (mostly fonts),
> but this might be another issue with the current CVS or 
> some active acceleration.


> Section "Device"
> Identifier  "ATI Technologies, Inc. RV350 [Mobility Radeon 9600 
> M10]"
> #   Driver  "ati"
> Driver  "radeon"
> BusID   "PCI:0:16:0"
> #   Option  "UseFBDev"  "true"
> #Option"MetaModes""1280x854-1024x768"
>  Option"MetaModes""1280x854-1280x1024"
> EndSection
> 
> Section "Monitor"
> Identifier  "Standardbildschirm"
> #HorizSync  28-50
> #VertRefresh43-75
> HorizSync   24-80
> VertRefresh 50-75
> Option  "DPMS"
> EndSection

For the record: I picked those HSync and VRefresh 
from the /var/log/Xorg.0.log output and the output for the CRT2.
This will be different for each monitor of course.

> 
> Section "Screen"
> Identifier  "Default Screen"
> Device  "ATI Technologies, Inc. RV350 [Mobility Radeon 9600 
> M10]"
> Monitor "Standardbildschirm"
> DefaultDepth24
> SubSection "Display"
> Depth   24
> Modes   "1280x854" "1280x1024" "1024x768"
> Virtual 1280 1024
> #Virtual1024 768
> EndSubSection
> EndSection

Note: This setup is not canonical in that I do not know which of the 
settings is actually necessary to make it work and which could be left out.
This is just one I found that worked in getting me a good resolution
on the laptop and the external monitor. 
(Now I have to tackle my rendering problems...)

Bernhard


pgp1f7MAvOKEV.pgp
Description: PGP signature


External DISPLAY on PowerBook 5,6 works!

2005-05-02 Thread Bernhard Reiter
On Mon, May 02, 2005 at 10:22:59AM +0200, Bernhard Reiter wrote:
> On Mon, May 02, 2005 at 10:16:05AM +0200, Bernhard Reiter wrote:

> # works on a PowerBook 5,6 (Post Feb 2005 15")
> # with Iyama external flat panel monitor 1280x1024
> # with xorg CVS HEAD build from 20050429
> # there are rendering problems, though.
> 
> > My build still has rendering problems in the details (mostly fonts),
> > but this might be another issue with the current CVS or 
> > some active acceleration.


> > Section "Device"
> > Identifier  "ATI Technologies, Inc. RV350 [Mobility Radeon 9600 
> > M10]"
> > #   Driver  "ati"
> > Driver  "radeon"
> > BusID   "PCI:0:16:0"
> > #   Option  "UseFBDev"  "true"
> > #Option"MetaModes""1280x854-1024x768"
> >  Option"MetaModes""1280x854-1280x1024"
> > EndSection

> (Now I have to tackle my rendering problems...)

The following option gave me a real usable screen:
Option "NoAccel" "true"


pgp26F6tGeMdV.pgp
Description: PGP signature


Re: External DISPLAY on PowerBook 5,6 works!

2005-05-03 Thread Bernhard Reiter
On Tue, May 03, 2005 at 12:39:18PM +1000, Benjamin Herrenschmidt wrote:
> 
> > The following option gave me a real usable screen:
> > Option "NoAccel" "true"
> 
> Try disabling DRI instead.

I can confirm that this also works with out the NoAccel option,
when disabling DRI as:

Section "Module"
Load"GLcore"
Load"bitmap"
Load"dbe"
Load"ddc"
#   Load"dri"



pgpuMD3biQqaj.pgp
Description: PGP signature


External Display on Powerbook5,6 (was: external Display and FBDev)

2005-05-03 Thread Bernhard Reiter
On Tue, May 03, 2005 at 12:38:46PM +1000, Benjamin Herrenschmidt wrote:
> On Mon, 2005-05-02 at 10:16 +0200, Bernhard Reiter wrote:
> 
> > Section "Device"
> > Identifier  "ATI Technologies, Inc. RV350 [Mobility Radeon 9600 
> > M10]"
> > #   Driver  "ati"
> > Driver  "radeon"
> > BusID   "PCI:0:16:0"
> > #   Option  "UseFBDev"  "true"
> > #Option"MetaModes""1280x854-1024x768"
> >  Option"MetaModes""1280x854-1280x1024"
> > EndSection
> > 
> > Section "Monitor"
> > Identifier  "Standardbildschirm"
> > #HorizSync  28-50
> > #VertRefresh43-75
> > HorizSync   24-80
> > VertRefresh 50-75
> > Option  "DPMS"
> > EndSection
> 
> What if you don't put any of the HorizSync/VertRefresh ? Does it manage
> to pick them up from DDC or not ?

If I do not put in HorizSync/VertRefresh as below, 
it picks it up correctly from DDC.

ection "Monitor"
Identifier  "Standardbildschirm"
#HorizSync  24-80
#VertRefresh50-75
Option  "DPMS"
EndSection

> Also, what do you rendering problems look like ? 

For reference I put a small image up on 
http://intevation.de/~bernhard/ppc/powerbook5%2C6/xorg.renderingdriproblem-20050503.png


> Do they still happen if
> you force DRI not to load ? (Try removing the module
> from /lib/modules/*) 

When I uncomment the "dri" module, the rendering problems are also gone.
What is the difference to using NoAccel?

> r300 DRI isn't quite ready yet for public
> consumption but X.org CVS may still try to use it ... (it will also
> cause crashes on wakeup from sleep).

I cannot judge how much changes are going on in X.org CVS,
the CVS checkout I did on 20050414 did not have that rendering problems
with UseFBDev. With the updated CVS build from 20050429,
I could use MergeFB for the first time, but had that rendering problems
with it and UseFBDev.

Now I do have a crash in the server when trying to run magicpoint.
Thus I am trying to build 6.8.2 with your patches and see if this is better.

Bernhard


pgpHP0O8RViDu.pgp
Description: PGP signature


Re: External Display on Powerbook5,6 (was: external Display and FBDev)

2005-05-03 Thread Bernhard Reiter
On Tue, May 03, 2005 at 11:00:21AM +0200, Bernhard Reiter wrote:
> Now I do have a crash in the server when trying to run magicpoint.
> Thus I am trying to build 6.8.2 with your patches and see if this is better.

6.8.2 with Ben's patches can also do the clone mode like X.org CVS HEAD.
Unfortunately both crash when I try to run magicpoint (mgp).

If someone is interested in this, I have put up an strace of mgp to
http://intevation.de/~bernhard/ppc/powerbook5%2C6/mgp-strace-20050503.txt
There are no further debugging message from the server, except that
it got Signal 11.

Bernhard



pgpIaKykmFZT4.pgp
Description: PGP signature


xorg crash with mgp and debugging problems (was: External Display on Powerbook5,6 )

2005-05-17 Thread Bernhard Reiter
Meanwhile I have tried many combinations to find out why mgp stopped working
with Xorg server. I might have run into other problems on ppc, too,
this is why I am asking here. It might as well be a library problem.

The bug is filed now at:
https://bugs.freedesktop.org/show_bug.cgi?id=3289
mgp (magicpoint) crashes Xorg

I am not sure what to make out of the gdb problems 
(/build/buildd/gdb-6.3/gdb/infrun.c:2642: internal-error:
insert_step_resume_breakpoint_at_sal: Assertion
`step_resume_breakpoint == NULL' failed.
A problem internal to GDB has been detected,)

and that I cannot get a backtrace in the end (probably Xorg
corrupted its stack).

Any hints which of my ppc tool chain parts (gcc, libraries, gdb,
Xorg) might be the real cause of the problem?
Bernhard



On Tue, May 03, 2005 at 11:49:44AM +0200, Bernhard Reiter wrote:
> On Tue, May 03, 2005 at 11:00:21AM +0200, Bernhard Reiter wrote:
> > Now I do have a crash in the server when trying to run magicpoint.
> > Thus I am trying to build 6.8.2 with your patches and see if this is better.
> 
> 6.8.2 with Ben's patches can also do the clone mode like X.org CVS HEAD.
> Unfortunately both crash when I try to run magicpoint (mgp).
> 
> If someone is interested in this, I have put up an strace of mgp to
> http://intevation.de/~bernhard/ppc/powerbook5%2C6/mgp-strace-20050503.txt
> There are no further debugging message from the server, except that
> it got Signal 11.


pgpZxHbh3G80v.pgp
Description: PGP signature


Re: xorg crash with mgp and debugging problems (was: External Display on Powerbook5,6 )

2005-05-25 Thread Bernhard Reiter
On Tue, May 17, 2005 at 10:18:34PM +0200, Bernhard Reiter wrote:
> Meanwhile I have tried many combinations to find out why mgp stopped working
> with Xorg server. I might have run into other problems on ppc, too,
> this is why I am asking here. It might as well be a library problem.
> 
> The bug is filed now at:
> https://bugs.freedesktop.org/show_bug.cgi?id=3289
>   mgp (magicpoint) crashes Xorg

This is resolved now!
mgp, Xorg and mirroring mode for the external display work fine now
for the Powerbook5,6 I have here.

The culprit was that I for some reason had Composite enabled
and this cases the crash.

> I am not sure what to make out of the gdb problems 
> (/build/buildd/gdb-6.3/gdb/infrun.c:2642: internal-error:
> insert_step_resume_breakpoint_at_sal: Assertion
> `step_resume_breakpoint == NULL' failed.
> A problem internal to GDB has been detected,)
> 
> and that I cannot get a backtrace in the end (probably Xorg
> corrupted its stack).

Gdb continued to not produce useful backtrace information.
I have not tested the gdb patch from this list, 
which would have been the next step.

Bernhard


pgpC46PPmpUNz.pgp
Description: PGP signature


Re: keyboard backlight working on PowerBook5,6?

2005-06-01 Thread Bernhard Reiter
Hi Barry,

On Tue, May 31, 2005 at 09:32:35PM -0400, Barry Hawkins wrote:
> I was a little surprised to see that the backlight on the
> keyboard is not working with pbbuttonsd on my 1.67GHz
> PowerBook G4.  I had a 15" 1.25GHz PowerBook G4 working with
> pbbuttonsd 0.5.x (iirc) that controlled the keyboard quite
> well back around June last year.  Is it working for anyone else?  

my keyboard does automatically turn on the backlight depending on
the surrounding lights. I cannot manually control it, but also I
never tried to configure to configure this.

> No backlight appears and powerprefs 
> still shows those areas as greyed out.
> I am running a 2.6.11.10 kernel, with a config that matches
> most of what others on the list had shared with me.  
> Any input would be appreciated.  

To get backlight at all, I had to enable a few i2c options in the
kernel config, especially the keywest. I suggest to look for them,
in the end I had CONFIG_I2C_KEYWEST=y set and got a backlight
with 2.6.12-rc3 and some of Ben's patches.

Bernhard



pgpBqrfFn7rpa.pgp
Description: PGP signature


tiBook(Titanium), Debian install problems (mac-fdisk, 30GB)

2001-08-28 Thread Bernhard Reiter
Trying to install woody on a new Apple tiBook (Titanium)
for several days now. (Together with [EMAIL PROTECTED])
30GB IBM harddisk. 512 MB RAM.

Numerous attempts, following several hints and instructions later
I issue this request for assistance.  I am willing to read
instruction if they can help me, but the instructions seem to be 
suboptimal.

Let me summarise what the problem is:

We can boot into a kernel with a ramdisk using yaboot.
After partioning the harddrive for Linux-partitions we cannot
get a kernel to boot from the harddrive. It looks like the partition
table might be damaged somehow.

Open Firmware will still get yaboot from the partition and yaboot
can find the kernel and the ramdisk, but the kernel paniks, even
when trying the mount excatly the same root in the ramdisk.

All instructions in mac-fdisk 
http://penguinppc.org/usr/ybin/doc/mac-fdisk-basics.shtml
were followed. It should be a 9.1 dual boot system.
(Will be MacOSX later.)

Booting with boot-3.0.13, freshly after making three partitions with
DriveSetup (20GB HFS for GNU/Linux) (64MB HFS exchange) (10GB HFS+)
and installing MacOS 9.1 on the third.

The files yaboot, yaboot.conf, root.bin and linux copied to the
2nd partition. Then I can boot with "boot hd:10,yaboot"
and get into the installer.
However after deleting the big HFS partition and creating 
Apple_bootstrap (with b) and swap (1GB) with c and / 19GB with c
the kernel panics. 

OF can then send me to "boot hd:12,yaboot", which boots the kernel
but panics when trying to mount the root ramdisk. 
If I use pdisk for MacOS and do the partitions I get the same
symptoms.

Using a Debian potato powerbook CD have the same symptoms.
Of course I can install the base system after doing the
repartioning, but there seems to be no good way to boot from 
harddisk after this.


Questions:
Do you think mac-fdisk(aka pdisk) might not create good partitions
due to the size of the harddisk?  Is there a way to find out?
Obviously apple's OF does not have a problem with this, but the
linux kernel (tried 2.2.18) has.

It there a way to boot from an ext2 partition directly from the
yaboot prompt? How would the syntax be?

Am I missing something crutial here?

Thanks in advance,
Bernhard
ps.: I appreciate a cc to me and frank, because we are not on the list.

-- 
Professional Service around Free Software(intevation.net)  
The FreeGIS Project (freegis.org)
Association for a Free Informational Infrastructure(ffii.org)
FSF Europe(fsfeurope.org)


pgpkOJMkKHFhW.pgp
Description: PGP signature


Re: tiBook(Titanium), Debian install problems (mac-fdisk, 30GB)

2001-08-28 Thread Bernhard Reiter
Ethan,
thanks for the prompt reply.

( I suggest adding these infos and the necessary video=ofonyl
option to the debian install docs. mac-fdisk-basics could use a
version number and date, too. All the information out there is
still confusing. When the installation is done we will help
improving the state of the documentation.)

On Tue, Aug 28, 2001 at 03:37:46AM -0800, Ethan Benson wrote:
> On Tue, Aug 28, 2001 at 12:22:31PM +0200, Bernhard Reiter wrote:
> > The files yaboot, yaboot.conf, root.bin and linux copied to the
> > 2nd partition. Then I can boot with "boot hd:10,yaboot"
> > and get into the installer.
> > However after deleting the big HFS partition and creating 
> > Apple_bootstrap (with b) and swap (1GB) with c and / 19GB with c
> > the kernel panics. 
> 
> kernel panics after writing the partition table are common, and not
> really harmful (just annoying) its actually panicing when mac-fdisk
> asks the kernel to reread the partition table.  after a reboot the
> partition table is almost always fine and properly written.
> 
> > OF can then send me to "boot hd:12,yaboot", which boots the kernel
> > but panics when trying to mount the root ramdisk. 
> 
> i think this is due to 3.0.13's root disk being corrupt.  i have found
> that the powerpc root disk is too large so its getting trunicated when
> written into the 1.44MB image. 

Is it possible to get the good longer version somewhere?
I wonder though, why we could boot into the installer when we did not
touch the partition table with woody's mac-fdisk.

> > If I use pdisk for MacOS and do the partitions I get the same
> > symptoms.
> pdisk for macos is broken dont use it.

Will it be fixed at some date?

> > Questions:
> > Do you think mac-fdisk(aka pdisk) might not create good partitions
> > due to the size of the harddisk?  Is there a way to find out?
> > Obviously apple's OF does not have a problem with this, but the
> > linux kernel (tried 2.2.18) has.
> 
> mac-fdisk in woody creates good partition tables, the one in potato
> did not unless you paid attention and did it right (mac-fdisk-basics
> explains the issue). 
> 
> > It there a way to boot from an ext2 partition directly from the
> > yaboot prompt? How would the syntax be?
> 
> boot: hd:3,/boot/vmlinux root=/dev/hda3 ro

> > Am I missing something crutial here?
> 
> please send output from mac-fdisk -l /dev/hda (you managed to boot it
> once 

Will do.
Frank is working on it right now.
Bernhard
ps.: Not subscribed to the list, Frank and I appreciate cc's of
relevant replys.



pgpmGIddCU9bE.pgp
Description: PGP signature


Re: tiBook(Titanium), Debian install problems (mac-fdisk, 30GB)

2001-08-28 Thread Bernhard Reiter
On Tue, Aug 28, 2001 at 06:30:51AM -0800, Ethan Benson wrote:
> On Tue, Aug 28, 2001 at 02:18:39PM +0200, Bernhard Reiter wrote:
> > Ethan,
> > thanks for the prompt reply.
> > 
> > ( I suggest adding these infos and the necessary video=ofonyl
> > option to the debian install docs. mac-fdisk-basics could use a
> > version number and date, too. All the information out there is
> > still confusing. When the installation is done we will help
> > improving the state of the documentation.)
> 
> woody's docs are already much improved.

The docs I've found on the mirrors for woody and powerppc where
lacking this information.

> > Is it possible to get the good longer version somewhere?
> > I wonder though, why we could boot into the installer when we did not
> > touch the partition table with woody's mac-fdisk.
> 
> i don't know, current cvs still builds the image too large, ive been
> told its broken on irc as well.  

We've got it to install the system.
Installing the potate base system first.
Now apt-get dist-upgrade ist working.





-- 
Professional Service around Free Software(intevation.net)  
The FreeGIS Project (freegis.org)
Association for a Free Informational Infrastructure(ffii.org)
FSF Europe(fsfeurope.org)


pgpOpuySmh50i.pgp
Description: PGP signature