Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[WOL] besoin d'APM mais SMP (P4 HT) (+/- résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
superman2001
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 157
Location: Tubize (Belgique)

PostPosted: Fri Jul 01, 2005 1:17 pm    Post subject: [WOL] besoin d'APM mais SMP (P4 HT) (+/- résolu) Reply with quote

Bonjour,
J'ai une carte mère Asus P4P800 Deluxe avec un Pentium 4 2.8GHz avec HT et une carte réseau intégrée 3C940 qui utilise le pilote sk98lin de SysKonnect. Pour pouvoir faire fonctionner le Wake-On-Lan, j'ai besoin de APM.
Mais comme vous le savez sans doute,
Quote:
APM is not SMP safe.

J'ai essayé de mettre apm=on et apm=power-off dans mon grub.conf, mais APM est désactivé à cause de la présence de SMP.
Au démarrage d'apmd, il m'affiche :
Quote:
APM support not compiled in kernel.

Pourtant APM est activé dans le noyau.
Code:
# gzcat /proc/config.gz | grep -i apm
# Power management options (ACPI, APM)
# APM (Advanced Power Management) BIOS Support
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
CONFIG_APM_DO_ENABLE=y
CONFIG_APM_CPU_IDLE=y
CONFIG_APM_DISPLAY_BLANK=y
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
CONFIG_APM_REAL_MODE_POWER_OFF=y

/proc/apm devrait exister mais
Code:
# ls /proc/apm
ls: /proc/apm: Aucun fichier ou répertoire de ce type

Quelqu'un a une idée pour forcer APM à fonctionner malgré la présence de SMP?
A noter que APM est activé dans mon BIOS :lol:


Last edited by superman2001 on Sat Jul 09, 2005 9:16 am; edited 1 time in total
Back to top
View user's profile Send private message
scout
Veteran
Veteran


Joined: 08 Mar 2003
Posts: 1991
Location: France, Paris en Semaine / Metz le W-E

PostPosted: Fri Jul 01, 2005 1:32 pm    Post subject: Reply with quote

moi je croyais que apm était supplanté par l'acpi ... enfin bon je ne me suis pas plus intéressé au problème que ça ...
_________________
http://petition.eurolinux.org/ - Petition against ePatents
L'essence de la finesse
Back to top
View user's profile Send private message
spider312
Veteran
Veteran


Joined: 02 Oct 2004
Posts: 1274
Location: France > Savoie > Chambery

PostPosted: Fri Jul 01, 2005 3:09 pm    Post subject: Re: [WOL] besoin d'APM mais SMP (P4 HT) Reply with quote

superman2001 wrote:
Pour pouvoir faire fonctionner le Wake-On-Lan, j'ai besoin de APM.
Tu tiens ça d'ou ? WOL est une fonctionalité materielle, je ne vois vraiment pas le rapport avec APM, tu réalises qu'au moment ou le WOL sert, la machine est éteinte, donc aucun noyau ne tourne ?
Back to top
View user's profile Send private message
superman2001
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 157
Location: Tubize (Belgique)

PostPosted: Fri Jul 01, 2005 4:29 pm    Post subject: Reply with quote

Je sais, mais pour que ma carte reste en veille pour recevoir les paquets wol, il me faut l'APM. Sinon elle s'éteint complètement.
L'APM est en effet supplanté par l'ACPI.
Si tu veux savoir d'où je tiens ça, http://www.syskonnect.com/support/driver/readme/linux/sk98lin.html#Section9
Back to top
View user's profile Send private message
spider312
Veteran
Veteran


Joined: 02 Oct 2004
Posts: 1274
Location: France > Savoie > Chambery

PostPosted: Fri Jul 01, 2005 7:34 pm    Post subject: Reply with quote

8O 8O 8O bizare ça

Enfin si ma réponse était fausse, j'en suis désolé :oops:
Back to top
View user's profile Send private message
ghoti
Advocate
Advocate


Joined: 30 Dec 2002
Posts: 3636
Location: Belgium

PostPosted: Fri Jul 01, 2005 7:59 pm    Post subject: Re: [WOL] besoin d'APM mais SMP (P4 HT) Reply with quote

superman2001 wrote:
J'ai une carte mère Asus P4P800 Deluxe avec un Pentium 4 2.8GHz avec HT

A peu près pareil sauf que c'est une P4P800-E Deluxe, avec HT (SMP) activé dans le noyau.
Le chip ethernet est un Marvel 88E8001 mais je me suis laissé dire qu'il était identique au 3C940.
Avec le driver sk98lin, je n'ai jamais réussi à activer le WOL.
(Note que sk98lin est marqué comme "DEPRECATED" dans les derniers noyaux 2.6 ...)
Par contre, avec le nouveau driver SKGE, pas de problème :-)
Le driver doit être compilé en dur.

Je n'utilise pas APM mais ACPI (suis d'ailleurs pas certain qu'APM le fasse !)
Pour placer l'interface ethernet en mode veille, j'utilise le package sys-apps/ethtool avec la ligne suivante dans /etc/conf.d/local.stop
Code:
ethtool -s eth0 wol g


A l'époque, j'avais également introduit une petite modif dans /etc/init.d/net.lo mais je ne suis pas sûr que ce soit encore nécessaire :
Quote:
iface_stop() {

<snip ...>

# Stop aliases before primary interface.
# Note this must be done in reverse order, since ifconfig eth0:1
# will remove eth0:2, etc. It might be sufficient to simply remove
# the base interface but we're being safe here.
for i in ${aliases} ${iface}; do
# Stop all our modules
for mod in ${MODULES[@]}; do
[[ $( type -t ${mod}_stop ) == function ]] && ${mod}_stop ${i}
done

# A module may have removed the interface
interface_exists ${iface} || { eend 0; continue; }

# Delete all the addresses for this alias
interface_del_addresses ${i}

# Do final shut down of this alias
ebegin "Shutting down ${i}"
#interface_iface_stop ${i} <== mis en commentaire
eend $?
done

<snip ...>


Pour réveiller le PC à partir d'une machine distante, j'utilise net-misc/etherwake.
Back to top
View user's profile Send private message
superman2001
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 157
Location: Tubize (Belgique)

PostPosted: Fri Jul 01, 2005 10:37 pm    Post subject: Reply with quote

Le problème avec skge est qu'il ne se compile pas avec les patches pour software-suspend2, en module ou en dur. J'ai le noyau 2.6.12-gentoo-r3 avec ces patches.
Code:
  CC [M]  drivers/net/skge.o
drivers/net/skge.c: In function `skge_suspend':
drivers/net/skge.c:3284: erreur: type incompatible pour l'argument n°2 de « pci_choose_state »
drivers/net/skge.c: At top level:
drivers/net/skge.c:3318: attention : initialisation d'un type pointeur incompatible
make[2]: *** [drivers/net/skge.o] Erreur 1
make[1]: *** [drivers/net] Erreur 2
make: *** [drivers] Erreur 2
Back to top
View user's profile Send private message
superman2001
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 157
Location: Tubize (Belgique)

PostPosted: Sun Jul 03, 2005 11:53 am    Post subject: Reply with quote

J'ai trouvé un patch qui fonctionne. Il est téléchargeable ici : https://bugs.gentoo.org/show_bug.cgi?id=97809
Ou bien ici : http://bugzilla.suspend2.net/show_bug.cgi?id=72
Back to top
View user's profile Send private message
superman2001
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 157
Location: Tubize (Belgique)

PostPosted: Fri Jul 08, 2005 10:41 am    Post subject: Reply with quote

J'arrive à activer le wol par ethtool, mais pour pouvoir effectivement utiliser le wol, je dois faire :
Code:
echo -n 3 > /sys/power/state

Mais cette commande n'a aucun effet. D'après cet article sur le wiki, mon dsdt est buggé et je n'arrive pas à le réparer.
Pour voir le sujet qui y est consacré, c'est ici.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
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