Reply
Thread Tools
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#21
Ah, You're right, it remember this one hoever, i don't have any problems with it, and vi_'s report and questions is quite old. I must have been fixed even before I started using AIS - I'm *very* oriented on battery life, and i'm absolutely sure that it's impact is completely non-existent (my actual power usage in idle without anything on is 3-5 mA per hour, while 4-8 mA is considered "normal"). Of course, I've also checked powertop, and AIS doesn't create any unnecessary wakeups. You may use it without any fear of decreased battery life.

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following User Says Thank You to Estel For This Useful Post:
Posts: 462 | Thanked: 550 times | Joined on Sep 2008 @ Moscow
#22
heh... suddenly found this thread for AIS I would recommend using versions from -devel, because pushing it to -testing and pure extras can take ages and existing there versions are quite outdated. btw, I'm planning to release a new version with kp51* packet-injection support by the end of this week or begining of next.
don't be afraid of 1 (one) d-bus call every 5 seconds. standard stuff polutes d-bus more. in case of getting paranoid & suspicious, just keep it off in settings
 

The Following 2 Users Say Thank You to 412b For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#23
Originally Posted by 412b View Post
don't be afraid of 1 (one) d-bus call every 5 seconds. standard stuff polutes d-bus more. in case of getting paranoid & suspicious, just keep it off in settings
OK so on multiple recommendations I installed AIS from devel.
It has doubled my wakeups, surely this is going to have a huge impact on battery life.
Tried unchecking and playing with the options this is the best result I could get.

AIS Installed
Code:
 $ sudo powertop
Powertop 1.13.3
status: Unknown job: pmtrackerdaemon
Sleeping for 11 seconds before sampling
Collecting data for 30 seconds
Sample interval was 00m 30s 31800us

C#      | Ratio  | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
     C0 |   2.2% |          |  1150 MHz |   nan% |
     C1 |   0.0% |    0.3ms | 
     C2 |   1.5% |    8.1ms | 
     C3 |  96.4% |  205.2ms | 
     C4 |   0.0% |          | 

IRQ#    | Activity   | Type           | Name
--------+------------+----------------+---------------------------
     56 |        285 |           INTC | i2c_omap
     37 |        254 |           INTC | gp
     11 |        182 |           INTC | prcm
     57 |         30 |           INTC | i2c_omap
     12 |         19 |           INTC | DMA
     21 |          9 |           INTC | SGX
    225 |          1 |           GPIO | omap2-onenand

PID#    | Activity   | Name           | Function Entry (Expire)
--------+------------+----------------+---------------------------
   1284 |        125 |hildon-status-m | schedule_hrtimeout_range (hrtimer_wakeup)
      0 |         86 |  <kernel core> | tick_nohz_restart_sched_tick (tick_sched_timer)
     38 |         30D|            awk | cpufreq_governor_dbs (delayed_work_timer_fn)
   1740 |         19 |     osso-xterm | schedule_hrtimeout_range (hrtimer_wakeup)
    749 |          9 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
      0 |          6 |  <kernel core> | hrtimer_start (tick_sched_timer)
    749 |          6 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    749 |          6 |      bme_RX-51 | schedule_timeout (process_timeout)
   1029 |          3 |           Xorg | hrtimer_start (it_real_fn)
    992 |          3 |       sgx_perf | queue_delayed_work (delayed_work_timer_fn)
      1 |          3D|  <kernel core> | queue_delayed_work (delayed_work_timer_fn)
    732 |          2D|<kernel module> | queue_delayed_work (delayed_work_timer_fn)
   1785 |          2 |       browserd | futex_wait (hrtimer_wakeup)
    707 |          2 |           dsme | do_nanosleep (hrtimer_wakeup)
    707 |          2 |           dsme | __enqueue_rt_entity (sched_rt_period_timer)
    749 |          2 |      bme_RX-51 | do_nanosleep (hrtimer_wakeup)
    636 |          1 |          mmcqd | queue_delayed_work (delayed_work_timer_fn)
   1029 |          1 |           Xorg | queue_delayed_work (delayed_work_timer_fn)
    968 |          1 |            mce | schedule_hrtimeout_range (hrtimer_wakeup)
   1342 |          1 |       wlancond | schedule_timeout (process_timeout)
   1342 |          1 |       wlancond | queue_delayed_work (delayed_work_timer_fn)
   1342 |          1 |       wlancond | ieee80211_ioctl_siwpower (ieee80211_dynamic_ps_timer)
      0 |          1 |  <kernel core> | addrconf_verify (addrconf_verify)
      0 |          1 |  <kernel core> | queue_delayed_work (delayed_work_timer_fn)
   1057 |          1 | hald-addon-bme | schedule_hrtimeout_range (hrtimer_wakeup)
   1797 |          1 |       powertop | do_nanosleep (hrtimer_wakeup)

Power domain activity breakdown
Domain  | % of time spent in states
--------+---------+---------+---------+---------+----------
usbhost |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)
    sgx |OFF:  97%|RET:   0%|INA:   0%| ON:   2%| now:(OFF)
    per |OFF:  96%|RET:   1%|INA:   0%| ON:   2%| now:(ON)
    dss |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)
    cam |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)
   core |OFF:   0%|RET:  94%|INA:   1%| ON:   4%| now:(ON)
   neon |OFF:   0%|RET:  96%|INA:   1%| ON:   2%| now:(ON)
    mpu |OFF:   0%|RET:  96%|INA:   1%| ON:   2%| now:(ON)
   iva2 |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)

Clock activity breakdown at end of period
Domain  | Active clocks
--------+---------------+---------------+------------------
   core |          SDRC | HSOTGUSB_IDLE |      OMAPCTRL 
        |     MAILBOXES |
   wkup |          GPT1 |       32KSYNC |         GPIO1 
        |           SR1 |           SR2 |
  ckgen |          CORE |          PERI |           96M 
        |           48M |           12M |           54M 
        |      EMU_CORE |
    per |         GPIO2 |         GPIO3 |         GPIO4 
        |         GPIO5 |         GPIO6 |

Total wakeups  1096,  36.5/s | IRQ  780,  26.0/s | Timers  316,  10.5/s
HW wakeups      182,   6.1/s |     Real gp_timers expired  254,   8.5/s
~ $
AIS NOT Installed
Code:
$ sudo powertop
Powertop 1.13.3
status: Unknown job: pmtrackerdaemon
Sleeping for 11 seconds before sampling
Collecting data for 30 seconds
Sample interval was 00m 30s 33325us

C#      | Ratio  | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
     C0 |   0.5% |          |  1150 MHz |   nan% |
     C1 |   0.0% |    0.3ms | 
     C2 |   0.4% |    3.8ms | 
     C3 |   2.1% |   70.1ms | 
     C4 |  97.0% | 2080.5ms | 

IRQ#    | Activity   | Type           | Name
--------+------------+----------------+---------------------------
     56 |        166 |           INTC | i2c_omap
     37 |         44 |           INTC | gp
     57 |         34 |           INTC | i2c_omap
     11 |         28 |           INTC | prcm
     12 |         26 |           INTC | DMA
     86 |         23 |           INTC | mmc1
    225 |          7 |           GPIO | omap2-onenand
     21 |          2 |           INTC | SGX

PID#    | Activity   | Name           | Function Entry (Expire)
--------+------------+----------------+---------------------------
      0 |         20 |  <kernel core> | tick_nohz_restart_sched_tick (tick_sched_timer)
     38 |         12D|            awk | cpufreq_governor_dbs (delayed_work_timer_fn)
      0 |          9 |  <kernel core> | hrtimer_start (tick_sched_timer)
    905 |          6 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    638 |          5 |          mmcqd | queue_delayed_work (delayed_work_timer_fn)
   1868 |          3 |     osso-xterm | schedule_hrtimeout_range (hrtimer_wakeup)
      1 |          3D|  <kernel core> | queue_delayed_work (delayed_work_timer_fn)
   1826 |          2 |       browserd | futex_wait (hrtimer_wakeup)
    739 |          2D|<kernel module> | queue_delayed_work (delayed_work_timer_fn)
    905 |          2 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    905 |          2 |      bme_RX-51 | do_nanosleep (hrtimer_wakeup)
    905 |          2 |      bme_RX-51 | schedule_timeout (process_timeout)
    711 |          2 |           dsme | do_nanosleep (hrtimer_wakeup)
    711 |          2 |           dsme | __enqueue_rt_entity (sched_rt_period_timer)
    970 |          1 |            mce | schedule_hrtimeout_range (hrtimer_wakeup)
   1416 |          1 |       wlancond | schedule_timeout (process_timeout)
   1416 |          1 |       wlancond | queue_delayed_work (delayed_work_timer_fn)
    638 |          1 |          mmcqd | cfq_completed_request (cfq_idle_slice_timer)
   1416 |          1 |       wlancond | ieee80211_ioctl_siwpower (ieee80211_dynamic_ps_timer)
    638 |          1 |          mmcqd | laptop_io_completion (laptop_timer_fn)
      0 |          1 |  <kernel core> | queue_delayed_work (delayed_work_timer_fn)
   1872 |          1 |       powertop | do_nanosleep (hrtimer_wakeup)

Power domain activity breakdown
Domain  | % of time spent in states
--------+---------+---------+---------+---------+----------
usbhost |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)
    sgx |OFF:  99%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)
    per |OFF:  98%|RET:   0%|INA:   0%| ON:   0%| now:(ON)
    dss |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)
    cam |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)
   core |OFF:  96%|RET:   1%|INA:   0%| ON:   1%| now:(ON)
   neon |OFF:  96%|RET:   2%|INA:   0%| ON:   0%| now:(ON)
    mpu |OFF:  96%|RET:   2%|INA:   0%| ON:   0%| now:(ON)
   iva2 |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)

Clock activity breakdown at end of period
Domain  | Active clocks
--------+---------------+---------------+------------------
   core |          SDRC | HSOTGUSB_IDLE |      OMAPCTRL 
        |     MAILBOXES |
   wkup |          GPT1 |       32KSYNC |         GPIO1 
        |           SR1 |           SR2 |
  ckgen |          CORE |          PERI |           96M 
        |           48M |           12M |           54M 
        |      EMU_CORE |
    per |         GPIO2 |         GPIO3 |         GPIO4 
        |         GPIO5 |         GPIO6 |

Total wakeups   410,  13.7/s | IRQ  330,  11.0/s | Timers   80,   2.7/s
HW wakeups       28,   0.9/s |     Real gp_timers expired   44,   1.5/s
~ $
Not hitting C4 makes AIS pointless for me.
All them nice features and statusbar tidiness is just not worth the battery drain.


I advise we continue any further discussion in the AIS main thread.
http://talk.maemo.org/showthread.php?t=60473
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 3 Users Say Thank You to sixwheeledbeast For This Useful Post:
Posts: 15 | Thanked: 6 times | Joined on Feb 2011
#24
Hi sixwheeledbeast,

I had just read your thread when you posted in that other one.

So we're into something similar, except that it's the first time for me.
I'm without wifi since the beginning of August. Everything worked well until then.
I had installed Eyrie and Linux Kernel for Power Users 0.16 around the day it stopped working, they are now both uninstalled.

I reconfigured and tried many times to make my router at home work, only to realize several days later that it was my N900 that would simply not connect to anything. I tried with free wifis, WEP and WPA protected wifis.

Similarly to you:

  • - "ifconfig" is missing wlan0 but "ifconfig wlan0" or "ifconfig" after doing wlan0 up displays wlan0.
  • - dmesg is repeating

    Code:
    wl1251: down
    wl1251: 151 tx blocks at 0x3b788, 35 rx blocks at 0x3a780
    wl1251: firmware booted ( rev4.0.4.3.7)
    Code:
    wlan0: direct probe to AP <...> try 1
    wlan0: direct probe to AP <...> try 2
    wlan0: direct probe to AP <...> try 3
    wlan0: direct probe to AP <...> timed out
    wlan0: direct probe to AP <...> try 1
    ...
    After booting, I have

    Code:
    wl12xx spi4.0: firmware: requesting wl1251-fw.bin
    wl12xx spi4.0: firmware: requesting wl1251-nvs.bin
    I had "ADDRCONF (NETDEV_UP): wlan0: link is not ready" at first, but it disappeared after I reinstalled osso-wlan* and removed the SIM card and battery.

  • - never used autodisconnect, but wlan switcher, and now wlan driver selecter applet
  • - no networks displayed in WifiInfo or WifiEye, while they are there in the connection manager and with "iwlist wlan0 scan"
  • - no overclocking
I moved to KPv51, and whether I have the bleeding edge drivers or not (v0.1 and 0.2), it never connects.
Connecting to internet with the SIM card works as it used to be.

I tried "rmmod wl12xx" then "modprobe wl12xx", taking wlan0 down and up, mode: managed, but it doesn't change the behavior.

What else could we try?
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#25
Have you tried a power down battery out for 10 minutes then reboot?
It doesn't work out the problem but normally fixed it for me.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 2 Users Say Thank You to sixwheeledbeast For This Useful Post:
Posts: 15 | Thanked: 6 times | Joined on Feb 2011
#26
Just tried, 30 minutes without battery, nothing changed: it still times out, no matter how close the N900 is to the router.

I also restored the Settings parts of a backup made slightly before the problem, the only thing it did is to delete my emails.

I'm running out of ideas
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#27
Out of interest what's your "sudo powertop" look like?

Have you tried switching off Power Saving in the Settings?
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 
Posts: 15 | Thanked: 6 times | Joined on Feb 2011
#28
Yes, Power saving Off doesn't change either.

I looked for powertop but don't have it, and apt-get doesn't find it either even in the devel repository. If you tell me how to get it I can post a log.
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#29
in devel AFAIK

maemo.org/packages/view/powertop
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 15 | Thanked: 6 times | Joined on Feb 2011
#30
In the meantime I restored RootFS and OptFS from backupmenu, I had done a backup just in May. I had many errors ("timestamp .... in the future") but it said at the end that the restore had been done successfully.

It just led to a reboot loop So now the wifi is no longer my main problem ...
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 10:07.