maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Kernel Power - Missing bq27200 Module (https://talk.maemo.org/showthread.php?t=76417)

munkiii 2011-09-09 14:36

Kernel Power - Missing bq27200 Module
 
Last night my phone showed me that an update was availavle to kernel-power-48, so i did it.

Then my phone wouldn't boot. So i flashed the stock kernel back to my n900 and it booted up.

Then i reinstalled kernel power 48 from the beginning.

Then i realized that my temperature gauge wasn't working. So i looked in my "/sys/class/power_supply" folder, and there was no folder for the bq27200 module files.

I know that there should be many files:

Code:

/sys/class/power_supply/bq27200-0/capacity
/sys/class/power_supply/bq27200-0/voltage_now
/sys/class/power_supply/bq27200-0/current_now
/sys/class/power_supply/bq27200-0/temp
/sys/class/power_supply/bq27200-0/charge_full
/sys/class/power_supply/bq27200-0/charge_full_design
/sys/class/power_supply/bq27200-0/charge_now
/sys/class/power_supply/bq27200-0/time_to_empty_avg
/sys/class/power_supply/bq27200-0/time_to_empty_now
/sys/class/power_supply/bq27200-0/time_to_full_now

and the "temp" file being the one i needed.

This is how mine looks:

Code:

Nokia-N900:/sys/class/power_supply# ls
Nokia-N900:/sys/class/power_supply#

Could somebody zip up their "bq27200-0" folder and put it on here, please?

I followed the instructions on the wiki to install the kernel, and it works for overclocking as it should do, just missing the module.

i installed:
kernel-power
kernel-power-flasher
kernel-power-settings
kernel-power-modules

Is there something i am missing or doing wrong?

ivyking 2011-09-09 14:56

Re: Kernel Power - Missing bq27200 Module
 
bq27x00_battery is only included as a module, and is not loaded by default in v48.
Also, files in /sys/ are not real files.
so as root simply:
modprobe bq27x00_battery
and files in /sys/class/power_supply/bq27200-0/ will show up.

afaik, it was not included by default as it breaks bme in v48, so you may experience some problems, I haven't installed v48 so I haven't actually tried.

Boemien 2011-09-09 15:04

Re: Kernel Power - Missing bq27200 Module
 
Hi man,
Here is what Gusse posted in the Power Kernel thread.
check this link:
http://talk.maemo.org/showpost.php?p...postcount=1316

munkiii 2011-09-09 15:07

Re: Kernel Power - Missing bq27200 Module
 
Quote:

Originally Posted by ivyking (Post 1084968)
bq27x00_battery is only included as a module, and is not loaded by default in v48.
Also, files in /sys/ are not real files.
so as root simply:
modprobe bq27x00_battery
and files in /sys/class/power_supply/bq27200-0/ will show up.

afaik, it was not included by default as it breaks bme in v48, so you may experience some problems, I haven't installed v48 so I haven't actually tried.

Ok, that part i understand, but in the kernel power wiki it says "With kernel version >= v47 the bq module is automatically loaded on boot" so i assumed it was.

and i've done "modprobe bq27x00_battery" as root, and the files are still not appearing, and so my temp display is still not working.

munkiii 2011-09-09 15:25

Re: Kernel Power - Missing bq27200 Module
 
Quote:

Originally Posted by Boemien (Post 1084972)
Hi man,
Here is what Gusse posted in the Power Kernel thread.
check this link:
http://talk.maemo.org/showpost.php?p...postcount=1316

OK, so it's a KP489 problem rather than something i've done wrong.

I'll just wait till it's fixed in KP49 maybe.

It looks like too much effort doing everything in that post, and i don't have time at the moment to charge my phone fully, then let it die without reboots, i use it too much to have time - http://talk.maemo.org/showpost.php?p...&postcount=846


All times are GMT. The time now is 20:09.

vBulletin® Version 3.8.8