-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathtuxedo-tomte
More file actions
8517 lines (7595 loc) · 258 KB
/
Copy pathtuxedo-tomte
File metadata and controls
8517 lines (7595 loc) · 258 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/perl -w
# do not edit manually as it will be overwritten while packaging
our $VERSION = 'API-Change.Feature-Release.Hotfix-Release';
# Copyright (c) TUXEDO Computers GmbH <tux@tuxedocomputers.com>
# This file is part of TUXEDO Tomte.
#
# TUXEDO Tomte is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# TUXEDO Tomte is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with TUXEDO Tomte. If not, see <https://www.gnu.org/licenses/>.
use strict qw(vars subs);
use warnings;
use 5.010;
# overrides warnings so that they get logged
local $SIG{__WARN__} = sub {
my $warning = shift;
chomp($warning);
printLog($warning, "L0", '[WARN]');
};
# for file locking
use Fcntl qw(:DEFAULT :flock :seek :Fcompat);
use File::FcntlLock;
use File::Copy;
use File::Find;
# for OLED backlight and edid decrypt
use FindBin qw($Bin);
use lib "$Bin/.";
use Parse::EDID qw(parse_edid);
use Time::HiRes qw(usleep);
use Dpkg::Version;
use JSON;
use Config::Tiny;
use TOML qw(from_toml);
# for Translations
use Locale::TextDomain ('tomte', '/usr/share/locale');
use Locale::TextDomain qw(tomte);
use File::Slurp qw(append_file write_file read_file edit_file);
# for debugging
use Data::Dumper;
# logLevel:
# 0 = normal
# 1 = some debug
# 2 = lots of debug
my $logLevel = 0;
# for console language and locale
my $consoleLanguage = 'LANG=C;LANGUAGE=C;';
$ENV{LC_MESSAGES} = 'C';
$ENV{DEBIAN_FRONTEND} = 'noninteractive';
my $logDir = '/var/log/tomte/';
my $logFile = $logDir.'tomte.log';
my $LOGFILE;
printLog("##############################################################################", 'L0', '[INFO]');
checkAndSetLocale();
###############################################################################
# Argument values given to script
#
my %argValue = (
command => '',
module => '',
);
if (@ARGV > 0) { $argValue{command} = $ARGV[0]; }
if (@ARGV > 1) { $argValue{module} = $ARGV[1]; }
# make sure this is the only running instance
use Fcntl ':flock';
my $ME;
open ($ME, '<', $0);
if (!(flock $ME, LOCK_EX|LOCK_NB)) {
dieSingleton();
}
my $grubFile = '/etc/default/grub';
my $noLogFile = 1; # 0 = logFile ok, 1 = no logFile
my $noConfigFile = 1; # 0 = configfile ok, 1 = no configfile
my $configDir = '/etc/tomte/';
my $oldConfigFile = $configDir.'tomte.cfg';
my $configFile = $configDir.'modules.cfg';
my $configIniFile = $configDir.'config.ini';
my $configIniValues = Config::Tiny->new;
readConfigIniValues();
if (defined($configIniValues->{initvalues}->{loglevel})) {
$logLevel = $configIniValues->{initvalues}->{loglevel};
}
$logLevel = $ENV{LOGLEVEL} // $logLevel;
my $tomteFirstInstallFile = '/tmp/tomteFirstInstall';
my %modeFile = (
DONT_CONFIGURE => $configDir.'DONT_CONFIGURE',
UPDATES_ONLY => $configDir.'UPDATES_ONLY',
AUTOMATIC => $configDir.'AUTOMATIC',
);
my $runningAsRoot = 0;
my $mode = 'AUTOMATIC'; #default mode
my $shareDir = '/usr/share/tuxedo-tomte/';
my $chassisType = 0;
my $distribution;
my $distributionVersionID;
my $distributionVersion;
my $completeDistVersion;
my $ubuntuCodename = "";
my $FAI = 0;
if ($argValue{command} eq 'FAI') {
$FAI = 1;
}
my $LiveISO = 0;
my $noNetwork = 0;
my $packagekitState = 0;
my $packagekitOriginalState = getSystemdState('packagekit');
my $packagekitOriginalEnabled = getSystemdEnabled('packagekit');
my $triesFile = '/tmp/tomteTries';
my $triesLimit = 12;
my $needsRestartFile = '/tmp/needs_restart';
my $longInstall = 0;
my $restartSystem = 0;
my $startLaterAgain = 0;
my $systemdDelay = 30;
my @availableDebianPackages;
my %packageHash;
my $plasma6Installed = 0;
# get current kernel version
# if in FAI it should check which is the installed
# kernel package version on target
my $kernelRelease;
if ($FAI) {
my $searchCmd = 'dpkg-query -f \'${db:Status-Abbrev} ${Package} ${Version}\n\' -W \'linux-image-*\'';
my $dpkgkernel = `$searchCmd`;
my %kernelHash = $dpkgkernel =~ /ii (.*) (.*)/g;
my $hashSize = keys %kernelHash;
if ($hashSize != 0) {
my $firstkey = (sort(keys %kernelHash))[0];
$kernelRelease = $kernelHash{$firstkey};
}
} else {
$kernelRelease = `uname -r`;
}
$kernelRelease =~ s/[\n\r]//g;
printLog("detected kernel version: $kernelRelease", 'L2', '[DEBUG]');
my $lspciOutput = `lspci -vn 2>/dev/null`;
my $boardnameFilename = "/sys/class/dmi/id/board_name";
my $boardname = '';
$boardname = readFirstLineOfFile($boardnameFilename);
my $boardvendorFilename = "/sys/class/dmi/id/board_vendor";
my $boardvendor = '';;
$boardvendor = readFirstLineOfFile($boardvendorFilename);
my $sysvendorFilename = "/sys/class/dmi/id/sys_vendor";
my $sysvendor = '';
$sysvendor = readFirstLineOfFile($sysvendorFilename);
# for desktop messages
my $sessionID = readFirstLineOfFile('/proc/sys/kernel/random/boot_id');
$sessionID =~ /(.{7})/;
$sessionID = hex($1);
printLog("sessionID: $sessionID", 'TL2', '[DEBUG]');
###############################################################################
# files used by package manager utilities to lock package management
#
my %lockFiles = (
aptArchivesLock => {
filename => '/var/cache/apt/archives/lock',
FH => '',
number => '0',
locked => '0',
},
aptListsLock => {
filename => '/var/lib/apt/lists/lock',
FH => '',
number => '0',
locked => '0',
},
dpkgLock => {
filename => '/var/lib/dpkg/lock',
FH => '',
number => '0',
locked => '0',
},
dpkgLockFrontend => {
filename => '/var/lib/dpkg/lock-frontend',
FH => '',
number => '0',
locked => '0',
},
);
###############################################################################
# initial definition of post configuration modules
# command the command to be executed on the system
# trigger '1' / 'undef' wether the command should be executed
# status 'undef' / 'failed' wether the command execution failed
#
my %postConfProgram = (
updateGrub => {
command => 'update-grub',
trigger => 0,
status => 'undef',
description => __('updateGrub_description'),
},
updateInitramfs => {
command => 'update-initramfs -u -k all',
trigger => 0,
status => 'undef',
description => __('updateInitramfs_description'),
},
);
my %supportedOS = (
"TUXEDO OS" => ["20.04", "22.04"],
"TUXEDO_OS Plasma" => ["20.04", "22.04"],
"KDE neon" => ["20.04", "22.04"],
"Ubuntu" => ["18.04", "20.04", "22.04"],
"Linux Mint" => ["21.1", "21.2", "21.3"],
"elementary OS" => ["6.1", "7.1"]
);
my %tuxedo_repos = (
"bionic" => {
"deb" => {
"content" => ["deb https://deb.tuxedocomputers.com/ubuntu bionic main"],
"filename" => "/etc/apt/sources.list.d/tuxedo-computers.list"
},
"graphics" => {
"content" => ["deb https://graphics.tuxedocomputers.com/ubuntu bionic main"],
"filename" => "/etc/apt/sources.list.d/graphics-tuxedo.list"
},
"oibaf" => {
"content" => ["deb https://oibaf.tuxedocomputers.com/ubuntu bionic main"],
"filename" => "/etc/apt/sources.list.d/oibaf-tuxedo.list"
}
},
"focal" => {
"deb" => {
"content" => ["deb https://deb.tuxedocomputers.com/ubuntu focal main"],
"filename" => "/etc/apt/sources.list.d/tuxedo-computers.list"},
"graphics" => {
"content" => ["deb https://graphics.tuxedocomputers.com/ubuntu focal main"],
"filename" => "/etc/apt/sources.list.d/graphics-tuxedo.list"},
"oibaf" => {
"content" => ["deb https://oibaf.tuxedocomputers.com/ubuntu focal main"],
"filename" => "/etc/apt/sources.list.d/oibaf-tuxedo.list"
}
},
"jammy" => {
"deb" => {
"content" => ["deb https://deb.tuxedocomputers.com/ubuntu jammy main"],
"filename" => "/etc/apt/sources.list.d/tuxedo-computers.list"
}
},
"TUXEDO OS 22.04" => {
"deb" => {
"content" => ["deb https://deb.tuxedocomputers.com/ubuntu jammy main"],
"filename" => "/etc/apt/sources.list.d/tuxedo-computers.list"
},
"nonplasma6txos" => {
"content" => ["deb https://txos.tuxedocomputers.com/ubuntu jammy main"],
"filename" => "/etc/apt/sources.list.d/tuxedo-os.list"
},
"nonplasma6plasma" => {
"content" => ["deb https://plasma.tuxedocomputers.com jammy main"],
"filename" => "/etc/apt/sources.list.d/tuxedo-plasma.list"
},
"plasma6txos" => {
"content" => [
"deb https://txos.tuxedocomputers.com/ubuntu jammy main",
"deb https://txos.tuxedocomputers.com/ubuntu jammy-plasma main"],
"filename" => "/etc/apt/sources.list.d/tuxedo-os.list"
},
"plasma6plasma" => {
"content" => ["deb https://plasma6.tuxedocomputers.com jammy main"],
"filename" => "/etc/apt/sources.list.d/tuxedo-plasma.list"
}
}
);
my %tuxedo_mirrors = (
"bionic" => {
"mirrors" => {
"content" => [
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/archive.ubuntu.com/ubuntu bionic main restricted universe multiverse",
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse",
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse"
],
"filename" => "/etc/apt/sources.list.d/tuxedo-ubuntu-mirrors.list"
}
},
"focal" => {
"mirrors" => {
"content" => [
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/archive.ubuntu.com/ubuntu focal main restricted universe multiverse",
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/security.ubuntu.com/ubuntu focal-security main restricted universe multiverse",
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse"
],
"filename" => "/etc/apt/sources.list.d/tuxedo-ubuntu-mirrors.list"
}
},
"jammy" => {
"mirrors" => {
"content" => [
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/archive.ubuntu.com/ubuntu jammy main restricted universe multiverse",
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/security.ubuntu.com/ubuntu jammy-security main restricted universe multiverse",
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse"
],
"filename" => "/etc/apt/sources.list.d/tuxedo-ubuntu-mirrors.list"
}
},
"Linux Mint 21.1" => {
"name" => "vanessa",
"mirrors" => {
"content" => [
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/archive.ubuntu.com/ubuntu jammy main restricted universe multiverse",
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/security.ubuntu.com/ubuntu jammy-security main restricted universe multiverse",
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse",
"deb http://packages.linuxmint.com vanessa main upstream import backport"
],
"filename" => "/etc/apt/sources.list.d/official-package-repositories.list"
}
},
"Linux Mint 21.2" => {
"name" => "victoria",
"mirrors" => {
"content" => [
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/archive.ubuntu.com/ubuntu jammy main restricted universe multiverse",
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/security.ubuntu.com/ubuntu jammy-security main restricted universe multiverse",
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse",
"deb http://packages.linuxmint.com victoria main upstream import backport"
],
"filename" => "/etc/apt/sources.list.d/official-package-repositories.list"
}
},
"Linux Mint 21.3" => {
"name" => "virginia",
"mirrors" => {
"content" => [
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/archive.ubuntu.com/ubuntu jammy main restricted universe multiverse",
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/security.ubuntu.com/ubuntu jammy-security main restricted universe multiverse",
"deb https://mirrors.tuxedocomputers.com/ubuntu/mirror/archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse",
"deb http://packages.linuxmint.com virginia main upstream import backport"
],
"filename" => "/etc/apt/sources.list.d/official-package-repositories.list"
}
}
);
my %flavours = (
"focal" => {
"linux-tuxedo-20.04" => "linux-tuxedo-20.04 linux-headers-tuxedo-20.04 linux-image-tuxedo-20.04",
},
"jammy" => {
"linux-tuxedo-22.04" => "linux-tuxedo-22.04 linux-headers-tuxedo-22.04 linux-image-tuxedo-22.04",
}
);
my %origConfModules = (readTOMLFile('/usr/lib/tomte/config/modules/modules.toml'));
my %tuxedo_devices = (
'1' => {
model => ['TUXEDO Aura 15 Gen1'],
board_name => ['NL5xRU', 'AURA1501'],
fix => ['amdxhcihcdusbquirksuspendfix', 'nokeyboardaftersuspendfix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '1558:a500',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'2' => {
model => ['TUXEDO Book BA15 Gen1'],
board_name => ['PF5PU1G'],
fix => ['nobootonbattery', 'tuxedotouchpadswitch'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'3' => {
model => ['TUXEDO Book BC15 Gen10', 'TUXEDO Book BC17 Gen10'],
board_name => ['NHxxRZQ'],
fix => ['r8168dkms'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '1558:8562',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'4' => {
model => ['TUXEDO Book BX1507'],
board_name => ['N350TW'],
fix => ['tuxedorestoreaudiofix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'5' => {
model => ['TUXEDO Book DX1508', 'TUXEDO Book DX1708'],
board_name => ['N8xEJEK'],
fix => ['backlightfix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => 'AUO Model 12701 Serial Number 585803690',
usb_device => '',
},
'6' => {
model => ['TUXEDO Book XA15 Gen10'],
board_name => ['NH5xAx'],
fix => ['nokeyboardaftersuspendfix', 'corefix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '1558:50f0',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'7' => {
model => ['TUXEDO Book XC15 Gen10', 'TUXEDO Book XC17 Gen10'],
board_name => ['PB50_70DFx,DDx'],
fix => ['nokeyboardaftersuspendfix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '1558:67e1',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'8' => {
model => ['TUXEDO Book XP15 Gen12', 'TUXEDO Book XP17 Gen12'],
board_name => ['PCx0Dx_GN20'],
fix => ['tuxedodrivers'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => ['1558:65e5', '1558:67e5'],
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'9' => {
model => ['TUXEDO Book XUX7 Gen11'],
board_name => ['X170SM'],
fix => ['nokeyboardaftersuspendfix', 'tuxedodrivers'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'10' => {
model => ['TUXEDO Book XUX7 Gen13'],
board_name => ['X170KM-G'],
fix => ['tuxedodrivers', 'nokeyboardaftersuspendfix', 'thunderboltbootdelayfix'],
flavour => ['20.04', '22.04'],
pci_id => '1558:7715',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'11' => {
model => ['TUXEDO EduBook 15 Gen2'],
board_name => ['EDUBOOK1502'],
fix => ['amdxhcihcdusbquirksuspendfix', 'nokeyboardaftersuspendfix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'12' => {
model => ['TUXEDO InfinityBook 14 v2'],
board_name => ['X35R'],
fix => ['elantechtouchpadfix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'13' => {
model => ['TUXEDO InfinityBook Pro 14 Gen6'],
board_name => ['PHxTQx1', 'PHxTxX1', 'PH4TQx1'],
fix => ['lightdmlogindcheckgraphicalfix', 'tuxedotouchpadswitch', 'i915enablepsrfix', 'earlyloadbacklightcontrolfix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '1d05:1132',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'14' => {
model => ['TUXEDO InfinityBook Pro 14 v5'],
board_name => ['N141CU'],
fix => ['nokeyboardaftersuspendfix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'15' => {
model => ['TUXEDO InfinityBook Pro 15 v5'],
board_name => ['N150CU'],
fix => ['nokeyboardaftersuspendfix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '1558:1404',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'17' => {
model => ['TUXEDO Polaris Gen1 AMD NVIDIA GTX1650Ti'],
board_name => ['POLARIS1501A1650TI', 'POLARIS1701A1650TI'],
fix => ['amdxhcihcdusbquirksuspendfix', 'amdgpuwithnvidiafix', 'tuxedotouchpadswitch'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'18' => {
model => ['TUXEDO Polaris Gen1 AMD NVIDIA RTX2060'],
board_name => ['POLARIS1501A2060', 'POLARIS1701A2060'],
fix => ['amdxhcihcdusbquirksuspendfix', 'amdgpuwithnvidiafix', 'tuxedotouchpadswitch'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'19' => {
model => ['TUXEDO Polaris Gen1 Intel NVIDIA GTX1650Ti'],
board_name => ['POLARIS1501I1650TI', 'POLARIS1701I1650TI'],
fix => ['tuxedotouchpadswitch'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'20' => {
model => ['TUXEDO Polaris Gen1 Intel NVIDIA RTX2060'],
board_name => ['POLARIS1501I2060', 'POLARIS1701I2060'],
fix => ['tuxedotouchpadswitch'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'21' => {
model => ['TUXEDO Pulse 14 Gen1'],
board_name => ['PULSE1401'],
fix => ['amdxhcihcdusbquirksuspendfix', 'tuxedotouchpadswitch'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'22' => {
model => ['TUXEDO Pulse 15 Gen1'],
board_name => ['PULSE1501'],
fix => ['amdxhcihcdusbquirksuspendfix', 'tuxedotouchpadswitch'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'23' => {
model => ['TUXEDO Stellaris Gen2 AMD', 'TUXEDO Polaris Gen2 AMD'],
board_name => ['GMxNGxx'],
fix => ['tuxedotouchpadswitch', 'amdgpubacklightauxoff'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => 'BOE Model 2423 Serial Number 0',
usb_device => '',
},
'24' => {
model => ['TUXEDO Stellaris Gen2 Intel', 'TUXEDO Polaris Gen2 Intel'],
board_name => ['GMxMGxx'],
fix => ['tuxedotouchpadswitch'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'25' => {
model => ['TUXEDO Stellaris Gen3 AMD', 'TUXEDO Polaris Gen3 AMD'],
board_name => ['GMxZGxx'],
fix => ['tuxedotouchpadswitch', 'tuxedodrivers', 'amdgpubacklightauxoff'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => ['BOE Model 2423 Serial Number 0', 'BOE Model 2420 Serial Number 0'],
usb_device => '',
},
'26' => {
model => ['TUXEDO Stellaris Gen3 Intel', 'TUXEDO Polaris Gen3 Intel'],
board_name => ['GMxTGxx'],
fix => ['tuxedotouchpadswitch', 'tuxedodrivers', 'nvidiabacklightcontrolfix', 'acpibacklightvideofix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'27' => {
model => ['TUXEDO Trinity Gen1 Intel'],
board_name => ['TRINITY1501I', 'TRINITY1701I'],
fix => ['tuxedotouchpadswitch'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'28' => {
model => ['XMG Fusion 15 L19 GTX1660Ti'],
board_name => ['LAPQC71A'],
fix => ['nokeyboardaftersuspendfix', 'tuxedotouchpadswitch'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'29' => {
model => ['XMG Fusion 15 L19 RTX2070'],
board_name => ['LAPQC71B'],
fix => ['nokeyboardaftersuspendfix', 'tuxedotouchpadswitch'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'30' => {
model => ['all models'],
board_name => [''],
fix => ['apportfix', 'tuxedorepos', 'tuxedomirrors'],
flavour => ['18.04', '20.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'32' => {
model => ['all with fingerprintreader'],
board_name => [''],
fix => ['fingerprintreader'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => ['147e:100[0123]', '147e:20(15|16|20)', '147e:300[01]', '147e:500[23]', '0483:201[56]', '1c7a:0603'],
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'33' => {
model => ['all with LTE module ME936'],
board_name => [''],
fix => ['huaweime936fix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '12d1:15bb',
cpu => '',
kernel => '',
display => '',
usb_device => 'ME936',
},
'34' => {
model => ['all with NVIDIA'],
board_name => [''],
fix => ['nvidiadriver'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '030[02]:',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'35' => {
model => ['all with OLED display'],
board_name => [''],
fix => ['tuxedooledbrt'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => 'SDC Model 41001 Serial Number 0',
usb_device => '',
},
'36' => {
model => ['Kingston NVMe'],
board_name => [''],
fix => ['tuxedonvmefix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '2646:2263',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'37' => {
model => ['InfinityBook S 17 Gen6', 'InfinityBook S 15 Gen6'],
board_name => ['NS50_70MU', 'NS50MU'],
fix => ['i8042noauxfix'],
flavour => ['18.04', '20.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'38' => {
model => ['TUXEDO Book XP14 Gen12'],
board_name => ['NV4XMB,ME,MZ'],
fix => ['lightdmlogindcheckgraphicalfix', 'earlyloadbacklightcontrolfix'],
flavour => ['18.04', '20.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'39' => {
model => ['TUXEDO Aura 15 Gen2'],
board_name => ['NL5xNU'],
fix => [],
flavour => ['18.04', '20.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'40' => {
model => ['all models'],
board_name => [''],
fix => ['apportfix', 'tuxedorepos', 'tuxedomirrors'],
flavour => ['22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'41' => {
model => ['TUXEDO Stellaris Gen4 Intel'],
board_name => ['GMxAGxx'],
fix => ['tuxedodrivers', "tuxedotouchpadswitch"],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'42' => {
model => ['all with LTE module ME906s'],
board_name => [''],
fix => ['huaweime906sfix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '12d1:15c1',
cpu => '',
kernel => '',
display => '',
usb_device => 'ME906',
},
'43' => {
model => ['all with cardreader Realtek RTS522A'],
board_name => [''],
fix => ['cardreaderfix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => ['10ec:522a'],
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'44' => {
model => ['all with Realtek RTL8125'],
board_name => [''],
fix => ['tuxedor8125dkms'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '10ec:8125',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'45' => {
model => ['TUXEDO Pulse 15 Gen2'],
board_name => ['PF5LUXG'],
fix => ['tuxedotouchpadswitch', 'samsungnvmefix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => 'linux-tuxedo-22.04-edge',
display => '',
usb_device => '',
},
'46' => {
model => ['TUXEDO InsanityBook 15 v1'],
board_name => ['P95_HP', 'P95_HR', 'P95_HP,HR,HQ'],
fix => ['backlightfix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => 'AUO Model 21229 Serial Number 808797180',
usb_device => '',
},
'47' => {
model => ['XP1507'],
board_name => ['P95_HP', 'P95_HR', 'P95_HP,HR,HQ'],
fix => ['backlightfix'],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => 'AUO Model 21229 Serial Number 808797180',
usb_device => '',
},
'48' => {
model => ['TUXEDO Stellaris Gen4 AMD'],
board_name => ['GMxRGxx'],
fix => ['tuxedodrivers', "tuxedotouchpadswitch"],
flavour => ['18.04', '20.04', '22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'49' => {
model => ['TUXEDO InfinityBook Pro 16 Gen7'],
board_name => ['PHxARX1_PHxAQF1', 'PH6AG01_PH6AQ71_PH6AQI1'],
fix => ['tuxedotouchpadswitch'],
flavour => ['22.04'],
pci_id => '',
cpu => '',
kernel => 'linux-tuxedo-22.04-edge',
display => '',
usb_device => '',
},
'50' => {
model => ['TUXEDO Gemini 17 Gen1'],
board_name => ['PD5x_7xPNP_PNR_PNN_PNT'],
fix => ['tuxedodrivers', 'acpibacklightvideofix'],
flavour => ['22.04'],
pci_id => '',
cpu => '',
kernel => 'linux-tuxedo-22.04-next',
display => '',
usb_device => '',
},
'51' => {
model => ['TUXEDO Stellaris 16 Gen5 Intel'],
board_name => ['GMxPXxx'],
fix => ['tuxedodrivers', 'tuxedotouchpadswitch'],
flavour => ['22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'52' => {
model => ['all with Intel Gen13 PCI USB controller'],
board_name => [''],
fix => ['intelgenXIIIpowerctlfix'],
flavour => ['22.04'],
pci_id => '8086:1135',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'53' => {
model => ['all with plasma-workspace >=5.25'],
board_name => [''],
fix => [''],
flavour => ['22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'54' => {
model => ['TUXEDO InfinityBook Pro 14/16 Gen8'],
board_name => ['PH4PRX1_PH6PRX1', 'PH4PG31', 'PH6PG01_PH6PG71'],
fix => ['tuxedotouchpadswitch', 'disablegucfix'],
flavour => ['22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'55' => {
model => ['desktoppc'],
board_name => [''],
fix => ['apportfix', 'kerneltuxedo2204', 'tuxedocontrolcenter', 'tuxedokeyboard', 'tuxedomirrors', 'tuxedorepos', 'tuxedotouchpadswitch'],
flavour => ['22.04'],
pci_id => '',
cpu => '',
kernel => '',
display => '',
usb_device => '',
},
'56' => {
model => ['TUXEDO InfinityBook Pro 14 Gen7'],
board_name => ['PHxARX1_PHxAQF1'],
fix => ['tuxedotouchpadswitch'],
flavour => ['22.04'],
pci_id => '',
cpu => '',
kernel => 'linux-tuxedo-22.04-edge',
display => '',
usb_device => '',
},
'57' => {
model => ['TUXEDO Gemini 15 Gen1'],
board_name => ['PD5x_7xPNP_PNR_PNN_PNT'],
fix => ['tuxedodrivers', 'acpibacklightvideofix'],
flavour => ['22.04'],
pci_id => '',
cpu => '',
kernel => 'linux-tuxedo-22.04-next',
display => '',
usb_device => '',
},
'58' => {
model => ['TUXEDO Aura 14 Gen3'],
board_name => ['NL45PU2'],
fix => ['r8168dkms'],