Re: [gentoo-user] How cam I get system to recognize MagicSysReq while in X gui?

2007-12-21 Thread Peter Humphrey
On Thursday 20 December 2007 17:17:15 Etaoin Shrdlu wrote:

 You have to emerge sys-power/acpid, not sys-power/acpi.

Ah, yes, of course. Thanks.

-- 
Rgds
Peter
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] How cam I get system to recognize MagicSysReq while in X gui?

2007-12-20 Thread Peter Humphrey
On Wednesday 19 December 2007 22:58:25 Walter Dnes wrote:

 This is a wonderful idea, and I have it implemented now.

Sounds pretty good to me too!

 emerge acpi

Doing that didn't give me this file:

 change the uncommented lines in /etc/acpi/events/default to read
 event=.*
 action=chvt 1

What other packages do I need to install, besides sys-power/acpi?

-- 
Rgds
Peter
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] How cam I get system to recognize MagicSysReq while in X gui?

2007-12-20 Thread Etaoin Shrdlu
On Thursday 20 December 2007, Peter Humphrey wrote:

 On Wednesday 19 December 2007 22:58:25 Walter Dnes wrote:
  This is a wonderful idea, and I have it implemented now.

 Sounds pretty good to me too!

  emerge acpi

 Doing that didn't give me this file:
  change the uncommented lines in /etc/acpi/events/default to read
  event=.*
  action=chvt 1

 What other packages do I need to install, besides sys-power/acpi?

You have to emerge sys-power/acpid, not sys-power/acpi.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] How cam I get system to recognize MagicSysReq while in X gui?

2007-12-20 Thread Boris Fersing
On Dec 18, 2007 3:41 AM, Neil Bothwick [EMAIL PROTECTED] wrote:
 On Tue, 18 Dec 2007 05:53:18 +0100, Hemmann, Volker Armin wrote:

  the 'best' sequence is e-i-u-b (u = remount ro also syncs.. and leaves
  the fs in a clean state).
 
  To get the keyboard back from X try K (to sack X) or R (to pry it out
  of X cold, dead fingers).

 If you can SSH into the machine, you can also do it with

 echo u /proc/sysrq-trigger
 echo b /proc/sysrq-trigger

 Do not use e or i this way as they will kill sshd.

Or just type 'reboot' (or anything else you want to do) ?   =_='

Boris.


 --
 Neil Bothwick

 Nothing is foolproof to a sufficiently talented fool.




-- 
$ ruby -e'puts  .:@BFegiklnorst.unpack(x4ax7aaX6ax5aX15ax4aax6aaX7ax2 \
aX5aX8axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4 \
ax3aX4aXaX12ax10aaX7a).join'
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] How cam I get system to recognize MagicSysReq while in X gui?

2007-12-20 Thread Neil Bothwick
On Thu, 20 Dec 2007 12:26:55 -0500, Boris Fersing wrote:

  If you can SSH into the machine, you can also do it with
 
  echo u /proc/sysrq-trigger
  echo b /proc/sysrq-trigger
 
  Do not use e or i this way as they will kill sshd.  
 
 Or just type 'reboot' (or anything else you want to do) ?   =_='

I've had systems too messed up to run reboot or shutdown.


-- 
Neil Bothwick

In possession of a mind not merely twisted, but actually sprained.


signature.asc
Description: PGP signature


Re: [gentoo-user] How cam I get system to recognize MagicSysReq while in X gui?

2007-12-19 Thread Walter Dnes
On Tue, Dec 18, 2007 at 05:53:18AM +0100, Hemmann, Volker Armin wrote

 Another thing you can try: add something you want to be done (like switching 
 to a vt or a certain sysrq-key) to your acpid config and let acpid run. If 
 the keyboard hangs, just push the power button ...
 
 for example:
 event=.*
 action=chvt 1
 
 in /etc/acpi/events/default switches to vt1 if you push the power button. 
 Pretty usefull, if X is in deep shit mode again.

ELVIS
Thank you, thank you, thank you verrry verrry much!
/ELVIS

  This is a wonderful idea, and I have it implemented now.  For the
benefit of anyone else who's interested, here are the steps I took

as root
cd /usr/src/linux
make menuconfig
  Power management options (ACPI, APM)  ---
[*] Power Management support
ACPI (Advanced Configuration and Power Interface) Support
  [*] ACPI Support
  *   Button

Compile and re-boot into new kernel

emerge acpi

change the uncommented lines in /etc/acpi/events/default to read
event=.*
action=chvt 1

execute the commands...
/etc/init.d/acpid start  (to start acpid now)
rc-update add default acpid  (to automatically start acpid at future bootups)

  Notes:
  - When testing, I suggets executing sync as a precaution, just
before pressing the big power button.

  - PCs also have a smaller power button which is hard-wired to shutdown
or re-boot.  Do not press that button.

  - After editing /etc/acpi/events/default run the command
/etc/init.d/acpid restart
to force acpid to read in the new config

-- 
Walter Dnes [EMAIL PROTECTED]
I'm not repeating myself
I'm an X Window user...  I'm an ex-Windows-user
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] How cam I get system to recognize MagicSysReq while in X gui?

2007-12-19 Thread Walter Dnes
   Aaaargh, a typo in my instructions

On Wed, Dec 19, 2007 at 05:58:25PM -0500, Walter Dnes wrote

 rc-update add default acpid  (to automatically start acpid at future bootups)
Should have read...
  rc-update add acpid default

-- 
Walter Dnes [EMAIL PROTECTED]
I'm not repeating myself
I'm an X Window user...  I'm an ex-Windows-user
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] How cam I get system to recognize MagicSysReq while in X gui?

2007-12-19 Thread Hemmann, Volker Armin
On Mittwoch, 19. Dezember 2007, Walter Dnes wrote:
 On Tue, Dec 18, 2007 at 05:53:18AM +0100, Hemmann, Volker Armin wrote

  Another thing you can try: add something you want to be done (like
  switching to a vt or a certain sysrq-key) to your acpid config and let
  acpid run. If the keyboard hangs, just push the power button ...
 
  for example:
  event=.*
  action=chvt 1
 
  in /etc/acpi/events/default switches to vt1 if you push the power button.
  Pretty usefull, if X is in deep shit mode again.

 ELVIS
 Thank you, thank you, thank you verrry verrry much!
 /ELVIS

   This is a wonderful idea, and I have it implemented now.  For the
 benefit of anyone else who's interested, here are the steps I took


got it from this ml or the gentoo-forums. Was not my idea. But is very 
helpfull if X has totally eaten the keyboard but interrupts are still 
delivered.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] How cam I get system to recognize MagicSysReq while in X gui?

2007-12-18 Thread Neil Bothwick
On Tue, 18 Dec 2007 05:53:18 +0100, Hemmann, Volker Armin wrote:

 the 'best' sequence is e-i-u-b (u = remount ro also syncs.. and leaves
 the fs in a clean state).
 
 To get the keyboard back from X try K (to sack X) or R (to pry it out
 of X cold, dead fingers).

If you can SSH into the machine, you can also do it with

echo u /proc/sysrq-trigger
echo b /proc/sysrq-trigger

Do not use e or i this way as they will kill sshd.


-- 
Neil Bothwick

Nothing is foolproof to a sufficiently talented fool.


signature.asc
Description: PGP signature


[gentoo-user] How cam I get system to recognize MagicSysReq while in X gui?

2007-12-17 Thread Walter Dnes
  I've figured out how to force a hard lockup on my system, by trying to
log on to my ADSL service when the modem is switched off.  Yeah, I know...
Patient: Doctor, it hurts when I do that.
Doctor: In that case... *DON'T DO THAT*.

  During one such lockup, I discovered that Magic SysRq doesn't work in
X.  For those of you who haven't heard of it...
less /usr/src/linux/Documentation/sysrq.txt

  The feature that I wanted to access was the ability to force an
emergency sync of the disks before powering off the system.  This would
require simultaneously pressing {ALT}{SysRq}s after which I want to
force a boot with {ALT}{SysRq}b

  This does work in a true textmode, but not in X.  Fortunately,
Reiserfs' journalling saved my neck, but I'd rather not have to shut
down a machine that hasn't been synced.  Is there a way to tell X to
pass through the {ALT}{SysRq}random key combo?

-- 
Walter Dnes [EMAIL PROTECTED]
I'm not repeating myself
I'm an X Window user...  I'm an ex-Windows-user
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] How cam I get system to recognize MagicSysReq while in X gui?

2007-12-17 Thread Hemmann, Volker Armin
On Dienstag, 18. Dezember 2007, Walter Dnes wrote:
   I've figured out how to force a hard lockup on my system, by trying to
 log on to my ADSL service when the modem is switched off.  Yeah, I know...
 Patient: Doctor, it hurts when I do that.
 Doctor: In that case... *DON'T DO THAT*.

   During one such lockup, I discovered that Magic SysRq doesn't work in
 X.  For those of you who haven't heard of it...
 less /usr/src/linux/Documentation/sysrq.txt

   The feature that I wanted to access was the ability to force an
 emergency sync of the disks before powering off the system.  This would
 require simultaneously pressing {ALT}{SysRq}s after which I want to
 force a boot with {ALT}{SysRq}b


the 'best' sequence is e-i-u-b (u = remount ro also syncs.. and leaves the fs 
in a clean state).

To get the keyboard back from X try K (to sack X) or R (to pry it out of X 
cold, dead fingers).

Another thing you can try: add something you want to be done (like switching 
to a vt or a certain sysrq-key) to your acpid config and let acpid run. If 
the keyboard hangs, just push the power button ...

for example:
event=.*
action=chvt 1

in /etc/acpi/events/default switches to vt1 if you push the power button. 
Pretty usefull, if X is in deep shit mode again.

-- 
[EMAIL PROTECTED] mailing list