Установка Debian GNU/Linux 5.0 "Lenny" на ASUS X50N

Наконец-то прикупил ноутбук - Asus X50N (X50N-TK57SCCDWW, http://www.3dnews.ru/mobile/asus_x50n/ ).
15.4" WXGA / Turion64 X2 TK57 (1.9GHz) / 2Gb / 160Gb / GeForce Go 7000M / DVD Super Multi / FM / LAN / WiFi / Free DOS / 2.8kg
Особенно порадовал Free DOS - всё равно на жить на нём будет Linux :)


Параметры

x50n:/# lspci -v
00:00.0 RAM memory: nVidia Corporation MCP67 Memory Controller (rev a2)
	Subsystem: ASUSTeK Computer Inc. Device 16a7
	Flags: bus master, 66MHz, fast devsel, latency 0
	Capabilities: [44] HyperTransport: Slave or Primary Interface
	Capabilities: [dc] HyperTransport: MSI Mapping Enable+ Fixed-

00:01.0 ISA bridge: nVidia Corporation MCP67 ISA Bridge (rev a2)
	Subsystem: ASUSTeK Computer Inc. Device 16a7
	Flags: bus master, 66MHz, fast devsel, latency 0
	I/O ports at 0a00 [size=256]

00:01.1 SMBus: nVidia Corporation MCP67 SMBus (rev a2)
	Subsystem: ASUSTeK Computer Inc. Device 16a7
	Flags: 66MHz, fast devsel, IRQ 11
	I/O ports at dc00 [size=64]
	I/O ports at 0600 [size=64]
	I/O ports at 0700 [size=64]
	Capabilities: [44] Power Management version 2

00:01.2 RAM memory: nVidia Corporation MCP67 Memory Controller (rev a2)
	Subsystem: ASUSTeK Computer Inc. Device 16a7
	Flags: 66MHz, fast devsel

00:01.3 Co-processor: nVidia Corporation MCP67 Co-processor (rev a2)
	Subsystem: ASUSTeK Computer Inc. Device 16a7
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 7
	Memory at fd780000 (32-bit, non-prefetchable) [size=512K]

00:02.0 USB Controller: nVidia Corporation MCP67 OHCI USB 1.1 Controller (rev a2) (prog-if 10 [OHCI])
	Subsystem: ASUSTeK Computer Inc. Device 16a7
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 21
	Memory at fd77f000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [44] Power Management version 2
	Kernel driver in use: ohci_hcd
	Kernel modules: ohci-hcd

00:02.1 USB Controller: nVidia Corporation MCP67 EHCI USB 2.0 Controller (rev a2) (prog-if 20 [EHCI])
	Subsystem: ASUSTeK Computer Inc. Device 16a7
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 23
	Memory at fd77ec00 (32-bit, non-prefetchable) [size=256]
	Capabilities: [44] Debug port: BAR=1 offset=0098
	Capabilities: [80] Power Management version 2
	Kernel driver in use: ehci_hcd
	Kernel modules: ehci-hcd

00:04.0 USB Controller: nVidia Corporation MCP67 OHCI USB 1.1 Controller (rev a2) (prog-if 10 [OHCI])
	Subsystem: ASUSTeK Computer Inc. Device 16a7
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20
	Memory at fd77d000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [44] Power Management version 2
	Kernel driver in use: ohci_hcd
	Kernel modules: ohci-hcd

00:04.1 USB Controller: nVidia Corporation MCP67 EHCI USB 2.0 Controller (rev a2) (prog-if 20 [EHCI])
	Subsystem: ASUSTeK Computer Inc. Device 16a7
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 22
	Memory at fd77e800 (32-bit, non-prefetchable) [size=256]
	Capabilities: [44] Debug port: BAR=1 offset=0098
	Capabilities: [80] Power Management version 2
	Kernel driver in use: ehci_hcd
	Kernel modules: ehci-hcd

00:06.0 IDE interface: nVidia Corporation MCP67 IDE Controller (rev a1) (prog-if 8a [Master SecP PriP])
	Subsystem: ASUSTeK Computer Inc. Device 16a7
	Flags: bus master, 66MHz, fast devsel, latency 0
	[virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled] [size=8]
	[virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled] [size=1]
	[virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled] [size=8]
	[virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled] [size=1]
	I/O ports at ffa0 [size=16]
	Capabilities: [44] Power Management version 2
	Kernel driver in use: AMD_IDE
	Kernel modules: amd74xx

00:07.0 Audio device: nVidia Corporation MCP67 High Definition Audio (rev a1)
	Subsystem: ASUSTeK Computer Inc. Device 1339
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 21
	Memory at fd778000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [44] Power Management version 2
	Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/0 Enable-
	Capabilities: [6c] HyperTransport: MSI Mapping Enable+ Fixed+
	Kernel driver in use: HDA Intel
	Kernel modules: snd-hda-intel

00:08.0 PCI bridge: nVidia Corporation MCP67 PCI Bridge (rev a2) (prog-if 01 [Subtractive decode])
	Flags: bus master, 66MHz, fast devsel, latency 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
	Capabilities: [b8] Subsystem: ASUSTeK Computer Inc. Device 16a7
	Capabilities: [8c] HyperTransport: MSI Mapping Enable+ Fixed-

00:09.0 IDE interface: nVidia Corporation MCP67 AHCI Controller (rev a2) (prog-if 85 [Master SecO PriO])
	Subsystem: ASUSTeK Computer Inc. Device 16a7
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 22
	I/O ports at d480 [size=8]
	I/O ports at d400 [size=4]
	I/O ports at d080 [size=8]
	I/O ports at d000 [size=4]
	I/O ports at cc00 [size=16]
	Memory at fd776000 (32-bit, non-prefetchable) [size=8K]
	Capabilities: [44] Power Management version 2
	Capabilities: [8c] SATA HBA <?>
	Kernel driver in use: ahci
	Kernel modules: ahci

00:0a.0 Ethernet controller: nVidia Corporation MCP67 Ethernet (rev a2)
	Subsystem: ASUSTeK Computer Inc. Device 1697
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 23
	Memory at fd77c000 (32-bit, non-prefetchable) [size=4K]
	I/O ports at c880 [size=8]
	Memory at fd77e400 (32-bit, non-prefetchable) [size=256]
	Memory at fd77e000 (32-bit, non-prefetchable) [size=16]
	Capabilities: [44] Power Management version 2
	Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/3 Enable-
	Capabilities: [6c] HyperTransport: MSI Mapping Enable+ Fixed+
	Kernel driver in use: forcedeth
	Kernel modules: forcedeth

00:0c.0 PCI bridge: nVidia Corporation MCP67 PCI Express Bridge (rev a2) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=02, subordinate=04, sec-latency=0
	I/O behind bridge: 0000e000-0000efff
	Memory behind bridge: fd800000-feafffff
	Prefetchable memory behind bridge: 00000000f8000000-00000000faffffff
	Capabilities: [40] Subsystem: ASUSTeK Computer Inc. Device 16a7
	Capabilities: [48] Power Management version 2
	Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+ Queue=0/1 Enable+
	Capabilities: [60] HyperTransport: MSI Mapping Enable+ Fixed-
	Capabilities: [80] Express Root Port (Slot+), MSI 00
	Capabilities: [100] Virtual Channel <?>
	Kernel driver in use: pcieport-driver
	Kernel modules: shpchp

00:0d.0 PCI bridge: nVidia Corporation MCP67 PCI Express Bridge (rev a2) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
	Memory behind bridge: feb00000-febfffff
	Capabilities: [40] Subsystem: ASUSTeK Computer Inc. Device 16a7
	Capabilities: [48] Power Management version 2
	Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+ Queue=0/1 Enable+
	Capabilities: [60] HyperTransport: MSI Mapping Enable+ Fixed-
	Capabilities: [80] Express Root Port (Slot+), MSI 00
	Capabilities: [100] Virtual Channel <?>
	Kernel driver in use: pcieport-driver
	Kernel modules: shpchp

00:12.0 VGA compatible controller: nVidia Corporation GeForce 7000M (rev a2) (rev a2) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Device 1692
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20
	Memory at fc000000 (32-bit, non-prefetchable) [size=16M]
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	Memory at fb000000 (64-bit, non-prefetchable) [size=16M]
	[virtual] Expansion ROM at fd740000 [disabled] [size=128K]
	Capabilities: [48] Power Management version 2
	Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
	Kernel driver in use: nvidia
	Kernel modules: nvidia, nvidiafb

00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
	Flags: fast devsel
	Capabilities: [80] HyperTransport: Host or Secondary Interface

00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
	Flags: fast devsel

00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
	Flags: fast devsel

00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
	Flags: fast devsel
	Capabilities: [f0] Secure device <?>
	Kernel driver in use: k8temp
	Kernel modules: k8temp

05:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
	Subsystem: Device 1a3b:1026
	Flags: bus master, fast devsel, latency 0, IRQ 19
	Memory at febf0000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: [40] Power Management version 2
	Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
	Capabilities: [60] Express Legacy Endpoint, MSI 00
	Capabilities: [90] MSI-X: Enable- Mask- TabSize=1
	Capabilities: [100] Advanced Error Reporting <?>
	Capabilities: [140] Virtual Channel <?>
	Kernel driver in use: ath5k_pci
	Kernel modules: ath5k
x50n:/# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 104
model name      : AMD Athlon(tm) 64 X2 Dual-Core Processor TK-57
stepping        : 2
cpu MHz         : 1893.116
cache size      : 256 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch
bogomips        : 3790.47
clflush size    : 64
power management: ts fid vid ttp tm stc 100mhzsteps

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 104
model name      : AMD Athlon(tm) 64 X2 Dual-Core Processor TK-57
stepping        : 2
cpu MHz         : 1893.116
cache size      : 256 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch
bogomips        : 3786.16
clflush size    : 64
power management: ts fid vid ttp tm stc 100mhzsteps
x50n:/#


Круговая прокрутка на touchpad


Прокрутка очень удобна для длинных документов. Открываем любимым редактором xorg.conf и ищем там секцию, отвечающую за тачпад:

Section "InputDevice"
    Identifier "Synaptics Touchpad"
    Driver "synaptics"
    Option "SendCoreEvents" "true"
    Option "Device" "/dev/psaux"
    Option "Protocol" "auto-dev"
    Option "CircularScrolling" "on" # Включить круговую прокрутку
    Option "CircScrollTrigger" "2" # Привязка начала кругов на правый верхний угол
    Option "HorizEdgeScroll" "on" # Горизонталная прокрутка по нижнему краю
    Option "SHMConfig" "on" # Системная настройка, необходима для следующих строк
    Option "TapButton2" "3" # Два пальца - на правую кнопку
    Option "TapButton3" "2" # Три пальца - на среднюю (колесо)
EndSection

Чтобы тачпад лучше распознавал круги, желательно «рисовать» их большими.
Больше информации можно получить из руководства - man synaptics
(взято с http://habrahabr.ru/blogs/linux/53863/)


Использование функциональных клавиш


Для начала нужна поддержка ACPI - устанавливаем пакет acpi-support-base
Открываем текстовый редактор и создаём файл /etc/acpi/events/hotkey следующего содержания:

event=.*
action=/etc/acpi/hotkey.sh %e

Теперь нужен скрипт обработки событий - файл /etc/acpi/hotkey.sh:

#!/bin/sh

[ "$1:$2" = hotkey:ATKD ] && case "$3" in
        00000032) /usr/bin/amixer -q set Headphone toggle ;;
        00000031) /usr/bin/amixer set PCM 5%- >/dev/null ;;
        00000030) /usr/bin/amixer set PCM 5%+ >/dev/null ;;
esac


Автоматическая конфигурация беспроводной сети



Это не работает :(

После настройки и проветки связи добавляем автоматический запуск в /etc/network/interfaces

auto wlan0
iface wlan0 inet dhcp
    pre-up wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B