maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Major question after PR 1.2 (https://talk.maemo.org/showthread.php?t=53884)

mihapodb 2010-05-26 17:45

Major question after PR 1.2
 
I have a problem after flashing to 1.2.

The temperature is not shown anymore. I was using this script for DCEW:
Code:

echo `cat /sys/class/power_supply/bq27200-0/temp` °C
I have battery module loaded, titan`s kernel loaded, but there is no "power_supply" map in /sys/class/.

Any suggestion

titan 2010-05-26 21:51

Re: Major question after PR 1.2
 
it works for me. how do you know whether the module is loaded?

mihapodb 2010-05-26 22:02

Re: Major question after PR 1.2
 
Becouse I did this:
Code:

echo bq27x00_battery >> /etc/modules

And if I type in console under root:
Code:

cat /sys/class/power_supply/bq27200-0/temp
I get:
Code:

cat: can`t open "/sys/class/power_supply/bq27200-0/temp": No such file or directory

rewt 2010-05-26 22:08

Re: Major question after PR 1.2
 
Use lsmod command to verify the module is actually loaded.

titan 2010-05-26 22:08

Re: Major question after PR 1.2
 
you need to load it with

modprobe bq27x00_battery

the echo command only works as root and if you have kernel-power-settings >= 0.5 installed.

mihapodb 2010-05-26 22:21

Re: Major question after PR 1.2
 
There were problem with the modules file. The command was not written as it should be. And becouse of that module was not loaded. Now it is working like a charm :))))))

Thanks for any help!!!

EDIT: That could not be true. Now it does not boot. It dies after nokia logo. I have to put out the battery and it works, but custom (titans) kernel does not load. AWWWW :( I just reflashed it today

sophocha 2010-05-26 22:27

Re: Major question after PR 1.2
 
CPU temp in CPUFREQUI program is messed up after the PR update as well!.....it shows -40 now :(

mihapodb 2010-05-26 22:43

Re: Major question after PR 1.2
 
titan what that means:

Code:

/usr/sbin/kernel-config: line 15: syntax error: minfreq*1000
I did like this:
1. copy ideal from "/usr/share/kernel-power-settings" to "/etc/deafult"
2. edit to this:
Code:

# DO NOT EDIT THIS FILE - CREATE A COPY OF IT FOR CUSTOMIZATION
# minimum frequency to use
MINFREQ=500
# maximum frequency to use
MAXFREQ=1150
# list of frequency configurations: each "frequency:volt,dsprate"
FREQS="500:30,360 550:33,400 600:38,430 700:45,430 750:45,430 805:48,430 850:48,500 900:54,500 950:54,500 1000:60,500 1100:72,520 1150:72,520"
SMARTREFLEX_VDD1=0
SMARTREFLEX_VDD2=0
GOVERNOR=ondemand
UP_THRESHOLD=75
SAMPLING_RATE=150000
IGNORE_NICE_LOAD=1
POWERSAVE_BIAS=0

3. rename it to "kernel-power"
4. /usr/sbin/kernel-load


EDIT: fixed, wordpad saved somehow wrong. arrrr

For now everything is perfect. :)


All times are GMT. The time now is 04:42.

vBulletin® Version 3.8.8