2001-12-02 15:31:09

by Andreas Hartmann

[permalink] [raw]
Subject: IBM Thinkpad T21: Hotplugging of cdrom and floppy devices

Hello all,

I'm using actual 2.4.x-kernels with the laptop I mentioned in the subject.

When I put off my floppy-device (/dev/fd1) and put in my cdrom-device
(/dev/hdc; both no pcmcia-devices) or vice versa, the kernel doesn't
recognize this change. The change - LED of the laptop is blinking until
I suspend the laptop for example with apm -s or with the keyboard Fn-F4
and rewake it. After this "little sleep", the kernel suddenly knows
about the new hardware and it can handle it.

I tested the hotplugging-feature of the kernel 2.4.x - but I couldn't
get it working.

Is there any other possibility to give the kernel a chance to detect a
hardware change without going through the suspend-mode? I mean, is there
a piece of software, which does the same as in the wake-up-situation of
the notebook after suspend?

Thank you for your advice,
Andreas Hartmann


2001-12-02 19:35:31

by Colonel

[permalink] [raw]
Subject: Re: IBM Thinkpad T21: Hotplugging of cdrom and floppy devices

In clouddancer.list.kernel, <[email protected]> wrote:
>
>When I put off my floppy-device (/dev/fd1) and put in my cdrom-device
>(/dev/hdc; both no pcmcia-devices) or vice versa, the kernel doesn't
>recognize this change. The change - LED of the laptop is blinking until
>I suspend the laptop for example with apm -s or with the keyboard Fn-F4
>and rewake it. After this "little sleep", the kernel suddenly knows
>about the new hardware and it can handle it.
>
>I tested the hotplugging-feature of the kernel 2.4.x - but I couldn't
>get it working.
>
>Is there any other possibility to give the kernel a chance to detect a
>hardware change without going through the suspend-mode? I mean, is there
>a piece of software, which does the same as in the wake-up-situation of
>the notebook after suspend?

The Thinkpad linux webpages mention : suspend, swap device, unsuspend.

I suspect there is a BIOS function that handles the device change,
since that is where the suspend actually occurs. Windows must call it
directly. Hotplugging is for the standard interfaces, the thinkpad
Ultrabay is unique. You should probably be asking the IBM linux
group.

--
Windows 2001: "I'm sorry Dave ... I'm afraid I can't do that."

2001-12-02 19:40:53

by Alan

[permalink] [raw]
Subject: Re: IBM Thinkpad T21: Hotplugging of cdrom and floppy devices

> I suspect there is a BIOS function that handles the device change,
> since that is where the suspend actually occurs. Windows must call it
> directly. Hotplugging is for the standard interfaces, the thinkpad
> Ultrabay is unique. You should probably be asking the IBM linux
> group.

My first guess would be that you want to look at the PNPBIOS support from
the -ac tree and see if you get PNPBIOS events.