View Single Post
Posts: 101 | Thanked: 30 times | Joined on Jul 2010
#42
Originally Posted by sacal View Post
Multiboot 0.2.5 and autoloading bq27x00_battery.

For those like me that are running OCCP widget and titan's power37 or 39 with multiboot 0.2.5, there is the need of loading bq27x00_battery module after every reboot.

As Jay-C, the author of multiboot stated here there are problems autoloading that module.

So for those interested i have added some lines of code to the /home/user/.OCCP file to autoload the bq2700_battery module so that the temperature is displayed in the OCCP widget:

Code:
QBW_REMEMBER_ME=${7}
if [ "$(cat /sys/class/power_supply/bq27200-0/temp)" == "" ] ; then
  sudo modprobe bq27x00_battery > /dev/null ;
fi
if [ "$QBW_REMEMBER_ME" -eq 3 ] ; then
Strange, i running OCCP widget and titan's power37 with multiboot 0.2.5 but i don't need to load bq27x00_battery module after every reboot.......
 

The Following User Says Thank You to gft2k1 For This Useful Post: