[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200802082341.58107.maximlevitsky@gmail.com>
Date: Fri, 8 Feb 2008 23:41:57 +0200
From: Maxim Levitsky <maximlevitsky@...il.com>
To: Pavel Machek <pavel@....cz>
Cc: "Rafael J. Wysocki" <rjw@...k.pl>,
kernel list <linux-kernel@...r.kernel.org>,
Linux-pm mailing list <linux-pm@...ts.osdl.org>,
"H. Peter Anvin" <hpa@...or.com>
Subject: Re: [rft] s2ram wakeup moves to .c, could fix few machines
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists