truncated display of interrupt sources

Sebastian Kuzminsky seb at highlab.com
Tue May 15 11:55:32 PDT 2007


Hi folks, the top wakeup source for me (when in X) is interrupts from
my ATI Radeon graphics card.  (Probable bug in the open source ati Xorg
driver, as noted by Ricardo Martin and Adam Jackson.)

Top causes for wakeups:
  64.0% (60.0)       <interrupt> : uhci_hcd:usb1, ehci_hcd:usb5, Intel ICH6, eth0, radeon at pci:0
   

As you can see, the line is getting truncated.  The corresponding line
from /proc/interrupts is this:

 16:     711943   IO-APIC-fasteoi   uhci_hcd:usb1, ehci_hcd:usb5, Intel ICH6, eth0, radeon at pci:0000:01:00.0


At first i thought powertop was trying to fit in an 80-column terminal
(as per the header bar), but even the truncated source description
overflows that.

Arjan, would you accept a patch switching powertop to use curses?
This would remove the VT100 (?) control codes sprinkled throughout the
code, and it would let us query the terminal width and do intelligent
truncating only when needed.


-- 
Sebastian Kuzminsky



More information about the Power mailing list