Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] 'Hibernate' by power button
Date: Fri, 16 Feb 2007 20:59:04
Message-Id: 200702162051.41541.michaelkintzios@gmail.com
1 On Friday 16 February 2007 20:45, Raymond Lewis Rebbeck wrote:
2 > On Saturday, 17 February 2007 7:06, Mick wrote:
3 > > On Friday 16 February 2007 19:49, Raymond Lewis Rebbeck wrote:
4 > > > On Saturday, 17 February 2007 6:08, Mick wrote:
5 > > > > Can you spot anything out of place?
6 > > >
7 > > > Your configs seem to all be in order.
8 > > >
9 > > > Are you sure that the acpid init script has been started?
10 > >
11 > > I am sure it is running alright:
12 > > ==================================
13 > > # rc-update -s -v | grep -i acpid
14 > > acpid | default
15 > > ==================================
16 > >
17 > > > Also try checking your logs while pressing the hibernate button and
18 > > > acpid should output what it is doing and what acpi events it is
19 > > > receiving, you can view this on vt12.
20 > >
21 > > Thanks. It seems that my syslog-ng is configured different to yours (I
22 > > guess some more awful hacking to get xconsole to work is to blame for
23 > > this) and nothing relevant to acpid is shown on vt12. However, tail -f
24 > > /var/log/acpid showed a couple of errors which I fixed - bar the last one
25 > > which says:
26 > >
27 > > [Fri Feb 16 20:30:55 2007] BEGIN HANDLER MESSAGES
28 > > /etc/acpi/default.sh: line 57: syntax error: unexpected end of file
29 > >
30 > > The last few of lines of my /etc/acpi/default.sh show this much:
31 > > ==================================
32 > > ac_adapter)
33 > > case "$value" in
34 > > # Add code here to handle when the system is
35 > > unplugged # (maybe change cpu scaling to powersave mode) #*0)
36 > > # ;;
37 > >
38 > > # Add code here to handle when the system is
39 > > plugged in
40 > > # (maybe change cpu scaling to performance mode)
41 > > #*1)
42 > > # ;;
43 > >
44 > >
45 > > *) log_unhandled $* ;;
46 > > esac
47 > > ==================================
48 > >
49 > > What's your's like?
50 >
51 > I use the default default.sh that comes with acpid. I've only added a
52 > couple of files to respond to sleep and lid events.
53
54 Okey, dokey, what do the default last couple of lines/paras look like?
55
56 --
57 Regards,
58 Mick

Replies

Subject Author
[gentoo-user] Re: 'Hibernate' by power button "»Q«" <boxcars@×××.net>