]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* docs/grub.texi (Vendor power-on buttons): Explain how the numbers
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 3 Apr 2011 13:34:50 +0000 (15:34 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 3 Apr 2011 13:34:50 +0000 (15:34 +0200)
are obtained.

ChangeLog
docs/grub.texi

index 47bb01e7ee8a2f107d48ac4cc5d645d5014db7d0..129703971b3e0513b7043ba87c7fffe659e74a2f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-02  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
+       are obtained.
+
 2011-04-02  Vladimir Serbinenko  <phcoder@gmail.com>
 
        GRUB developper manual based on existing Internals section and
index 45baeafe614d61e7adfb256862c0bd8dfa00d8e7..0c59975cdb8eb6d5b9f9da131de14f4cc4f51cae 100644 (file)
@@ -2049,6 +2049,44 @@ model-specific.  Values known to the GRUB team are:
 To take full advantage of this function, install GRUB into the MBR
 (@pxref{Installing GRUB using grub-install}).
 
+If you have a laptop which has a similar feature and not in the above list
+could you figure your address and contribute?
+To discover the address do the following:
+@itemize
+@item boot normally
+@item
+@example
+sudo modprobe nvram
+sudo cat /dev/nvram | xxd > normal_button.txt
+@end example
+@item boot using vendor button
+@item
+@example
+sudo modprobe nvram
+sudo cat /dev/nvram | xxd > normal_vendor.txt
+@end example
+@end itemize
+
+Then compare these text files and find where a bit was toggled. E.g. in
+case of Dell XPS it was:
+@example
+byte 0x47: 20 --> 28
+@end example
+It's a bit number 3 as seen from following table:
+@multitable @columnfractions .2 .2
+@item 0 @tab 01
+@item 1 @tab 02
+@item 2 @tab 04
+@item 3 @tab 08
+@item 4 @tab 10
+@item 5 @tab 20
+@item 6 @tab 40
+@item 7 @tab 80
+@end multitable
+
+0x47 is decimal 71. Linux nvram implementation cuts first 14 bytes of
+CMOS. So the real byte address in CMOS is 71+14=85
+So complete address is 85:3
 
 @node Images
 @chapter GRUB image files