Pagina 1 di 1

Spegnimento pc, e modulo apm

Inviato: sab 1 apr 2006, 23:13
da frantavo
Ciao ragazzi, ho un problema con la chiusura del pc.
Quando spengo il pc, dopo aver fatto tutto quello che deve, esce la scritta power down.
Ho la slack 10.2 con kernel 2.4.31 .
Eseguendo i seguenti comandoìi ottengo come uscite:


root@RhaptorX:~# apm
No APM support in kernel


root@RhaptorX:~# modprobe apm
/lib/modules/2.4.31/kernel/arch/i386/kernel/apm.o.gz: init_module: No such device
/lib/modules/2.4.31/kernel/arch/i386/kernel/apm.o.gz: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.31/kernel/arch/i386/kernel/apm.o.gz: insmod /lib/modules/2.4.31/kernel/arch/i386/kernel/apm.o.gz failed
/lib/modules/2.4.31/kernel/arch/i386/kernel/apm.o.gz: insmod apm failed


root@RhaptorX:~# dmesg
....
....
apm: BIOS not found.
...
...


Il mio config :
# PCI Hotplug Support
#
CONFIG_HOTPLUG_PCI=m
CONFIG_HOTPLUG_PCI_COMPAQ=m
# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
CONFIG_HOTPLUG_PCI_SHPC=m
# CONFIG_HOTPLUG_PCI_SHPC_POLL_EVENT_MODE is not set
CONFIG_HOTPLUG_PCI_SHPC_PHPRM_LEGACY=y
CONFIG_HOTPLUG_PCI_PCIE=m
# CONFIG_HOTPLUG_PCI_PCIE_POLL_EVENT_MODE is not set
CONFIG_SYSVIPC=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_SYSCTL=y
CONFIG_KCORE_ELF=y
# CONFIG_KCORE_AOUT is not set
CONFIG_BINFMT_AOUT=m
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=m
# CONFIG_OOM_KILLER is not set
CONFIG_PM=y
CONFIG_APM=m
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set

#
# ACPI Support
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
# CONFIG_ACPI_SLEEP_PROC_SLEEP is not set
# CONFIG_ACPI_AC is not set
# CONFIG_ACPI_BATTERY is not set
# CONFIG_ACPI_BUTTON is not set
CONFIG_ACPI_VIDEO=m
# CONFIG_ACPI_HOTKEY is not set
CONFIG_ACPI_FAN=m
CONFIG_ACPI_PROCESSOR=m
CONFIG_ACPI_THERMAL=m
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
CONFIG_ACPI_CONTAINER=m
CONFIG_X86_ACPI_CPUFREQ=m
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_HOTPLUG_PCI_ACPI=m
CONFIG_HOTPLUG_PCI_ACPI_IBM=m
# CONFIG_PNPACPI is not set
CONFIG_SERIAL_8250_ACPI=y

# CONFIG_ACPI is not set

Cosa posso fare?
Potete aiutarmi?

Grazie

Inviato: sab 1 apr 2006, 23:31
da phobos3576
APM e ACPI si escludono a vicenda.

APM è più indicato per i notebook, mentre ACPI è più indicato per i desktop.

Il mio .config è il seguente (però il kernel è 2.6.16)

Codice: Seleziona tutto

#
# Power management options (ACPI, APM)
#
CONFIG_PM=y
CONFIG_PM_LEGACY=y
# CONFIG_PM_DEBUG is not set
# CONFIG_SOFTWARE_SUSPEND is not set

#
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
# CONFIG_ACPI_SLEEP_PROC_SLEEP is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y

#
# APM (Advanced Power Management) BIOS Support
#
# CONFIG_APM is not set
Se il computer non si spegne (si ferma al messaggio 'power down'), vuol dire che il BIOS è troppo vecchio (precedente il 2000); in tal caso, bisogna editare /etc/lilo.conf e nella linea append bisogna aggiungere acpi=force.

Se la linea non esiste, la devi aggiungere tu; ad esempio:

append="acpi=force"

Ora aggiorna lilo e riavvia il computer.

Inviato: sab 1 apr 2006, 23:36
da alessiodf
invece di caricare apm (che tra l'altro non è nel tuo kernel), prova a caricaare acpi!

Codice: Seleziona tutto

modprobe acpi
oops, ho detto na cavolata..acpi ce l'ha statico nel kenel! :oops: allora la soluzione di Phobos è ottima! :wink:

Inviato: dom 2 apr 2006, 9:58
da Absolut
scusate ragazzi, ma ancheio conil suo kernel non spengevo il pc automaticamente.... aggiornando il kernel invece..... tutto ok.....

Inviato: dom 2 apr 2006, 10:55
da absinthe
dunque..calma apm NON è più indicato per i notebook:
apm è il "vecchio" sistema di gestione dell'energia -che include lo spengimento del pc-. salvo che il tuo hw non sia eccessivamente vecchio solitamente è l'acpi che si dovrebbe usare, essendo questo il nuovo "standard" .

ha ragione chi ti dice che le due tecnologie si escludono a vicenda. io tanto per fare un pò di pulizia direi che dovresti intanto disabilitare TUTTO il supporto apm e lasciare invece l'acpi.
In genere io mi trovo bene inserendo tutto il supporto statico ma questa è una cosa puramente soggettiva e soprattutto se hai un desktop è poco rilevante.

se il pc non si spenge con l'acpi può in effetti significare che è vecchiotto e che allora devi usare l'apm -che viene lasciato nel kernel proprio per problemi di compatibilità-. in quel caso il discorso si rovescia: disabilità TUTTO l'acpi e abilità solo l'apm.

per far spengere in automatico il pc quando è abilitato l'apm dai un occhio alla slackware4dummies. per far spengere in automatico il pc con l'acpi invece credo non si debba fare alcuna modifica... o per lo meno: una volta compilato l'acpi del 2.6.13 a me il pc si è spento da solo senza dover modificare niente in particolare (mi riferisco agli script gestiti dal demone acpid).

ciao,
M

Inviato: dom 2 apr 2006, 11:39
da frantavo
Allora, io ho una scheda madre asrock acquistata nel 2005 ed anche la versione del bios è recente.

Poi come faccio a compilare il modulo per l'acpi?
devo scaricarlo da qualche parte?
Io sono molto inesperto di linux, è da pochissimo che mi sono appassionato a questo bellissimo mondo.

Saluti e grazie a tutti.

Inviato: dom 2 apr 2006, 16:15
da absinthe
frantavo ha scritto:Allora, io ho una scheda madre asrock acquistata nel 2005 ed anche la versione del bios è recente.

Poi come faccio a compilare il modulo per l'acpi?
devo scaricarlo da qualche parte?
Io sono molto inesperto di linux, è da pochissimo che mi sono appassionato a questo bellissimo mondo.

Saluti e grazie a tutti.
se non sei pratico perchè non provi ad installare direttamente il kernel bareacpi.i della slack? ha il supporto acpi già abilitato!

M