Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
laptop second battery not recognized if plugged after boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
heilong
n00b
n00b


Joined: 23 May 2005
Posts: 35

PostPosted: Wed Jun 08, 2005 12:48 pm    Post subject: laptop second battery not recognized if plugged after boot Reply with quote

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).
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3789
Location: sleeping in the bathtub

PostPosted: Wed Jun 08, 2005 6:20 pm    Post subject: Reply with quote

This probably won't help at all, but you could try restarting coldplug, i.e.
Code:
/etc/init.d/coldplug restart

_________________
"You have to invite me in"
Back to top
View user's profile Send private message
heilong
n00b
n00b


Joined: 23 May 2005
Posts: 35

PostPosted: Fri Jun 10, 2005 8:10 am    Post subject: Reply with quote

indeed, it didn't help, but for thanks for trying, anyway.
btw, i didn't even had coldplug installed and haven't got any probs with it
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3789
Location: sleeping in the bathtub

PostPosted: Fri Jun 10, 2005 12:50 pm    Post subject: Reply with quote

heilong wrote:
btw, i didn't even had coldplug installed and haven't got any probs with it

Yeah, I don't use it either, too damn slow, but I thought it might solve your problem. Oh, well. :roll:

Another thing you could try is;
Code:
/sbin/idectl ide-channel-nr rescan


This user seems to be having the exact same problem (I would have posted in that thread directing him here, but maybe someone will pick it up in the unanswered posts list who can be more helpful than myself, so it'll be worth watching).
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
heilong
n00b
n00b


Joined: 23 May 2005
Posts: 35

PostPosted: Fri Jul 08, 2005 7:30 am    Post subject: Reply with quote

My partly working solution is to pass "hdc=cdrom" kernel boot parameter. This way, if I boot without cd-rom, I've got a lot of error messages on boot, but the cd-rom works if I insert it later. Problem - CDDA seems to not work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum