From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Vendor power-on button
Date: Sun, 23 May 2010 14:31:05 +0200 [thread overview]
Message-ID: <4BF92009.2030803@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1473 bytes --]
Hello, all. I've just merged vendor power-on button support into
mainline. Here is extract from manual: <<EOF
Some laptop vendors provide an additional power-on button which boots
another OS.
GRUB supports such buttons with GRUB_TIMEOUT_BUTTON, GRUB_DEFAULT_BUTTON,
GRUB_HIDDEN_TIMEOUT_BUTTON and GRUB_BUTTON_CMOS_ADDRESS variables in
default/grub. GRUB_TIMEOUT_BUTTON, GRUB_DEFAULT_BUTTON and
GRUB_HIDDEN_TIMEOUT_BUTTON are used instead of corresponding variables
without
_BUTTON suffix when powered using special button.
GRUB_BUTTON_CMOS_ADDRESS is vendor specific and partially model-specific.
Values known to GRUB team are:
@table @key
@item Dell XPS M1530
85:3
@end table
EOF
If you have a laptop which has a similar feature could you figure your
address and contribute?
To discover the address do the following:
1) boot normally
2) sudo modprobe nvram
sudo cat /dev/nvram | xxd > normal_button.txt
3) boot using vendor button
sudo modprobe nvram
sudo cat /dev/nvram | xxd > normal_vendor.txt
Then compare these text files and find where a bit was toggled. E.g. in
case of Dell XPS it was:
byte 0x47: 20 --> 28
It's a bit number 3 as seen from following table:
0: 01
1: 02
2: 04
3: 08
4: 10
5: 20
6: 40
7: 80
0x47 is decimal 71. Linux nvram implementation cuts first 14 bytes of
CMOS. So the real byte address in CMOS is 71+4=85
So complete address is 85:3
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]
next reply other threads:[~2010-05-23 12:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-23 12:31 Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2010-06-20 4:52 ` Vendor power-on button Paul Vojta
2010-06-28 8:28 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-07-17 0:37 ` Paul Vojta
-- strict thread matches above, loose matches on Subject: below --
2010-06-07 0:15 Henrique Ferreiro
2010-06-07 20:26 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-06-08 13:41 ` Henrique Ferreiro
2010-06-09 20:26 ` Vladimir 'φ-coder/phcoder' Serbinenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BF92009.2030803@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox