Friday, January 11, 2013

Debian wheezy (testing) on VAIO VPCSB11FX

Wireless driver (ref: http://wiki.debian.org/iwlwifi)
  • # apt-get install firmware-iwlwifi [need to have non-free in sources.list)
  • # modprobe -r iwlagn ; modprobe iwlagn
Enable touchpad scrolling
  • Run
    # rmmod psmouse
    # modprobe psmouse proto=imps
  • Make permanent: # nano /etc/modprobe.d/options, add
    options psmouse proto=imps
  • Note: proto = bare (Bare PS/2), imps (Microsoft Intellimouse), exps (Microsoft Explorer Mouse), ps2pp (Logitech Mouse), genps (Genius Wheel Mouse), targus (Targus Scroller Mouse), synaptics (Synaptics TouchPad), any, auto. (Someone says "Using exps instead of imps has advantages when you like to use your thumb buttons.")
lm-sensors
  • # apt-get install lm-sensors
  • # sensors-detect --> add coretemp into /etc/modules
  • # sensors
ATI propriety driver (http://wiki.debian.org/ATIProprietary) [to make it less hot]
  • # apt-get install linux-headers-3.2.0-4-amd64 fglrx-control fglrx-drive [notice the version of kernel headers]
  • Quit X
  • # modprobe -r radeon drm
  • # aticonfig --initial
  • /etc/X11/xorg.conf has something like:
    Section "Device"
        Identifier  "ATI"
        Driver      "fglrx"
    EndSection
    
    Section "Screen"
        Identifier "Default Screen"
        DefaultDepth     24
    EndSection
  • # startx
CPU frequency scaling (http://wiki.debian.org/HowTo/CpuFrequencyScaling) [to make it less hot]
  • # apt-get install cpufrequtils
  • # cpufreq-info --> information
  • # nano /etc/default/cpufrequtils; add
    # valid values: userspace conservative powersave ondemand performance
    # get them from cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_gove$
    GOVERNOR="conservative"
    
  • cpufrequtils has an init script that should load the appropriate driver at boot time. # ls /lib/modules/$(uname -r)/kernel/drivers/cpufreq/ lists available drivers (modules), such as powernow_k6 (for AMD K6), powernow_k7 (AMD K7: Athlon, Duron, Sempron 32 bits), powernow_k8 (AMD K8: Athlon 64, Turion 64, Sempron 64, Opteron 64), p4_clockmod (Pentium 4, Celeron D, Pentium D, Celeron M), speedstep_centrino (Pentium M, Core Duo, Core 2 Duo), acpi_cpufreq (generic driver).
  • # apt-get install sysfsutils
  • # nano /etc/sysfs.conf, edit like
    devices/system/cpu/cpu0/cpufreq/scaling_governor = conservative
  • read more: http://technowizah.com/2007/01/debian-how-to-cpu-frequency-management.html, http://ubuntuforums.org/showthread.php?t=248867
Others
  • Change the brightness of screen: # echo -n 8 > /sys/class/backlight/acpi_video0/brightness
  • Ubuntu forum: http://ubuntuforums.org/showthread.php?t=1731232