Donation from Maigurs Stalidzans. Thanks!
[ikiwiki.git] / docs / user / ThinkpadT42.mdwn
1 # DragonFly on an IBM Thinkpad T42 
2
3 [[!toc  levels=3]]
4
5 ## Installed System 
6
7 I ran a recent kernel and world build from HEAD:
8
9
10     hades!matthias:~ % uname -a
11     DragonFly hades 2.7-DEVELOPMENT DragonFly 2.7-DEVELOPMENT #0: 
12     Sun Sep 26 19:12:12 CEST 2010     root@hades:/usr/src/sys/compile/T42  i386
13
14
15 ## Wired Network 
16
17 Installed Intel E1000 card works with em(4).
18
19 ## Wireless Network 
20
21 The built-in Atheros card works fine with ath(4).  I use WPA with wpa_supplicant,
22 also working flawlessly.
23
24 ## Power Management 
25
26 ACPI Suspend to RAM (S3) works.  You can suspend the machine with `acpiconf -s 3`. Furthermore if you suspend with X running, you have to restart the moused(8).
27
28 Gathering information about the battery works:
29
30     hades!matthias:~ % acpiconf -i 0
31
32     Battery 0 information
33     Design capacity:        71280 mWh
34     Last full capacity:     20680 mWh
35     Technology:             secondary (rechargeable)
36     Design voltage:         10800 mV
37     Capacity (warn):        1034 mWh
38     Capacity (low):         200 mWh
39     Low/warn granularity:   1 mWh
40     Warn/full granularity:  1 mWh
41     Model number:           IBM-08K8198
42     Serial number:            987
43     Type:                   LION
44     OEM info:               SANYO
45
46
47
48 ### Speed stepping 
49
50 est(4) and powerd(8) works out-of-the-box, I used pkgsrc/estd to control the frequency.
51
52     
53     hades!matthias:~ % sysctl machdep.est
54     machdep.est.frequency.target: 1700
55     machdep.est.frequency.current: 1700
56     machdep.est.frequency.available: 1700 1400 1200 1000 800 600
57
58
59 ## Sound
60
61 Works with snd_ich(4).
62
63
64 ## IBM Thinkpad driver
65
66 Load acpi_thinkpad kernel module.
67
68     hades!matthias:~ % sysctl hw.acpi.thinkpad
69     hw.acpi.thinkpad.initialmask: 2060
70     hw.acpi.thinkpad.availmask: 2524
71     hw.acpi.thinkpad.events: 0
72     hw.acpi.thinkpad.eventmask: 2060
73     hw.acpi.thinkpad.hotkey: 3472
74     hw.acpi.thinkpad.lcd_brightness: 2
75     hw.acpi.thinkpad.volume: 2
76     hw.acpi.thinkpad.mute: 1
77     hw.acpi.thinkpad.thinklight: 0
78     hw.acpi.thinkpad.bluetooth: 0
79     hw.acpi.thinkpad.wlan: 1
80     hw.acpi.thinkpad.fan_level: 0
81     hw.acpi.thinkpad.fan: 1
82
83 ## Internal sensors
84
85 Work out of the box:
86
87     hades!matthias:~ % sysctl -a | grep sensors
88     hw.sensors.acpi_tz0.temp0: 45.00 degC
89     hw.sensors.acpi_thinkpad0.temp0: 45.00 degC
90     hw.sensors.acpi_thinkpad0.temp1: 47.00 degC
91     hw.sensors.acpi_thinkpad0.temp2: 34.00 degC
92     hw.sensors.acpi_thinkpad0.temp3: 56.00 degC
93     hw.sensors.acpi_thinkpad0.temp4: 29.00 degC
94     hw.sensors.acpi_thinkpad0.temp5: invalid
95     hw.sensors.acpi_thinkpad0.temp6: 26.00 degC
96     hw.sensors.acpi_thinkpad0.temp7: invalid
97     hw.sensors.acpi_thinkpad0.fan0: 3717 RPM
98     hw.sensors.aps0.raw0: 529 (X_ACCEL)
99     hw.sensors.aps0.raw1: 471 (Y_ACCEL)
100     hw.sensors.aps0.raw2: 529 (X_VAR)
101     hw.sensors.aps0.raw3: 471 (Y_VAR)
102     hw.sensors.aps0.temp0: 46.00 degC
103     hw.sensors.aps0.temp1: 46.00 degC
104     hw.sensors.aps0.indicator0: On (Keyboard Active)
105     hw.sensors.aps0.indicator1: Off (Mouse Active)
106     hw.sensors.aps0.indicator2: On (Lid Open)
107
108 ## PCMCIA 
109
110 Tested with an external ath(4) card, works.
111
112 ## Graphics driver 
113
114 The built-in ATI Radeon works with the default X.org ***ati*** driver.  The display resolution is 1440x1050. DRM also works:
115
116     drm0: <ATI Radeon RV350 Mobility 9600 M10 NP> on vgapci0
117     vgapci0: child drm0 requested pci_enable_busmaster
118     info: [drm] AGP at 0xd0000000 256MB
119     info: [drm] Initialized radeon 1.29.0 20080528
120
121
122 ## Installed Devices 
123
124     
125     agp0@pci0:0:0:      class#0x060000 card0x05291014 chip=0x33408086 rev=0x03 hdr=0x00
126
127         vendor   = 'Intel Corporation'
128
129         device   = '82855PM Processor to I/O Controller'
130
131         class    = bridge
132
133         subclass = HOST-PCI
134
135     pcib1@pci0:1:0:     class#0x060400 card0x00000000 chip=0x33418086 rev=0x03 hdr=0x01
136
137         vendor   = 'Intel Corporation'
138
139         device   = '82855PM Processor to AGP Controller'
140
141         class    = bridge
142
143         subclass = PCI-PCI
144
145     none0@pci0:29:0:    class#0x0c0300 card0x052d1014 chip=0x24c28086 rev=0x01 hdr=0x00
146
147         vendor   = 'Intel Corporation'
148
149         device   = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1'
150
151         class    = serial bus
152
153         subclass = USB
154
155     none1@pci0:29:1:    class#0x0c0300 card0x052d1014 chip=0x24c48086 rev=0x01 hdr=0x00
156
157         vendor   = 'Intel Corporation'
158
159         device   = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2'
160
161         class    = serial bus
162
163         subclass = USB
164
165     none2@pci0:29:2:    class#0x0c0300 card0x052d1014 chip=0x24c78086 rev=0x01 hdr=0x00
166
167         vendor   = 'Intel Corporation'
168
169         device   = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3'
170
171         class    = serial bus
172
173         subclass = USB
174
175     none3@pci0:29:7:    class#0x0c0320 card0x052e1014 chip=0x24cd8086 rev=0x01 hdr=0x00
176
177         vendor   = 'Intel Corporation'
178
179         device   = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB 2.0 EHCI Controller'
180
181         class    = serial bus
182
183         subclass = USB
184
185     pcib2@pci0:30:0:    class#0x060400 card0x00000000 chip=0x24488086 rev=0x81 hdr=0x01
186
187         vendor   = 'Intel Corporation'
188
189         device   = '82801BAM/CAM/DBM (ICH2-M/3-M/4-M) Hub Interface to PCI Bridge'
190
191         class    = bridge
192
193         subclass = PCI-PCI
194
195     isab0@pci0:31:0:    class#0x060100 card0x00000000 chip=0x24cc8086 rev=0x01 hdr=0x00
196
197         vendor   = 'Intel Corporation'
198
199         device   = '82801DBM (ICH4-M) LPC Interface Bridge'
200
201         class    = bridge
202
203         subclass = PCI-ISA
204
205     atapci0@pci0:31:1:  class#0x01018a card0x052d1014 chip=0x24ca8086 rev=0x01 hdr=0x00
206
207         vendor   = 'Intel Corporation'
208
209         device   = '82801DBM (ICH4-M) UltraATA/100 EIDE Controller'
210
211         class    = mass storage
212
213         subclass = ATA
214
215     none4@pci0:31:3:    class#0x0c0500 card0x052d1014 chip=0x24c38086 rev=0x01 hdr=0x00
216
217         vendor   = 'Intel Corporation'
218
219         device   = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller'
220
221         class    = serial bus
222
223         subclass = SMBus
224
225     none5@pci0:31:5:    class#0x040100 card0x05541014 chip=0x24c58086 rev=0x01 hdr=0x00
226
227         vendor   = 'Intel Corporation'
228
229         device   = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller'
230
231         class    = multimedia
232
233         subclass = audio
234
235     none6@pci0:31:6:    class#0x070300 card0x055a1014 chip=0x24c68086 rev=0x01 hdr=0x00
236
237         vendor   = 'Intel Corporation'
238
239         device   = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller'
240
241         class    = simple comms
242
243         subclass = generic modem
244
245     none7@pci1:0:0:     class#0x030000 card0x05501014 chip=0x4e501002 rev=0x00 hdr=0x00
246
247         vendor   = 'ATI Technologies Inc'
248
249         device   = 'Mobility Radeon 9700 (M10 NP) (RV350)'
250
251         class    = display
252
253         subclass = VGA
254
255     cbb0@pci2:0:0:      class#0x060700 card0x05521014 chip=0xac46104c rev=0x01 hdr=0x02
256
257         vendor   = 'Texas Instruments (TI)'
258
259         device   = 'PCI4520 PC Card CardBus Controller'
260
261         class    = bridge
262
263         subclass = PCI-CardBus
264
265     cbb1@pci2:0:1:      class#0x060700 card0x05521014 chip=0xac46104c rev=0x01 hdr=0x02
266
267         vendor   = 'Texas Instruments (TI)'
268
269         device   = 'PCI4520 PC Card CardBus Controller'
270
271         class    = bridge
272
273         subclass = PCI-CardBus
274
275     none8@pci2:1:0:     class#0x020000 card0x05491014 chip=0x101e8086 rev=0x03 hdr=0x00
276
277         vendor   = 'Intel Corporation'
278
279         device   = '82540EP Gigabit Ethernet Controller (Mobile)'
280
281         class    = network
282
283         subclass = ethernet
284
285     ath0@pci2:2:0:      class#0x020000 card0x833117ab chip=0x1014168c rev=0x01 hdr=0x00
286
287         vendor   = 'Atheros Communications Inc.'
288
289         device   = 'AR5212 Atheros AR5212 802.11abg wireless'
290
291         class    = network
292
293         subclass = ethernet
294
295
296