From: Claus <cl.en@gmx.net>
To: Albrecht Dreß <ad@mpifr-bonn.mpg.de>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: Lombard Sleep Crash (Was: 2.2.18pre17 again)
Date: Thu, 2 Nov 2000 16:07:28 +0100 [thread overview]
Message-ID: <20001102160728.B371@olis.north.de> (raw)
In-Reply-To: <3A015F72.2576BB01@mpifr-bonn.mpg.de>; from ad@mpifr-bonn.mpg.de on Thu, Nov 02, 2000 at 13:34:58 +0100
[-- Attachment #1: Type: text/plain, Size: 1352 bytes --]
>:
>: I attach the kernel .config and the relevant part from /var/log/messages, and as
>: always, any help is _really_ welcome!
if you panic'ed with the CD module inserted, would you try to snooze without it?
or try this one:
/* wakebay.c - wakes a powerbook mediabay so the system doesnt crash on accessing
* a disk mounted before sleeping. great for CD drives.
*
* Joseph Palani Garcia <jpgarcia@execpc.com>
*
* fairly simple. IOCTL the mediabay to tell it the media changed. (it only forgot
* it in sleep. we remind it.)
*
* 3 cases:
* nothing in drive : does nothing, exits normally
* in drive, not mounted : acts, no effect (?)
* in drive, is mounted : drive regains status, door locked, etc.
*
* this is useful for PMUD. add it to the wakeup script to prevent crashes.
*
*/
#include <stdio.h>
#include <fcntl.h>
#include <linux/cdrom.h>
int
main(int argc, char **argv)
{
int fd, arg=0;
if(argc<2){
fprintf(stderr,"Usage:\n\t%s <device>\n",argv[0]);
return 1;
}
fd = open(argv[1], O_RDONLY);
if (fd < 0) {
fprintf(stderr,"%s cannot be opened. exiting.\n",argv[1]);
return 0;
}
if (ioctl(fd, CDROM_MEDIA_CHANGED, &arg) < 0)
perror("CDROM_MEDIA_CHANGED ioctl");
close(fd);
return 0;
}
Regards
Claus
[-- Attachment #2: Type: application/pgp-signature, Size: 0 bytes --]
next prev parent reply other threads:[~2000-11-02 15:07 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-26 6:30 2.2.18pre17 again Paul Mackerras
2000-10-26 14:19 ` Gabriel Paubert
2000-10-27 1:51 ` Paul Mackerras
2000-10-27 6:21 ` Martin Costabel
2000-10-27 11:59 ` Lombard Sleep Crash (Was: 2.2.18pre17 again) Albrecht Dre_
2000-10-27 14:39 ` Olaf Hering
2000-11-02 12:34 ` Albrecht Dreß
2000-11-02 15:07 ` Claus [this message]
2000-11-02 15:28 ` Albrecht Dre_
2000-11-02 18:09 ` Benjamin Herrenschmidt
2000-11-03 10:13 ` Albrecht Dre_
2000-11-03 12:22 ` Michael Schmitz
2000-11-03 12:32 ` Albrecht Dre_
2000-11-03 12:52 ` Michael Schmitz
2000-11-03 14:11 ` Albrecht Dre_
2000-11-03 14:52 ` Michael Schmitz
2000-11-03 21:51 ` Michael Schmitz
2000-11-02 15:35 ` Benjamin Herrenschmidt
2000-11-02 15:43 ` Michael Schmitz
2000-11-02 16:11 ` Benjamin Herrenschmidt
2000-11-02 17:13 ` Michael Schmitz
2000-11-03 15:22 ` Claus
2000-11-03 15:55 ` Benjamin Herrenschmidt
2000-11-03 21:53 ` Michael Schmitz
2000-11-09 1:22 ` Claus
2000-11-09 8:26 ` Michael Schmitz
2000-11-02 17:23 ` Joseph P. Garcia
2000-11-02 18:06 ` Benjamin Herrenschmidt
2000-11-02 22:18 ` Michael Schmitz
2000-11-02 22:56 ` Olaf Hering
2000-11-08 20:35 ` Michael Schmitz
2000-11-08 20:54 ` Benjamin Herrenschmidt
2000-11-08 21:48 ` Michael Schmitz
2000-10-27 19:02 ` 2.2.18pre17 again Olaf Hering
2000-10-28 0:14 ` Olaf Hering
2000-10-31 6:49 ` Michel Lanners
2000-10-31 11:53 ` Benjamin Herrenschmidt
2000-10-31 14:03 ` Gabriel Paubert
2000-10-31 14:48 ` Benjamin Herrenschmidt
2000-10-31 17:20 ` Gabriel Paubert
2000-11-01 1:20 ` Dan Malek
2000-11-01 7:33 ` Michel Lanners
[not found] <200011030559.XAA12796@lists.linuxppc.org>
2000-11-03 14:55 ` Lombard Sleep Crash (Was: 2.2.18pre17 again) Derek Homeier
2000-11-03 15:17 ` Michael Schmitz
2000-11-03 15:53 ` Benjamin Herrenschmidt
2000-11-03 15:59 ` Derek Homeier
-- strict thread matches above, loose matches on Subject: below --
2000-11-03 15:42 nicola cabibbo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20001102160728.B371@olis.north.de \
--to=cl.en@gmx.net \
--cc=ad@mpifr-bonn.mpg.de \
--cc=linuxppc-dev@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.