maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Announce] kernel-power stable v49 in Extras-Testing (https://talk.maemo.org/showthread.php?t=71879)

pali 2011-10-06 08:00

Re: [Announce] kernel-power v49
 
Quote:

Originally Posted by TMavica (Post 1102016)
1: /usr/lib/hal/hald-addon-bme
grep bme

2: 0
1 bq27x00_battery

3: power_supply bq27200-0: driver failed to report.....
(time to empty now, avg, time to full now, charge_full, capacity,


4: /sys/class/i2c-adaptor/i2c-2/2-0055/power_supply: bq27200-0
/sys/class/misc/bq27200-0
/sys/class/power_supply/bq27200-0

1. OK
2. OK
3. "driver failed to report" means you do not have calibrated battery - not problem with module
4. OK

You have directory /sys/class/power_supply/bq27200-0 where are all exported values. So it is working.

pali 2011-10-06 08:00

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by TMavica (Post 1102017)
$ cat /sys/class/power_supply/bq27200-0

<----cat: read error: Is a directory

cat /sys/class/power_supply/bq27200-0/uevent

left 2011-10-06 08:16

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by handaxe (Post 1103724)
@ left: humour me and with power 48/49 installed try disabling power saving via system > settings > internet connections and then try skype.I have had issues resolved by doing this.

Will be able to try that after the weekend...travelling in a few hours and need the phone there.

However, last night when reflashing, my saved WiFi-connection also resetted. So I used 3G mode the whole time, experiencing the same issues after installing power. Doesn't disabeling power saving only effect WiFi-settings? And if it does, might it be that changing this setting might solve my problems with 3G as well?

Thanks!

handaxe 2011-10-06 11:34

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by left (Post 1103892)
However, last night when reflashing, my saved WiFi-connection also resetted. So I used 3G mode the whole time, experiencing the same issues after installing power. Doesn't disabeling power saving only effect WiFi-settings? And if it does, might it be that changing this setting might solve my problems with 3G as well?

Thanks!

Ah, I assumed a wifi conn. The 3G observation refutes my conjecture. There is no power setting for packet connections. So the issue lies elsewhere. I enabled my skype account and have no issues with online status and slowdowns (k-p 49).

Something had to have changed- did you change volting profile etc etc.. Does the problem appear with kernel-power and std clock settings or only when oc &/or uv?

pali 2011-10-06 12:36

Re: [Announce] kernel-power unstable v49
 
new build of v49 on standard place.

trisha02 2011-10-06 12:45

Re: [Announce] kernel-power unstable v49
 
when will it be stable.i am waiting for a stable release of this kernel.i cant wait to play 720p videos

Alfred 2011-10-06 12:56

Re: [Announce] kernel-power unstable v49
 
Well, then you will have to wait.

left 2011-10-06 13:07

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by handaxe (Post 1103994)
Ah, I assumed a wifi conn. The 3G observation refutes my conjecture. There is no power setting for packet connections. So the issue lies elsewhere. I enabled my skype account and have no issues with online status and slowdowns (k-p 49).

Something had to have changed- did you change volting profile etc etc.. Does the problem appear with kernel-power and std clock settings or only when oc &/or uv?

The weird thing is that I didn't really do anything. No voltage changes or oc'ing, didn't have time to look into that yet - as said, I'm far from an expert, I only managed to reflash so quickly because of the very well written wiki) Phone was running well before, made calls and was on skype during the same session. It might have started though when entering the WiFi-coverage, noticed it shortly after I came home. Last package installed was Desktop Calender Widget, which has been running 3 days non-stop before with no problems. Will try k-p 49 as soon as I come back and made a good backup... Been installing deleted apps for quite some hours now. Thanks again for your help!

(Is this still the right place to discuss / troubleshoot this issue? Should I start a new thread? If yes, where?)

TMavica 2011-10-06 13:38

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by pali (Post 1103879)
cat /sys/class/power_supply/bq27200-0/uevent

Power_supply_name=bq27200-0
type battery
status discharging
present 1
voltage now 3986000
current now 183319
temp 331
technology li-ion
charge now 870901
full design 2056320

fahadj2003 2011-10-06 15:44

Re: [Announce] kernel-power unstable v49
 
new kp-bootimg doesn't create boot.item.. :/

pali 2011-10-06 15:57

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by TMavica (Post 1104077)
Power_supply_name=bq27200-0
type battery
status discharging
present 1
voltage now 3986000
current now 183319
temp 331
technology li-ion
charge now 870901
full design 2056320

so it is working :)

TMavica 2011-10-06 22:37

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by pali (Post 1104179)
so it is working :)

but it cant display..

Radicalz38 2011-10-07 01:10

Re: [Announce] kernel-power unstable v49
 
@pali

I would like to ask what you did on the current u-boot+kp49.bin?

because it now works with my n900. Just wanna give you an update and know what you did

pali 2011-10-07 07:18

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by TMavica (Post 1104412)
but it cant display..

what cannot display?

pali 2011-10-07 07:19

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by Radicalz38 (Post 1104454)
@pali

I would like to ask what you did on the current u-boot+kp49.bin?

because it now works with my n900. Just wanna give you an update and know what you did

wait until I create new combinated image...

EDIT: updated on server

TMavica 2011-10-07 08:18

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by pali (Post 1104522)
what cannot display?

The battery still show 0 percent and dmesg tail still unable to read (mentioned before), I have done the battery calcilbration

lidow 2011-10-07 08:36

Re: [Announce] kernel-power unstable v49
 
Here is small howto in order to combine the kp49 with u-boot by yourselves (these also are the steps to install KP49). Combined image could also exists on pali's site, but in this particular case, it was outdated, so I have to combine it myself:

!!! Please be aware that you understand what you are doing, just copy/paste below commands, will not lead you to the end, some details are missing (like becoming root, making temp folder etc...). You should have basic knowledge for working on linux command prompt, before try to follow such guides.

* Install needed software to repackage and download
Code:

apt-get install -y wget flasher mkimage
* Download packages

* Install them
Code:

dpkg -i kernel-power_2.6.28-10power49_armel.deb
dpkg -i kernel-power-modules_2.6.28-10power49_armel.deb
dpkg -i kernel-power-flasher_2.6.28-10power49_armel.deb
dpkg -i kernel-power-bootimg_2.6.28-10power49_armel.deb

* Extract fisaco image from kernel package
Code:

dpkg --fsys-tarfile kernel-power_2.6.28-10power49_armel.deb | tar -xf - \ boot/zImage-2.6.28.10-power49.fiasco
mv boot/zImage-2.6.28.10-power49.fiasco .

* Download u-boot.bin from pali's site
* Unpack fiasco image
Code:

flasher -u -F zImage-2.6.28.10-power49.fiasco
* Make uImage from zImage
Code:

mkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 \
-n "Power Kernel v49" -d zImage uImage

* Get pali's u-boot combined builder script
* Start it
Code:

chmod u+x ./u-boot-combinated-builder.py
./u-boot-combinated-builder.py

* Start updater
Code:

softupd -vv -s --local
* Flash the kernel
Code:

flasher --local -f -k ./combined.bin
* Reboot

pali 2011-10-07 08:43

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by TMavica (Post 1104536)
The battery still show 0 percent and dmesg tail still unable to read (mentioned before), I have done the battery calcilbration

Your battery is not calibrated, read again

Quote:

Originally Posted by pali (Post 1096753)
[56434.363555] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values

Next it check if battery is calibrated (CI flag) and if not it does not export capacity values (because they are bad). See how to calibrate: http://talk.maemo.org/showpost.php?p...&postcount=846


TMavica 2011-10-07 08:49

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by pali (Post 1104543)
Your battery is not calibrated, read again

O
I have followed the step.
1. bq2700.sh when full charge
2. disconnect electrical plug
3. Nearly full discharged, run bq2700.sh 5
4. when under 3248, EDV changed to 1, and device shutdown.

thats it? anything I missed? sorry for disturbance...

pali 2011-10-07 09:03

Re: [Announce] kernel-power unstable v49
 
Check with bq27200.sh if you have flag CI:0 If no, you did someting incorrectly. When doing learning cycle, make sure that after battery is fully charged you stopped bme. (When bme is running, it shutdown device before learning cycle is complete)

TMavica 2011-10-07 09:06

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by pali (Post 1104553)
Check with bq27200.sh if you have flag CI:0 If no, you did someting incorrectly. When doing learning cycle, make sure that after battery is fully charged you stopped bme. (When bme is running, it shutdown device before learning cycle is complete)

understood, I try again
Thanks

TMavica 2011-10-07 09:11

Re: [Announce] kernel-power unstable v49
 
what mean of CI be 0, I found mine is 1
Leaning cycle means bq27200.sh 5? Thats means I no need wait the battery nearly discharged and just start this step when battery full charged?

pali 2011-10-07 09:53

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by TMavica (Post 1104562)
what mean of CI be 0, I found mine is 1
Leaning cycle means bq27200.sh 5? Thats means I no need wait the battery nearly discharged and just start this step when battery full charged?

you need to have 0 (1 means error). If CI is 1 bq27x00_battery kernel module ignore all capacity properties (and report error). Plug wall charger and fully charge. Unplug charger and discharge. When BME notify "Battery empty", stop bme and monitor battery status with bq27200.sh script. When EDV1 switch to 1, plugin wall charger, start bme (it could turn off display) and fully charge. This calculate battery capacity - but it could not calculate correct values (so do learning cycle again)...

TMavica 2011-10-07 10:23

Re: [Announce] kernel-power unstable v49
 
That mean I need to do 2 Times bq27200.sh 5...by the way thanks

majaczek 2011-10-07 10:48

Re: [Announce] kernel-power unstable v49
 
i want to install kp49 and i downloaded all needed files to my PC and cloned to my N900.
i heard that packages must be installed in order... in which order, could you remind? (if it wouldn't i'll just do "dpkg -i *.deb" but i know it is not the case)

also do you consider kp49 as "almost stable"? i wanted to test thoroughly the compcache/ramzswap :)

well minor instability issues wouldn't make me cry, because i have kp48 from repo, and my phone has tiny unstabilities (it reboots when much stress to the machine IO (network or disk) and in same time random factor appears)

pali i think they doesn't have your latest patched kp48 in repository, do they? so i thought it would be easier to just skip to kp49, and keep if stability pleases me or just come back if it is unpleasant for me.

note that i'm not overclocking yet (to not void waranty until it ends), and my kp reports as 48 and it seems to not have ramzswap module

EDIT:and im having problem that battery-meter sometimes stuck on 5mAh (0.4%) and unstucks (steps up) only after long charging
it looks i don't have any suspicious *patches i have bme on and i believe i don't use bq27x00-battery module but i use really funky conky script and i don't know if it touches that

PS: is kp49 so unstable that during kernel flashing sh|t may happen? i ask because i've never done remote reflash (the one with usb and "U" key) and don't want to have to.
PPS: I was supprised how easy it was to just flash the kp48 kernel, and that i don't have to do mysterious tricks like rebooting without battery, etc. the only things i believe i have not tried yet are repartitioning MMC and multiboot
PPPS: i have my n900 bought this summer holidays from third party, but i'm advanced in using computer devices, so i'm neither noob nor pro at these boards.

Radicalz38 2011-10-07 11:43

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by pali (Post 1104523)
wait until I create new combinated image...

EDIT: updated on server

Huh? the old 1 before I posted works with hardware revision 2204 so I was asking what changes you made? Did you found out the problem already? Will try the new one soon Im still currently using my n900 as phone :p

pali 2011-10-07 11:51

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by Radicalz38 (Post 1104642)
Huh? the old 1 before I posted works with hardware revision 2204 so I was asking what changes you made? Did you found out the problem already? Will try the new one soon Im still currently using my n900 as phone :p

created combinated image with kp v49

Radicalz38 2011-10-07 12:57

Re: [Announce] kernel-power unstable v49
 
Hi pali I don't know what you did(Since i don't see any updates on pali-master git) but it is working flawlessly now. Probably the reboot loops was on the kernel's side? And you got it fixed on kernel power 49?


Update: Pali your latest combinated image doesn't work again on my n900 with hardware revision 2204 but the one "before you updated few hours ago" was working fine and stable on my n900 :(

azeós 2011-10-08 04:30

Re: [Announce] kernel-power unstable v49
 
My IR port (at least with QtIrreco), is not working any more since I installed v48.
Some people are having the same problem: N900 infrared problem

Can someone confirm this? Is there anything I can do?

Thanks in advance.

EDIT: I tried "TV-B-Gone" and it worked. The problem is just with QtIrreco.

TMavica 2011-10-08 11:34

Re: [Announce] kernel-power unstable v49
 
@pali friends

Finally I can use bq27x00, thanks you very much
1 more thing, is it normal when I rmmod for charging, the phone will reboot after few min?

pali 2011-10-08 11:47

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by TMavica (Post 1105185)
1 more thing, is it normal when I rmmod for charging, the phone will reboot after few min?

if bme is running and you modprobe/rmmod bq27x00_battery it is normal (you cannot use bme and module together).

but if your phone reboot when bme is stopped and you modprobe/rmmod - that is bad!

TMavica 2011-10-08 12:47

Re: [Announce] kernel-power unstable v49
 
i know bme and bq cant together
example: I want charge, I first rmmod, then I start bme, the phone will start to charge, but after few min, the phone reboot

pali 2011-10-08 12:50

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by TMavica (Post 1105220)
i know bme and bq cant together
example: I want charge, I first rmmod, then I start bme, the phone will start to charge, but after few min, the phone reboot

it is bad! somewhere is error. Can you enable R&D mode and attach syslog/dmesg or mtd log partition?

TMavica 2011-10-08 13:04

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by pali (Post 1105224)
it is bad! somewhere is error. Can you enable R&D mode and attach syslog/dmesg or mtd log partition?

I know how enable rd mode, but how attach the syslog/dmesg and mtd? whats the command?

TMavica 2011-10-09 05:34

Re: [Announce] kernel-power unstable v49
 
1 Attachment(s)
@pali, this is my output

trisha02 2011-10-09 05:39

Re: [Announce] kernel-power unstable v49
 
@TMavica-- i pmed u sir. hav been waiting till then :(

TMavica 2011-10-09 05:55

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by trisha02 (Post 1105809)
@TMavica-- i pmed u sir. hav been waiting till then :(

.............Put that file to /root/

pali 2011-10-09 10:44

Re: [Announce] kernel-power unstable v49
 
Quote:

Originally Posted by TMavica (Post 1105805)
@pali, this is my output

sorry but in your logs are nothing interest - no errors. Please try output of mtd log partition (/dev/mtd2) - Be carefull, manipulating with mtd can damage your device!

is rebooting always happen, or only once?

majaczek 2011-10-09 10:53

Re: [Announce] kernel-power unstable v49
 
hey i found how to install kernel manually (kernel, then modules, then flasher)

i found kp49 from 06-X-2011 is very stable for the test version
it looks that is as stable if it will be release version not testing version
compcache is stable too, depending of size it either speeds up or slow down. so need to set the size wisefullly. it's sad that stats doesn't work for this version of kernel. (I'd like to know how much of swap compress well)


THANKS PALI FOR KERNEL POWER v49, it's great

pali 2011-10-09 11:03

Re: [Announce] kernel-power unstable v49
 
@majaczek: see TMavica problem with bq module - rebooting device when bme is stopped!


All times are GMT. The time now is 23:25.

vBulletin® Version 3.8.8