Re: Debian et Dell Inspiron
Les petites améliorations que j'ai faite sont les suivantes:
* Installation de hdparm et rajout de
command_line {
hdparm -B 254 /dev/sda
}
en fin de fichier hdparm.conf (ta question)
* Ecriture d'un fichier /usr/local/bin/hibernation
------------------------------------
#!/bin/sh
touch /tmp/RESUME
dohibernation
-----------------------------------
et d'un fichier /etc/init.d/perso
------------------------------------
#!/bin/sh
touch /tmp/RESUME
dohibernation
bling:/etc# cat /etc/init.d/perso
#!/bin/sh
ETAT=`cat /proc/acpi/ac_adapter/AC/state | sed -e 's/state: *//'`
if [ -f /tmp/RESUME ] ; then
/etc/init.d/hdparm restart
/usr/local/bin/reveillevideo.sh
if [ $ETAT = "on-line" ] ; then
echo Sur secteur ;
echo max_performance > /sys/class/scsi_host/host0/link_power_management_policy
echo 499 > /proc/sys/vm/dirty_writeback_centisecs
else
echo sur batterie
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
mount -o remount,noatime /
fi
I=`cat /var/tmp/AVRESUME`
echo $[$I+1] > /var/tmp/AVRESUME
rm -f /tmp/RESUME
else
I=`cat /var/tmp/SSRESUME`
echo $[$I+1] > /var/tmp/SSRESUME
fi
----------------------------------
avec /usr/local/bin/reveillevideo.sh
----------------------------------
#!/bin/sh
rmmod uvcvideo
rmmod compat_ioctl32
rmmod videodev
rmmod v4l1_compat
modprobe uvcvideo
---------------------------------
et rajout de /etc/init.d/perso au début du fichier default/acpi-support
Cela règle les problèmes d'hibernation (s2disk)
* Crétation des fichiers /etc/acpi/battery.d/perso.sh
------------------------------------
#!/bin/sh
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
mount -o remount,noatime /
logger Passage mode econome.
---------------------------------------
et /etc/acpi/ac.d/perso.sh
-------------------------------------
#!/bin/sh
echo max_performance > /sys/class/scsi_host/host0/link_power_management_policy
echo 499 > /proc/sys/vm/dirty_writeback_centisecs
logger Passage mode performant.
------------------------------------
qui bascule l'ordinateur en mode économique ou performant suivant qu'il y ait l'alimentation ou non.
Le partitionnement choisi est le suivant:
/dev/sda1 1 12 96358+ de Dell Utility
/dev/sda2 13 665 5245222+ b W95 FAT32
/dev/sda3 * 666 2397 13912290 83 Linux
/dev/sda4 2398 19457 137034450 5 Extended
/dev/sda5 2398 3151 6056473+ 82 Linux swap / Solaris
/dev/sda6 3152 6706 28555506 83 Linux
/dev/sda7 6707 19457 102422376 83 Linux
Je n'ai pas voulu écrasé l'installation Dell au cas où un problème matériel arriverait.
Je peux démarrer sur leur système et voir avec leur linux à eux!
J'ai mis une Debian amd64 mais ai quand même fait un environnement chroot complètement
transparent, tu peux voir ici http://forum.debian-fr.org/viewtopic.php?f=8&t=14673 la démarche.
C'est remarquable, par exemple SAGE installé en 64bits se fait complètement avoir et utilise
maple en environnement 32 bits sans le savoir.
À ta disposition pour plus de renseignements (en notant tout de même que je pars bientôt et
que ce sera de vraies vacances: je n'emporte pas mon portable!)
François Boisson
Reply to: