Re: [rft] s2ram wakeup moves to .c, could fix few machines
From: Maxim Levitsky
Date: Fri Feb 08 2008 - 16:42:45 EST
On Friday, 8 February 2008 23:13:46 Pavel Machek wrote:
> Hi!
>
> > > Can you post a delta against my versoin? I do not see any changes from
> > > a quick glance.
> >
> > Appended (plus I removed two hunks, one in arch/x86/Makefile and one in
> > drivers/acpi/sleep/main.c that were unrelated to the rest of the patch).
>
> Thanks, applied.
>
> > > This is probably more acceptable version of beep; but there are
> > > probably even better ways to clean it...
> > >
> > > if (wakeup_header.realmode_flags & 4) {
> > > inb(97);
> > > outb(0, 0x80);
> > > outb(3, 97);
> > > outb(0, 0x80);
> > > outb(-74, 67);
> > > outb(0, 0x80);
> > > outb(-119, 66);
> > > outb(0, 0x80);
> > > outb(15, 66);
> > > }
> > >
> > > ...like the version that makes beep/pause/beep/pause, so that user can
> > > count them.
> >
> > Can we move it into a separate function?
>
> I guess we want to use HPA's morse code ;-).
> Pavel
Seriously, why not...
For decades BIOSes have used sound beeps to tell the user about a early problem
that happened have before video is initialized.
Maybe not a long messages using morse code, but at least
you can have several messages to tell the user about different problems in the boot code
like
two short beeps for an oops
1 short beep for normal resume (so the user will know that the video is to blame)
and so on.
I don't know morse code, but I probably would have learn it.
Once I had very nasty problem with resume, a hang, but only sometimes,
and I had to play with rtc to debug it, and still I couldn't figure out
what was wrong.
Fortunately, this problem disappeared (was somehow fixed).
For reference take a look at http://lkml.org/lkml/2007/3/17/155
I remember that I did about 1500 reboots to try to fix this.
(According to hard disk's 'smart' statistics)
Suggestion: the speaker usually is quite loud, thus it can be annoying to use
for morse code or so.
Why not to use keyboard leds for this purpose?
(USB keyboard probably isn't an option, but user can always pull an old PC keyboard
out of closet, and use it)
Best regards,
Maxim Levitsky
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/