Bug 4728 - second (ultrabay) battery not detected if inserted after boot
Summary: second (ultrabay) battery not detected if inserted after boot
Status: REJECTED DUPLICATE of bug 2884
Alias: None
Product: ACPI
Classification: Unclassified
Component: Config-Hotplug (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: acpi_config-hotplug
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-10 00:55 UTC by Eugene Pavlovsky
Modified: 2005-06-16 03:29 UTC (History)
0 users

See Also:
Kernel Version: 2.6.12-rc5
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Eugene Pavlovsky 2005-06-10 00:55:43 UTC
I've got an ultrabay battery for my thinkpad r51. If I boot my kernel with it,
i can see both batteries in /proc/acpi/battery/BAT{0,1}. Then, I can hotswap
ultrabay battery for a cdrom (hdc=cdrom boot param makes it work, though it's
a kluge too, it'd be good to have some way for re-scanning IDE devices) then
back and everything still works (CD works, /proac/acpi/battery/BAT1 works when
battery is swapped back). But if I load my kernel without the extra battery
plugged in, then add the battery, it won't show up in /proc/acpi/battery/BAT1,
only the main (BAT0) will be there. Any way to tell the kernel to rescan the
ACPI stuff? The process if plugging the battery itself generates an ACPI event
which I can handle and execute smth. It'd be also great to know if there's any
way of telling the kernel to rescan IDE devices - the "hdc=cdrom" way is not
very pretty (there's idectl 1 rescan (uses hdparm, actually), but it needs the
/dev/hdc device, and udev won't create it if there was no cd drive on kernel
boot).
Comment 1 Shaohua 2005-06-10 01:08:59 UTC
I might should have replied your email in acpi-dev, but I can't access 
bugzilla till today, so I can't point out the exact tract for this issue.
Ok, Could you please test the patch in bug 2884? 

*** This bug has been marked as a duplicate of 2884 ***
Comment 2 Eugene Pavlovsky 2005-06-16 03:29:28 UTC
Yes, these kernel parameters make it work for me. Will the battery driver be
fixed so that there would be no need for them?

Note You need to log in before you can comment on or make changes to this bug.