forked from ic005k/OCAuxiliaryTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.ui
12257 lines (11192 loc) · 522 KB
/
mainwindow.ui
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
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1498</width>
<height>990</height>
</rect>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="windowTitle">
<string/>
</property>
<property name="windowIcon">
<iconset resource="qtocc.qrc">
<normaloff>:/icon.png</normaloff>:/icon.png</iconset>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gridLayout_31">
<item row="1" column="1">
<widget class="QFrame" name="frameTip">
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<layout class="QGridLayout" name="gridLayout_64">
<property name="topMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="lblFileName">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="btnNo">
<property name="maximumSize">
<size>
<width>75</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>No</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="btnYes">
<property name="maximumSize">
<size>
<width>75</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Yes</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="0" rowspan="3">
<widget class="QListWidget" name="listMain">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="movement">
<enum>QListView::Static</enum>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="QFrame" name="frameToolBar">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>50</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QGridLayout" name="gridLayout_76">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="lblCount">
<property name="maximumSize">
<size>
<width>120</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="mycboxFind">
<property name="minimumSize">
<size>
<width>260</width>
<height>0</height>
</size>
</property>
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QToolButton" name="btnHide">
<property name="text">
<string>Hide</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="2" rowspan="5">
<widget class="QListWidget" name="listFind">
<property name="minimumSize">
<size>
<width>190</width>
<height>0</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QListWidget" name="listSub">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>38</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
</widget>
</item>
<item row="4" column="0" colspan="2">
<layout class="QGridLayout" name="gridLayout_StatusBar">
<item row="0" column="5">
<widget class="QLineEdit" name="txtEditHex"/>
</item>
<item row="0" column="0">
<widget class="QLabel" name="lblTemp1">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="7">
<widget class="QLineEdit" name="txtEditASCII"/>
</item>
<item row="0" column="2">
<widget class="QLabel" name="lblStatusShow">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item row="0" column="4">
<widget class="QToolButton" name="btnUpdateHex">
<property name="toolTip">
<string>Update</string>
</property>
<property name="text">
<string>^</string>
</property>
</widget>
</item>
<item row="0" column="8">
<widget class="QLabel" name="lblTemp2">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="6">
<widget class="QLabel" name="lblHexASCII">
<property name="text">
<string>Hex <==> ASCII</string>
</property>
</widget>
</item>
<item row="0" column="3">
<spacer name="horizontalSpacer_37">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1">
<widget class="QLabel" name="lblOCVTip"/>
</item>
</layout>
</item>
<item row="3" column="1">
<widget class="QTabWidget" name="tabTotal">
<property name="toolTip">
<string/>
</property>
<property name="tabPosition">
<enum>QTabWidget::North</enum>
</property>
<property name="tabShape">
<enum>QTabWidget::Rounded</enum>
</property>
<property name="currentIndex">
<number>4</number>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="documentMode">
<bool>true</bool>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string notr="true">ACPI</string>
</attribute>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QTabWidget" name="tabACPI">
<property name="toolTip">
<string notr="true"/>
</property>
<property name="tabShape">
<enum>QTabWidget::Rounded</enum>
</property>
<property name="currentIndex">
<number>3</number>
</property>
<property name="documentMode">
<bool>true</bool>
</property>
<widget class="QWidget" name="tabACPI1">
<attribute name="title">
<string>Add</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QTableWidget" name="table_acpi_add">
<property name="toolTip">
<string notr="true">ACPI (Advanced Configuration and Power Interface) is an open standard to discover and configure computer hardware.
The ACPI specification defines standard tables (e.g. DSDT, SSDT, FACS, DMAR) and various methods (e.g. _DSM, _PRW) for implementation. Modern hardware needs few changes to maintain ACPI compatibility and some options for such changes are provided as part of OpenCore.
***
Path
Description: File paths meant to be loaded as ACPI tables. Example values include DSDT.aml, SubDir/SSDT-8.aml,SSDT-USBX.aml, etc.
The ACPI table load order follows the item order in the array. ACPI tables are loaded from the OC/ACPI directory.
Note: All tables apart from tables with a DSDT table identifier (determined by parsing data, not by filename)insert new tables into the ACPI stack. DSDT tables perform a replacement of DSDT tables instead.
----
ACPI(Advanced Configuration and Power Interface,高级配置和电源接口)是一个探索和配置计算机硬件的开放标准。
ACPI规范定义了标准表(如DSDT、SSDT、FACS、DMAR)和各种实现方法(如_DSM、_PRW)。现代硬件只需要很少的改变就可以保持ACPI的兼容性,作为OpenCore的一部分,提供了这种改变的一些选择。
***
Path(路径)
说明:作为ACPI表加载的文件路径。示例值包括DSDT.aml、SubDir/SDT-8.aml、SSDT-USBX.aml等。
ACPI表的加载顺序遵循数组中的项目顺序。ACPI表从OC/ACPI目录中加载。
注意:除了具有 DSDT 表标识符(由解析数据确定,而不是由文件名确定)的表之外,所有表都会将新表插入到 ACPI 堆栈中。DSDT表代替DSDT表进行替换。
</string>
</property>
<property name="statusTip">
<string/>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="rowCount">
<number>0</number>
</property>
<property name="columnCount">
<number>3</number>
</property>
<column/>
<column/>
<column/>
</widget>
</item>
<item row="0" column="1">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<spacer name="verticalSpacer_29">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="btnACPIAdd_Add">
<property name="minimumSize">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>20</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>+</string>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="btnACPIAdd_Del">
<property name="maximumSize">
<size>
<width>20</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>-</string>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="shortcut">
<string>Del</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="btnUp">
<property name="maximumSize">
<size>
<width>20</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string><</string>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="btnDown">
<property name="maximumSize">
<size>
<width>20</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>></string>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="btnOpenACPIDir">
<property name="maximumSize">
<size>
<width>20</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>...</string>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabACPI2">
<attribute name="title">
<string>Delete</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<widget class="QTableWidget" name="table_acpi_del">
<property name="toolTip">
<string notr="true">1. All
Type: plist boolean
Failsafe: false (Only delete the first matched table)
Description: Set to true to delete all ACPI tables matching the condition.
2. Comment
Type: plist string
Failsafe: Empty
Description: Arbitrary ASCII string used to provide human readable reference for the entry. Whether this
value is used is implementation defined.
3. Enabled
Type: plist boolean
Failsafe: false
Description: Set to true to remove this ACPI table.
4. OemTableId
Type: plist data, 8 bytes
Failsafe: All zero (Match any table OEM ID)
Description: Match table OEM ID equal to this value.
5. TableLength
Type: plist integer
Failsafe: 0 (Match any table size)
Description: Match table size equal to this value.
6. TableSignature
Type: plist data, 4 bytes
Failsafe: All zero (Match any table signature)
Description: Match table signature equal to this value.
Note: Do not use table signatures when the sequence must be replaced in multiple places. This is particularly
relevant when performing different types of renames.
----
1.All-所有
类型:plist布尔值
失败保护:假(仅删除第一个匹配的表)
描述:设置为真将删除所有符合条件的ACPI表。
2.Comment-注解
类型:plist字符串
失败保护:空
描述:注解,用来说明该条目起什么作用,可不填。
3.Enabled-使能
类型:plist布尔值
失败保护:假
描述:设置为真以删除此ACPI表。
4.OemTableId-Oem表
类型:plist数据,8字节
失败保护:全零(匹配任何表原始设备制造商标识)
描述:匹配表原始设备制造商标识等于此值。
5.TableLength-表长度
类型:plist整数
失败保护:0(匹配任何表大小)
描述:匹配等于该值的表大小。
6.TableSignature-表签名
类型:plist数据,4字节
失败保护:全零(匹配任何表签名)
描述:匹配等于该值的表签名。
注意:当序列必须在多个地方被替换时,不要使用表签名。这尤其是在执行不同类型的重命名时有关。</string>
</property>
<property name="rowCount">
<number>0</number>
</property>
<property name="columnCount">
<number>6</number>
</property>
<column/>
<column/>
<column/>
<column/>
<column/>
<column/>
</widget>
</item>
<item row="0" column="1">
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<spacer name="verticalSpacer_32">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="btnACPIDel_Add">
<property name="maximumSize">
<size>
<width>20</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>+</string>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="btnACPIDel_Del">
<property name="maximumSize">
<size>
<width>20</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>-</string>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="shortcut">
<string>Del</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabACPI3">
<attribute name="title">
<string>Patch</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="0">
<widget class="QTableWidget" name="table_acpi_patch">
<property name="toolTip">
<string notr="true">1. Base
Type: plist string
Failsafe: Empty (Ignored)
Description: Selects ACPI path base for patch lookup (or immediate replacement) by obtaining the offset to the provided path.
Only fully-qualified absolute paths are supported (e.g. \_SB.PCI0.LPCB.HPET). Currently supported object types are: Device, Field, Method.
Note: Use with care, not all OEM tables can be parsed. Use ACPIe utility to debug. ACPIe compiled with DEBUG=1 make command produces helpful ACPI lookup tracing.
2. BaseSkip
Type: plist integer
Failsafe: 0 (Do not skip any occurrences)
Description: Number of found Base occurrences to skip before finds and replacements are applied.
3. Comment
Type: plist string
Failsafe: Empty
Description: Arbitrary ASCII string used to provide human readable reference for the entry. Whether this value is used is implementation defined.
4. Count
Type: plist integer
Failsafe: 0 (Apply patch to all occurrences found)
Description: Number of occurrences to patch.
5. Enabled
Type: plist boolean
Failsafe: false
Description: Set to true to apply this ACPI patch.
6. Find
Type: plist data
Failsafe: Empty
Description: Data to find. Must be equal to Replace in size if set.
Note: Can be empty, when Base is specified, immediate replacement after Base lookup happens in this case.
7. Limit
Type: plist integer
Failsafe: 0 (Search entire ACPI table)
Description: Maximum number of bytes to search for.
8. Mask
Type: plist data
Failsafe: Empty (Ignored)
Description: Data bitwise mask used during find comparison. Allows fuzzy search by ignoring not masked (set to zero) bits. Must be equal to Replace in size if set.
9. OemTableId
Type: plist data, 8 bytes
Failsafe: All zero (Match any table OEM ID)
Description: Match table OEM ID equal to this value.
10. Replace
Type: plist data
Failsafe: Empty
Description: Replacement data of one or more bytes.
11. ReplaceMask
Type: plist data
Failsafe: Empty (Ignored)
Description: Data bitwise mask used during replacement. Allows fuzzy replacement by updating masked (set to non-zero) bits. Must be equal to Replace in size if set.
12. Skip
Type: plist integer
Failsafe: 0 (Do not skip any occurrences)
Description: Number of found occurrences to skip before replacements are applied.
13. TableLength
Type: plist integer
Failsafe: 0 (Match any table size)
Description: Match table size equal to this value.
14. TableSignature
Type: plist data, 4 bytes
Failsafe: All zero (Match any table signature)
Description: Match table signature equal to this value.
In most cases, ACPI patches are not useful and are harmful:
• Avoid renaming devices with ACPI patches. This may fail or perform improper renaming of unrelated devices (e.g. EC and EC0), be unnecessary, or even fail to rename devices in certain tables. For ACPI consistency it is much safer to rename devices at the I/O Registry level, as done by WhateverGreen.
• Avoid patching _OSI to support a higher feature set level whenever possible. While this enables a number of workarounds on APTIO firmware, it typically results in a need for additional patches. These are not usually needed on modern firmware and smaller patches work well on firmware that does. However, laptop vendors often rely on this method to determine the availability of functions such as modern I2C input support, thermal adjustment and custom feature additions.
• Avoid patching embedded controller event _Qxx just to enable brightness keys. The conventional process to find these keys typically involves significant modifications to DSDT and SSDT files and in addition, the debug kext is not stable on newer systems. Please use the built-in brightness key discovery in BrightnessKeys instead.
• Avoid making ad hoc changes such as renaming _PRW or _DSM whenever possible.
Some cases where patching is actually useful include:
• Refreshing HPET (or another device) method header to avoid compatibility checks by _OSI on legacy hardware.
_STA method with if ((OSFL () == Zero)) { If (HPTE) ... Return (Zero) content may be forced to always return 0xF by replacing A0 10 93 4F 53 46 4C 00 with A4 0A 0F A3 A3 A3 A3 A3.
• To provide a custom method implementation within an SSDT, to inject shutdown fixes on certain computers for instance, the original method can be replaced with a dummy name by patching _PTS with ZPTS and adding a callback to the original method.
The Tianocore AcpiAml.h source file may help with better understanding ACPI opcodes.
Note: Patches of different Find and Replace lengths are unsupported as they may corrupt ACPI tables and make the system unstable due to area relocation. If such changes are needed, the utilisation of “proxy” patching or the padding of NOP to the remaining area could be considered.
----
1. Base
类型:plist字符串
失败保护:空(忽略)
描述:通过获取所提供的路径的偏移量,选择ACPI路径基来进行补丁查找(或立即替换)。
只支持完全限定的绝对路径(例如:\_SB.PCI0.LPCB.HPET)。目前支持的对象类型有 设备、字段、方法。
注意:请谨慎使用,并非所有的OEM表都能被解析。使用ACPIe工具进行调试。ACPIe编译时使用DEBUG=1 make命令,可以产生有用的ACPI查找跟踪。
2. BaseSkip
类型:plist整数
失败保护:0 (不跳过任何事件)
说明:在进行查找和替换之前,要跳过的基数。
3. Comment
类型:plist字符串
失败保护:空的
说明:任意的ASCII字符串,用于为条目提供可供人类阅读的参考。
4. Count
类型:plist整数
失败保护:0 (对发现的所有情况打上补丁)
描述:补丁的出现次数。
5. Enabled
类型:plist boolean
失败保护:假
描述:设置为true,以应用此ACPI补丁。
6. Find
类型:plist数据
失败保护:空的
说明:要查找的数据。如果设置的话,大小必须与Replace相等。
注意:可以为空,当指定Base时,在这种情况下,Base查找后会发生立即替换。
7. Limit
类型:plist整数
失败保护:0 (搜索整个ACPI表)
说明:搜索的最大字节数。
8. Mask
类型:plist数据
失败保护:空(忽略)
说明:在查找比较时使用的数据位面掩码。允许通过忽略未屏蔽(设置为零)的位来进行模糊搜索。如果设置的话,必须与Replace的大小相等。
9. OemTableId
类型:plist数据,8字节
失败保护:全部为零(匹配任何表OEM ID)
描述。匹配表OEM ID等于该值。
10. Replace
类型:plist数据
失败保护:空的
说明:一个或多个字节的替换数据。
11. ReplaceMask
类型:plist数据
失败保护:空(忽略)
说明:替换时使用的数据位面掩码。允许通过更新掩码(设置为非零)位进行模糊替换。如果设置,必须与替换大小相等。
12. Skip
类型:plist整数
失败保护:0 (不跳过任何事件)
描述:替换前要跳过的出现次数。
13. TableLength
类型:plist整数
失败保护:0 (匹配任何表格尺寸)
说明。匹配与此值相同的表格大小。
14. TableSignature
类型:plist数据,4字节
失败保护:全部为零(与任何表格签名匹配)
说明: 匹配等于该值的表签名。
在大多数情况下,ACPI补丁是没有用的,是有害的。
- 避免用ACPI补丁重命名设备。这可能会失败或对不相关的设备(如EC和EC0)进行不正确的重命名,是不必要的,甚至无法重命名某些表中的设备。为了ACPI的一致性,在I/O注册表级别重命名设备要安全得多,就像WhateverGreen所做的那样。
- 尽可能避免给_OSI打补丁以支持更高的功能集级别。虽然这可以在APTIO固件上实现一些变通方法,但通常会导致需要额外的补丁。在现代固件上通常不需要这些补丁,较小的补丁在有的固件上也能很好地工作。然而,笔记本电脑供应商经常依靠这种方法来确定功能的可用性,如现代I2C输入支持,热调整和自定义功能添加。
- 避免仅仅为了启用亮度键而给嵌入式控制器事件_Qxx打补丁。发现这些键的传统过程通常涉及对DSDT和SSDT文件的重大修改,此外,调试kext在新系统上并不稳定。请使用BrightnessKeys中内置的亮度键发现代替。
- 尽可能避免进行临时修改,如重命名_PRW或_DSM。
有些情况下,打补丁实际上是有用的,包括。
- 刷新HPET(或其他设备)方法头,以避免_OSI对传统硬件进行兼容性检查。
_STA方法与if((OSFL()==Zero)){如果(HPTE)......。返回(Zero)内容,可以通过将A0 10 93 4F 53 46 4C 00替换为A4 0A 0F A3 A3 A3 A3强制总是返回0xF。
- 为了在 SSDT 中提供自定义的方法实现,例如在某些计算机上注入关机修复,可以通过将 _PTS 替换为 ZPTS,并为原方法添加回调,将原方法替换为虚名。
Tianocore AcpiAml.h源文件可能有助于更好地理解ACPI操作码。
注意:不支持不同查找和替换长度的补丁,因为它们可能会破坏ACPI表,并使系统因区域重新定位而不稳定。如果需要这样的改变,可以考虑利用 "代理 "补丁或将NOP填充到剩余区域。</string>
</property>
<property name="rowCount">
<number>0</number>
</property>
<property name="columnCount">
<number>14</number>
</property>
<column/>
<column/>
<column/>
<column/>
<column/>
<column/>
<column/>
<column/>
<column/>
<column/>
<column/>
<column/>
<column/>
<column/>
</widget>
</item>
<item row="0" column="1">
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<spacer name="verticalSpacer_31">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="btnACPIPatch_Add">
<property name="maximumSize">
<size>
<width>20</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>+</string>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="btnACPIPatch_Del">
<property name="maximumSize">
<size>
<width>20</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>-</string>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="shortcut">
<string>Del</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="btnACPIPatch">
<property name="maximumSize">
<size>
<width>20</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>=</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabACPI4">
<attribute name="title">
<string>Quirks</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_28">
<item row="0" column="0" colspan="3">
<widget class="QFrame" name="frame_2">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>45</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<layout class="QGridLayout" name="gridLayout_43">
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<spacer name="horizontalSpacer_10">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_122">
<property name="text">
<string>Preselection</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBoxACPI">
<property name="minimumSize">
<size>
<width>280</width>
<height>0</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="editable">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
<spacer name="horizontalSpacer_4">
<property name="orientation">