Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOW-TO] Reduce Power Usage
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Wed Jun 13, 2007 7:40 pm    Post subject: Reply with quote

riverdragon wrote:

lavish, la voce nel menu è proprio scomparsa; ho ricompilato firefox "ufficiale" ed ora è tornata. Non riesco a capire come mai.


credo che la risposta stia qui...
Code:
onip @ Hal9000 ~ $ ls /usr/portage/www-client/mozilla-firefox/files/
firefox.1  gentoo-default-prefs.js  icon  mozilla-filepicker.patch
onip @ Hal9000 ~ $ ls /usr/portage/www-client/mozilla-firefox/files/icon/
firefox-icon.png            mozilla-firefox-1.5.desktop
firefox-icon-unbranded.png  mozilla-firefox-1.5-unbranded.desktop


prova a copiare nella dir files dell'overlay tutti i file richiamati dall'ebuild di lavish, aiutandoti con
Code:
onip @ Hal9000 ~ $ grep FILESDIR /usr/portage/www-client/mozilla-firefox/mozilla-firefox-2.0.0.4.ebuild
                epatch ${FILESDIR}/mozilla-filepicker.patch
                doicon "${FILESDIR}"/icon/firefox-icon.png
                newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5.desktop \
                doicon "${FILESDIR}"/icon/firefox-icon-unbranded.png
                newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5-unbranded.desktop \
        newins "${FILESDIR}"/gentoo-default-prefs.js all-gentoo.js
        newins "${FILESDIR}"/gentoo-default-prefs.js all-gentoo.js


Byez
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Thu Jun 14, 2007 9:59 am    Post subject: Reply with quote

@lavish: ottimo post, tuttavia io non riesco a scendere al di sotto dello steto C2 pur usando un kernel 2.6.22 e le patch allegate.... Ho letto sul sito di powertop che potrebbe essere dovuto al driver ipw2200, ma ora mia sorge una domanda: tu che scheda wireless hai ? No perche' ne ho visti pochi di portatili (pentium-m dothan senza una scheda ipw2200)
Grazie mille :D

Ciao
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Thu Jun 14, 2007 10:28 am    Post subject: Reply with quote

ipw2200 :)
Ma anche se produce un bel po' di wakeups/s (~15) riesco tranquillamente a stare la maggior parte del tempo in C4

Mi posti l'output di powertop?
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
riverdragon
Veteran
Veteran


Joined: 14 Sep 2006
Posts: 1269
Location: Verona

PostPosted: Thu Jun 14, 2007 12:10 pm    Post subject: Reply with quote

Onip aveva ragione, copiando i file anche la voce nel menu rimane. Dovresti aggiornare il primo post, lavish, e aggiungere un
Code:
cp -r /usr/portage/www-client/mozilla-firefox/files/* /usr/local/portage/www-client/mozilla-firefox/files
prima del digest.
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Thu Jun 14, 2007 12:17 pm    Post subject: Reply with quote

lavish wrote:
ipw2200 :)
Ma anche se produce un bel po' di wakeups/s (~15) riesco tranquillamente a stare la maggior parte del tempo in C4

Mi posti l'output di powertop?

Code:

Cn          Avg residency (5s)  Long term residency avg
C0 (cpu running)        ( 2.7%)
C1                0.0ms ( 0.0%)                   0.0ms
C2                6.2ms (97.3%)                   6.2ms
C3                0.0ms ( 0.0%)                   0.0ms
C4                0.0ms ( 0.0%)                   0.0ms

Wakeups-from-idle per second : 156.6
no ACPI power usage estimate available

Top causes for wakeups:
  23.9% ( 49.8)                 X : do_setitimer (it_real_fn)
  23.9% ( 49.8)         syndaemon : do_nanosleep (hrtimer_wakeup)
   8.0% ( 16.6)    gnome-terminal : schedule_timeout (process_timeout)
   6.9% ( 14.4)          epiphany : futex_wait (hrtimer_wakeup)
   6.7% ( 14.0)       <interrupt> : libata
   6.3% ( 13.2)       <interrupt> : uhci_hcd:usb1, uhci_hcd:usb2, uhci_hcd:usb3,
 ehci_hcd:usb4


e all'avvio appare questo messaggio, di cui non ho capito ne la funzione ne se sia bene o male:

Code:

Marking TSC unstable due to: possible TSC halt in C2.
Time: hpet clocksource has been installed.


EDIT: Togliendo il modulo uhci_hcd riesco anche io a raggiungere lo stato c4...... ma devo rinunciare al mouse usb.
Che voi sappiate esiste una soluzione ?
Back to top
View user's profile Send private message
Guglie
Apprentice
Apprentice


Joined: 01 Mar 2004
Posts: 240
Location: switzerland - zürich

PostPosted: Fri Jun 15, 2007 8:13 am    Post subject: Reply with quote

ho messo il kernel patchato 2.6.22-rc4-hrt7: il consumo si è abbassato un po', ma purtroppo sono sempre molto al di sopra dei vostri consumi :(
Code:
Cn          Avg residency (10s) Long term residency avg
C0 (cpu running)        ( 2.1%)
C1                0.0ms ( 0.0%)                   0.0ms
C2                0.2ms ( 0.8%)                   1.6ms
C3                0.3ms ( 0.9%)                   0.3ms
C4                4.0ms (96.1%)                   4.3ms

Wakeups-from-idle per second : 310.7
Power usage (ACPI estimate): 14.1W (1.7 hours) (long term: 16.1W,/1.5h)

Top causes for wakeups:
  33.6% (108.9)       <interrupt> : i8042
  20.8% ( 67.3)       <interrupt> : acpi
  18.7% ( 60.7)       <interrupt> : ehci_hcd:usb1, uhci_hcd:usb2, uhci_hcd:usb3, uhci_hcd:
   6.4% ( 20.8)     <kernel core> : hdaps_init (hdaps_mousedev_poll) 0000:01:00.0
   5.2% ( 17.0)   xfce4-battery-p : schedule_timeout (process_timeout)
   4.7% ( 15.3)       <interrupt> : extra timer interrupt
   3.2% ( 10.5)                 X : do_setitimer (it_real_fn)
   2.6% (  8.5)        orageclock : schedule_timeout (process_timeout)
   1.3% (  4.3)             urxvt : schedule_timeout (process_timeout)
   1.1% (  3.5)   xfce-mcs-manage : schedule_timeout (process_timeout)
   0.7% (  2.4)       <interrupt> : ide0
   0.6% (  2.0)          cpufreqd : queue_delayed_work_on (delayed_work_timer_fn)

i maggiori wakeups sono acpi (potrebbe essere a causa thinkpad_acpi, che spero che fra un po' correggeranno) e i8042, che da quanto ho capito dovrebbe essere la tastiera (!), ma non riesco a eliminarlo nella configurazione del kernel.
per i vari ehci_hcd:* non saprei che fare (CONFIG_USB_SUSPEND è abilitato)
_________________
A! Elbereth Gilthoniel! silivren penna míriel o menel aglar elenath!
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Fri Jun 15, 2007 8:53 am    Post subject: Reply with quote

L'unica cosa da fare e' killare tutti i processi attivi, partendo da una configurazione minimale e attivarli uno a uno per vedere cos'e' la causa dei wakeups.
Quelli dovuti a i8042 sono generati da mouse e tastiera e non influiscono molto sul consumo energetico. Prova ad attendere una decina di secondi con powertop attivo Guglie, vedrai che spariranno ;)

Riguardo ai wakeups dell'ACPI, si', e' vero che thinkpad_acpi genera qualcosa, ma non certo 60/s. Molto probabilmente stai usando un system monitor che fa refresh selvaggi. Per questo il mio sysmonitor e' uno script sh con frequenza di aggiornamento ogni 5 secondi. Consideranto tutti i wakeups che genere ad ogni ciclo, complessivamente acpi da me sta fra 0.5-1 wakeup/s.

hdaps e' una gran figata, ma per cosa lo usi? Se non e' necessario puoi toglierlo... io lo carico solo quando mi serve.

Ultima cosa che vale sia per Guglie che per MeMyselfAndI: powertop puo' generare output parecchio strani a volte.. per esempio oggi mi segnava 300 wakeups/s su
Code:
ehci_hcd:usb1, uhci_hcd:usb2, uhci_hcd:usb3, uhci_hcd:usb4, ipw2200, radeon@pci:0000:01:00.0, Intel 82801DB-ICH4, eth0
mentre stavo scaricando da firefox.
Poi ho capito che era giusto cosi' perche' non era ff a generarli ma ipw2200.

Si tratta solo di provare piu' e piu' configurazioni ;)

Cheers
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
Guglie
Apprentice
Apprentice


Joined: 01 Mar 2004
Posts: 240
Location: switzerland - zürich

PostPosted: Fri Jun 15, 2007 10:37 am    Post subject: Reply with quote

lavish wrote:
L'unica cosa da fare e' killare tutti i processi attivi, partendo da una configurazione minimale e attivarli uno a uno per vedere cos'e' la causa dei wakeups.

avevi ragione: ho tolto xfce4-battery-panel e i wapeups di acpi sono scesi drasticamente. con la patch di radeon sono scesi pure quelli di ehci:*. hdaps l'ho messo come modulo e i wakeups di i8042 effettivamente non sembrano influire molto sul consumo.

grazie mille lavish ;)

Code:
     PowerTOP version 1.6       (C) 2007 Intel Corporation

Cn          Avg residency (20s) Long term residency avg
C0 (cpu running)        ( 0.1%)
C1                0.0ms ( 0.0%)                   0.0ms
C2                0.0ms ( 0.0%)                   3.3ms
C3                1.1ms ( 0.0%)                   0.7ms
C4               61.0ms (99.8%)                  10.9ms

Wakeups-from-idle per second : 16.4
Power usage (ACPI estimate): 13.4W (2.0 hours) (long term: 15.1W,/1.7h)

Top causes for wakeups:
  23.8% (  4.0)             urxvt : schedule_timeout (process_timeout)
  12.5% (  2.1)       <interrupt> : acpi
  11.9% (  2.0)          cpufreqd : queue_delayed_work_on (delayed_work_timer_fn)
  11.9% (  2.0)   xfce-mcs-manage : schedule_timeout (process_timeout)
  11.9% (  2.0)                 X : do_setitimer (it_real_fn)
   6.0% (  1.0)       xfce4-panel : schedule_timeout (process_timeout)
   4.8% (  0.8)       <interrupt> : extra timer interrupt
   3.0% (  0.5)       <interrupt> : ehci_hcd:usb1, uhci_hcd:usb2, uhci_hcd:usb3, uhci_hcd:
   3.0% (  0.5)     <kernel core> : queue_delayed_work_on (delayed_work_timer_fn) 1:00.0
   3.0% (  0.5)                ip : e1000_intr (e1000_watchdog)
   2.1% (  0.3)          cpufreqd : do_setitimer (it_real_fn)
   1.5% (  0.2)     <kernel core> : neigh_table_init_no_netlink (neigh_periodic_timer)

_________________
A! Elbereth Gilthoniel! silivren penna míriel o menel aglar elenath!
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sat Jun 16, 2007 12:35 pm    Post subject: Reply with quote

Aggiornato l'how-to ad hrt10 e aggiunto NO_HZ per amd64 (disponibile gia' da 2.6.22-rc4 e non da 2.6.23, come detto in precedenza da Linus :? )
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
drizztbsd
Retired Dev
Retired Dev


Joined: 21 Nov 2004
Posts: 278
Location: Cesano Maderno

PostPosted: Sun Jun 17, 2007 1:13 pm    Post subject: Reply with quote

Attenzione che il 2.6.22_rc4 non crea /dev/loop da solo.
Per sistemare sto problemino:
Code:
wget http://dev.gentoo.org/~drizzt/trash/loop.tar.bz2 ; sudo tar xpf loop.tar.bz2 -C /dev ; sudo tar xpf loop.tar.bz2 -C /lib/udev/devices

p.s. cancellate la roba in /lib/udev/devices quando fixxeranno il problema
_________________
Gentoo/Alt lead
Gentoo/*BSD and Gentoo/FreeBSD deputy lead
Paludis contributor
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Sun Jun 17, 2007 4:58 pm    Post subject: Reply with quote

Drizzt Do` Urden wrote:
Attenzione che il 2.6.22_rc4 non crea /dev/loop da solo.
Per sistemare sto problemino:
Code:
wget http://dev.gentoo.org/~drizzt/trash/loop.tar.bz2 ; sudo tar xpf loop.tar.bz2 -C /dev ; sudo tar xpf loop.tar.bz2 -C /lib/udev/devices

p.s. cancellate la roba in /lib/udev/devices quando fixxeranno il problema


non mi prendo responsabilità, ma ecco un ebuild che automizza la cosa:
Code:

-- DEPRECATO : vedi post successivo! --

cassini powersave-sources # cat /usr/portage/local/comio/sys-kernel/powersave-sources/powersave-sources-2.6.22_rc4.ebuild
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $$

ETYPE="sources"
#K_WANT_GENPATCHES="base extras"
#K_GENPATCHES_VER="1"
K_NOSETEXTRAVERSION="yes"
K_SECURITY_UNSUPPORTED="1"

inherit kernel-2
detect_version
detect_arch

DESCRIPTION="Software Suspend 2 + Gentoo patchset sources + HRTimers"
HOMEPAGE="http://forums.gentoo.org/viewtopic-t-564588.html"

SUSPEND2_VERSION="2.2.10.1"
SUSPEND2_TARGET="2.6.22-rc4"
SUSPEND2_SRC="suspend2-${SUSPEND2_VERSION}-for-${SUSPEND2_TARGET}"
SUSPEND2_URI="http://www.suspend2.net/downloads/all/${SUSPEND2_SRC}.patch.bz2"

HRTIMERS_VERSION="11"
HRTIMERS_TARGET="2.6.22-rc4"
HRTIMERS_SRC="patch-${HRTIMERS_TARGET}-hrt${HRTIMERS_VERSION}"
HRTIMERS_URI="http://www.tglx.de/projects/hrtimers/${HRTIMERS_TARGET}/${HRTIMERS_SRC}.patch"

OTHERS_SRC="radeon_vblanks.patch"
OTHERS_URI="http://www.minimalblue.com/ftp/public/linux/powersave-patches/radeon_vblanks.patch"

DRIZZT_PATCH_SRC="loop"
DRIZZT_PATCH_URI="http://dev.gentoo.org/~drizzt/trash/${DRIZZT_PATCH_SRC}.tar.bz2"

UNIPATCH_LIST="${DISTDIR}/${HRTIMERS_SRC}.patch ${DISTDIR}/${OTHERS_SRC} ${DISTDIR}/${SUSPEND2_SRC}.patch.bz2"
UNIPATCH_STRICTORDER="yes"
SRC_URI="${KERNEL_URI} ${SUSPEND2_URI} ${HRTIMERS_URI} ${OTHERS_URI} ${DRIZZT_PATCH_URI}"

KEYWORDS="~amd64 ~x86"

RESTRICT=""

RDEPEND="${RDEPEND}
                >=sys-apps/suspend2-userui-0.7.1
                >=sys-power/hibernate-script-1.95"

K_EXTRAEINFO="If there are issues with this kernel, please direct any
queries to the suspend2-users mailing list:
http://lists.suspend2.net/mailman/listinfo/suspend2-users/"

src_unpack() {
        kernel-2_src_unpack
}

src_install() {
        kernel-2_src_install
        einfo "dodir..."
#       dodir /dev
        dodir /lib/udev/devices
        einfo "tar"
#       tar xpf ${DISTDIR}/${DRIZZT_PATCH_SRC}.tar.bz2 -C ${D}/dev
        tar xpf ${DISTDIR}/${DRIZZT_PATCH_SRC}.tar.bz2 -C ${D}/lib/udev/devices
}

pkg_postinst() {
        kernel-2_pkg_postinst
        einfo "For more info on this patchset, and how to report problems, see:"
        einfo "${HOMEPAGE}"
}

_________________
RTFM!!!!

e

http://www.comio.it
:)


Last edited by comio on Tue Jun 19, 2007 7:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
drizztbsd
Retired Dev
Retired Dev


Joined: 21 Nov 2004
Posts: 278
Location: Cesano Maderno

PostPosted: Mon Jun 18, 2007 12:50 pm    Post subject: Reply with quote

Update
È uscito il kernel 2.6.22_rc5 che sistema il problema del /dev/loop
Ho aggiunto nel mio overlay l'ebuild per hrt1 + suspend2 + radeon porchetta: http://overlays.gentoo.org/dev/drizzt/browser/sys-kernel/powersave-sources/powersave-sources-2.6.22_rc5.ebuild
_________________
Gentoo/Alt lead
Gentoo/*BSD and Gentoo/FreeBSD deputy lead
Paludis contributor
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Tue Jun 19, 2007 5:05 pm    Post subject: Reply with quote

Drizzt Do` Urden wrote:
Update
È uscito il kernel 2.6.22_rc5 che sistema il problema del /dev/loop
Ho aggiunto nel mio overlay l'ebuild per hrt1 + suspend2 + radeon porchetta: http://overlays.gentoo.org/dev/drizzt/browser/sys-kernel/powersave-sources/powersave-sources-2.6.22_rc5.ebuild


Il kernel 2.6.22 si porta un po' di cambiamenti dietro. Ho fatto un paio di patch per le cose che uso:

patch per vmware-modules-1.0.0.15-r1 (serve per vmware-server):

http://www.comio.it/patch/vmware-modules-1.0.0.15-r1-kernel-2.6.22.patch

patch per vmware-modules-1.0.0.16 (serve per vmware-workstation e player):

http://www.comio.it/patch/vmware-modules-1.0.0.16-kernel-2.6.22.patch

patch per at-drivers-8.37.6-r1:

http://www.comio.it/patch/ati-drivers-8.37.6-r1-ioctl32.patch

Io ho usato autopatch di bashrc-ng per applicare le patch in oggetto.

ciao

luigi
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Tue Jun 19, 2007 7:10 pm    Post subject: Reply with quote

Drizzt Do` Urden wrote:
Update
È uscito il kernel 2.6.22_rc5 che sistema il problema del /dev/loop
Ho aggiunto nel mio overlay l'ebuild per hrt1 + suspend2 + radeon porchetta: http://overlays.gentoo.org/dev/drizzt/browser/sys-kernel/powersave-sources/powersave-sources-2.6.22_rc5.ebuild


drizzt dovresti aggiustare il link. Inoltre ho notato un errore nell'espressione regolare per avere il numero di versione per hrt. Comunque non condivido di creare una "funzione" fra la revisione "-rX" ed il numero di versione di hrt. Il pacchetto ha dipendenze anche da suspend2 e da altre patch... diventa duro poi fare una revisione se qualche patch (non hrt) viene aggiornata. Preferisco quindi una gestione manuale :)

imho

ciao
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Tue Jul 10, 2007 12:28 pm    Post subject: Reply with quote

Per chi fosse interessato, questo è l'ebuild del kernel che uso (powersave-sources-2.6.22.ebuild).

Feauture:

  • Kernel Linux 2.6.22
  • Gentoo Patches
  • Suspend2 2.2.10.2
  • High Resolution Timers patch
  • Radeon vblanks patch
  • Enable C3 patch e Bit Timers patch (da Powertop)


Code:

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:$

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="1"
K_NOSETEXTRAVERSION="yes"
K_SECURITY_UNSUPPORTED="1"

inherit kernel-2
detect_version
detect_arch

DESCRIPTION="Software Suspend 2 + HRTimers"
HOMEPAGE="http://forums.gentoo.org/viewtopic-t-564588.html"

SUSPEND2_VERSION="2.2.10.2"
SUSPEND2_TARGET="2.6.22-rc6"
SUSPEND2_SRC="suspend2-${SUSPEND2_VERSION}-for-${SUSPEND2_TARGET}"
SUSPEND2_URI="http://www.suspend2.net/downloads/all/${SUSPEND2_SRC}.patch.bz2"

HRTIMERS_VERSION=1
HRTIMERS_TARGET="2.6.22"
HRTIMERS_SRC="patch-${HRTIMERS_TARGET}-hrt${HRTIMERS_VERSION}"
HRTIMERS_URI="http://www.tglx.de/projects/hrtimers/${HRTIMERS_TARGET}/${HRTIMERS_SRC}.patch"

RADEON_SRC="radeon_vblanks"
RADEON_URI="http://www.minimalblue.com/ftp/public/linux/powersave-patches/${RADEON_SRC}.patch"

ENABLEC3_SRC="enablec3"
ENABLEC3_URI="http://www.linuxpowertop.org/patches/${ENABLEC3_SRC}.patch"

BGTIMERS_SRC="kernel-2.6.22-rc1"
BGTIMERS_URI="http://www.linuxpowertop.org/patches/${BGTIMERS_SRC}.patch"

UNIPATCH_LIST="${DISTDIR}/${HRTIMERS_SRC}.patch ${DISTDIR}/${RADEON_SRC}.patch
        ${DISTDIR}/${BGTIMERS_SRC}.patch ${DISTDIR}/${SUSPEND2_SRC}.patch.bz2
        ${DISTDIR}/${ENABLEC3_SRC}.patch "

UNIPATCH_STRICTORDER="yes"
SRC_URI="${KERNEL_URI} ${SUSPEND2_URI} ${HRTIMERS_URI} ${RADEON_URI}
        ${BGTIMERS_URI} ${ENABLEC3_URI}
        ${GENPATCHES_URI} ${ARCH_URI}"

KEYWORDS="~amd64 ~x86"

RDEPEND="${RDEPEND}
                >=sys-apps/suspend2-userui-0.7.1
                >=sys-power/hibernate-script-1.95"

pkg_postinst() {
        kernel-2_pkg_postinst
        einfo "For more info on this patchset, and how to report problems, see:"
        einfo "${HOMEPAGE}"
}

_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Tue Jul 10, 2007 12:35 pm    Post subject: Reply with quote

Ottimo comio! Attualmente sono con l'rc7, ma aggiorno in serata con il tuo ebuild :)
Solo un piccolo appunto "cosmetico": suspend2 ha cambiato nome in tuxonice

Ciao!
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Wed Jul 11, 2007 7:10 pm    Post subject: Reply with quote

lavish wrote:
Ottimo comio! Attualmente sono con l'rc7, ma aggiorno in serata con il tuo ebuild :)
Solo un piccolo appunto "cosmetico": suspend2 ha cambiato nome in tuxonice

Ciao!


se cambiate questa riga:
Code:

K_GENPATCHES_VER="1"

in
Code:

K_GENPATCHES_VER="2"


avete la -r1
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Wed Jul 11, 2007 7:52 pm    Post subject: Reply with quote

comio, ma a te funziona? Qui non applica la patch per BGTIMERS...
Ho fatto un ebuild pure io, ma per decenza non lo posto (sarebbe il terzo :P)
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Wed Jul 11, 2007 8:13 pm    Post subject: Reply with quote

lavish wrote:
comio, ma a te funziona? Qui non applica la patch per BGTIMERS...
Ho fatto un ebuild pure io, ma per decenza non lo posto (sarebbe il terzo :P)


Code:

>>> Unpacking linux-2.6.22.tar.bz2 to /var/tmp/portage/sys-kernel/powersave-sources-2.6.22-r1/work
 * genpatches-2.6.22-2.base.tar.bz2 unpacked
 * genpatches-2.6.22-2.extras.tar.bz2 unpacked
 * Applying 1000_linux-2.6.22.1.patch (-p0+) ...                                                                                                                                                         [ ok ]
 * Applying 2700_usbaudio-logitech-id.patch (-p0+) ...                                                                                                                                                   [ ok ]
 * Applying 2900_powernow-k8-acpi.patch (-p0+) ...                                                                                                                                                       [ ok ]
 * Applying 4105_dm-bbr.patch (-p0+) ...                                                                                                                                                                 [ ok ]
 * Applying 4200_fbsplash-0.9.2-r5.patch (-p0+) ...                                                                                                                                                      [ ok ]
 * Applying 4205_vesafb-tng-1.0-rc2.patch (-p0+) ...                                                                                                                                                     [ ok ]
 * Applying 4300_squashfs-3.2-r2.patch (-p0+) ...                                                                                                                                                        [ ok ]
 * Applying 4405_alpha-sysctl-uac.patch (-p0+) ...                                                                                                                                                       [ ok ]
 * Applying patch-2.6.22-hrt1.patch (-p0+) ...                                                                                                                                                           [ ok ]
 * Applying radeon_vblanks.patch (-p0+) ...                                                                                                                                                              [ ok ]
 * Applying kernel-2.6.22-rc1.patch (-p0+) ...                                                                                                                                                           [ ok ]
 * Applying suspend2-2.2.10.2-for-2.6.22-rc6.patch.patch (-p0+) ...                                                                                                                                      [ ok ]
 * Applying enablec3.patch (-p0+) ...   


A me applica tutte le patch (bigtimers è "kernel-2.6.22-rc1.patch")

Qualcuno ha il riferimento a qualche altra patch "powersave"-oriented?

ciao
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
drizztbsd
Retired Dev
Retired Dev


Joined: 21 Nov 2004
Posts: 278
Location: Cesano Maderno

PostPosted: Wed Jul 11, 2007 8:57 pm    Post subject: Reply with quote

È colpa di patch stable che non digerisce le patch con CRLF (formato dos) come terminatore.
Ho fixxato l'ebuild, ora dovrebbe andare
_________________
Gentoo/Alt lead
Gentoo/*BSD and Gentoo/FreeBSD deputy lead
Paludis contributor
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Wed Jul 11, 2007 9:02 pm    Post subject: Reply with quote

Causa del problema individuata once again da Flameeyes (a cui vanno i credits) ;)
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
riverdragon
Veteran
Veteran


Joined: 14 Sep 2006
Posts: 1269
Location: Verona

PostPosted: Thu Jul 12, 2007 7:08 am    Post subject: Reply with quote

Ovvero, come si risolve il problema? Io ho scaricato le patch e le ho applicate a mano, ma l'unica che è riuscita a dare risultati è quella per hrtimers. Le altre due non sono riuscite a applicare niente di niente, sono fallite tutte le modifiche.

Per la cronaca, il metodo per applicare le patch è sempre il solito, da dentro la cartella dei sorgenti
Code:
patch -p1 </path/to/patch


EDIT: forse con questo comando presente nell'ebuild di drizzt?
Code:
sed 's/\r$//' "${DISTDIR}"/${BGTIMERS_SRC}.patch > "${T}"/${BGTIMERS_SRC}.patch

Che tradotto per me che applico le patch a mano diventerebbe
Code:
sed 's/\r$//' nomepatch.patch > nomepatch_fixed.patch
o sbaglio?

EDIT2: confermo, ora sono riuscito ad applicare correttamente sia la patch enablec3 che la patch kernel-2.6.22-r1.
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Sat Jul 14, 2007 3:35 pm    Post subject: Reply with quote

Dall'ultimo ebuild di comio postato:
Code:
> ~/ebuild /usr/local/overlays/local-portage/sys-kernel/powersave-sources/powersave-sources-2.6.22-r1.ebuild digest
Appending /usr/local/overlays/local-portage to PORTDIR_OVERLAY...
>>> Downloading 'http://distfiles.gentoo.org/distfiles/patch-2.6.22-hrt1.patch'
--17:30:54--  http://distfiles.gentoo.org/distfiles/patch-2.6.22-hrt1.patch
           => `/home/ftp/distfiles/patch-2.6.22-hrt1.patch'
Resolving distfiles.gentoo.org... 64.50.236.52, 216.165.129.135, 156.56.247.195, ...
Connecting to distfiles.gentoo.org|64.50.236.52|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
17:30:55 ERROR 404: Not Found.

No digest file available and download failed.

>>> Downloading 'http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/patch-2.6.22-hrt1.patch'
--17:30:55--  http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/patch-2.6.22-hrt1.patch
           => `/home/ftp/distfiles/patch-2.6.22-hrt1.patch'
Resolving distro.ibiblio.org... 152.46.7.109
Connecting to distro.ibiblio.org|152.46.7.109|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
17:30:57 ERROR 404: Not Found.

No digest file available and download failed.

>>> Downloading 'http://www.tglx.de/projects/hrtimers/2.6.22/patch-2.6.22-hrt1.patch'
--17:30:57--  http://www.tglx.de/projects/hrtimers/2.6.22/patch-2.6.22-hrt1.patch
           => `/home/ftp/distfiles/patch-2.6.22-hrt1.patch'
Resolving www.tglx.de... 213.239.205.147
Connecting to www.tglx.de|213.239.205.147|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
17:31:02 ERROR 404: Not Found.

No digest file available and download failed.

!!! Couldn't download 'patch-2.6.22-hrt1.patch'. Aborting.
!!! File patch-2.6.22-hrt1.patch doesn't exist, can't update Manifest

Ho trovato solo questa: http://www.tglx.de/projects/hrtimers/2.6.22/patch-2.6.22-hrt3.patch, qualcuno l'ha già provata? Basta cambiare la voce HRTIMERS_VERSION=3, giusto?
_________________
LP
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Sat Jul 14, 2007 3:45 pm    Post subject: Reply with quote

lucapost wrote:
Dall'ultimo ebuild di comio postato:
Code:
> ... tante scritte...

Ho trovato solo questa: http://www.tglx.de/projects/hrtimers/2.6.22/patch-2.6.22-hrt3.patch, qualcuno l'ha già provata? Basta cambiare la voce HRTIMERS_VERSION=3, giusto?


Sì ogni volta che fa una patch... cancella le precedenti da quel direttorio... cosa un po' fastidiosa.

comunque ecco l'ebuild aggiornato:

powersave-sources/powersave-sources-2.6.22-r2.ebuild

Code:

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:$

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="2"
K_NOSETEXTRAVERSION="yes"
K_SECURITY_UNSUPPORTED="1"

inherit kernel-2
detect_version
detect_arch

DESCRIPTION="Software Suspend 2 + HRTimers"
HOMEPAGE="http://forums.gentoo.org/viewtopic-t-564588.html"

SUSPEND2_VERSION="2.2.10.2"
SUSPEND2_TARGET="2.6.22-rc6"
SUSPEND2_SRC="suspend2-${SUSPEND2_VERSION}-for-${SUSPEND2_TARGET}"
SUSPEND2_URI="http://www.suspend2.net/downloads/all/${SUSPEND2_SRC}.patch.bz2"

HRTIMERS_VERSION=3
HRTIMERS_TARGET="2.6.22"
HRTIMERS_SRC="patch-${HRTIMERS_TARGET}-hrt${HRTIMERS_VERSION}"
HRTIMERS_URI="http://www.tglx.de/projects/hrtimers/${HRTIMERS_TARGET}/${HRTIMERS_SRC}.patch"

RADEON_SRC="radeon_vblanks"
RADEON_URI="http://www.minimalblue.com/ftp/public/linux/powersave-patches/${RADEON_SRC}.patch"

ENABLEC3_SRC="enablec3"
ENABLEC3_URI="http://www.linuxpowertop.org/patches/${ENABLEC3_SRC}.patch"

BGTIMERS_SRC="kernel-2.6.22-rc1"
BGTIMERS_URI="http://www.linuxpowertop.org/patches/${BGTIMERS_SRC}.patch"

ONDEMAND_SRC="ondemand-fix"
ONDEMAND_URI="http://www.linuxpowertop.org/patches/${ONDEMAND_SRC}.patch"

APPLETOUCH_SRC="appletouch"
APPLETOUCH_URI="http://www.linuxpowertop.org/patches/${APPLETOUCH_SRC}.patch"

UNIPATCH_LIST="${DISTDIR}/${HRTIMERS_SRC}.patch ${DISTDIR}/${RADEON_SRC}.patch
        ${DISTDIR}/${BGTIMERS_SRC}.patch ${DISTDIR}/${SUSPEND2_SRC}.patch.bz2
        ${DISTDIR}/${ENABLEC3_SRC}.patch ${DISTDIR}/${ONDEMAND_SRC}.patch
        ${DISTDIR}/${APPLETOUCH_SRC}.patch"

UNIPATCH_STRICTORDER="yes"
SRC_URI="${KERNEL_URI} ${SUSPEND2_URI} ${HRTIMERS_URI} ${RADEON_URI}
        ${BGTIMERS_URI} ${ENABLEC3_URI} ${ONDEMAND_URI} ${APPLETOUCH_URI}
        ${GENPATCHES_URI} ${ARCH_URI}"

KEYWORDS="~amd64 ~x86"

RDEPEND="${RDEPEND}
                >=sys-apps/suspend2-userui-0.7.1
                >=sys-power/hibernate-script-1.95"

pkg_postinst() {
        kernel-2_pkg_postinst
        einfo "For more info on this patchset, and how to report problems, see:"
        einfo "${HOMEPAGE}"
}

_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Sat Jul 14, 2007 4:03 pm    Post subject: Reply with quote

c'è qualcosa che non va anche in quest'ultimo ebuild:
Code:


....tante scritte....

 * Applying 4300_squashfs-3.2-r2.patch (-p0+) ...                                                                                                                                                             [ ok ]
 * Applying 4405_alpha-sysctl-uac.patch (-p0+) ...                                                                                                                                                            [ ok ]
 * Applying patch-2.6.22-hrt3.patch (-p0+) ...                                                                                                                                                                [ ok ]
 * Applying radeon_vblanks.patch (-p0+) ...                                                                                                                                                                   [ ok ]
 * Applying kernel-2.6.22-rc1.patch (-p0+) ...                                                                                                                                                                [ !! ]
 * Please attach /var/tmp/portage/sys-kernel/powersave-sources-2.6.22-r2/temp/kernel-2.6.22-rc1.err to any bug you may post.

!!! ERROR: sys-kernel/powersave-sources-2.6.22-r2 failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_unpack
  ebuild.sh, line 753:   Called qa_call 'src_unpack'
  ebuild.sh, line 44:   Called src_unpack
  ebuild.sh, line 1311:   Called kernel-2_src_unpack
  kernel-2.eclass, line 1010:   Called unipatch '  /var/tmp/portage/sys-kernel/powersave-sources-2.6.22-r2/distdir/genpatches-2.6.22-2.base.tar.bz2 /var/tmp/portage/sys-kernel/powersave-sources-2.6.22-r2/distdir/genpatches-2.6.22-2.extras.tar.bz2 /var/tmp/portage/sys-kernel/powersave-sources-2.6.22-r2/distdir/patch-2.6.22-hrt3.patch /var/tmp/portage/sys-kernel/powersave-sources-2.6.22-r2/distdir/radeon_vblanks.patch
        /var/tmp/portage/sys-kernel/powersave-sources-2.6.22-r2/distdir/kernel-2.6.22-rc1.patch /var/tmp/portage/sys-kernel/powersave-sources-2.6.22-r2/distdir/suspend2-2.2.10.2-for-2.6.22-rc6.patch.bz2
        /var/tmp/portage/sys-kernel/powersave-sources-2.6.22-r2/distdir/enablec3.patch /var/tmp/portage/sys-kernel/powersave-sources-2.6.22-r2/distdir/ondemand-fix.patch
        /var/tmp/portage/sys-kernel/powersave-sources-2.6.22-r2/distdir/appletouch.patch'
  kernel-2.eclass, line 851:   Called die

!!! Unable to dry-run patch.
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-kernel/powersave-sources-2.6.22-r2/temp/build.log'.

!!! This ebuild is from an overlay: '/usr/local/overlays/local-portage'

_________________
LP
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum