[ltp] Re: acpi_fakekey and sleep button

amateur linux-thinkpad@linux-thinkpad.org
Thu, 12 Oct 2006 21:12:26 +0800


On Thu, Oct 12, 2006 at 08:23:16AM -0400, David Abrahams wrote:
> amateur <ztl.post@gmail.com> writes:
> 
> >> Thanks in advance,
> >> Dave
> >> 
> >
> > I think acpi_fakekey just insert an key press/release event to
> > /dev/inputx, where /dev/inputx correspond to the keyboard device.
> > In this way, the upper acpid will receive a SLEEP key press/release
> > event, upon which it will trigger an SLEEP signal. 
> 
> Right; the problem is trying to figure out what the events and signals
> are actually triggering.  It sounds like you are taking for granted
> that I know how to do that.

I suppose the action is 
	hibernate --config-file=/etc/hibernate/ram.conf

Correct me if I am wrong.

> 
> > And the system in someway will suspend to ram.
> 
> That part, I'm very clear on :)
> 
> -- 
> Dave Abrahams
> Boost Consulting
> www.boost-consulting.com
> 
> -- 
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
> 
-------------------------

-- 
Work consists of whatever a body is obliged to do.
Play consists of whatever a body is not obliged to do.
		-- Mark Twain