All of lore.kernel.org
 help / color / mirror / Atom feed
* Vendor power-on button
@ 2010-05-23 12:31 Vladimir 'φ-coder/phcoder' Serbinenko
  2010-06-20  4:52 ` Paul Vojta
  0 siblings, 1 reply; 8+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2010-05-23 12:31 UTC (permalink / raw)
  To: The development of GRUB 2

[-- 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 --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Vendor power-on button
@ 2010-06-07  0:15 Henrique Ferreiro
  2010-06-07 20:26 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 8+ messages in thread
From: Henrique Ferreiro @ 2010-06-07  0:15 UTC (permalink / raw)
  To: grub-devel


[-- Attachment #1.1: Type: text/plain, Size: 151 bytes --]

Hi!

I have an Asus EeePC 1005PE. If I did it correctly the address would be
84:1. I am attaching the two files so you can check.

Regards,

Henrique.

[-- Attachment #1.2: Type: text/html, Size: 224 bytes --]

[-- Attachment #2: normal_button.txt --]
[-- Type: text/plain, Size: 522 bytes --]

0000000: 0000 0000 f000 0e80 02ff ff2f 00ff 3f10  .........../..?.
0000010: 0000 3f00 0000 0000 0000 0040 4747 4707  ..?........@GGG.
0000020: 0656 ffff 20b7 bff6 0300 0000 0000 1e1e  .V.. ...........
0000030: 14f5 0000 0000 0000 0000 0000 0000 802f  .............../
0000040: 2c00 0000 01fe 0221 4365 87a9 0b21 8354  ,......!Ce...!.T
0000050: 7698 f500 0000 0000 0000 00ba 0005 0000  v...............
0000060: 2408 0000 0000 0000 0000 001a 081a 3058  $.............0X
0000070: 0080                                     ..

[-- Attachment #3: vendor_button.txt --]
[-- Type: text/plain, Size: 522 bytes --]

0000000: 0000 0000 f000 0e80 02ff ff2f 00ff 3f10  .........../..?.
0000010: 0000 3f00 0000 0000 0000 0040 4747 4707  ..?........@GGG.
0000020: 0656 ffff 20b7 bff6 0300 0000 0000 1e1e  .V.. ...........
0000030: 14f5 0000 0000 0000 0000 0000 0000 802f  .............../
0000040: 2c00 0000 01fe 0021 4365 87a9 0b21 8354  ,......!Ce...!.T
0000050: 7698 f500 0000 0000 0000 00ba 0005 0000  v...............
0000060: 2408 0000 0000 0000 0000 001a 081a 3058  $.............0X
0000070: 0080                                     ..

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-07-17  0:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-23 12:31 Vendor power-on button Vladimir 'φ-coder/phcoder' Serbinenko
2010-06-20  4:52 ` 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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.