~isantop/system76-driver/pkexec

48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1
#
2
#!/usr/bin/env python
3
## System76, Inc.
4
## Copyright System76, Inc.
5
## Released under the GNU General Public License (See LICENSE)
6
##
55.1.3 by Ian Santopietro
Add module to disable WiFi power saving
7
## Describes driver installation
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
8
9
#import driver files
10
import ubuntuversion
11
import model
12
import detect
13
48.3.1 by Ian Santopietro
Cleaned up source code for final release, ready for testing
14
#import function files - KEEP IN ALPHABETICAL ORDER!
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
15
import acpi
48.3.1 by Ian Santopietro
Cleaned up source code for final release, ready for testing
16
import fprint
17
import hardy_led
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
18
import hotkey
48.3.1 by Ian Santopietro
Cleaned up source code for final release, ready for testing
19
import misc
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
20
import ricoh_cr
48.3.1 by Ian Santopietro
Cleaned up source code for final release, ready for testing
21
import sound
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
22
import usplash
48.3.1 by Ian Santopietro
Cleaned up source code for final release, ready for testing
23
import uvc
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
24
25
## KEEP ALL MODELS IN ALPHABETICAL ORDER
26
55.1.5 by Ian Santopietro
Fix change regarding driversdescribe.py
27
def describeDrivers():
55.1.2 by Ian Santopietro
Add support for 13.04
28
    """This function installs the appropriate drivers for each machine"""
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
29
    
30
    global nodrivers
31
    nodrivers = "false"
32
    modelname = model.determine_model()
33
    version = ubuntuversion.release()
34
    arch = detect.arch()
35
    if version == ('0.2'):
36
        version = '12.04'
37
    
38
    if version == ('8.04.1'):
39
        version = '8.04'
55.1.2 by Ian Santopietro
Add support for 13.04
40
    #Bonobo
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
41
    if modelname == ('bonp1'):
42
        if version == ('6.06'):
43
            nodrivers = "true"
44
            return nodrivers
45
        elif version == ('6.10'):
46
            sound.alsa6().describe()
47
        elif version == ('7.04'):
48
            nodrivers = "true"
49
            return nodrivers
50
        elif version == ('7.10'):
51
            nodrivers = "true"
52
            return nodrivers
53
        elif version == ('8.04'):
54
            hardy_led.install().describe()
55
        elif version == ('8.10'):
56
            nodrivers = "true"
57
            return nodrivers
58
        elif version == ('9.04'):
59
            nodrivers = "true"
60
            return nodrivers
61
        elif version == ('9.10'):
62
            nodrivers = "true"
63
            return nodrivers
64
        elif version == ('10.04'):
65
            nodrivers = "true"
66
            return nodrivers
67
        elif version == ('10.10'):
68
            nodrivers = "true"
69
            return nodrivers
70
        elif version == ('11.04'):
71
            nodrivers = "true"
72
            return nodrivers
73
        elif version == ('11.10'):
74
            nodrivers = "true"
75
            return nodrivers
76
        elif version == ('12.04'):
77
            nodrivers = "true"
78
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
79
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
80
            misc.linux_headers().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
81
        elif version == ('13.04'):
82
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
83
        else:
84
            nodrivers = "true"
85
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
86
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
87
    elif modelname == ('bonp2'):
88
        if version == ('8.04'):
89
            sound.alsa10().describe()
90
            uvc.camera().describe()
91
            fprint.install().describe()
92
            acpi.osiNotWindows().describe()
93
        elif version == ('8.10'):
94
            sound.alsa10().describe()
95
            uvc.camera().describe()
96
            fprint.install().describe()
97
            acpi.osiNotWindows().describe()
98
        elif version == ('9.04'):
99
            fprint.install().describe()
100
            acpi.osiNotWindows().describe()
101
            misc.linux_backports().describe()
102
        elif version == ('9.10'):
103
            fprint.installPackages().describe()
104
        elif version == ('10.04'):
105
            fprint.installPackages().describe()
106
        elif version == ('10.10'):
107
            nodrivers = "true"
108
            return nodrivers
109
        elif version == ('11.04'):
110
            nodrivers = "true"
111
            return nodrivers
112
        elif version == ('11.10'):
113
            nodrivers = "true"
114
            return nodrivers
115
        elif version == ('12.04'):
116
            nodrivers = "true"
117
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
118
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
119
            misc.linux_headers().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
120
        elif version == ('13.04'):
121
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
122
        else:
123
            nodrivers = "true"
124
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
125
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
126
    elif modelname == ('bonp3'):
127
        if version == ('9.10'):
128
            acpi.os_linux().describe()
129
            fprint.installUpek1().describe()
130
            misc.jme_nic().describe()
131
            misc.rm_aticatalyst().describe()
132
        elif version == ('10.04'):
133
            fprint.installUpek1().describe()
134
            acpi.os_linux().describe()
135
        elif version == ('10.10'):
136
            nodrivers = "true"
137
            return nodrivers
138
        elif version == ('11.04'):
139
            nodrivers = "true"
140
            return nodrivers
141
        elif version == ('11.10'):
142
            nodrivers = "true"
143
            return nodrivers
144
        elif version == ('12.04'):
145
            nodrivers = "true"
146
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
147
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
148
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
149
        else:
150
            nodrivers = "true"
151
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
152
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
153
    elif modelname == ('bonp4'):
154
        if version == ('10.10'):
155
            acpi.xhcihcdModule().describe()
156
        elif version == ('11.04'):
157
            nodrivers = "true"
158
            return nodrivers
159
        elif version == ('11.10'):
160
            nodrivers = "true"
161
            return nodrivers
162
        elif version == ('12.04'):
163
            nodrivers = "true"
164
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
165
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
166
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
167
        else:
168
            nodrivers = "true"
169
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
170
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
171
    elif modelname == ('bonp5'):
172
        if version == ('11.04'):
173
            acpi.pcie_aspm().describe()
174
            sound.audioDevPPA().describe()
175
        elif version == ('11.10'):
176
            nodrivers = "true"
177
            return nodrivers
178
        elif version == ('12.04'):
179
            fprint.fingerprintGUI().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
180
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
181
            misc.linux_headers().describe()
182
            fprint.fingerprintGUI().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
183
        elif version == ('13.04'):
184
            fprint.fingerprintGUI().describe()
55.1.1 by Ian Santopietro
Pull in latest Source code
185
        else:
186
            nodrivers = "true"
187
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
188
            
55.1.1 by Ian Santopietro
Pull in latest Source code
189
    elif modelname == ('bonx6'):
190
        if version == ('12.04'):
191
            fprint.fingerprintGUI().describe()
192
        elif version == ('12.10'):
193
            misc.linux_headers().describe()
194
            fprint.fingerprintGUI().describe()
195
            misc.realtek_rts_bpp().describe()
196
            misc.lightdm_race().describe()
197
            misc.plymouth1080().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
198
        elif version == ('13.04'):
199
            fprint.fingerprintGUI().describe()
200
            misc.plymouth1080().describe()
55.1.4 by Ian Santopietro
Fix issue where Dashes aren't allowed in Class names
201
            misc.wifi_pm_disable().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
202
        else:
203
            nodrivers = "true"
204
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
205
    
206
    #Darter        
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
207
    elif modelname == ('daru1'):
208
        if version == ('6.06'):
209
            sound.alsa6().describe()
210
        elif version == ('6.10'):
211
            sound.alsa6().describe()
212
        elif version == ('7.04'):
213
            misc.piix().describe()
214
            acpi.acpi1().describe()
215
            hotkey.daru1_monitor_switch().describe()
216
        elif version == ('7.10'):
217
            acpi.acpi3().describe()
218
            hotkey.daru1_monitor_switch().describe()
219
        elif version == ('8.04'):
220
            acpi.acpi3().describe()
221
            hotkey.daru1_monitor_switch().describe()
222
            hardy_led.install().describe()
223
        elif version == ('8.10'):
224
            hotkey.daru1_touchpad_switch().describe()
225
        elif version == ('9.04'):
226
            hotkey.daru1_touchpad_switch().describe()
227
        elif version == ('9.10'):
228
            nodrivers = "true"
229
            return nodrivers
230
        elif version == ('10.04'):
231
            nodrivers = "true"
232
            return nodrivers
233
        elif version == ('10.10'):
234
            nodrivers = "true"
235
            return nodrivers
236
        elif version == ('11.04'):
237
            nodrivers = "true"
238
            return nodrivers
239
        elif version == ('11.10'):
240
            nodrivers = "true"
241
            return nodrivers
242
        elif version == ('12.04'):
243
            nodrivers = "true"
244
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
245
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
246
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
247
        else:
248
            nodrivers = "true"
249
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
250
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
251
    elif modelname == ('daru2'):
252
        if version == ('7.04'):
253
            misc.piix2().describe()
254
            acpi.acpi2().describe()
255
            acpi.daru2().describe()
256
            sound.alsa4().describe()
257
        elif version == ('7.10'):
258
            acpi.acpi3().describe()
259
            acpi.daru2().describe()
260
            sound.alsa4().describe()
261
        elif version == ('8.04'):
262
            sound.alsa4().describe()
263
            hardy_led.install().describe()
264
        elif version == ('8.10'):
265
            sound.alsa4().describe()
266
        elif version == ('9.04'):
267
            nodrivers = "true"
268
            return nodrivers
269
        elif version == ('9.10'):
270
            nodrivers = "true"
271
            return nodrivers
272
        elif version == ('10.04'):
273
            nodrivers = "true"
274
            return nodrivers
275
        elif version == ('10.10'):
276
            nodrivers = "true"
277
            return nodrivers
278
        elif version == ('11.04'):
279
            nodrivers = "true"
280
            return nodrivers
281
        elif version == ('11.10'):
282
            nodrivers = "true"
283
            return nodrivers
284
        elif version == ('12.04'):
285
            nodrivers = "true"
286
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
287
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
288
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
289
        else:
290
            nodrivers = "true"
291
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
292
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
293
    elif modelname == ('daru3'):
294
        if version == ('8.04'):
295
            sound.alsa10().describe()
296
            uvc.camera().describe()
297
            fprint.install().describe()
298
        elif version == ('8.10'):
299
            sound.alsa10().describe()
300
            uvc.camera().describe()
301
            fprint.install().describe()
302
            acpi.acpi4().describe()
303
        elif version == ('9.04'):
304
            fprint.install().describe()
305
        elif version == ('9.10'):
306
            fprint.installPackages().describe()
307
        elif version == ('10.04'):
308
            fprint.installPackages().describe()
309
        elif version == ('10.10'):
310
            nodrivers = "true"
311
            return nodrivers
312
        elif version == ('11.04'):
313
            nodrivers = "true"
314
            return nodrivers
315
        elif version == ('11.10'):
316
            acpi.lemu1().describe()
317
        elif version == ('12.04'):
318
            fprint.fingerprintGUI().describe()
319
            acpi.lemu1().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
320
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
321
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
322
            fprint.fingerprintGUI().describe()
323
            acpi.lemu1().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
324
        elif version == ('13.04'):
325
            fprint.fingerprintGUI().describe()
326
            acpi.lemu1().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
327
        else:
328
            nodrivers = "true"
329
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
330
    
331
    #Gazelle        
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
332
    elif modelname == ('gazp1'):
333
        if version == ('6.06'):
334
            sound.alsa6().describe()
335
        elif version == ('6.10'):
336
            nodrivers = "true"
337
            return nodrivers
338
        elif version == ('7.04'):
339
            sound.alsa6().describe()
340
            acpi.acpi1().describe()
341
        elif version == ('7.10'):
342
            sound.alsa6().describe()
343
            acpi.acpi3().describe()
344
        elif version == ('8.04'):
345
            hardy_led.install().describe()
346
        elif version == ('8.10'):
347
            nodrivers = "true"
348
            return nodrivers
349
        elif version == ('9.04'):
350
            nodrivers = "true"
351
            return nodrivers
352
        elif version == ('9.10'):
353
            nodrivers = "true"
354
            return nodrivers
355
        elif version == ('10.04'):
356
            nodrivers = "true"
357
            return nodrivers
358
        elif version == ('10.10'):
359
            nodrivers = "true"
360
            return nodrivers
361
        elif version == ('11.04'):
362
            nodrivers = "true"
363
            return nodrivers
364
        elif version == ('11.10'):
365
            nodrivers = "true"
366
            return nodrivers
367
        elif version == ('12.04'):
368
            nodrivers = "true"
369
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
370
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
371
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
372
        else:
373
            nodrivers = "true"
374
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
375
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
376
    elif modelname == ('gazp2'):
377
        if version == ('6.06'):
378
            sound.alsa6().describe()
379
        elif version == ('6.10'):
380
            nodrivers = "true"
381
            return nodrivers
382
        elif version == ('7.04'):
383
            sound.alsa6().describe()
384
            acpi.acpi1().describe()
385
        elif version == ('7.10'):
386
            sound.alsa6().describe()
387
            acpi.acpi3().describe()
388
        elif version == ('8.04'):
389
            hardy_led.install().describe()
390
        elif version == ('8.10'):
391
            nodrivers = "true"
392
            return nodrivers
393
        elif version == ('9.04'):
394
            nodrivers = "true"
395
            return nodrivers
396
        elif version == ('9.10'):
397
            nodrivers = "true"
398
            return nodrivers
399
        elif version == ('10.04'):
400
            nodrivers = "true"
401
            return nodrivers
402
        elif version == ('10.10'):
403
            nodrivers = "true"
404
            return nodrivers
405
        elif version == ('11.04'):
406
            nodrivers = "true"
407
            return nodrivers
408
        elif version == ('11.10'):
409
            nodrivers = "true"
410
            return nodrivers
411
        elif version == ('12.04'):
412
            nodrivers = "true"
413
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
414
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
415
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
416
        else:
417
            nodrivers = "true"
418
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
419
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
420
    elif modelname == ('gazp3'):
421
        if version == ('6.06'):
422
            sound.alsa6().describe()
423
        elif version == ('6.10'):
424
            nodrivers = "true"
425
            return nodrivers
426
        elif version == ('7.04'):
427
            sound.alsa6().describe()
428
            acpi.acpi1().describe()
429
        elif version == ('7.10'):
430
            sound.alsa6().describe()
431
            acpi.acpi3().describe()
432
        elif version == ('8.04'):
433
            hardy_led.install().describe()
434
        elif version == ('8.10'):
435
            nodrivers = "true"
436
            return nodrivers
437
        elif version == ('9.04'):
438
            nodrivers = "true"
439
            return nodrivers
440
        elif version == ('9.10'):
441
            nodrivers = "true"
442
            return nodrivers
443
        elif version == ('10.04'):
444
            nodrivers = "true"
445
            return nodrivers
446
        elif version == ('10.10'):
447
            nodrivers = "true"
448
            return nodrivers
449
        elif version == ('11.04'):
450
            nodrivers = "true"
451
            return nodrivers
452
        elif version == ('11.10'):
453
            nodrivers = "true"
454
            return nodrivers
455
        elif version == ('12.04'):
456
            nodrivers = "true"
457
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
458
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
459
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
460
        else:
461
            nodrivers = "true"
462
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
463
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
464
    elif modelname == ('gazp5'):
465
        if version == ('7.04'):
466
            misc.piix2().describe()
467
            sound.alsa5().describe()
468
            uvc.camera().describe()
469
            acpi.acpi1().describe()
470
            ricoh_cr.card_reader().describe()
471
        elif version == ('7.10'):
472
            sound.alsa5().describe()
473
            acpi.acpi3().describe()
474
            ricoh_cr.card_reader().describe()
475
        elif version == ('8.04'):
476
            sound.alsa9().describe()
477
            hardy_led.install().describe()
478
        elif version == ('8.10'):
479
            sound.alsa9().describe()
480
        elif version == ('9.04'):
481
            nodrivers = "true"
482
            return nodrivers
483
        elif version == ('9.10'):
484
            nodrivers = "true"
485
            return nodrivers
486
        elif version == ('10.04'):
487
            nodrivers = "true"
488
            return nodrivers
489
        elif version == ('10.10'):
490
            nodrivers = "true"
491
            return nodrivers
492
        elif version == ('11.04'):
493
            nodrivers = "true"
494
            return nodrivers
495
        elif version == ('11.10'):
496
            nodrivers = "true"
497
            return nodrivers
498
        elif version == ('12.04'):
499
            nodrivers = "true"
500
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
501
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
502
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
503
        else:
504
            nodrivers = "true"
505
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
506
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
507
    elif modelname == ('gazp6'):
508
        if version == ('10.10'):
509
            fprint.fingerprintGUI().describe()
510
            acpi.xhcihcdModule().describe()
511
            misc.gnomeThemeRace().describe()
512
            acpi.pcie_aspm().describe()
513
        elif version == ('11.04'):
514
            acpi.pcie_aspm().describe()
515
        elif version == ('11.10'):
516
            nodrivers = "true"
517
            return nodrivers
518
        elif version == ('12.04'):
519
            fprint.fingerprintGUI().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
520
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
521
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
522
            fprint.fingerprintGUI().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
523
        elif version == ('13.04'):
524
            fprint.fingerprintGUI().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
525
        else:
526
            nodrivers = "true"
527
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
528
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
529
    elif modelname == ('gazp7'):
530
        if version == ('12.04'):
531
            acpi.lemu1().describe()
532
            misc.realtek_rts_bpp().describe()
55 by Carl Richell
1.) Fix lightdm race condition on current models
533
            misc.lightdm_race().describe()
534
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
535
            misc.linux_headers().describe()
55 by Carl Richell
1.) Fix lightdm race condition on current models
536
            acpi.lemu1().describe()
537
            misc.realtek_rts_bpp().describe()
538
            misc.lightdm_race().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
539
        elif version == ('13.04'):
540
            acpi.lemu1().describe()
55.1.4 by Ian Santopietro
Fix issue where Dashes aren't allowed in Class names
541
            misc.wifi_pm_disable().describe()
55 by Carl Richell
1.) Fix lightdm race condition on current models
542
        else:
543
            nodrivers = "true"
544
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
545
            
55 by Carl Richell
1.) Fix lightdm race condition on current models
546
    elif modelname == ('gazp8'):
547
        if version == ('12.04'):
548
            acpi.lemu1().describe()
549
            misc.realtek_rts_bpp().describe()
550
            misc.lightdm_race().describe()
551
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
552
            misc.linux_headers().describe()
55 by Carl Richell
1.) Fix lightdm race condition on current models
553
            acpi.lemu1().describe()
554
            misc.realtek_rts_bpp().describe()
555
            misc.lightdm_race().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
556
        elif version == ('13.04'):
55.1.3 by Ian Santopietro
Add module to disable WiFi power saving
557
            acpi.lemu1().describe()
55.1.4 by Ian Santopietro
Fix issue where Dashes aren't allowed in Class names
558
            misc.wifi_pm_disable().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
559
        else:
560
            nodrivers = "true"
561
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
562
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
563
    elif modelname == ('gazv1'):
564
        nodrivers = "true"
565
        return nodrivers
566
    elif modelname == ('gazv2'):
567
        if version == ('6.06'):
568
            sound.alsa6().describe()
569
        elif version == ('6.10'):
570
            sound.alsa6().describe()
571
        elif version == ('7.04'):
572
            sound.alsa6().describe()
573
            acpi.acpi1().describe()
574
        elif version == ('7.10'):
575
            sound.alsa6().describe()
576
            acpi.acpi3().describe()
577
        elif version == ('8.04'):
578
            hardy_led.install().describe()
579
        elif version == ('8.10'):
580
            nodrivers = "true"
581
            return nodrivers
582
        elif version == ('9.04'):
583
            nodrivers = "true"
584
            return nodrivers
585
        elif version == ('9.10'):
586
            nodrivers = "true"
587
            return nodrivers
588
        elif version == ('10.04'):
589
            nodrivers = "true"
590
            return nodrivers
591
        elif version == ('10.10'):
592
            nodrivers = "true"
593
            return nodrivers
594
        elif version == ('11.04'):
595
            nodrivers = "true"
596
            return nodrivers
597
        elif version == ('11.10'):
598
            nodrivers = "true"
599
            return nodrivers
600
        elif version == ('12.04'):
601
            nodrivers = "true"
602
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
603
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
604
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
605
        else:
606
            nodrivers = "true"
607
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
608
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
609
    elif modelname == ('gazv3'):
610
        if version == ('6.06'):
611
            sound.alsa6().describe()
612
        elif version == ('6.10'):
613
            nodrivers = "true"
614
            return nodrivers
615
        elif version == ('7.04'):
616
            sound.alsa6().describe()
617
            misc.piix().describe()
618
            acpi.acpi2().describe()
619
        elif version == ('7.10'):
620
            sound.alsa6().describe()
621
            acpi.acpi3().describe()
622
        elif version == ('8.04'):
623
            hardy_led.install().describe()
624
        elif version == ('8.10'):
625
            nodrivers = "true"
626
            return nodrivers
627
        elif version == ('9.04'):
628
            nodrivers = "true"
629
            return nodrivers
630
        elif version == ('9.10'):
631
            nodrivers = "true"
632
            return nodrivers
633
        elif version == ('10.04'):
634
            nodrivers = "true"
635
            return nodrivers
636
        elif version == ('10.10'):
637
            nodrivers = "true"
638
            return nodrivers
639
        elif version == ('11.04'):
640
            nodrivers = "true"
641
            return nodrivers
642
        elif version == ('11.10'):
643
            nodrivers = "true"
644
            return nodrivers
645
        elif version == ('12.04'):
646
            nodrivers = "true"
647
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
648
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
649
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
650
        else:
651
            nodrivers = "true"
652
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
653
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
654
    elif modelname == ('gazv4'):
655
        if version == ('6.06'):
656
            sound.alsa6().describe()
657
        elif version == ('6.10'):
658
            sound.alsa6().describe()
659
        elif version == ('7.04'):
660
            sound.alsa6().describe()
661
            misc.piix().describe()
662
            acpi.acpi2().describe()
663
        elif version == ('7.10'):
664
            sound.alsa6().describe()
665
            acpi.acpi3().describe()
666
        elif version == ('8.04'):
667
            hardy_led.install().describe()
668
        elif version == ('8.10'):
669
            nodrivers = "true"
670
            return nodrivers
671
        elif version == ('9.04'):
672
            nodrivers = "true"
673
            return nodrivers
674
        elif version == ('9.10'):
675
            nodrivers = "true"
676
            return nodrivers
677
        elif version == ('10.04'):
678
            nodrivers = "true"
679
            return nodrivers
680
        elif version == ('10.10'):
681
            nodrivers = "true"
682
            return nodrivers
683
        elif version == ('11.04'):
684
            nodrivers = "true"
685
            return nodrivers
686
        elif version == ('11.10'):
687
            nodrivers = "true"
688
            return nodrivers
689
        elif version == ('12.04'):
690
            nodrivers = "true"
691
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
692
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
693
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
694
        else:
695
            nodrivers = "true"
696
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
697
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
698
    elif modelname == ('gazv5'):
699
        if version == ('7.04'):
700
            misc.piix2().describe()
701
            sound.alsa5().describe()
702
            uvc.camera().describe()
703
            acpi.acpi1().describe()
704
            ricoh_cr.card_reader().describe()
705
        elif version == ('7.10'):
706
            sound.alsa5().describe()
707
            ricoh_cr.card_reader().describe()
708
        elif version == ('8.04'):
709
            sound.alsa9().describe()
710
            hardy_led.install().describe()
711
        elif version == ('8.10'):
712
            sound.alsa9().describe()
713
        elif version == ('9.04'):
714
            nodrivers = "true"
715
            return nodrivers
716
        elif version == ('9.10'):
717
            nodrivers = "true"
718
            return nodrivers
719
        elif version == ('10.04'):
720
            nodrivers = "true"
721
            return nodrivers
722
        elif version == ('10.10'):
723
            nodrivers = "true"
724
            return nodrivers
725
        elif version == ('11.04'):
726
            nodrivers = "true"
727
            return nodrivers
728
        elif version == ('11.10'):
729
            nodrivers = "true"
730
            return nodrivers
731
        elif version == ('12.04'):
732
            nodrivers = "true"
733
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
734
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
735
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
736
        else:
737
            nodrivers = "true"
738
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
739
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
740
    elif modelname == ('gazu1'):
741
        if version == ('8.04'):
742
            sound.alsa10().describe()
743
            uvc.camera().describe()
744
            uvc.quirks().describe()
745
            fprint.install().describe()
746
        elif version == ('8.10'):
747
            sound.alsa10().describe()
748
            uvc.quirks().describe()
749
            fprint.install().describe()
750
        elif version == ('9.04'):
751
            uvc.quirks().describe()
752
            fprint.install().describe()
753
        elif version == ('9.10'):
754
            uvc.quirks().describe()
755
            fprint.installPackages().describe()
756
        elif version == ('10.04'):
757
            uvc.quirks().describe()
758
            fprint.installPackages().describe()
759
        elif version == ('10.10'):
760
            uvc.quirks().describe()
761
        elif version == ('11.04'):
762
            uvc.quirks().describe()
763
        elif version == ('11.10'):
764
            uvc.quirks().describe()
765
        elif version == ('12.04'):
766
            uvc.quirks().describe()
767
            fprint.fingerprintGUI().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
768
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
769
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
770
            uvc.quirks().describe()
771
            fprint.fingerprintGUI().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
772
        elif version == ('13.04'):
773
            fprint.fingerprintGUI().describe()
774
            uvc.quirks().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
775
        else:
776
            nodrivers = "true"
777
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
778
    
779
    #Koala        
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
780
    elif modelname == ('koap1'):
781
        if version == ('6.06'):
782
            nodrivers = "true"
783
            return nodrivers
784
        elif version == ('6.10'):
785
            nodrivers = "true"
786
            return nodrivers
787
        elif version == ('7.04'):
788
            acpi.acpi1().describe()
789
        elif version == ('7.10'):
790
            nodrivers = "true"
791
            return nodrivers
792
        elif version == ('8.04'):
793
            nodrivers = "true"
794
            return nodrivers
795
        elif version == ('8.10'):
796
            nodrivers = "true"
797
            return nodrivers
798
        elif version == ('9.04'):
799
            nodrivers = "true"
800
            return nodrivers
801
        elif version == ('9.10'):
802
            nodrivers = "true"
803
            return nodrivers
804
        elif version == ('10.04'):
805
            nodrivers = "true"
806
            return nodrivers
807
        elif version == ('10.10'):
808
            nodrivers = "true"
809
            return nodrivers
810
        elif version == ('11.04'):
811
            nodrivers = "true"
812
            return nodrivers
813
        elif version == ('11.10'):
814
            nodrivers = "true"
815
            return nodrivers
816
        elif version == ('12.04'):
817
            nodrivers = "true"
818
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
819
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
820
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
821
        else:
822
            nodrivers = "true"
823
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
824
    
825
    #Lemur        
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
826
    elif modelname == ('lemu1'):
827
        if version == ('9.04'):
828
            uvc.lemur().describe()
829
            acpi.lemu1().describe()
830
        elif version == ('9.10'):
831
            uvc.lemur().describe()
832
            acpi.lemu1().describe()
833
            misc.jme_nic().describe()
834
        elif version == ('10.04'):
835
            uvc.lemur().describe()
836
            acpi.lemu1().describe()
837
        elif version == ('10.10'):
838
            acpi.lemu1().describe()
839
        elif version == ('11.04'):
840
            acpi.lemu1().describe()
841
        elif version == ('11.10'):
842
            acpi.lemu1().describe()
843
        elif version == ('12.04'):
844
            acpi.lemu1().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
845
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
846
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
847
            acpi.lemu1().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
848
        elif version == ('13.04'):
849
            fprint.fingerprintGUI().describe()
850
            acpi.lemu1().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
851
        else:
852
            nodrivers = "true"
853
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
854
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
855
    elif modelname == ('lemu2'):
856
        if version == ('10.04'):
857
            uvc.lemur().describe()
858
        elif version == ('10.10'):
859
            nodrivers = "true"
860
            return nodrivers
861
        elif version == ('11.04'):
862
            nodrivers = "true"
863
            return nodrivers
864
        elif version == ('11.10'):
865
            nodrivers = "true"
866
            return nodrivers
867
        elif version == ('12.04'):
868
            nodrivers = "true"
869
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
870
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
871
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
872
        else:
873
            nodrivers = "true"
874
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
875
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
876
    elif modelname == ('lemu3'):
877
        if version == ('11.04'):
878
            acpi.lemu1().describe()
879
        elif version == ('11.10'):
880
            acpi.lemu1().describe()
881
        elif version == ('12.04'):
882
            acpi.lemu1().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
883
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
884
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
885
            acpi.lemu1().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
886
        elif version == ('13.04'):
887
            acpi.lemu1().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
888
        else:
889
            nodrivers = "true"
890
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
891
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
892
    elif modelname == ('lemu4'):
893
        if version == ('11.10'):
894
            acpi.lemu1().describe()
895
            misc.realtek_rts_bpp().describe()
896
        elif version == ('12.04'):
897
            acpi.lemu1().describe()
898
            misc.realtek_rts_bpp().describe()
55 by Carl Richell
1.) Fix lightdm race condition on current models
899
            misc.lightdm_race().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
900
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
901
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
902
            acpi.lemu1().describe()
903
            misc.realtek_rts_bpp().describe()
55 by Carl Richell
1.) Fix lightdm race condition on current models
904
            misc.lightdm_race().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
905
        elif version == ('13.04'):
906
            acpi.lemu1().describe()
55.1.4 by Ian Santopietro
Fix issue where Dashes aren't allowed in Class names
907
            misc.wifi_pm_disable().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
908
        else:
909
            nodrivers = "true"
910
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
911
    
912
    #Leopard        
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
913
    elif modelname == ('leo1'):
914
        if version == ('9.04'):
915
            nodrivers = "true"
916
            return nodrivers
917
        elif version == ('9.10'):
918
            nodrivers = "true"
919
            return nodrivers
920
        elif version == ('10.04'):
921
            nodrivers = "true"
922
            return nodrivers
923
        elif version == ('10.10'):
924
            nodrivers = "true"
925
            return nodrivers
926
        elif version == ('11.04'):
927
            nodrivers = "true"
928
            return nodrivers
929
        elif version == ('11.10'):
930
            nodrivers = "true"
931
            return nodrivers
932
        elif version == ('12.04'):
933
            nodrivers = "true"
934
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
935
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
936
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
937
        else:
938
            nodrivers = "true"
939
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
940
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
941
    elif modelname == ('leox2'):
942
        if version == ('10.10'):
943
            acpi.xhcihcdModule().describe()
944
            misc.gnomeThemeRace().describe()
945
        elif version == ('11.04'):
946
            nodrivers = "true"
947
            return nodrivers
948
        elif version == ('11.10'):
949
            nodrivers = "true"
950
            return nodrivers
951
        elif version == ('12.04'):
952
            nodrivers = "true"
953
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
954
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
955
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
956
        else:
957
            nodrivers = "true"
958
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
959
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
960
    elif modelname == ('leox3'):
961
        if version == ('11.10'):
962
            nodrivers = "true"
963
            return nodrivers
964
        elif version == ('12.04'):
55 by Carl Richell
1.) Fix lightdm race condition on current models
965
            misc.lightdm_race().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
966
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
967
            misc.linux_headers().describe()
55 by Carl Richell
1.) Fix lightdm race condition on current models
968
            misc.lightdm_race().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
969
        else:
970
            nodrivers = "true"
971
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
972
    
973
    #Meerkat        
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
974
    elif modelname == ('ment1'):
975
        if version == ('8.10'):
976
            nodrivers = "true"
977
            return nodrivers
978
        elif version == ('9.04'):
979
            nodrivers = "true"
980
            return nodrivers
981
        elif version == ('9.10'):
982
            nodrivers = "true"
983
            return nodrivers
984
        elif version == ('10.04'):
985
            nodrivers = "true"
986
            return nodrivers
987
        elif version == ('10.10'):
988
            nodrivers = "true"
989
            return nodrivers
990
        elif version == ('11.04'):
991
            nodrivers = "true"
992
            return nodrivers
993
        elif version == ('11.10'):
994
            nodrivers = "true"
995
            return nodrivers
996
        elif version == ('12.04'):
997
            nodrivers = "true"
998
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
999
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1000
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1001
        else:
1002
            nodrivers = "true"
1003
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1004
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1005
    elif modelname == ('ment2'):
1006
        if version == ('9.04'):
1007
            nodrivers = "true"
1008
            return nodrivers
1009
        elif version == ('9.10'):
1010
            nodrivers = "true"
1011
            return nodrivers
1012
        elif version == ('10.04'):
1013
            nodrivers = "true"
1014
            return nodrivers
1015
        elif version == ('10.10'):
1016
            nodrivers = "true"
1017
            return nodrivers
1018
        elif version == ('11.04'):
1019
            nodrivers = "true"
1020
            return nodrivers
1021
        elif version == ('11.10'):
1022
            nodrivers = "true"
1023
            return nodrivers
1024
        elif version == ('12.04'):
1025
            nodrivers = "true"
1026
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1027
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1028
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1029
        else:
1030
            nodrivers = "true"
1031
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1032
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1033
    elif modelname == ('ment3'):
1034
        if version == ('9.04'):
1035
            nodrivers = "true"
1036
            return nodrivers
1037
        elif version == ('9.10'):
1038
            nodrivers = "true"
1039
            return nodrivers
1040
        elif version == ('10.04'):
1041
            nodrivers = "true"
1042
            return nodrivers
1043
        elif version == ('10.10'):
1044
            nodrivers = "true"
1045
            return nodrivers
1046
        elif version == ('11.04'):
1047
            nodrivers = "true"
1048
            return nodrivers
1049
        elif version == ('11.10'):
1050
            nodrivers = "true"
1051
            return nodrivers
1052
        elif version == ('12.04'):
1053
            nodrivers = "true"
1054
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1055
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1056
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1057
        else:
1058
            nodrivers = "true"
1059
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1060
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1061
    elif modelname == ('ment5'):
1062
        if version == ('11.04'):
1063
            nodrivers = "true"
1064
            return nodrivers
1065
        elif version == ('11.10'):
1066
            nodrivers = "true"
1067
            return nodrivers
1068
        elif version == ('12.04'):
1069
            nodrivers = "true"
1070
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1071
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1072
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1073
        else:
1074
            nodrivers = "true"
1075
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1076
            
1077
    #Non-System76
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1078
    elif modelname == ('nonsystem76'):
1079
        nodrivers = "true"
1080
        return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1081
        
1082
    #Pangolin
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1083
    elif modelname == ('panp4i'):
1084
        if version == ('8.04'):
1085
            uvc.camera().describe()
1086
            sound.alsa11().describe()
1087
        elif version == ('8.10'):
1088
            uvc.camera().describe()
1089
            sound.alsa10().describe()
1090
        elif version == ('9.04'):
1091
            nodrivers = "true"
1092
            return nodrivers
1093
        elif version == ('9.10'):
1094
            nodrivers = "true"
1095
            return nodrivers
1096
        elif version == ('10.04'):
1097
            nodrivers = "true"
1098
            return nodrivers
1099
        elif version == ('10.10'):
1100
            nodrivers = "true"
1101
            return nodrivers
1102
        elif version == ('11.04'):
1103
            nodrivers = "true"
1104
            return nodrivers
1105
        elif version == ('11.10'):
1106
            nodrivers = "true"
1107
            return nodrivers
1108
        elif version == ('12.04'):
1109
            nodrivers = "true"
1110
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1111
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1112
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1113
        else:
1114
            nodrivers = "true"
1115
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1116
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1117
    elif modelname == ('panp4n'):
1118
        if version == ('8.04'):
1119
            uvc.camera().describe()
1120
            fprint.install().describe()
1121
            sound.alsa11().describe()
1122
        elif version == ('8.10'):
1123
            uvc.camera().describe()
1124
            fprint.install().describe()
1125
            sound.alsa10().describe()
1126
        elif version == ('9.04'):
1127
            fprint.install().describe()
1128
            misc.linux_backports().describe()
1129
        elif version == ('9.10'):
1130
            fprint.installPackages().describe()
1131
        elif version == ('10.04'):
1132
            fprint.installPackages().describe()
1133
        elif version == ('10.10'):
1134
            nodrivers = "true"
1135
            return nodrivers
1136
        elif version == ('11.04'):
1137
            nodrivers = "true"
1138
            return nodrivers
1139
        elif version == ('11.10'):
1140
            nodrivers = "true"
1141
            return nodrivers
1142
        elif version == ('12.04'):
1143
            fprint.fingerprintGUI().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1144
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1145
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1146
            fprint.fingerprintGUI().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
1147
        elif version == ('13.04'):
1148
            fprint.fingerprintGUI().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1149
        else:
1150
            nodrivers = "true"
1151
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1152
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1153
    elif modelname == ('panp5'):
1154
        if version == ('8.04'):
1155
            uvc.camera().describe()
1156
            fprint.install().describe()
1157
            sound.alsa11().describe()
1158
        elif version == ('8.10'):
1159
            uvc.camera().describe()
1160
            fprint.install().describe()
1161
            sound.alsa10().describe()
1162
        elif version == ('9.04'):
1163
            fprint.install().describe()
1164
            misc.linux_backports().describe()
1165
        elif version == ('9.10'):
1166
            fprint.installPackages().describe()
1167
        elif version == ('10.04'):
1168
            fprint.installPackages().describe()
1169
        elif version == ('10.10'):
1170
            nodrivers = "true"
1171
            return nodrivers
1172
        elif version == ('11.04'):
1173
            nodrivers = "true"
1174
            return nodrivers
1175
        elif version == ('11.10'):
1176
            nodrivers = "true"
1177
            return nodrivers
1178
        elif version == ('12.04'):
1179
            fprint.fingerprintGUI().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1180
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1181
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1182
            fprint.fingerprintGUI().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
1183
        elif version == ('13.04'):
1184
            fprint.fingerprintGUI().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1185
        else:
1186
            nodrivers = "true"
1187
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1188
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1189
    elif modelname == ('panp6'):
1190
        if version == ('8.04'):
1191
            uvc.camera().describe()
1192
            fprint.install().describe()
1193
            sound.alsa11().describe()
1194
        elif version == ('8.10'):
1195
            uvc.camera().describe()
1196
            fprint.install().describe()
1197
            sound.alsa10().describe()
1198
        elif version == ('9.04'):
1199
            fprint.install().describe()
1200
            misc.linux_backports().describe()
1201
        elif version == ('9.10'):
1202
            fprint.installPackages().describe()
1203
        elif version == ('10.04'):
1204
            fprint.installPackages().describe()
1205
        elif version == ('10.10'):
1206
            nodrivers = "true"
1207
            return nodrivers
1208
        elif version == ('11.04'):
1209
            nodrivers = "true"
1210
            return nodrivers
1211
        elif version == ('11.10'):
1212
            nodrivers = "true"
1213
            return nodrivers
1214
        elif version == ('12.04'):
1215
            fprint.fingerprintGUI().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1216
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1217
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1218
            fprint.fingerprintGUI().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
1219
        elif version == ('13.04'):
1220
            fprint.fingerprintGUI().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1221
        else:
1222
            nodrivers = "true"
1223
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1224
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1225
    elif modelname == ('panp7'):
1226
        if version == ('9.10'):
1227
            acpi.os_linux().describe()
1228
            fprint.installUpek1().describe()
1229
            misc.jme_nic().describe()
1230
            misc.rm_aticatalyst().describe()
1231
        elif version == ('10.04'):
1232
            acpi.os_linux().describe()
1233
            fprint.installUpek1().describe()
1234
        elif version == ('10.10'):
1235
            nodrivers = "true"
1236
            return nodrivers
1237
        elif version == ('11.04'):
1238
            nodrivers = "true"
1239
            return nodrivers
1240
        elif version == ('11.10'):
1241
            nodrivers = "true"
1242
            return nodrivers
1243
        elif version == ('12.04'):
1244
            fprint.fingerprintGUI().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1245
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1246
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1247
            fprint.fingerprintGUI().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
1248
        elif version == ('13.04'):
1249
            fprint.fingerprintGUI().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1250
        else:
1251
            nodrivers = "true"
1252
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1253
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1254
    elif modelname == ('panp8'):
1255
        if version == ('11.04'):
1256
            acpi.lemu1().describe()
1257
            misc.elantech().describe()
1258
        elif version == ('11.10'):
1259
            acpi.lemu1().describe()
1260
        elif version == ('12.04'):
1261
            acpi.lemu1().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1262
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1263
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1264
            acpi.lemu1().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
1265
        elif version == ('13.04'):
1266
            acpi.lemu1().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1267
        else:
1268
            nodrivers = "true"
1269
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1270
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1271
    elif modelname == ('panp9'):
1272
        if version == ('11.10'):
1273
            acpi.lemu1().describe()
1274
            misc.realtek_rts_bpp().describe()
1275
        elif version == ('12.04'):
1276
            acpi.lemu1().describe()
1277
            misc.realtek_rts_bpp().describe()
55 by Carl Richell
1.) Fix lightdm race condition on current models
1278
            misc.lightdm_race().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1279
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1280
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1281
            acpi.lemu1().describe()
1282
            misc.realtek_rts_bpp().describe()
55 by Carl Richell
1.) Fix lightdm race condition on current models
1283
            misc.lightdm_race().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
1284
        elif version == ('13.04'):
1285
            acpi.lemu1().describe()
55.1.4 by Ian Santopietro
Fix issue where Dashes aren't allowed in Class names
1286
            misc.wifi_pm_disable().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1287
        else:
1288
            nodrivers = "true"
1289
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1290
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1291
    elif modelname == ('panv2'):
1292
        if version == ('6.06'):
1293
            sound.alsa6().describe()
1294
        elif version == ('6.10'):
1295
            sound.alsa6().describe()
1296
        elif version == ('7.04'):
1297
            sound.alsa6().describe()
1298
            acpi.acpi1().describe()
1299
        elif version == ('7.10'):
1300
            sound.alsa6().describe()
1301
        elif version == ('8.04'):
1302
            hardy_led.install().describe()
1303
        elif version == ('8.10'):
1304
            nodrivers = "true"
1305
            return nodrivers
1306
        elif version == ('9.04'):
1307
            nodrivers = "true"
1308
            return nodrivers
1309
        elif version == ('9.10'):
1310
            nodrivers = "true"
1311
            return nodrivers
1312
        elif version == ('10.04'):
1313
            nodrivers = "true"
1314
            return nodrivers
1315
        elif version == ('10.10'):
1316
            nodrivers = "true"
1317
            return nodrivers
1318
        elif version == ('11.04'):
1319
            nodrivers = "true"
1320
            return nodrivers
1321
        elif version == ('11.10'):
1322
            nodrivers = "true"
1323
            return nodrivers
1324
        elif version == ('12.04'):
1325
            nodrivers = "true"
1326
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1327
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1328
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1329
        else:
1330
            nodrivers = "true"
1331
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1332
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1333
    elif modelname == ('panv3'):
1334
        if version == ('7.04'):
1335
            misc.piix2().describe()
1336
            sound.alsa5().describe()
1337
            acpi.acpi1().describe()
1338
            ricoh_cr.card_reader().describe()
1339
        elif version == ('7.10'):
1340
            sound.alsa5().describe()
1341
            ricoh_cr.card_reader().describe()
1342
        elif version == ('8.04'):
1343
            sound.alsa9().describe()
1344
            hardy_led.install().describe()
1345
        elif version == ('8.10'):
1346
            sound.alsa9().describe()
1347
        elif version == ('9.04'):
1348
            nodrivers = "true"
1349
            return nodrivers
1350
        elif version == ('9.10'):
1351
            nodrivers = "true"
1352
            return nodrivers
1353
        elif version == ('10.04'):
1354
            nodrivers = "true"
1355
            return nodrivers
1356
        elif version == ('10.10'):
1357
            nodrivers = "true"
1358
            return nodrivers
1359
        elif version == ('11.04'):
1360
            nodrivers = "true"
1361
            return nodrivers
1362
        elif version == ('11.10'):
1363
            nodrivers = "true"
1364
            return nodrivers
1365
        elif version == ('12.04'):
1366
            nodrivers = "true"
1367
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1368
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1369
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1370
        else:
1371
            nodrivers = "true"
1372
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1373
            
1374
    #Ratel
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1375
    elif modelname == ('ratu1'):
1376
        if version == ('10.04'):
1377
            nodrivers = "true"
1378
            return nodrivers
1379
        elif version == ('10.10'):
1380
            nodrivers = "true"
1381
            return nodrivers
1382
        elif version == ('11.04'):
1383
            nodrivers = "true"
1384
            return nodrivers
1385
        elif version == ('11.10'):
1386
            nodrivers = "true"
1387
            return nodrivers
1388
        elif version == ('12.04'):
1389
            nodrivers = "true"
1390
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1391
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1392
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1393
        else:
1394
            nodrivers = "true"
1395
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1396
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1397
    elif modelname == ('ratu2'):
1398
        if version == ('11.04'):
1399
            nodrivers = "true"
1400
            return nodrivers
1401
        elif version == ('11.10'):
1402
            nodrivers = "true"
1403
            return nodrivers
1404
        elif version == ('12.04'):
1405
            nodrivers = "true"
1406
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1407
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1408
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1409
        else:
1410
            nodrivers = "true"
1411
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1412
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1413
    elif modelname == ('ratp1'):
1414
        if version == ('12.04'):
55 by Carl Richell
1.) Fix lightdm race condition on current models
1415
            misc.lightdm_race().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1416
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1417
            misc.linux_headers().describe()
55 by Carl Richell
1.) Fix lightdm race condition on current models
1418
            misc.lightdm_race().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1419
        else:
1420
            nodrivers = "true"
1421
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1422
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1423
    elif modelname == ('ratv1'):
1424
        if version == ('6.06'):
1425
            nodrivers = "true"
1426
            return nodrivers
1427
        elif version == ('6.10'):
1428
            nodrivers = "true"
1429
            return nodrivers
1430
        elif version == ('7.04'):
1431
            acpi.acpi1().describe()
1432
        elif version == ('7.10'):
1433
            nodrivers = "true"
1434
            return nodrivers
1435
        elif version == ('8.04'):
1436
            nodrivers = "true"
1437
            return nodrivers
1438
        elif version == ('8.10'):
1439
            nodrivers = "true"
1440
            return nodrivers
1441
        elif version == ('9.04'):
1442
            nodrivers = "true"
1443
            return nodrivers
1444
        elif version == ('9.10'):
1445
            nodrivers = "true"
1446
            return nodrivers
1447
        elif version == ('10.04'):
1448
            nodrivers = "true"
1449
            return nodrivers
1450
        elif version == ('10.10'):
1451
            nodrivers = "true"
1452
            return nodrivers
1453
        elif version == ('11.04'):
1454
            nodrivers = "true"
1455
            return nodrivers
1456
        elif version == ('11.10'):
1457
            nodrivers = "true"
1458
            return nodrivers
1459
        elif version == ('12.04'):
1460
            nodrivers = "true"
1461
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1462
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1463
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1464
        else:
1465
            nodrivers = "true"
1466
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1467
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1468
    elif modelname == ('ratv2'):
1469
        if version == ('6.06'):
1470
            nodrivers = "true"
1471
            return nodrivers
1472
        elif version == ('6.10'):
1473
            nodrivers = "true"
1474
            return nodrivers
1475
        elif version == ('7.04'):
1476
            acpi.acpi1().describe()
1477
        elif version == ('7.10'):
1478
            nodrivers = "true"
1479
            return nodrivers
1480
        elif version == ('8.04'):
1481
            nodrivers = "true"
1482
            return nodrivers
1483
        elif version == ('8.10'):
1484
            nodrivers = "true"
1485
            return nodrivers
1486
        elif version == ('9.04'):
1487
            nodrivers = "true"
1488
            return nodrivers
1489
        elif version == ('9.10'):
1490
            nodrivers = "true"
1491
            return nodrivers
1492
        elif version == ('10.04'):
1493
            nodrivers = "true"
1494
            return nodrivers
1495
        elif version == ('10.10'):
1496
            nodrivers = "true"
1497
            return nodrivers
1498
        elif version == ('11.04'):
1499
            nodrivers = "true"
1500
            return nodrivers
1501
        elif version == ('11.10'):
1502
            nodrivers = "true"
1503
            return nodrivers
1504
        elif version == ('12.04'):
1505
            nodrivers = "true"
1506
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1507
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1508
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1509
        else:
1510
            nodrivers = "true"
1511
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1512
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1513
    elif modelname == ('ratv3'):
1514
        if version == ('6.06'):
1515
            nodrivers = "true"
1516
            return nodrivers
1517
        elif version == ('6.10'):
1518
            nodrivers = "true"
1519
            return nodrivers
1520
        elif version == ('7.04'):
1521
            acpi.acpi1().describe()
1522
        elif version == ('7.10'):
1523
            nodrivers = "true"
1524
            return nodrivers
1525
        elif version == ('8.04'):
1526
            nodrivers = "true"
1527
            return nodrivers
1528
        elif version == ('8.10'):
1529
            nodrivers = "true"
1530
            return nodrivers
1531
        elif version == ('9.04'):
1532
            nodrivers = "true"
1533
            return nodrivers
1534
        elif version == ('9.10'):
1535
            nodrivers = "true"
1536
            return nodrivers
1537
        elif version == ('10.04'):
1538
            nodrivers = "true"
1539
            return nodrivers
1540
        elif version == ('10.10'):
1541
            nodrivers = "true"
1542
            return nodrivers
1543
        elif version == ('11.04'):
1544
            nodrivers = "true"
1545
            return nodrivers
1546
        elif version == ('11.10'):
1547
            nodrivers = "true"
1548
            return nodrivers
1549
        elif version == ('12.04'):
1550
            nodrivers = "true"
1551
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1552
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1553
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1554
        else:
1555
            nodrivers = "true"
1556
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1557
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1558
    elif modelname == ('ratv4'):
1559
        if version == ('7.10'):
1560
            sound.alsa7().describe()
1561
        elif version == ('8.04'):
1562
            nodrivers = "true"
1563
            return nodrivers
1564
        elif version == ('8.10'):
1565
            nodrivers = "true"
1566
            return nodrivers
1567
        elif version == ('9.04'):
1568
            nodrivers = "true"
1569
            return nodrivers
1570
        elif version == ('9.10'):
1571
            nodrivers = "true"
1572
            return nodrivers
1573
        elif version == ('10.04'):
1574
            nodrivers = "true"
1575
            return nodrivers
1576
        elif version == ('10.10'):
1577
            nodrivers = "true"
1578
            return nodrivers
1579
        elif version == ('11.04'):
1580
            nodrivers = "true"
1581
            return nodrivers
1582
        elif version == ('11.10'):
1583
            nodrivers = "true"
1584
            return nodrivers
1585
        elif version == ('12.04'):
1586
            nodrivers = "true"
1587
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1588
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1589
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1590
        else:
1591
            nodrivers = "true"
1592
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1593
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1594
    elif modelname == ('ratv5'):
1595
        if version == ('7.10'):
1596
            sound.alsa7().describe()
1597
        elif version == ('8.04'):
1598
            sound.alsa8().describe()
1599
        elif version == ('8.10'):
1600
            sound.alsa8().describe()
1601
        elif version == ('9.04'):
1602
            nodrivers = "true"
1603
            return nodrivers
1604
        elif version == ('9.10'):
1605
            nodrivers = "true"
1606
            return nodrivers
1607
        elif version == ('10.04'):
1608
            nodrivers = "true"
1609
            return nodrivers
1610
        elif version == ('10.10'):
1611
            nodrivers = "true"
1612
            return nodrivers
1613
        elif version == ('11.04'):
1614
            nodrivers = "true"
1615
            return nodrivers
1616
        elif version == ('11.10'):
1617
            nodrivers = "true"
1618
            return nodrivers
1619
        elif version == ('12.04'):
1620
            nodrivers = "true"
1621
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1622
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1623
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1624
        else:
1625
            nodrivers = "true"
1626
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1627
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1628
    elif modelname == ('ratv6'):
1629
        if version == ('8.04'):
1630
            nodrivers = "true"
1631
            return nodrivers
1632
        elif version == ('8.10'):
1633
            nodrivers = "true"
1634
            return nodrivers
1635
        elif version == ('9.04'):
1636
            nodrivers = "true"
1637
            return nodrivers
1638
        elif version == ('9.10'):
1639
            nodrivers = "true"
1640
            return nodrivers
1641
        elif version == ('10.04'):
1642
            nodrivers = "true"
1643
            return nodrivers
1644
        elif version == ('10.10'):
1645
            nodrivers = "true"
1646
            return nodrivers
1647
        elif version == ('11.04'):
1648
            nodrivers = "true"
1649
            return nodrivers
1650
        elif version == ('11.10'):
1651
            nodrivers = "true"
1652
            return nodrivers
1653
        elif version == ('12.04'):
1654
            nodrivers = "true"
1655
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1656
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1657
            misc.linux_headers().describe()
1658
        else:
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1659
            nodrivers = "true"
1660
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1661
            
1662
    #Sable
55.1.1 by Ian Santopietro
Pull in latest Source code
1663
    elif modelname == ('sabc1'):
1664
        if version == ('12.04'):
1665
            misc.lightdm_race().describe()
1666
        elif version == ('12.10'):
1667
            misc.linux_headers().describe()
1668
            misc.lightdm_race().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1669
        else:
1670
            nodrivers = "true"
1671
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1672
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1673
    elif modelname == ('sabv1'):
1674
        if version == ('6.06'):
1675
            nodrivers = "true"
1676
            return nodrivers
1677
        elif version == ('6.10'):
1678
            nodrivers = "true"
1679
            return nodrivers
1680
        elif version == ('7.04'):
1681
            acpi.acpi1().describe()
1682
        elif version == ('7.10'):
1683
            nodrivers = "true"
1684
            return nodrivers
1685
        elif version == ('8.04'):
1686
            nodrivers = "true"
1687
            return nodrivers
1688
        elif version == ('8.10'):
1689
            nodrivers = "true"
1690
            return nodrivers
1691
        elif version == ('9.04'):
1692
            nodrivers = "true"
1693
            return nodrivers
1694
        elif version == ('9.10'):
1695
            nodrivers = "true"
1696
            return nodrivers
1697
        elif version == ('10.04'):
1698
            nodrivers = "true"
1699
            return nodrivers
1700
        elif version == ('10.10'):
1701
            nodrivers = "true"
1702
            return nodrivers
1703
        elif version == ('11.04'):
1704
            nodrivers = "true"
1705
            return nodrivers
1706
        elif version == ('11.10'):
1707
            nodrivers = "true"
1708
            return nodrivers
1709
        elif version == ('12.04'):
1710
            nodrivers = "true"
1711
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1712
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1713
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1714
        else:
1715
            nodrivers = "true"
1716
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1717
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1718
    elif modelname == ('sabv2'):
1719
        if version == ('6.06'):
1720
            sound.alsa6().describe()
1721
        elif version == ('6.10'):
1722
            sound.alsa6().describe()
1723
        elif version == ('7.04'):
1724
            sound.alsa6().describe()
1725
            acpi.acpi1().describe()
1726
        elif version == ('7.10'):
1727
            nodrivers = "true"
1728
            return nodrivers
1729
        elif version == ('8.04'):
1730
            nodrivers = "true"
1731
            return nodrivers
1732
        elif version == ('8.10'):
1733
            nodrivers = "true"
1734
            return nodrivers
1735
        elif version == ('9.04'):
1736
            nodrivers = "true"
1737
            return nodrivers
1738
        elif version == ('9.10'):
1739
            nodrivers = "true"
1740
            return nodrivers
1741
        elif version == ('10.04'):
1742
            nodrivers = "true"
1743
            return nodrivers
1744
        elif version == ('10.10'):
1745
            nodrivers = "true"
1746
            return nodrivers
1747
        elif version == ('11.04'):
1748
            nodrivers = "true"
1749
            return nodrivers
1750
        elif version == ('11.10'):
1751
            nodrivers = "true"
1752
            return nodrivers
1753
        elif version == ('12.04'):
1754
            nodrivers = "true"
1755
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1756
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1757
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1758
        else:
1759
            nodrivers = "true"
1760
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1761
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1762
    elif modelname == ('sabv3'):
1763
        if version == ('7.10'):
1764
            nodrivers = "true"
1765
            return nodrivers
1766
        elif version == ('8.04'):
1767
            nodrivers = "true"
1768
            return nodrivers
1769
        elif version == ('8.10'):
1770
            nodrivers = "true"
1771
            return nodrivers
1772
        elif version == ('9.04'):
1773
            nodrivers = "true"
1774
            return nodrivers
1775
        elif version == ('9.10'):
1776
            nodrivers = "true"
1777
            return nodrivers
1778
        elif version == ('10.04'):
1779
            nodrivers = "true"
1780
            return nodrivers
1781
        elif version == ('10.10'):
1782
            nodrivers = "true"
1783
            return nodrivers
1784
        elif version == ('11.04'):
1785
            nodrivers = "true"
1786
            return nodrivers
1787
        elif version == ('11.10'):
1788
            nodrivers = "true"
1789
            return nodrivers
1790
        elif version == ('12.04'):
1791
            nodrivers = "true"
1792
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1793
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1794
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1795
        else:
1796
            nodrivers = "true"
1797
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1798
            
1799
    #Serval
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1800
    elif modelname == ('serp1'):
1801
        if version == ('6.06'):
1802
            nodrivers = "true"
1803
            return nodrivers
1804
        elif version == ('6.10'):
1805
            nodrivers = "true"
1806
            return nodrivers
1807
        elif version == ('7.04'):
1808
            acpi.acpi1().describe()
1809
        elif version == ('7.10'):
1810
            nodrivers = "true"
1811
            return nodrivers
1812
        elif version == ('8.04'):
1813
            hardy_led.install().describe()
1814
        elif version == ('8.10'):
1815
            nodrivers = "true"
1816
            return nodrivers
1817
        elif version == ('9.04'):
1818
            nodrivers = "true"
1819
            return nodrivers
1820
        elif version == ('9.10'):
1821
            nodrivers = "true"
1822
            return nodrivers
1823
        elif version == ('10.04'):
1824
            nodrivers = "true"
1825
            return nodrivers
1826
        elif version == ('10.10'):
1827
            nodrivers = "true"
1828
            return nodrivers
1829
        elif version == ('11.04'):
1830
            nodrivers = "true"
1831
            return nodrivers
1832
        elif version == ('11.10'):
1833
            nodrivers = "true"
1834
            return nodrivers
1835
        elif version == ('12.04'):
1836
            nodrivers = "true"
1837
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1838
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1839
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1840
        else:
1841
            nodrivers = "true"
1842
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1843
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1844
    elif modelname == ('serp2'):
1845
        if version == ('6.06'):
1846
            nodrivers = "true"
1847
            return nodrivers
1848
        elif version == ('6.10'):
1849
            nodrivers = "true"
1850
            return nodrivers
1851
        elif version == ('7.04'):
1852
            acpi.acpi1().describe()
1853
        elif version == ('7.10'):
1854
            nodrivers = "true"
1855
            return nodrivers
1856
        elif version == ('8.04'):
1857
            hardy_led.install().describe()
1858
        elif version == ('8.10'):
1859
            nodrivers = "true"
1860
            return nodrivers
1861
        elif version == ('9.04'):
1862
            nodrivers = "true"
1863
            return nodrivers
1864
        elif version == ('9.10'):
1865
            nodrivers = "true"
1866
            return nodrivers
1867
        elif version == ('10.04'):
1868
            nodrivers = "true"
1869
            return nodrivers
1870
        elif version == ('10.10'):
1871
            nodrivers = "true"
1872
            return nodrivers
1873
        elif version == ('11.04'):
1874
            nodrivers = "true"
1875
            return nodrivers
1876
        elif version == ('11.10'):
1877
            nodrivers = "true"
1878
            return nodrivers
1879
        elif version == ('12.04'):
1880
            nodrivers = "true"
1881
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1882
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1883
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1884
        else:
1885
            nodrivers = "true"
1886
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1887
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1888
    elif modelname == ('serp3'):
1889
        if version == ('7.04'):
1890
            acpi.acpi1().describe()
1891
            sound.alsa5().describe()
1892
        elif version == ('7.10'):
1893
            if arch == ('x86'):
1894
                sound.alsa5().describe()
1895
                ricoh_cr.card_reader().describe()
1896
            else:
1897
                usplash.gutsy_64_nvidia().describe()
1898
                sound.alsa5().describe()
1899
                ricoh_cr.card_reader().describe()
1900
        elif version == ('8.04'):
1901
            sound.alsa9().describe()
1902
            hardy_led.install().describe()
1903
        elif version == ('8.10'):
1904
            sound.alsa9().describe()
1905
        elif version == ('9.04'):
1906
            nodrivers = "true"
1907
            return nodrivers
1908
        elif version == ('9.10'):
1909
            nodrivers = "true"
1910
            return nodrivers
1911
        elif version == ('10.04'):
1912
            nodrivers = "true"
1913
            return nodrivers
1914
        elif version == ('10.10'):
1915
            nodrivers = "true"
1916
            return nodrivers
1917
        elif version == ('11.04'):
1918
            nodrivers = "true"
1919
            return nodrivers
1920
        elif version == ('11.10'):
1921
            nodrivers = "true"
1922
            return nodrivers
1923
        elif version == ('12.04'):
1924
            nodrivers = "true"
1925
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1926
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1927
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1928
        else:
1929
            nodrivers = "true"
1930
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1931
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1932
    elif modelname == ('serp4'):
1933
        if version == ('7.04'):
1934
            acpi.acpi1().describe()
1935
            sound.alsa5().describe()
1936
        elif version == ('7.10'):
1937
            if arch == ('x86'):
1938
                sound.alsa5().describe()
1939
                ricoh_cr.card_reader().describe()
1940
            else:
1941
                usplash.gutsy_64_nvidia().describe()
1942
                sound.alsa5().describe()
1943
                ricoh_cr.card_reader().describe()
1944
        elif version == ('8.04'):
1945
            sound.alsa9().describe()
1946
            hardy_led.install().describe()
1947
        elif version == ('8.10'):
1948
            sound.alsa9().describe()
1949
        elif version == ('9.04'):
1950
            nodrivers = "true"
1951
            return nodrivers
1952
        elif version == ('9.10'):
1953
            nodrivers = "true"
1954
            return nodrivers
1955
        elif version == ('10.04'):
1956
            nodrivers = "true"
1957
            return nodrivers
1958
        elif version == ('10.10'):
1959
            nodrivers = "true"
1960
            return nodrivers
1961
        elif version == ('11.04'):
1962
            nodrivers = "true"
1963
            return nodrivers
1964
        elif version == ('11.10'):
1965
            nodrivers = "true"
1966
            return nodrivers
1967
        elif version == ('12.04'):
1968
            nodrivers = "true"
1969
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
1970
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
1971
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1972
        else:
1973
            nodrivers = "true"
1974
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
1975
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
1976
    elif modelname == ('serp5'):
1977
        if version == ('8.10'):
1978
            sound.alsa10().describe()
1979
            uvc.camera().describe()
1980
            fprint.install().describe()
1981
            acpi.osiNotWindows().describe()
1982
        elif version == ('9.04'):
1983
            fprint.install().describe()
1984
            misc.linux_backports().describe()
1985
        elif version == ('9.10'):
1986
            fprint.installPackages().describe()
1987
        elif version == ('10.04'):
1988
            fprint.installPackages().describe()
1989
        elif version == ('10.10'):
1990
            nodrivers = "true"
1991
            return nodrivers
1992
        elif version == ('11.04'):
1993
            nodrivers = "true"
1994
            return nodrivers
1995
        elif version == ('11.10'):
1996
            nodrivers = "true"
1997
            return nodrivers
1998
        elif version == ('12.04'):
1999
            fprint.fingerprintGUI().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2000
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
2001
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2002
            fprint.fingerprintGUI().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
2003
        elif version == ('13.04'):
2004
            fprint.fingerprintGUI().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2005
        else:
2006
            nodrivers = "true"
2007
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2008
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2009
    elif modelname == ('serp6'):
2010
        if version == ('9.10'):
2011
            acpi.os_linux().describe()
2012
            uvc.lemur().describe()
2013
            fprint.installUpek1().describe()
2014
            misc.gnomeThemeRace().describe()
2015
        elif version == ('10.04'):
2016
            acpi.os_linux().describe()
2017
            uvc.lemur().describe()
2018
            fprint.installUpek1().describe()
2019
        elif version == ('10.10'):
2020
            acpi.xhcihcdModule().describe()
2021
        elif version == ('11.04'):
2022
            nodrivers = "true"
2023
            return nodrivers
2024
        elif version == ('11.10'):
2025
            nodrivers = "true"
2026
            return nodrivers
2027
        elif version == ('12.04'):
2028
            fprint.fingerprintGUI().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2029
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
2030
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2031
            fprint.fingerprintGUI().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
2032
        elif version == ('13.04'):
2033
            fprint.fingerprintGUI().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2034
        else:
2035
            nodrivers = "true"
2036
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2037
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2038
    elif modelname == ('serp7'):
2039
        if version == ('10.10'):
2040
            fprint.fingerprintGUI().describe()
2041
            acpi.xhcihcdModule().describe()
2042
            misc.gnomeThemeRace().describe()
2043
            acpi.pcie_aspm().describe()
2044
        elif version == ('11.04'):
2045
            acpi.pcie_aspm().describe()
2046
        elif version == ('11.10'):
2047
            nodrivers = "true"
2048
            return nodrivers
2049
        elif version == ('12.04'):
2050
            fprint.fingerprintGUI().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2051
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
2052
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2053
            fprint.fingerprintGUI().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
2054
        elif version == ('13.04'):
2055
            fprint.fingerprintGUI().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2056
        else:
2057
            nodrivers = "true"
2058
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2059
            
2060
    #Starling
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2061
    elif modelname == ('star1'):
2062
        if version == ('9.04'):
2063
            sound.alsa12().describe()
2064
            misc.linux_backports().describe()
2065
            acpi.star1().describe()
2066
            hotkey.star1_904().describe()
2067
            misc.wireless8187b().describe()
2068
        elif version == ('9.10'):
2069
            sound.alsa13().describe()
2070
            acpi.star1().describe()
2071
            misc.wireless8187b().describe()
2072
        elif version == ('10.04'):
2073
            sound.alsa13().describe()
2074
            acpi.star1().describe()
2075
            misc.wireless8187b().describe()
2076
        elif version == ('10.10'):
2077
            sound.alsa13().describe()
2078
            acpi.star1().describe()
2079
            misc.wireless8187b().describe()
2080
        elif version == ('11.04'):
2081
            sound.alsa13().describe()
2082
            acpi.star1().describe()
2083
            misc.wireless8187b().describe()
2084
        elif version == ('11.10'):
2085
            sound.alsa13().describe()
2086
            acpi.star1().describe()
2087
            misc.wireless8187b().describe()
2088
        elif version == ('12.04'):
2089
            sound.alsa13().describe()
2090
            acpi.star1().describe()
2091
            misc.wireless8187b().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2092
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
2093
            misc.linux_headers().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2094
            sound.alsa13().describe()
2095
            acpi.star1().describe()
2096
            misc.wireless8187b().describe()
55.1.2 by Ian Santopietro
Add support for 13.04
2097
        elif version == ('13.04'):
2098
            misc.linux_headers().describe()
2099
            sound.alsa13().describe()
2100
            acpi.star1().describe()
2101
            misc.wireless8187b().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2102
        else:
2103
            nodrivers = "true"
2104
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2105
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2106
    elif modelname == ('star2'):
2107
        if version == ('10.04'):
2108
            acpi.star2().describe()
2109
        elif version == ('10.10'):
2110
            nodrivers = "true"
2111
            return nodrivers
2112
        elif version == ('11.04'):
2113
            nodrivers = "true"
2114
            return nodrivers
2115
        elif version == ('11.10'):
2116
            nodrivers = "true"
2117
            return nodrivers
2118
        elif version == ('12.04'):
2119
            nodrivers = "true"
2120
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2121
        elif version == ('12.10'):
2122
            nodrivers = "true"
2123
            return nodrivers
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2124
        else:
2125
            nodrivers = "true"
2126
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2127
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2128
    elif modelname == ('star3'):
2129
        if version == ('10.04'):
2130
            sound.alsabackportsLucid().describe()
2131
            acpi.sdCardBug().describe()
2132
        elif version == ('10.10'):
2133
            nodrivers = "true"
2134
            return nodrivers
2135
        elif version == ('11.04'):
2136
            nodrivers = "true"
2137
            return nodrivers
2138
        elif version == ('11.10'):
2139
            nodrivers = "true"
2140
            return nodrivers
2141
        elif version == ('12.04'):
2142
            nodrivers = "true"
2143
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2144
        elif version == ('12.10'):
2145
            nodrivers = "true"
2146
            return nodrivers
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2147
        else:
2148
            nodrivers = "true"
2149
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2150
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2151
    elif modelname == ('star4'):
2152
        if version == ('10.04'):
2153
            sound.alsabackportsLucid().describe()
2154
            acpi.sdCardBug().describe()
2155
        elif version == ('10.10'):
2156
            nodrivers = "true"
2157
            return nodrivers
2158
        elif version == ('11.04'):
2159
            nodrivers = "true"
2160
            return nodrivers
2161
        elif version == ('11.10'):
2162
            nodrivers = "true"
2163
            return nodrivers
2164
        elif version == ('12.04'):
2165
            nodrivers = "true"
2166
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2167
        elif version == ('12.10'):
2168
            nodrivers = "true"
2169
            return nodrivers
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2170
        else:
2171
            nodrivers = "true"
2172
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2173
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2174
    elif modelname == ('star5'):
2175
        if version == ('10.04'):
2176
            sound.alsabackportsLucid().describe()
2177
            acpi.sdCardBug().describe()
2178
        elif version == ('10.10'):
2179
            nodrivers = "true"
2180
            return nodrivers
2181
        elif version == ('11.04'):
2182
            nodrivers = "true"
2183
            return nodrivers
2184
        elif version == ('11.10'):
2185
            nodrivers = "true"
2186
            return nodrivers
2187
        elif version == ('12.04'):
2188
            nodrivers = "true"
2189
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2190
        elif version == ('12.10'):
2191
            nodrivers = "true"
2192
            return nodrivers
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2193
        else:
2194
            nodrivers = "true"
2195
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2196
            
2197
    #Wildebeest
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2198
    elif modelname == ('wilb1'):
2199
        if version == ('9.04'):
2200
            nodrivers = "true"
2201
            return nodrivers
2202
        elif version == ('9.10'):
2203
            nodrivers = "true"
2204
            return nodrivers
2205
        elif version == ('10.04'):
2206
            nodrivers = "true"
2207
            return nodrivers
2208
        elif version == ('10.10'):
2209
            misc.gnomeThemeRace().describe()
2210
        elif version == ('11.04'):
2211
            nodrivers = "true"
2212
            return nodrivers
2213
        elif version == ('11.10'):
2214
            nodrivers = "true"
2215
            return nodrivers
2216
        elif version == ('12.04'):
2217
            nodrivers = "true"
2218
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2219
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
2220
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2221
        else:
2222
            nodrivers = "true"
2223
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2224
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2225
    elif modelname == ('wilb2'):
2226
        if version == ('11.04'):
2227
            nodrivers = "true"
2228
            return nodrivers
2229
        elif version == ('11.10'):
2230
            nodrivers = "true"
2231
            return nodrivers
2232
        elif version == ('12.04'):
2233
            nodrivers = "true"
2234
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2235
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
2236
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2237
        else:
2238
            nodrivers = "true"
2239
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2240
            
2241
    #Wild Dog
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2242
    elif modelname == ('wilp1'):
2243
        if version == ('6.06'):
2244
            nodrivers = "true"
2245
            return nodrivers
2246
        elif version == ('6.10'):
2247
            nodrivers = "true"
2248
            return nodrivers
2249
        elif version == ('7.04'):
2250
            nodrivers = "true"
2251
            return nodrivers
2252
        elif version == ('7.10'):
2253
            nodrivers = "true"
2254
            return nodrivers
2255
        elif version == ('8.04'):
2256
            nodrivers = "true"
2257
            return nodrivers
2258
        elif version == ('8.10'):
2259
            nodrivers = "true"
2260
            return nodrivers
2261
        elif version == ('9.04'):
2262
            nodrivers = "true"
2263
            return nodrivers
2264
        elif version == ('9.10'):
2265
            nodrivers = "true"
2266
            return nodrivers
2267
        elif version == ('10.04'):
2268
            nodrivers = "true"
2269
            return nodrivers
2270
        elif version == ('10.10'):
2271
            nodrivers = "true"
2272
            return nodrivers
2273
        elif version == ('11.04'):
2274
            nodrivers = "true"
2275
            return nodrivers
2276
        elif version == ('11.10'):
2277
            nodrivers = "true"
2278
            return nodrivers
2279
        elif version == ('12.04'):
2280
            nodrivers = "true"
2281
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2282
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
2283
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2284
        else:
2285
            nodrivers = "true"
2286
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2287
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2288
    elif modelname == ('wilp2'):
2289
        if version == ('6.06'):
2290
            nodrivers = "true"
2291
            return nodrivers
2292
        elif version == ('6.10'):
2293
            nodrivers = "true"
2294
            return nodrivers
2295
        elif version == ('7.04'):
2296
            nodrivers = "true"
2297
            return nodrivers
2298
        elif version == ('7.10'):
2299
            nodrivers = "true"
2300
            return nodrivers
2301
        elif version == ('8.04'):
2302
            nodrivers = "true"
2303
            return nodrivers
2304
        elif version == ('8.10'):
2305
            nodrivers = "true"
2306
            return nodrivers
2307
        elif version == ('9.04'):
2308
            nodrivers = "true"
2309
            return nodrivers
2310
        elif version == ('9.10'):
2311
            nodrivers = "true"
2312
            return nodrivers
2313
        elif version == ('10.04'):
2314
            nodrivers = "true"
2315
            return nodrivers
2316
        elif version == ('10.10'):
2317
            nodrivers = "true"
2318
            return nodrivers
2319
        elif version == ('11.04'):
2320
            nodrivers = "true"
2321
            return nodrivers
2322
        elif version == ('11.10'):
2323
            nodrivers = "true"
2324
            return nodrivers
2325
        elif version == ('12.04'):
2326
            nodrivers = "true"
2327
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2328
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
2329
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2330
        else:
2331
            nodrivers = "true"
2332
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2333
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2334
    elif modelname == ('wilp3'):
2335
        if version == ('6.06'):
2336
            nodrivers = "true"
2337
            return nodrivers
2338
        elif version == ('6.10'):
2339
            nodrivers = "true"
2340
            return nodrivers
2341
        elif version == ('7.04'):
2342
            nodrivers = "true"
2343
            return nodrivers
2344
        elif version == ('7.10'):
2345
            nodrivers = "true"
2346
            return nodrivers
2347
        elif version == ('8.04'):
2348
            nodrivers = "true"
2349
            return nodrivers
2350
        elif version == ('8.10'):
2351
            nodrivers = "true"
2352
            return nodrivers
2353
        elif version == ('9.04'):
2354
            nodrivers = "true"
2355
            return nodrivers
2356
        elif version == ('9.10'):
2357
            nodrivers = "true"
2358
            return nodrivers
2359
        elif version == ('10.04'):
2360
            nodrivers = "true"
2361
            return nodrivers
2362
        elif version == ('10.10'):
2363
            nodrivers = "true"
2364
            return nodrivers
2365
        elif version == ('11.04'):
2366
            nodrivers = "true"
2367
            return nodrivers
2368
        elif version == ('11.10'):
2369
            nodrivers = "true"
2370
            return nodrivers
2371
        elif version == ('12.04'):
2372
            nodrivers = "true"
2373
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2374
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
2375
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2376
        else:
2377
            nodrivers = "true"
2378
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2379
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2380
    elif modelname == ('wilp5'):
2381
        if version == ('7.10'):
2382
            if arch == ('x86'):
2383
                nodrivers = "true"
2384
                return nodrivers
2385
            else:
2386
                usplash.gutsy_64_nvidia().describe()
2387
        elif version == ('8.04'):
2388
            nodrivers = "true"
2389
            return nodrivers
2390
        elif version == ('8.10'):
2391
            nodrivers = "true"
2392
            return nodrivers
2393
        elif version == ('9.04'):
2394
            nodrivers = "true"
2395
            return nodrivers
2396
        elif version == ('9.10'):
2397
            nodrivers = "true"
2398
            return nodrivers
2399
        elif version == ('10.04'):
2400
            nodrivers = "true"
2401
            return nodrivers
2402
        elif version == ('10.10'):
2403
            nodrivers = "true"
2404
            return nodrivers
2405
        elif version == ('11.04'):
2406
            nodrivers = "true"
2407
            return nodrivers
2408
        elif version == ('11.10'):
2409
            nodrivers = "true"
2410
            return nodrivers
2411
        elif version == ('12.04'):
2412
            nodrivers = "true"
2413
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2414
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
2415
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2416
        else:
2417
            nodrivers = "true"
2418
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2419
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2420
    elif modelname == ('wilp6'):
2421
        if version == ('8.10'):
2422
            nodrivers = "true"
2423
            return nodrivers
2424
        elif version == ('9.04'):
2425
            nodrivers = "true"
2426
            return nodrivers
2427
        elif version == ('9.10'):
2428
            nodrivers = "true"
2429
            return nodrivers
2430
        elif version == ('10.04'):
2431
            nodrivers = "true"
2432
            return nodrivers
2433
        elif version == ('10.10'):
2434
            nodrivers = "true"
2435
            return nodrivers
2436
        elif version == ('11.04'):
2437
            nodrivers = "true"
2438
            return nodrivers
2439
        elif version == ('11.10'):
2440
            nodrivers = "true"
2441
            return nodrivers
2442
        elif version == ('12.04'):
48.1.4 by Ian Santopietro
Got the new driver details pane up and working flawlessly. Need an OK on the design
2443
            nodrivers = "true"
2444
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2445
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
2446
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2447
        else:
2448
            nodrivers = "true"
2449
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2450
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2451
    elif modelname == ('wilp7'):
2452
        if version == ('9.10'):
2453
            nodrivers = "true"
2454
            return nodrivers
2455
        elif version == ('10.04'):
2456
            nodrivers = "true"
2457
            return nodrivers
2458
        elif version == ('10.10'):
2459
            nodrivers = "true"
2460
            return nodrivers
2461
        elif version == ('11.04'):
2462
            nodrivers = "true"
2463
            return nodrivers
2464
        elif version == ('11.10'):
2465
            nodrivers = "true"
2466
            return nodrivers
2467
        elif version == ('12.04'):
2468
            nodrivers = "true"
2469
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2470
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
2471
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2472
        else:
2473
            nodrivers = "true"
2474
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2475
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2476
    elif modelname == ('wilp8'):
2477
        if version == ('10.10'):
2478
            acpi.xhcihcdModule().describe()
2479
            misc.gnomeThemeRace().describe()
2480
        elif version == ('11.04'):
2481
            nodrivers = "true"
2482
            return nodrivers
2483
        elif version == ('11.10'):
2484
            nodrivers = "true"
2485
            return nodrivers
2486
        elif version == ('12.04'):
2487
            nodrivers = "true"
2488
            return nodrivers
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2489
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
2490
            misc.linux_headers().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2491
        else:
2492
            nodrivers = "true"
2493
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2494
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2495
    elif modelname == ('wilp9'):
2496
        if version == ('12.04'):
55 by Carl Richell
1.) Fix lightdm race condition on current models
2497
            misc.lightdm_race().describe()
54 by Carl Richell
1.) Add Ubuntu 12.10 support
2498
        elif version == ('12.10'):
55.1.1 by Ian Santopietro
Pull in latest Source code
2499
            misc.linux_headers().describe()
55 by Carl Richell
1.) Fix lightdm race condition on current models
2500
            misc.lightdm_race().describe()
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2501
        else:
2502
            nodrivers = "true"
2503
            return nodrivers
55.1.2 by Ian Santopietro
Add support for 13.04
2504
            
48.1.3 by Ian Santopietro
Got the description system working with the Test Drivers. Now to go driver-wide
2505
    else:
2506
        nodrivers = "true"
2507
        return nodrivers