laptop battery + i2c bus reprogramming

Dan Nelson dnelson at allantgroup.com
Tue Jan 13 09:03:46 PST 2009


In the last episode (Jan 10), michael said:
> several of my laptop batteries(L-ION) have an i2c bus to the eeprom
> inside the case. is it possible to reprogram or reset a battery i
> have repacked from within freebsd or will i need to do this with the
> available windows programs?
> what i'm asking is if freebsd actually supports sending of data over
> the i2c bus from userland.

The iic driver seems to provide ioctls for userland manipulation; as
long as you know what to send (and assuming the kernel driver finds the
i2c chip), it should work.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list