Skip to contentSkip to conversation

lcd17 kernel patches?

DISCUSSION R Shapiro 5 participants 16 messages Aug 5, 2001 – Aug 8, 2001 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

R Shapiro

author
#2 lore raw
Quoted 1 line · Olaf Hering

Try this one in the meantime:

I tried this patch with the current benh tree. No luck. It compiles ok, in fact in runs ok, but without any video. This is the same behavior I get when I run my previously built 2.4.6 and 2.4.7 kernels. This is *not* the behavior with the 2.4.2 kernel at the suse ftp site. Something more must have been done to that one.

I guess I'll stick with 2.4.2 a little longer.

--
[email protected]

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

author
#3 lore raw
In reply to a message not in the archive
Quoted 1 line · Olaf Hering

Try this one in the meantime:

OK, this mostly works with the 2.4.7 kernel sources, but there's one important difference between the building a kernel this way and running that prebuilt 2.4.2. The prebuilt kernel has working video immediately on booting. The kernel I built with your patch has no video at all until I run 'fbset 1280x1024-60'. Clearly there's more to that prebuilt 2.4.2 than just an additional mode definition.

But this will do for now - thanks for the patch. I created an init.d entry which runs the fbset command and I set it to run very early (00). So at least I can see some of the boot messages as they go by. Maybe I could put it in inittab or rc.sysinit to get it even earlier. But I might rather wait for a real patch.

--
[email protected]

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#4 lore raw
In reply to a message not in the archive
Quoted 18 lines · Olaf Hering
Quoted 7 lines · R Shapiro

When will the lcd17 kernel patches (needed to run linux on Apple's 17" flat panel display) make it into penguinppc.org::linux-2.4-benh? Or are they there already? I'm running someone's prebuilt 2.4.2 with those patches right now, since that seemed to be the only way to get them. But I'd really rather build my own kernel, with my preferred .config and newer souces, if I can.

Try this one in the meantime:

diff -urN linux-2.4.7-orig/drivers/video/macmodes.c linux-2.4.7-pci/drivers/video/macmodes.c

drivers/video/macmodes.c Sun Aug 5 20:03:16 2001 line 74

Quoted 8 lines
drivers/video/macmodes.c Sun Aug 5 20:03:16 2001 renamed from drivers/video/macmodes.c Thu Jun 28 02:10:55 2001 +1 -1
@@ -68,7 +68,7 @@
        0, FB_VMODE_NONINTERLACED
     }, {
        /* 1024x768, 60 Hz, Non-Interlaced (65.00 MHz dotclock) */
-       "mac14", 60, 1024, 768, 15385, 144, 40, 29, 3, 136, 6,
+        "mac14", 60, 1280, 1024, 15358, 160, 24, 29, 3, 136, 6,
        0, FB_VMODE_NONINTERLACED
     }, {
        /* 1024x768, 72 Hz, Non-Interlaced (75.00 MHz dotclock) */

wrong timings:

9260 248 48 38 1 112 3
replace the 15358 .. with the stuff above.

Gruss Olaf

--

 $ man clone

BUGS
Main feature not yet implemented...

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#5 lore raw
In reply to a message not in the archive
Quoted 15 lines · Olaf Hering
Quoted 6 lines · R Shapiro

When will the lcd17 kernel patches (needed to run linux on Apple's 17" flat panel display) make it into penguinppc.org::linux-2.4-benh? Or are they there already? I'm running someone's prebuilt 2.4.2 with those patches right now, since that seemed to be the only way to get them. But I'd really rather build my own kernel, with my preferred .config and newer souces, if I can.

Try this one in the meantime:

diff -urN linux-2.4.7-orig/drivers/video/macmodes.c linux-2.4.7-pci/drivers/video/macmodes.c

drivers/video/macmodes.c Sun Aug 5 20:03:16 2001 line 74

Quoted 8 lines
drivers/video/macmodes.c Sun Aug 5 20:03:16 2001 renamed from drivers/video/macmodes.c Thu Jun 28 02:10:55 2001 +1 -1
@@ -68,7 +68,7 @@
        0, FB_VMODE_NONINTERLACED
     }, {
        /* 1024x768, 60 Hz, Non-Interlaced (65.00 MHz dotclock) */
-       "mac14", 60, 1024, 768, 15385, 144, 40, 29, 3, 136, 6,
+        "mac14", 60, 1280, 1024, 15358, 160, 24, 29, 3, 136, 6,
        0, FB_VMODE_NONINTERLACED
     }, {
        /* 1024x768, 72 Hz, Non-Interlaced (75.00 MHz dotclock) */

IFF this is a correct fix, please also change
- the name in the comment
- the ordering in the table a bit lower (must be sorted)

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#6 lore raw
Quoted 3 lines · Geert Uytterhoeven

IFF this is a correct fix, please also change
- the name in the comment
- the ordering in the table a bit lower (must be sorted)

This isnt the correct fix, only a workaround to avoid a kernel arg ;)

The correct fix is either "video=1280x1024-8@60" as kernel arg (that may work) or the aty128fb driver must check the panel size. There is some code for mach64 in XFree86 4.1.

Gruss Olaf

--

 $ man clone

BUGS
Main feature not yet implemented...

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

author
#7 lore raw
Quoted 1 line · Olaf Hering

This isnt the correct fix, only a workaround to avoid a kernel arg ;)

I tried all the kernel video args that made sense to me and all the ones that were suggested to me by others. None of them worked. The second version of the patch works.

Quoted 2 lines

The correct fix is either "video=1280x1024-8@60" as kernel arg (that may work)

This is *not* one of the ones I tried. At this point all the kernels I have on hand have already been hacked with the workaround patch, so I can't test this on a "clean" kernel until I have time to build one. Next weekend, maybe. I seem to be the one and only tester for this issue, so I'll try to do it sooner if I can...

Is '-8' the depth? I.e., should I replace this with '-24' if I want 24-bit color?

--
[email protected]

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#8 lore raw
Quoted 2 lines · R Shapiro

Is '-8' the depth? I.e., should I replace this with '-24' if I want 24-bit color?

It is 8bit, but no need to have more than 8 bit on the console, it will only make it slow. X can switch the color depth if needed.

Gruss Olaf

--

 $ man clone

BUGS
Main feature not yet implemented...

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

author
#9 lore raw
In reply to Olaf Hering
Quoted 2 lines · Olaf Hering

The correct fix is either "video=1280x1024-8@60" as kernel arg (that may work)

OK, I just had time to rebuild 2.4.8-pre3-ben0 with the patch undone. This video arg with that kernel doesn't solve the problem. I still get no video on boot.

Quoted 1 line

or the aty128fb driver must check the panel size.

Sounds like this proper patch is going to be necessary. In the meantime I'll use the workaround of clobbering the values in one of the existing modes.

--
[email protected]

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#10 lore raw
Quoted 8 lines · R Shapiro
Quoted 2 lines · Olaf Hering

The correct fix is either "video=1280x1024-8@60" as kernel arg (that may work)

OK, I just had time to rebuild 2.4.8-pre3-ben0 with the patch undone. This video arg with that kernel doesn't solve the problem. I still get no video on boot.

Wouldn't it have to be video=aty128fb:1280x1024-8@60 anyway, and is the modedb even used on PPC yet?

--
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/

author
#11 lore raw
Quoted 1 line · Michel Dänzer

Wouldn't it have to be video=aty128fb:1280x1024-8@60

Yep, that seems to be the required syntax. At least it works with an unpatched 2.4.8-pre3-ben0 kernel. Many thanks.

Quoted 1 line

is the modedb even used on PPC yet?

I don't know the answer to that one.

--
[email protected]

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#12 lore raw
Quoted 6 lines · R Shapiro
Quoted 1 line · Michel Dänzer

Wouldn't it have to be video=aty128fb:1280x1024-8@60

Yep, that seems to be the required syntax. At least it works with an unpatched 2.4.8-pre3-ben0 kernel. Many thanks.

Cool.

Quoted 3 lines
Quoted 1 line

is the modedb even used on PPC yet?

I don't know the answer to that one.

Yes you do. :) The fact that the above line works implies that modedb is used.

--
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/

#13 lore raw
In reply to Michel Dänzer
Quoted 10 lines · Michel Dänzer
Quoted 7 lines · R Shapiro
Quoted 2 lines · Olaf Hering

The correct fix is either "video=1280x1024-8@60" as kernel arg (that may work)

OK, I just had time to rebuild 2.4.8-pre3-ben0 with the patch undone. This video arg with that kernel doesn't solve the problem. I still get no video on boot.

Wouldn't it have to be video=aty128fb:1280x1024-8@60 anyway, and is the modedb

video=mode specifies the global mode, for all fbdevs that use modedb.

Quoted 1 line

even used on PPC yet?

That's not the right question :-) Modedb doesn't depend on the architecture, but on the driver.

Yes, atyfb was the first one to have modedb. Remember, I have a RAGE II+ in my LongTrail :-)

PowerMac/CHRP has even extra modedb support in macmodes.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#14 lore raw
Quoted 6 lines · Geert Uytterhoeven
Quoted 5 lines · Michel Dänzer
Quoted 4 lines · R Shapiro
Quoted 2 lines · Olaf Hering

The correct fix is either "video=1280x1024-8@60" as kernel arg (that may work)

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

OK, I just had time to rebuild 2.4.8-pre3-ben0 with the patch undone. This video arg with that kernel doesn't solve the problem. I still get no video on boot.

Wouldn't it have to be video=aty128fb:1280x1024-8@60 anyway, and is the modedb

video=mode specifies the global mode, for all fbdevs that use modedb.

You mean video=1280x1024-8@60 is supposed to work? I think that syntax makes much more sense than video=aty128fb:1280x1024-8@60 when you have only one card or when only one fbdriver is active.

Gruss Olaf

--

 $ man clone

BUGS
Main feature not yet implemented...

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#15 lore raw
In reply to Geert Uytterhoeven
Quoted 7 lines · Geert Uytterhoeven
Quoted 5 lines · Michel Dänzer
Quoted 4 lines · R Shapiro
Quoted 2 lines · Olaf Hering

The correct fix is either "video=1280x1024-8@60" as kernel arg (that may work)

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

OK, I just had time to rebuild 2.4.8-pre3-ben0 with the patch undone. This video arg with that kernel doesn't solve the problem. I still get no video on boot.

Wouldn't it have to be video=aty128fb:1280x1024-8@60 anyway, and is the modedb

video=mode specifies the global mode, for all fbdevs that use modedb.

Ah, cool. So what's your theory on why it didn't work for R?

Quoted 4 lines
Quoted 1 line

even used on PPC yet?

That's not the right question :-) Modedb doesn't depend on the architecture, but on the driver.

I meant to say 'in aty128fb on PPC'. Last time I looked, the call to find a mode was disabled for PPC.

Quoted 2 lines

Yes, atyfb was the first one to have modedb. Remember, I have a RAGE II+ in my LongTrail :-)

Didn't mean to question that.

Quoted 1 line

PowerMac/CHRP has even extra modedb support in macmodes.

Would that explain the disabled direct call?

--
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/

#16 lore raw
Quoted 24 lines · Michel Dänzer
Quoted 6 lines · Geert Uytterhoeven
Quoted 5 lines · Michel Dänzer
Quoted 4 lines · R Shapiro
Quoted 2 lines · Olaf Hering

The correct fix is either "video=1280x1024-8@60" as kernel arg (that may work)

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

OK, I just had time to rebuild 2.4.8-pre3-ben0 with the patch undone. This video arg with that kernel doesn't solve the problem. I still get no video on boot.

Wouldn't it have to be video=aty128fb:1280x1024-8@60 anyway, and is the modedb

video=mode specifies the global mode, for all fbdevs that use modedb.

Ah, cool. So what's your theory on why it didn't work for R?

Quoted 4 lines
Quoted 1 line

even used on PPC yet?

That's not the right question :-) Modedb doesn't depend on the architecture, but on the driver.

Quoted 6 lines

I meant to say 'in aty128fb on PPC'. Last time I looked, the call to find a mode was disabled for PPC.

Quoted 1 line

PowerMac/CHRP has even extra modedb support in macmodes.

Would that explain the disabled direct call?

If it calls mac_fb_find_mode() instead, that's fine, since it falls back to fb_find_mode() if the mode name doesn't match mac*.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

author
#17 lore raw
In reply to Michel Dänzer
Quoted 3 lines · Michel Dänzer
Quoted 1 line

video=mode specifies the global mode, for all fbdevs that use modedb.

Ah, cool. So what's your theory on why it didn't work for R?

I'm also curious about this.

Is video=1280x1024-8@60 supposed to haved worked? It doesn't work for me, but video=atyfb128:1280x1024-8@60 does work -- does that mean my system is misconfigured in some way? If so I'd like to fix it. I'm running 2.4.8-pre3-ben0 on a G4/450 with a Rage128 graphics card, a DVIator dvi->adc adapter, and an Apple lcd17. dmesg says:

aty128fb: Rage128 Pro PF (AGP) [chip rev 0x1] 16M 128-bit SDR SGRAM (1:1)
Console: switching to colour frame buffer device 160x64
fb0: ATY Rage128 frame buffer device on PCI

--
[email protected]

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/