1 What: /sys/firmware/acpi/bgrt/
3 Contact: Matthew Garrett <mjg@redhat.com>
5 The BGRT is an ACPI 5.0 feature that allows the OS
6 to obtain a copy of the firmware boot splash and
7 some associated metadata. This is intended to be used
8 by boot splash applications in order to interact with
9 the firmware boot splash in order to avoid jarring
12 image: The image bitmap. Currently a 32-bit BMP.
13 status: 1 if the image is valid, 0 if firmware invalidated it.
14 type: 0 indicates image is in BMP format.
16 ======== ===================================================
17 version: The version of the BGRT. Currently 1.
18 xoffset: The number of pixels between the left of the screen
19 and the left edge of the image.
20 yoffset: The number of pixels between the top of the screen
21 and the top edge of the image.
22 ======== ===================================================
24 What: /sys/firmware/acpi/hotplug/
26 Contact: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
28 There are separate hotplug profiles for different classes of
29 devices supported by ACPI, such as containers, memory modules,
30 processors, PCI root bridges etc. A hotplug profile for a given
31 class of devices is a collection of settings defining the way
32 that class of devices will be handled by the ACPI core hotplug
33 code. Those profiles are represented in sysfs as subdirectories
34 of /sys/firmware/acpi/hotplug/.
36 The following setting is available to user space for each
39 ======== =======================================================
40 enabled: If set, the ACPI core will handle notifications of
41 hotplug events associated with the given class of
42 devices and will allow those devices to be ejected with
43 the help of the _EJ0 control method. Unsetting it
44 effectively disables hotplug for the correspoinding
46 ======== =======================================================
48 The value of the above attribute is an integer number: 1 (set)
49 or 0 (unset). Attempts to write any other values to it will
50 cause -EINVAL to be returned.
52 What: /sys/firmware/acpi/interrupts/
54 Contact: Len Brown <lenb@kernel.org>
56 All ACPI interrupts are handled via a single IRQ,
57 the System Control Interrupt (SCI), which appears
58 as "acpi" in /proc/interrupts.
60 However, one of the main functions of ACPI is to make
61 the platform understand random hardware without
62 special driver support. So while the SCI handles a few
63 well known (fixed feature) interrupts sources, such
64 as the power button, it can also handle a variable
65 number of a "General Purpose Events" (GPE).
67 A GPE vectors to a specified handler in AML, which
68 can do a anything the BIOS writer wants from
69 OS context. GPE 0x12, for example, would vector
70 to a level or edge handler called _L12 or _E12.
71 The handler may do its business and return.
72 Or the handler may send send a Notify event
73 to a Linux device driver registered on an ACPI device,
74 such as a battery, or a processor.
76 To figure out where all the SCI's are coming from,
77 /sys/firmware/acpi/interrupts contains a file listing
78 every possible source, and the count of how many
79 times it has triggered::
81 $ cd /sys/firmware/acpi/interrupts
125 =========== ==================================================
126 sci The number of times the ACPI SCI
127 has been called and claimed an interrupt.
129 sci_not The number of times the ACPI SCI
130 has been called and NOT claimed an interrupt.
132 gpe_all count of SCI caused by GPEs.
134 gpeXX count for individual GPE source
136 ff_gbl_lock Global Lock
140 ff_pwr_btn Power Button
142 ff_rt_clk Real Time Clock
144 ff_slp_btn Sleep Button
146 error an interrupt that can't be accounted for above.
148 invalid it's either a GPE or a Fixed Event that
149 doesn't have an event handler.
151 disable the GPE/Fixed Event is valid but disabled.
153 enable the GPE/Fixed Event is valid and enabled.
154 =========== ==================================================
156 Root has permission to clear any of these counters. Eg.::
160 All counters can be cleared by clearing the total "sci"::
164 None of these counters has an effect on the function
165 of the system, they are simply statistics.
167 Besides this, user can also write specific strings to these files
168 to enable/disable/clear ACPI interrupts in user space, which can be
169 used to debug some ACPI interrupt storm issues.
171 Note that only writing to VALID GPE/Fixed Event is allowed,
172 i.e. user can only change the status of runtime GPE and
173 Fixed Event with event handler installed.
175 Let's take power button fixed event for example, please kill acpid
176 and other user space applications so that the machine won't shutdown
177 when pressing the power button::
181 # press the power button for 3 times;
184 # echo disable > ff_pwr_btn
187 # press the power button for 3 times;
190 # echo enable > ff_pwr_btn
194 * this is because the status bit is set even if the enable
195 * bit is cleared, and it triggers an ACPI fixed event when
196 * the enable bit is set again
198 # press the power button for 3 times;
201 # echo disable > ff_pwr_btn
202 # press the power button for 3 times;
203 # echo clear > ff_pwr_btn /* clear the status bit */
204 # echo disable > ff_pwr_btn