Re: Samsung P35, S3, black screen (radeon)

Carl-Daniel Hailfinger
2005-02-03T01:46:03Z

Hi,

Nikolaus Filus schrieb:
> Hi,
>
> after having a lot trouble to reproduce the situation described by others,
> I was finally able to survive a S3 to get a working console. But I'm still
> unable to get the screen on and it stays dark. I tried several permutations
> off all found hints, but no success so far.
>
> The System:
> linux-2.6.10 + resume-finish-split + pci-resume-2.6.9 + pci-resume-old
> vesa:off radeonfb:off (fbcon:on)
> xorg-6.8.0-r3 (gentoo, radeon s3 patch included)

Please try latest 2.6.11-rc2-bkX and NO additional patches. Make sure you
don't compile in radeonfb or atyfb. Vesafb doesn't matter. Xorg version
is irrelevant.
Kernel commandline should contain
video=vesa:off
and no other video parameters.

> I tested with the appended script, with several freezes and always black

Heh. I'm surprised your machine survived that script sometimes.

> screen. MagicSysRq-Boot and PowerOff works most the time, so the kernel
> responds. Another observation was, when starting the vesa X11 for the first
> time, I can see rests of the Samsung Boot logo, which seems to stay
> in memory (maybe a hint for incorrect POST address later by the tools?!).
>
> Like Mathias Hentges wrote, the vesa X11 crashes after resume.
> Saving VBE state after vbetool post freezes the machine.
>
> Any hints?!

Yes. See my kernel configuration suggestion above. And use the following
suspend script:

#!/bin/bash
statedir=/root/s3/state
curcons=`fgconsole`
fuser /dev/tty$curcons 2>/dev/null|xargs ps -o comm= -p|grep -q X && chvt 2
cat /dev/vcsa >$statedir/vcsa
sync
echo 3 >/proc/acpi/sleep
sync
vm86_video_post
vbestate restore <$statedir/vbe
cat $statedir/vcsa >/dev/vcsa
rckbd restart
chvt $[curcons%6+1]
chvt $curcons

And be sure to run
vbestate save >$statedir/vbe
one time after bootup *from a text console* while X is running. This file
will never (except a graphics card upgrade) have to be generated again
and simply work.

Notes:
- You will need my patch from last year for vbestate to have a readable
console font and get reliable resume.
- The "rckbd restart" may be SUSE specific. Simply reload your console
fonts.
- Make sure to deactivate actions for the power button. You need to
press it for resume, but the event will be handled again and acpid
may try to shutdown your system.
- Matthew Garrett was working on a successor for vbestate IIRC, but I
don't know whether he applied my patch to his new tool.
- The configuration above has survived 20 suspend/resume cycles in a
row without any glitches. It works from X and from console.

Regards,
Carl-Daniel
--