Go Back   maemo.org - Talk > OS / Platform > Maemo 5 / Fremantle
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #601  
Old 2011-05-17, 13:38
colin.stephane colin.stephane is offline
 
Join Date: Jan 2010
Location: France
Posts: 458
Thanks!: 114
Thanked 783 Times in 215 Posts
Exclamation Re: [Announce] kernel-power v47

Quote:
Originally Posted by Flandry View Post
bq27x00_battery 5264 0
power_supply 7044 1 b27x00_battery

What are you looking for?
Ok, next step, can you put here result of this command now (from a terminal with root access) :

Code:
lshal -u /org/freedesktop/Hal/devices/computer_power_supply_battery_bq27200_0 | grep battery.charge_level.percentage | awk '{print "Battery reported by driver b27x00_battery : "$3"%"}' ; lshal -u /org/freedesktop/Hal/devices/bme | grep battery.charge_level.percentage | awk '{print "Battery reported by Nokia bme binary : "$3"%"}'
A++

Last edited by colin.stephane; 2011-05-17 at 13:49.
Reply With Quote
The Following 2 Users Say Thank You to colin.stephane For This Useful Post:
  #602  
Old 2011-05-17, 13:57
Flandry's Avatar
Flandry Flandry is offline
 
Join Date: Oct 2009
Location: Boston
Posts: 1,559
Thanks!: 951
Thanked 1,786 Times in 648 Posts
Default Re: [Announce] kernel-power v47

100% and 11%

Edit: and now 100% and 79%
__________________

Unofficial PR1.3/Meego 1.1 FAQ

***
Classic example of arbitrary Nokia decision making. Couldn't just fallback to the no brainer of tagging with lat/lon if network isn't accessible, could you Nokia?
MAME: an arcade in your pocket
Accelemymote: make your accelerometer more joy-ful

Last edited by Flandry; 2011-05-17 at 14:05.
Reply With Quote
  #603  
Old 2011-05-17, 14:05
colin.stephane colin.stephane is offline
 
Join Date: Jan 2010
Location: France
Posts: 458
Thanks!: 114
Thanked 783 Times in 215 Posts
Default Re: [Announce] kernel-power v47

Quote:
Originally Posted by Flandry View Post
100% and 11%
Final step :

Open a terminal as root, then do :

Code:
clear && ID=$(id -un) ; if [ ${ID} != "root" ] ; then echo "You are not 'root', please use this command line as 'root' ..." ; else echo "Ok, you are 'root' ..." ; if grep -q "blacklist bq27x00_battery" /etc/modprobe.d/blacklist 2>/dev/null ; then echo "Patch already applyed, nothing to be done ..." ; echo "" ; else echo "Applying patch now ..." ; echo "blacklist bq27x00_battery" >>/etc/modprobe.d/blacklist ; echo "" ; echo "DONE, PLEASE REBOOT YOUR DEVICE ..." ; echo "" ; fi ; fi

For details, please read this thread from here : http://talk.maemo.org/showthread.php?t=71879&page=54

A++

Last edited by colin.stephane; 2011-06-08 at 20:31. Reason: Corrected the script with correct command "blacklist bq27x00_battery", sorry ...
Reply With Quote
  #604  
Old 2011-05-17, 14:14
Flandry's Avatar
Flandry Flandry is offline
 
Join Date: Oct 2009
Location: Boston
Posts: 1,559
Thanks!: 951
Thanked 1,786 Times in 648 Posts
Default Re: [Announce] kernel-power v47

Quote:
Originally Posted by colin.stephane View Post
Final step :

Open a terminal as root, then do :

Code:
echo "blacklist bq27x00_battery" >>/etc/modprobe.d/blacklist
Reboot & enjoy !!!

For details, please read this thread from here : http://talk.maemo.org/showthread.php?t=71879&page=54

A++
I don't understand how this is going to help. The battery indicator is obviously not following the Nokia bme binary numbers and it's the battery indicator that suggests the battery is draining faster now. Could you please explain?
__________________

Unofficial PR1.3/Meego 1.1 FAQ

***
Classic example of arbitrary Nokia decision making. Couldn't just fallback to the no brainer of tagging with lat/lon if network isn't accessible, could you Nokia?
MAME: an arcade in your pocket
Accelemymote: make your accelerometer more joy-ful
Reply With Quote
The Following User Says Thank You to Flandry For This Useful Post:
  #605  
Old 2011-05-17, 14:24
colin.stephane colin.stephane is offline
 
Join Date: Jan 2010
Location: France
Posts: 458
Thanks!: 114
Thanked 783 Times in 215 Posts
Default Re: [Announce] kernel-power v47

Quote:
Originally Posted by Flandry View Post
I don't understand how this is going to help. The battery indicator is obviously not following the Nokia bme binary numbers and it's the battery indicator that suggests the battery is draining faster now. Could you please explain?
What you don't understand ?

NEVER load the 'b27x00_battery' driver, as it breaks bme by exclusively occupying the I2C bus !!!

Like stated by 'joerg_rw' here : http://talk.maemo.org/showpost.php?p...&postcount=534

So, there is no interest at all for the 'bq27x00_battery' driver 'pali' backported to this release.

Also, in this thread, 'pali' say, to apply patch to be able to use the values reported by 'bq27x00_battery' driver he backported, but since the driver is unusable, no need to patch anything, and keep using bme.

Hope it help ...

A++
Reply With Quote
  #606  
Old 2011-05-17, 14:28
Flandry's Avatar
Flandry Flandry is offline
 
Join Date: Oct 2009
Location: Boston
Posts: 1,559
Thanks!: 951
Thanked 1,786 Times in 648 Posts
Default Re: [Announce] kernel-power v47

Sorry, i read those posts a few days ago and i read them again now and it still makes no sense in the context of what appears to be an increase in battery consumption. Or are you saying that the b27x00 driver causes the battery consumption to increase?
__________________

Unofficial PR1.3/Meego 1.1 FAQ

***
Classic example of arbitrary Nokia decision making. Couldn't just fallback to the no brainer of tagging with lat/lon if network isn't accessible, could you Nokia?
MAME: an arcade in your pocket
Accelemymote: make your accelerometer more joy-ful
Reply With Quote
  #607  
Old 2011-05-17, 14:41
colin.stephane colin.stephane is offline
 
Join Date: Jan 2010
Location: France
Posts: 458
Thanks!: 114
Thanked 783 Times in 215 Posts
Default Re: [Announce] kernel-power v47

Quote:
Originally Posted by Flandry View Post
Sorry, i read those posts a few days ago and i read them again now and it still makes no sense in the context of what appears to be an increase in battery consumption. Or are you saying that the b27x00 driver causes the battery consumption to increase?
The thing I'm sure of, is the v47 doesn't consume more or less than v46.

You have to find why you see battery drain elsewhere, maybe you have installed another program power consuming since v47 ...

Also, since you have the 'b27x00_battery' loaded, then chances are bme crash like 'joerg_rw' explained ...

After this stated, reading Wiki, bme seem also to control the battery charge, stopping himself during the charge of the battery (if I understand properly).

And I'm pretty sure this step is required to properly calibrate battery charging ...

A++
Reply With Quote
The Following 4 Users Say Thank You to colin.stephane For This Useful Post:
  #608  
Old 2011-05-17, 15:08
Frappacino Frappacino is offline
 
Join Date: Feb 2010
Posts: 619
Thanks!: 268
Thanked 691 Times in 282 Posts
Default Re: [Announce] kernel-power v47

ironic how colin is now asking ppl to run commands on root to diagnose a problem after vi_* screwed a newb who asked for help for running commands he did not understand on root,

... its not only the newbs who are problematic around here...

ps - thanks colin for trying to geniuely help.
Reply With Quote
The Following 3 Users Say Thank You to Frappacino For This Useful Post:
  #609  
Old 2011-05-17, 17:29
colin.stephane colin.stephane is offline
 
Join Date: Jan 2010
Location: France
Posts: 458
Thanks!: 114
Thanked 783 Times in 215 Posts
Default Re: [Announce] kernel-power v47

Quote:
Originally Posted by Frappacino View Post
ironic how colin is now asking ppl to run commands on root to diagnose a problem after vi_* screwed a newb who asked for help for running commands he did not understand on root,

... its not only the newbs who are problematic around here...

ps - thanks colin for trying to geniuely help.
Difference between him and me, is I'm trying to not screw the audience with dangerous commands, at least I'll do my best ...



A++
Reply With Quote
The Following 4 Users Say Thank You to colin.stephane For This Useful Post:
  #610  
Old 2011-05-17, 18:42
Mentalist Traceur Mentalist Traceur is offline
 
Join Date: Jun 2010
Location: Florida
Posts: 2,225
Thanks!: 5,582
Thanked 3,821 Times in 1,273 Posts
Default Re: [Announce] kernel-power v47

vi_ there's no need to take this personally. One of the newbs who ran your command did say their phone wasn't booting anymore, shortly after you posted the ash compatible version. Depends on how you define screwed, of course. That might not qualify in your book. *Shrug* Point is, there's no need to get emotionally invested in other people referring back to it. It happened, your reputation is thus changed for those who are aware of it. It probably will come up as time goes on.

Meanwhile, why IS the bq27x00_battery module loading by default? Last I checked all the other kernel power versions included it, but didn't load it by default unless you explicitly added it to the /etc/modules file.
Reply With Quote
The Following 3 Users Say Thank You to Mentalist Traceur For This Useful Post:
Reply

Tags
battery-status, bq27x00_battery, kernel, kernel-power, misiak4king, noobs-cant-read, pali4president, patches, readdirections, revolverspinyou


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:00.