RE: acpid on gentoo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for replying, answers inline : ---------------------------------------- > 
Date: Sun, 4 Mar 2007 13:09:36 -0800 > From: job17and9@xxxxxxxxxxxxx > Subject: Re: acpid on gentoo > To: nigels@xxxxxxxxxxx > > 
Nigel: 
> Have you started the acpid daemon? 
Yes. 
# ps -ef | grep [a]cpi
 root 8 5 0 09:29 ? 00:00:00 [kacpid] 
root 4893 1 0 09:29 ? 00:00:00 /usr/sbin/acpid 
102 5039 5033 0 09:29 ? 00:00:00 /usr/libexec/hald-addon-acpi 

(i also tried running without the ald-addon-acpi  process to see if this makes it difference, it doesn't )
Also note: 
# lsof |grep "/proc/acpi/event" 
acpid 13843 root 3r REG 0,3 0 4026532088 /proc/acpi/event 
daemon is running and "listening" to /proc/acpi/event 
> I've had much success with that same gentoo kernel... 
> what are your /etc/acpid config files looking like?
 # pwd /etc/acpi lithium acpi 
# ls -R 
.: actions default.sh events ./actions: pmg_switch_runlevel.sh ./events: default pmg_ac_adapter pmg_battery 
# /usr/sbin/acpid -d 1 
[Mon Mar 5 11:46:44 2007] starting up 
[Mon Mar 5 11:46:44 2007] DBG: parsing conf file /etc/acpi/events/default 
[Mon Mar 5 11:46:44 2007] DBG: parsing conf file /etc/acpi/events/pmg_ac_adapter 
[Mon Mar 5 11:46:44 2007] DBG: parsing conf file /etc/acpi/events/pmg_battery 
[Mon Mar 5 11:46:44 2007] 3 rules loaded 
[Mon Mar 5 11:46:47 2007] client connected from 5039[102:441] 
[Mon Mar 5 11:46:47 2007] 1 client rule loaded 
Apart from the pmg files, I have not modified the defaults of the other files. 

Config files attached.

> got any logger commands in there? 
Yes, but only stuff like this: 
[Mon Mar 5 09:29:15 2007] starting up 
[Mon Mar 5 09:29:16 2007] 3 rules loaded 
[Mon Mar 5 09:29:17 2007] client connected from 5039[102:441] 
[Mon Mar 5 09:29:17 2007] 1 client rule loaded 
[Mon Mar 5 09:29:20 2007] client connected from 5699[0:0] 
[Mon Mar 5 09:29:20 2007] 1 client rule loaded 
[Mon Mar 5 11:46:37 2007] exiting 

How have you come to
 > the conclusion that acpid is not receiving acpi 
> events? 

Start the daemon on the command line with "-d 1" No events are seen. 
Tried attaching "strace -v -p " 
Nothing more than this is ever shown: 
poll( 
Yes, that's right, with just the one side open bracket. 
Both of the above are independant of where it logs information. 
In both instances output is written to the terminal. 

> > when i was setting mine up some months ago, the
 > default handler that shipped with acpid tried to log 
> events with the system logger, not in a /var/log/acpi > file. check the system log, and the /etc/acpid event > handlers.

I wish my problem were as simple as looking in the wrong place for the logs.
Have a reread of my initial post.

I don't necessarily need someone to just give me the immediate solution, but any tips that I could use to further debug what the problem might be.

At this point I'm guessing kernel config problem.

Thanks
Nigel.

 > > hope that helps. 
> /brian


 > > --- Nigel Nigel wrote: > > > > > Hello, > > > > I have been trying to get acpid to receive events on > > gentoo without any success. > > I an on kernel 2.6.17 (with rev 10 gentoo patched) > > acpid: 1.0.4-r4 > > Toshiba Tecra M3 > > > > I have been following the guide at: > > > http://www.gentoo.org/doc/en/power-management-guide.xml > > > > I'm on 2.6.17 > > > > So, whatever they suggested to compile in the kernel > > or as a module that is what I have done. > > > > When I look at /var/log/acpi no events are being > > generated. > > > > With this test : > > on_ac_power && echo AC available || echo Running on > > batteries > > > > It shows "AC available" when the ac is plugged in, > > take the cable out, and it shows "Running on > > batteries" > > > > Code: > > > > # acpitool -e > > Kernel version : 2.6.17 - ACPI version : > > 20060127 > > > > > ----------------------------------------------------------- > > Battery #1 : present > > Remaining capacity : 39441 mWh, 82.47%, 00:27:29 > > Design capacity : 50760 mWh > > Last full capacity : 47822 mWh, 94.21% of design > > capacity > > Capacity loss : 5.788% > > Present rate : 18295 mW > > Charging state : charging > > Battery type : rechargeable, Li-ION > > Model number : G71C0004G810 > > Serial number : 0100027803 > > Battery #2 : slot empty > > > > AC adapter : on-line > > Fan : off > > > > CPU type : Intel(R) Pentium(R) M > > processor 2.13GHz > > CPU speed : 800.000 MHz > > Cache size : 2048 KB > > Bogomips : 1600.29 > > Processor ID : 0 > > Bus mastering control : yes > > Power management : yes > > Throttling control : no > > Limit interface : no > > Active C-state : C3 > > C-states (incl. C0) : 4 > > Usage of state C1 : 10 (0.0 %) > > Usage of state C2 : 161443 (35.8 %) > > Usage of state C3 : 144440 (32.1 %) > > > > Thermal info : > > > > wakeup devices : > > > > > > I can modify this: > > > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor > > and the processor speed with follow the governor > > which I set. > > > > I can also run: acpitool -l 4 > > for example, and dim the lcd display. > > > > Also, I have th battery indicator applet in gnome, > > this also changes correctly with respect to having > > the power connected, or not. > > > > Most things seem to work as they should, except > > acpid is not receiving events. > > > > Code: > > > > # ls -R /proc/acpi/ > > /proc/acpi/: > > ac_adapter dsdt event info > > processor > > battery embedded_controller fadt > > power_resource toshiba > > > > /proc/acpi/ac_adapter: > > ADP1 > > > > /proc/acpi/ac_adapter/ADP1: > > state > > > > /proc/acpi/battery: > > BAT1 BAT2 > > > > /proc/acpi/battery/BAT1: > > alarm info state > > > > /proc/acpi/battery/BAT2: > > alarm info state > > > > /proc/acpi/embedded_controller: > > > > /proc/acpi/power_resource: > > > > /proc/acpi/processor: > > CPU0 > > > > /proc/acpi/processor/CPU0: > > info limit power throttling > > > > /proc/acpi/toshiba: > > fan keys lcd version video > > > > > > Modules at run time : > > Code: > > > > # lsmod > > Module Size Used by > > cisco_ipsec 545996 0 > > snd_pcm_oss 16992 0 > > snd_mixer_oss 12928 1 snd_pcm_oss > > snd_seq_oss 23872 0 > > snd_seq_midi_event 5184 1 snd_seq_oss > > snd_seq 37456 4 > > snd_seq_oss,snd_seq_midi_event > > snd_seq_device 5708 2 snd_seq_oss,snd_seq > > snd_intel8x0 24924 0 > > snd_ac97_codec 78496 1 snd_intel8x0 > > snd_ac97_bus 1792 1 snd_ac97_codec > > snd_pcm 54472 3 > > snd_pcm_oss,snd_intel8x0,snd_ac97_codec > > snd_timer 15236 2 snd_seq,snd_pcm > > snd_page_alloc 6728 2 snd_intel8x0,snd_pcm > > toshiba_acpi 4756 0 > > speedstep_centrino 5456 1 > > processor 16896 1 speedstep_centrino > > ipw2200 140268 0 > > nvidia 4541396 12 > > sky2 28740 0 > > > > > > > > The AC and battery modules are compiled in kernel as > > the guide suggests. > > > > > > # acpi_available; echo $? > > 0 > > > > # grep -i "^config_acpi" .config > > CONFIG_ACPI=y > > CONFIG_ACPI_AC=y > > CONFIG_ACPI_BATTERY=y > > CONFIG_ACPI_BUTTON=m > > CONFIG_ACPI_VIDEO=m > > CONFIG_ACPI_FAN=m > > CONFIG_ACPI_PROCESSOR=m > > CONFIG_ACPI_THERMAL=m > > CONFIG_ACPI_TOSHIBA=m > > CONFIG_ACPI_BLACKLIST_YEAR=0 > > CONFIG_ACPI_EC=y > > CONFIG_ACPI_POWER=y > > CONFIG_ACPI_SYSTEM=y > > > > # lsof |grep "/proc/acpi/event" > > acpid 13843 root 3r REG 0,3 > > 0 4026532088 /proc/acpi/event > > > > > > Even if I run strace against acpid I can't seen > > anything happening. > > > > > > One interesting though, if I do : modprobe button > > then every 30 seconds or so I get: > > received event "battery BAT1 00000080 00000001" > > > > Even when i do rmmod button I still keep getting > > these events. > > The only way to go back to "normal" behaviour is to > > reboot. > > > > Any suggestions as to what might be my problem here > > ? > > > > TIA > > Nigel. > > > > > > > === message truncated === >

_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

Attachment: acpiconf.tar.gz
Description: application/gzip


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux