====== Lenovo Thinkpad X201 ======
Testowana konfiguracja:
* CPU: Intel Core i5 M540 @ 2.53GHz
* VGA: Intel HD Graphics
* DISPLAY: 12,1" TFT 1280x800
* RAM: 8GB PC3-10600
* SSD: 240GB
* LAN: Intel 82577LM Gigabit Ethernet
* WLAN: Intel Centrino Ultimate-N 6300
* WWAN: Qualcomm Gobi 2000
* AUDIO: Intel HD Audio (CX20585)
* BLUETOOTH: Qualcomm FIXME
Powyższy sprzęt jest jest poprawnie wykrywany przez system. Uwagi co do sprzętu są następujące:
* Modem WWAN wymagania wgrania firmware, szczegóły tutaj: [[hardware:gobi2000|Qualcomm Gobi2000]]
:!: __Ciekawostką na temat tego sprzętu jest działające usypianie i wzbudzanie laptopa.__
Aby ustawić usypianie laptopa poprzez zamknięcie klapy z ekranem, ustawiamy sysctl:
sysctl hw.acpi.lid_switch_state=S3
Polecane wpisy do ''/boot/loader.conf'':
kern.geom.label.gptid.enable="0"
kern.vty="vt"
acpi_ibm_load="YES"
aesni_load="YES"
i915kms_load="YES"
Kartę dźwiękową da się skonfigurować by działało przełączanie pomiędzy głośnikami a słuchawkami:
Domyślna detekcja wejść/wyjść dźwiękowych:
hdaa0: Original pins configuration:
hdaa0: nid 0x as seq device conn jack loc color misc
hdaa0: 25 042140f0 15 0 Headphones Jack 1/8 Right Green 0
hdaa0: 26 61a190f0 15 0 Mic None 1/8 Ext-Rear Pink 0
hdaa0: 27 04a190f0 15 0 Mic Jack 1/8 Right Pink 0
hdaa0: 28 612140f0 15 0 Headphones None 1/8 Ext-Rear Green 0
hdaa0: 29 601700f0 15 0 Speaker None Analog External Unknown 0
hdaa0: 30 40f001f0 15 0 Other None Unknown 0x00 Unknown 1
hdaa0: 31 901701f0 15 0 Speaker Fixed Analog Internal Unknown 1
hdaa0: 32 40f001f0 15 0 Other None Unknown 0x00 Unknown 1
hdaa0: 34 40f001f0 15 0 Other None Unknown 0x00 Unknown 1
hdaa0: 35 90a601f0 15 0 Mic Fixed Digital Internal Unknown 1
Konfiguracja do **''/boot/device.hints''**:
# snd_hda for Thinkpad X201
hint.hdaa.0.nid25.config="as=1 seq=15"
hint.hdaa.0.nid27.config="as=2 seq=15"
hint.hdaa.0.nid31.config="as=1 seq=0"
hint.hdaa.0.nid35.config="as=2 seq=0"
Po restarcie mamy konfigurację:
hdaa0: Patched pins configuration:
hdaa0: nid 0x as seq device conn jack loc color misc
hdaa0: 25 0421401f 1 15 Headphones Jack 1/8 Right Green 0
hdaa0: 26 61a190f0 15 0 Mic None 1/8 Ext-Rear Pink 0 DISA
hdaa0: 27 04a1902f 2 15 Mic Jack 1/8 Right Pink 0
hdaa0: 28 612140f0 15 0 Headphones None 1/8 Ext-Rear Green 0 DISA
hdaa0: 29 601700f0 15 0 Speaker None Analog External Unknown 0 DISA
hdaa0: 30 40f001f0 15 0 Other None Unknown 0x00 Unknown 1 DISA
hdaa0: 31 90170110 1 0 Speaker Fixed Analog Internal Unknown 1
hdaa0: 32 40f001f0 15 0 Other None Unknown 0x00 Unknown 1 DISA
hdaa0: 34 40f001f0 15 0 Other None Unknown 0x00 Unknown 1 DISA
hdaa0: 35 90a60120 2 0 Mic Fixed Digital Internal Unknown 1
Konfiguracja kanałów audio:
pcm0: at nid 31,25 and 35,27 on hdaa0
pcm0: Playback:
pcm0: Stream cap: 0x00000001 PCM
pcm0: PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz
pcm0: DAC: 16
pcm0:
pcm0: nid=31 [pin: Speaker (Fixed)]
pcm0: + <- nid=16 [audio output] [src: pcm]
pcm0:
pcm0: nid=25 [pin: Headphones (Green Jack)]
pcm0: + <- nid=16 [audio output] [src: pcm]
pcm0:
pcm0: Record:
pcm0: Stream cap: 0x00000001 PCM
pcm0: PCM cap: 0x000e0160 16 20 24 bits, 44 48 96 KHz
pcm0: ADC: 20
pcm0:
pcm0: nid=20 [audio input]
pcm0: + <- nid=23 [audio selector] [src: mic]
pcm0: + <- nid=27 [pin: Mic (Pink Jack)] [src: mic]
pcm0: + <- nid=35 [pin: Mic (Fixed)] [src: monitor]
pcm0:
pcm0: Master Volume (OSS: vol): -74/0dB
pcm0: +- ctl 1 (nid 16 out): -74/0dB (75 steps) + mute
pcm0:
pcm0: PCM Volume (OSS: pcm): -74/0dB
pcm0: +- ctl 1 (nid 16 out): -74/0dB (75 steps) + mute
pcm0:
pcm0: Microphone Volume (OSS: mic): 0/40dB
pcm0: +- ctl 4 (nid 20 in 0): -74/6dB (81 steps) + mute
pcm0: +- ctl 7 (nid 23 out): 0/40dB (5 steps)
pcm0:
pcm0: Microphone2 Volume (OSS: monitor): 0/48dB
pcm0: +- ctl 9 (nid 35 out): 0/48dB (5 steps)
pcm0:
pcm0: Speaker/Beep Volume (OSS: speaker): -28/0dB
pcm0: +- ctl 3 (nid 19 out): -28/0dB (8 steps)
pcm0:
pcm0: Recording Level (OSS: rec): 0/6dB
pcm0: +- ctl 4 (nid 20 in 0): -74/6dB (81 steps) + mute
pcm0: +- ctl 7 (nid 23 out): 0/40dB (5 steps)
pcm0: +- ctl 9 (nid 35 out): 0/48dB (5 steps)
pcm0:
pcm0: Mixer "vol":
pcm0: Mixer "pcm":
pcm0: Mixer "speaker":
pcm0: Mixer "mic":
pcm0: Mixer "rec":
pcm0: Mixer "monitor":
pcm0: Playback channel set is: Front Left, Front Right,
pcm0: Playback channel matrix is: 2.0 (unknown)
pcm0: Automatically set rec source to: monitor
pcm0: Recording channel set is: Front Left, Front Right,
pcm0: Recording channel matrix is: 2.0 (unknown)
Więcej szczegółów i przykładów jak to ustawiać opisane jest w [[https://www.freebsd.org/cgi/man.cgi?query=snd_hda|snd_hda(4)]]