diff options
author | Eric Anholt <eric@anholt.net> | 2006-09-21 17:03:34 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2006-09-27 13:30:09 -0700 |
commit | 117ff04b504578a24dff70659e2db1b81aaa1177 (patch) | |
tree | 467c91e97e15f03d62cd591d6b83809e6a3e7f8a /src/i810_reg.h | |
parent | daade50ca271d1cdf236bbe84afade85d4111ac9 (diff) |
Attempt to make the ACPI hotkey support a little more modesetting-compatible.
Previously, we watched for the BIOS to have changed the layout, and repaired
the resulting configuration. Now, we request that the BIOS make no changes,
but leave a note in a register for when the key has been pressed. When we
notice this, we reprobe monitors and turn on/off the things we find.
This is a temporary solution until we can get the hotkey hooked up as an
input key to external applications to control the change using RandR 1.2. It
is also untested as neither of my laptops do anything with the hotkey.
However, this code does result in many fewer BIOS calls.
Diffstat (limited to 'src/i810_reg.h')
-rw-r--r-- | src/i810_reg.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/i810_reg.h b/src/i810_reg.h index 275d858c..3a15a464 100644 --- a/src/i810_reg.h +++ b/src/i810_reg.h @@ -94,6 +94,10 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #define LINEAR_MODE_ENABLE 0x02 #define PAGE_MAPPING_ENABLE 0x01 +#define HOTKEY_VBIOS_SWITCH_BLOCK 0x80 +#define HOTKEY_SWITCH 0x20 +#define HOTKEY_TOGGLE 0x10 + /* Blitter control, p378 */ #define BITBLT_CNTL 0x7000c |