Re: [orca-list] many cpu wakeups with orca



Hi Halim:

This *might* be due to an idle handler in pyatspi.registry that manages the Python GIL. This idle handler is called on the gidle thread (when the machine is supposedly idle), and looks like the following:

    if gil:
      def releaseGIL():
        try:
          time.sleep(1e-5)
        except KeyboardInterrupt, e:
          # store the exception for later
          releaseGIL.keyboard_exception = e
          self.stop()
        return True
      # make room for an exception if one occurs during the
      releaseGIL.keyboard_exception = None
      i = gobject.idle_add(releaseGIL)

If you want to experiment, you can try a couple different things. In Orca's orca.py module, change the line "registry.start()" to "registry.start(gil=False)". Or, you can try chani
Halim Sahin wrote:
Hi,

I have checked the cpu on my laptop with powertop and found the following:


Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        (66.3%)         1400 Mhz     0.0%
polling           0.0ms ( 0.0%)         1200 Mhz     0.0%
C1                0.1ms (33.7%)         1000 Mhz     0.0%
C2                0.0ms ( 0.0%)          700 Mhz     0.0%
                                         500 Mhz   100.0%

Wakeups-from-idle per second : 5387.2   interval: 5.0s
no ACPI power usage estimate available

Top causes for wakeups:
  99.6% (5429.0)            python : schedule_hrtimeout_range (hrtimer_wakeup)
   0.2% (  9.4)       <interrupt> : uhci_hcd:usb1, yenta, eth0, 0000:02:00.0
   0.2% (  8.8)       <interrupt> : pata_via
   0.0% (  1.0)           rt61pci : queue_delayed_work (delayed_work_timer_fn)
   0.0% (  1.0)     <kernel core> : neigh_table_init_no_netlink (neigh_periodic_
   0.0% (  0.8)   hald-addon-stor : schedule_hrtimeout_range (hrtimer_wakeup)
   0.0% (  0.4)       gvfsd-trash : schedule_hrtimeout_range (hrtimer_wakeup)

This means that the cpu can't never save power and runs always with 1400 mhz.

I have stopped all other python processes.

Orca is 2.26.1 under ubuntu.
Any chance to fix this?
The current setup is not very usable on laptops.
It will discharge the batery very fast.
Any ideas?
Regards
Halim

_______________________________________________
Orca-list mailing list
Orca-list gnome org
http://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca.
The manual is at http://library.gnome.org/users/gnome-access-guide/nightly/ats-2.html
The FAQ is at http://live.gnome.org/Orca/FrequentlyAskedQuestions
Netiquette Guidelines are at http://live.gnome.org/Orca/FrequentlyAskedQuestions/NetiquetteGuidelines




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]