Reply
Thread Tools
Posts: 179 | Thanked: 49 times | Joined on Nov 2008
#1
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?
 
Posts: 237 | Thanked: 274 times | Joined on Jul 2010
#2
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.

Last edited by ivyking; 2011-09-09 at 14:58.
 

The Following User Says Thank You to ivyking For This Useful Post:
Boemien's Avatar
Posts: 770 | Thanked: 558 times | Joined on Mar 2010 @ Abidjan
#3
Hi man,
Here is what Gusse posted in the Power Kernel thread.
check this link:
http://talk.maemo.org/showpost.php?p...postcount=1316
__________________
If you find this post useful for you, or for another member, just hit the Thanks! button
 

The Following User Says Thank You to Boemien For This Useful Post:
Posts: 179 | Thanked: 49 times | Joined on Nov 2008
#4
Originally Posted by ivyking View Post
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.
 
Posts: 179 | Thanked: 49 times | Joined on Nov 2008
#5
Originally Posted by Boemien View Post
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
 
Reply


 
Forum Jump


All times are GMT. The time now is 01:47.