ACPI : gesttion de l'acpi sur toshiba satellite L 670

Bonjour.

J’ai gratté pas mal de temps dans tous les sens et je crois que j’ai enfin trouvé d’où venaient mes différents problèmes de freeze, de démarrage et d’arrêt du portable Toshiba L670 que je viens d’acheter. Au début je pensais que ça venait de la carte Nvidia que je fais tourner avec un driver libre mais je me suis rendu compte hier qu’en passant l’acpi sur off dans /etc/default/grub tout semblait fonctionner normalement.

[code]# cat /etc/default/grub

If you change this file, run ‘update-grub’ afterwards to update

/boot/grub/grub.cfg.

For full documentation of the options in this file, see:

info -f grub -n ‘Simple configuration’

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=lsb_release -i -s 2> /dev/null || echo Debian
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=“acpi=off”
[/code]

Seulement quand j’arrête l’ordi je suis obligé d’appuyer le bouton de mise sous tension à la fin de la procédure parce que la machine ne s’éteint pas et me laisse affiché à l’écran reboot : system halted.
Certes ce n’est pas grand chose et la procédure d’arrêt s’est bien déroulée mais si je pouvais régler ça je serais content.

Bonne journée à vous.

Bonjour.

J’ai résolu mon problème de gestion de l’acpi de cette manière :

Modification des deux fichiers suivants :

[code]# cat /etc/modules

/etc/modules: kernel modules to load at boot time.

This file contains the names of kernel modules that should be loaded

at boot time, one per line. Lines beginning with “#” are ignored.

Parameters can be specified after the module name.

apm power_off=1

#loop

[/code]

et

# cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" acpi=force apm=power_off

#GRUB_CMDLINE_LINUX_DEFAULT="quiet"
#GRUB_CMDLINE_LINUX="acpi=off"

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

Suivi d’un update-grub

Pas obligatoire mais pour gérer la mise en veille avec le bouton power, dans mon cas :

# cat /etc/acpi/powerbtn-acpi-support.sh 
#!/bin/sh

# This script initiates a shutdown when the power putton has been
# pressed. Loosely based on the sample that ships with the acpid package.
# If the acpid sample is present as a real config file (as it was in earlier
# versions of acpid), we skip this script. (Purging and reinstalling acpid
# resolves this situation, or simply deleting /etc/acpi/events/powerbtn.)

if [ -f /etc/acpi/events/powerbtn -o -f /etc/acpi/events/powerbtn.dpkg-bak ] ; then 
	logger Acpi-support not handling power button, acpid handler exists at /etc/acpi/events/powerbtn or /etc/acpi/events/powerbtn.dpkg-bak.
	exit 0
fi

[ -e /usr/share/acpi-support/policy-funcs ] || exit 0

. /usr/share/acpi-support/policy-funcs

if CheckPolicy; then
	exit 0
fi

if [ -x /etc/acpi/powerbtn.sh ] ; then
	# Compatibility with old config script from acpid package
	/etc/acpi/powerbtn.sh
elif [ -x /etc/acpi/powerbtn.sh.dpkg-bak ] ; then
        # Compatibility with old config script from acpid package
	# which is still around because it was changed by the admin
        /etc/acpi/powerbtn.sh.dpkg-bak
else
#	# Normal handling.
#	/sbin/shutdown -h -P now "Power button pressed"

# Mise en veille
#/usr/sbin/pm-suspend

fi

A+

Salut.

Je me suis rendu compte que le problème persistait à cause de l’option acpi=force dans /etc/default/grub qui forçait l’utilisation de l’acpi.
Du coup je l’ai passé en acpi=off seulement pour éteindre l’ordi, quand la procédure d’arrêt est terminée, je suis obligé d’appuyer sur le bouton de mise sous tension. J’aurais tendance à penser que l’apm n’est pas pris en charge par ma machine ou alors fait mal son travail.
Bref, je fais quelques tests comme ça et si ça déconne encore je viens le signaler.

A+