Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179269 - sys-power/powertop works on arm
Summary: sys-power/powertop works on arm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: ARM Linux
: High enhancement (vote)
Assignee: Gentoo ARM Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-20 20:30 UTC by Alexey Shvetsov
Modified: 2007-06-24 23:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Shvetsov archtester gentoo-dev 2007-05-20 20:30:35 UTC
emerge --info
Portage 2.1.2.7 (default-linux/arm/2007.0, gcc-4.1.2, glibc-2.5-r2, 2.6.21-hh0 armv5tel)
=================================================================
System uname: 2.6.21-hh0 armv5tel XScale-PXA270 rev 7 (v5l)
Gentoo Base System release 2.0.0_alpha3
Timestamp of tree: Sun, 20 May 2007 10:30:01 +0000
distcc 2.18.3 armv5te-softfloat-linux-gnueabi (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.61
sys-devel/automake:  1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.16
sys-devel/gcc-config: 1.4.0
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="arm ~arm"
AUTOCLEAN="yes"
CBUILD="armv5te-softfloat-linux-gnueabi"
CFLAGS="-Os -pipe -march=armv5te -mtune=iwmmxt -fomit-frame-pointer"
CHOST="armv5te-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-Os -pipe -march=armv5te -mtune=iwmmxt -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg candy distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="ru en"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl alsa apm arm bash-completion berkdb bitmap-fonts bzip2 cli cracklib crypt cups glibc-omitfp iconv ipv6 isdnlog midi ncurses nls no-old-linux nptl nptlonly openmp pam pcre perl ppds pppd profile python readline reflection session slang spl ssl tcpd truetype-fonts type1-fonts ucs2 unicode wifi xattr xcb xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always
Comment 1 Christian Merkle 2007-05-23 20:58:05 UTC
Could you please post the output of 

cat /proc/acpi/processor/*/power

Thanks.
Comment 2 Alexey Shvetsov archtester gentoo-dev 2007-05-23 21:23:31 UTC
There is no acpi support on this platform (hp IPAQ hx4700)
Only apm emulation =)
Comment 3 Christian Merkle 2007-05-24 15:45:52 UTC
Does PowerTop show any C-States or Power Usage like on: 

http://www.linuxpowertop.org/Screenshot.png

?
Comment 4 Alexey Shvetsov archtester gentoo-dev 2007-05-24 20:45:25 UTC
< Detailed C-state information is only available on Mobile CPUs (laptops) >


Top causes for wakeups:
  85.6% (733.6)       <interrupt> : DMA
  11.7% (100.4)       <interrupt> : PXA Timer Tick
   0.9% ( 8.0)       <interrupt> : ds1wm
   0.6% ( 5.0)     <kernel core> : fbcon_add_cursor_timer (cursor_timer_handl
   0.3% ( 2.4)       <interrupt> : ide0
   0.2% ( 2.0)     <kernel core> : ledtrig_ide_activity (ledtrig_ide_timerfun
   0.1% ( 1.0)              ntpd : do_setitimer (it_real_fn)
   0.1% ( 1.0)        w1_control : schedule_timeout (process_timeout)
   0.1% ( 0.6)              nscd : schedule_timeout (process_timeout)
   0.0% ( 0.4)     <kernel core> : neigh_table_init_no_netlink (neigh_periodi

Suggestion: Enable the CONFIG_NO_HZ kernel configuration option.
This option is required to get any kind of longer sleep times in the CPU.
Comment 5 Christian Merkle 2007-05-24 22:20:47 UTC
Seems to work fine (with less detailes because of missing C-States). Should be okay to add ~ARM to the ebuild.

Btw. PowerTop 1.4 will have i18n support and an ncurses "gui".
Comment 6 SpanKY gentoo-dev 2007-06-24 23:46:05 UTC
added arm love to the tree, thanks for testing