Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
notebook asus e acpid, fermate quegli eventi!!!
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1415
Location: <ud|me|ts> - Italy

PostPosted: Mon Oct 22, 2007 3:53 pm    Post subject: notebook asus e acpid, fermate quegli eventi!!! Reply with quote

Ho abilitato la gestione degli eventi acpi nel kernel, per il mio notebook asus a6tc:
Code:
 ~/> zgrep ACPI /proc/config.gz
# ACPI (Advanced Configuration and Power Interface) Support
CONFIG_ACPI=y
# CONFIG_ACPI_PROCFS is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
# CONFIG_ACPI_BAY is not set
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_ASUS=y
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_ACPI_CONTAINER=y
# CONFIG_ACPI_SBS is not set
CONFIG_X86_POWERNOW_K8_ACPI=y
CONFIG_X86_ACPI_CPUFREQ=y
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_PNPACPI=y
# CONFIG_THINKPAD_ACPI is not set
# CONFIG_BLK_DEV_IDEACPI is not set
CONFIG_ATA_ACPI=y


 ~/> uname -a
Linux jarod 2.6.22-gentoo-r8 #21 SMP Mon Oct 22 15:23:35 CEST 2007 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-50 AuthenticAMD GNU/Linux

ed installato il pacchetto:
Code:
 ~/> eix acpi4
[I] app-laptop/acpi4asus
     Available versions:  (~)0.30 (~)0.32 (~)0.32-r1 (~)0.40 (~)0.40-r1 (~)0.41 {kernel_linux}
     Installed versions:  0.41(06:04:47 PM 09/29/2007)(kernel_linux)
     Homepage:            http://sourceforge.net/projects/acpi4asus
     Description:         Acpi daemon and kernel module to control ASUS Laptop Hotkeys

Il problema si verifica quando chiudo lo schermo, il kernel rileva un casino di volte al secondo il seguente evento:
Code:
 ~/> cat /var/log/acpid |tail -n 15
[Mon Oct 22 17:22:44 2007] executing action "/etc/acpi/default.sh button/lid LID 00000080 00013407"
[Mon Oct 22 17:22:44 2007] BEGIN HANDLER MESSAGES
[Mon Oct 22 17:22:44 2007] END HANDLER MESSAGES
[Mon Oct 22 17:22:44 2007] action exited with status 0
[Mon Oct 22 17:22:44 2007] completed event "button/lid LID 00000080 00013407"
[Mon Oct 22 17:22:44 2007] received event "button/lid LID 00000080 00013408"
[Mon Oct 22 17:22:44 2007] notifying client 3708[0:0]
[Mon Oct 22 17:22:44 2007] notifying client 3808[0:1000]
[Mon Oct 22 17:22:44 2007] notifying client 3837[1000:1000]
[Mon Oct 22 17:22:44 2007] notifying client 3808[0:1000]
[Mon Oct 22 17:22:44 2007] executing action "/etc/acpi/default.sh button/lid LID 00000080 00013408"
[Mon Oct 22 17:22:44 2007] BEGIN HANDLER MESSAGES
[Mon Oct 22 17:22:44 2007] END HANDLER MESSAGES
[Mon Oct 22 17:22:44 2007] action exited with status 0
[Mon Oct 22 17:22:44 2007] completed event "button/lid LID 00000080 00013408"

Qui la configurazione per di acpi:
Code:
 ~/> cat /etc/acpi/events/default |grep -v "#"

event=.*
action=/etc/acpi/default.sh %e

e lo script che lancia l'evento:

Code:
 ~/> cat /etc/acpi/default.sh
#!/bin/sh
# Default acpi script that takes an entry for all actions

set $*

# Take care about the way events are reported
ev_type=`echo "$1" | cut -d/ -f1`
if [ "$ev_type" = "$1" ]; then
   event="$2";
else
   event=`echo "$1" | cut -d/ -f2`
fi


case "$ev_type" in
    button)
        case "$event" in
            power)
                logger "acpid: received a shutdown request"
                /sbin/init 0
      break
                ;;
             *)
                logger "acpid: action $2 is not defined"
                ;;
        esac
    ;;

    *)
        logger "ACPI group $1 / action $2 is not defined"
        ;;
esac


Fatto sta che il processore lavora un casino visto che mi fa partire centinaia di volte al minuto lo script /etc/acpi/default.sh, parte la ventola a manetta, e quando riapro lo schermo mi trovo il notebook a 350K!

Qualcuno ha lo stesso problema? devo proprio disattivare l'evento di che gestisce lo schermo per salvaguardare la durata quando sono in batteria?


EDIT: dimenticavo, l'evento che parte è quello associato al power
_________________
LP
Back to top
View user's profile Send private message
topper_harley
Guru
Guru


Joined: 05 Apr 2006
Posts: 363
Location: Treviso / Udine (Italy)

PostPosted: Tue Oct 30, 2007 4:11 pm    Post subject: Reply with quote

Credo che utilizzando acpi4asus il modulo del kernel sia inutile
Quote:
CONFIG_ACPI_ASUS=y


Ad ogni modo se ti puo' essere utile io ho un ASUS m6v configurato in questo modo:

apocalipse ~ # lspci
Code:
 00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 915GM/PM Express PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
01:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet Controller (rev 13)
01:01.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b3)
01:01.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 08)
01:01.2 Generic system peripheral [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 17)
01:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 08)
01:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 03)
01:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)
03:00.0 VGA compatible controller: ATI Technologies Inc M24 1P [Radeon Mobility X600]


apocalipse ~ # zcat /proc/config.gz | grep ACPI
Code:
# Power management options (ACPI, APM)
# ACPI (Advanced Configuration and Power Interface) Support
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
# CONFIG_ACPI_SLEEP_PROC_SLEEP is not set
CONFIG_ACPI_PROCFS=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_FAN=y
# CONFIG_ACPI_DOCK is not set
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_CONTAINER is not set
# CONFIG_ACPI_SBS is not set
CONFIG_X86_ACPI_CPUFREQ=y
CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI=y
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_PNPACPI=y
# CONFIG_BLK_DEV_IDEACPI is not set


apocalipse ~ # eix acpi4
Code:
[I] app-laptop/acpi4asus
     Available versions:  ~0.30 ~0.32 ~0.32-r1 ~0.40 ~0.40-r1 (~)0.41 {kernel_linux}
     Installed versions:  0.41(12:09:59 PM 06/28/2007)(kernel_linux)
     Homepage:            http://sourceforge.net/projects/acpi4asus
     Description:         Acpi daemon and kernel module to control ASUS Laptop Hotkeys


E questo e' quello che succede chiudendo il laptop e riaprendolo dopo circa 5 secondi:
Code:
Oct 30 17:09:26 apocalipse acpid: received event "button/lid LID 00000080 00000015"
Oct 30 17:09:26 apocalipse acpid: notifying client 4800[0:0]
Oct 30 17:09:26 apocalipse acpid: notifying client 4989[104:1005]
Oct 30 17:09:26 apocalipse acpid: notifying client 5593[0:1000]
Oct 30 17:09:26 apocalipse acpid: executing action "/etc/acpi/default.sh button/lid LID 0000008
0 00000015"
Oct 30 17:09:26 apocalipse logger: ACPI event unhandled: button/lid LID 00000080 00000015
Oct 30 17:09:26 apocalipse acpid: action exited with status 0
Oct 30 17:09:26 apocalipse acpid: executing action "/etc/acpi/actions/lm_lid.sh button/lid LID
00000080 00000015"                                                                           
Oct 30 17:09:26 apocalipse acpid: action exited with status 0
Oct 30 17:09:26 apocalipse acpid: completed event "button/lid LID 00000080 00000015"
Oct 30 17:09:32 apocalipse acpid: received event "button/lid LID 00000080 00000016"
Oct 30 17:09:32 apocalipse acpid: notifying client 4800[0:0]
Oct 30 17:09:32 apocalipse acpid: notifying client 4989[104:1005]
Oct 30 17:09:32 apocalipse acpid: notifying client 5593[0:1000]
Oct 30 17:09:32 apocalipse acpid: executing action "/etc/acpi/default.sh button/lid LID 0000008
0 00000016"
Oct 30 17:09:32 apocalipse logger: ACPI event unhandled: button/lid LID 00000080 00000016
Oct 30 17:09:32 apocalipse acpid: action exited with status 0
Oct 30 17:09:32 apocalipse acpid: executing action "/etc/acpi/actions/lm_lid.sh button/lid LID
00000080 00000016"                                                                           
Oct 30 17:09:32 apocalipse acpid: action exited with status 0
Oct 30 17:09:32 apocalipse acpid: completed event "button/lid LID 00000080 00000016"

_________________
http://topperh.ath.cx
Jabber: topper_harley@jabber.org
ICQ: 224179391
MSN: Topper_Harley80@gmail.com
Last FM
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum