~bohwaz/blog/

Avec de vrais morceaux de 2.0 !

ThinkPad X40

Le ThinkPad X40 c'est mon laptop, acheté d'occasion pour 280 euros, 1Go de RAM, wifi, 40Go de disque dur, etc.

Système sur Compact Flash

J'ai remplacé le disque 1,8" 40Go fournit par un adaptateur IDE/CF et une carte Compact Flash Transcend de 8Go (133x).

Pour cela je me suis aidé de cette page et ce journal LinuxFR.

Truc à retenir pour voir les écritures sur disque :

 # sysctl vm.block_dump=1
 $ dmesg

Splash avec Plymouth

cf. wiki debian

# apt-get install plymouth
# plymouth-set-default-theme spacefun
# update-initramfs -u

- Rajouter splash à GRUB_CMDLINE_LINUX_DEFAULT dans /etc/default/grub
- sudo update-grub2

Protection du disque dur avec HDAPS

(Uniquement pour le disque dur mécanique, inutile avec SSD/CF.)

# apt-get install hdapsd

Éventuellement forcer le parquage des têtes avec :

# echo -1 > /sys/block/sda/device/unload_heads

Doc : http://kernel.org/doc/Documentation/laptops/disk-shock-protection.txt

Contrôler la charge de la batterie pour la préserver

Voir tp_smapi.

# apt-get install tp-smapi-dkms

Trackpoint

   Section "InputDevice"
       Identifier "Configured Mouse"
       Driver     "evdev"
       Option     "Device" "/dev/input/by-path/platform-i8042-serio-1-event-mouse"
       Option     "GrabDevice" "False"
       Option     "EmulateWheel" "true" #Enable wheel emulation for the Trackpoint
       Option     "EmulateWheelButton" "2" #Use the middle button for the emulation
       Option      "EmulateWheelTimeOut" "200"
       Option     "XAxisMapping" "6 7" #Map trackpoint X axis to X axis of emulated wheel
       Option     "YAxisMapping" "4 5" #Map trackpoint Y axis to Y axis of emulated wheel
       Option      "ZAxisMapping"        "4 5"
   EndSection

Réductions de la consommation de batterie

http://www.thinkwiki.org/wiki/How_to_reduce_power_consumption

- Rajouter HPET à /etc/default/grub : GRUB_CMDLINE_LINUX_DEFAULT="quiet hpet=force" et faire "sudo update-grub2"

Ajouter dans /etc/modprobe.d/thinkpad.conf :

# Thinkpad

blacklist pcmcia
blacklist yenta_socket
blacklist uhci_hcd

# Uncomment when not having a mechanical hard drive
#blacklist hdaps

options ipw2200 disable=1
options usbcore autosuspend=1

install tp-smapi

- Désactiver le module hdaps si on n'a pas de disque dur mécanique, à l'aide de ces instructions

Sous-voltage du processeur

Peut augmenter la batterie de 30 minutes sur batterie 1900mAh à 1h30 sur batterie 5200mAh !

Diminue aussi la chauffe du système et le fonctionnement du ventilateur.

- http://o0arthur0o.wordpress.com/2010/06/17/undervolting-your-cpu-on-debian-squeeze/
- http://www.thinkwiki.org/wiki/Pentium_M_undervolting_and_underclocking
- http://ubuntuforums.org/showthread.php?t=786402

x40 1.4ghx Dothan738
||||||| using | intel's default 
14x || 0.908 || 1.116 
13x || 0.892 || 1.116 
12x || 0.860 || 1.1 
11x || 0.828 || 1.068 
10x || 0.812 || 1.052 
9x || 0.780 || 1.036 
8x || 0.716 || 1.02 
6x || 0.700 || 0.988

 I use the following set of phc values with perfectly stable results: 12:15 11:12 10:9 9:6 8:4 6:1

#! /bin/sh
### BEGIN INIT INFO
# Provides:		phc
# Required-Start:    $acpi
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: linux-phc
# Description:       linux-phc patched acpi-cpufreq module to allow
#                    custom vids (processor hardware control)
### END INIT INFO
NAME=phc

PHC_CONTROLS="12:15 11:12 10:9 9:6 8:4 6:1"

case $1 in start)
	## Edit these next two lines ##
	echo "$PHC_CONTROLS" > /sys/devices/system/cpu/cpu0/cpufreq/phc_controls

;; force-reload)
	rmmod acpi-cpufreq
	modprobe acpi-cpufreq
	## Edit these next two lines ##
	echo "$PHC_CONTROLS" > /sys/devices/system/cpu/cpu0/cpufreq/phc_controls

;; status)
	## This doesn't give real status. For that use the read_msr utility.
	## Edit these next two lines ##
	cat /sys/devices/system/cpu/cpu0/cpufreq/phc_controls

;; *) echo "Usage: $NAME (start|stop|restart|force-reload)" >&2 exit 3
;; esac
:

Config utile

# apt-get install i3lock xbindkeys
$ cat .xbindkeysrc 
"i3lock -d -i ~/lockscreen.png -p default"
	XF86ScreenSaver

"~/bin/xterm"
	XF86Launch1
Écrire un commentaire
(facultatif)
(facultatif)
(obligatoire)
       _       _                     
__   _(_) ___ | | ___ _ __   ___ ___ 
\ \ / / |/ _ \| |/ _ \ '_ \ / __/ _ \
 \ V /| | (_) | |  __/ | | | (_|  __/
  \_/ |_|\___/|_|\___|_| |_|\___\___|
                                     
(obligatoire)

Les adresses internet seront converties automatiquement.
Tags autorisés : <blockquote> <cite> <pre> <code> <var> <strong> <em> <del> <ins> <kbd> <samp> <abbr>