Sul mio Toshiba M60-162 è installata (dopo tanta fatica) Slackware 10.2 con kernel 2.6.15.6 e DE Window Maker. Ho anche l'ACPI abilitato (built-in nel kernel) e il demone avviato. Vorrei però, se possibile, avere alcuni chiarimenti a riguardo. Prima di partire con le domande vi incollo la configurazione dell'ACPI nel kernel e altre informazioni sulla batteria.
cat /usr/src/linux/.config | grep ACPI
- Codice: Seleziona tutto
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
# CONFIG_ACPI_SLEEP_PROC_SLEEP is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
# CONFIG_ACPI_VIDEO is not set
# CONFIG_ACPI_HOTKEY is not set
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
CONFIG_ACPI_TOSHIBA=y
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_X86_ACPI_CPUFREQ is not set
CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI=y
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_PNPACPI=y
cat /proc/acpi/battery/BAT1/info:
- Codice: Seleziona tutto
present: yes
design capacity: 4400 mAh
last full capacity: 4400 mAh
battery technology: rechargeable
design voltage: 11100 mV
design capacity warning: 420 mAh
design capacity low: 156 mAh
capacity granularity 1: 264 mAh
capacity granularity 2: 3780 mAh
model number: PA3431U
serial number: 3658Q
battery type: Li-Ion
OEM info: TOSHIBA
cat /proc/acpi/battery/BAT1/state:
- Codice: Seleziona tutto
present: yes
capacity state: ok
charging state: charged
present rate: 0 mA
remaining capacity: 4400 mAh
present voltage: 11100 mV
Ora vorrei sapere:
1) Avendo abilitato il ThermalZone nel kernel perchè non ho nessun riferimento all'interno della directory? E' correlato con i supporti I2C??? Se fosse così io ho il chipset 915 e nel kernel purtroppo non ho trovato il supporto.
2) Per abbassare la luminosità del monitor io ho delle funzioni speciali sulla tastiera (Fn+F6/F7) che funzionano correttamente. Vorrei sapere però se è possibile implementarla automaticamente quando stacco la corrente per passare a batteria... magari creando uno script che si ricolleghi agli eventi. Inoltre per far ciò devo abilitare nel kernel anche il supporto CONFIG_ACPI_HOTKEY??? E inoltre, come faccio a scoprire il codice esatto della combinazione Fn+F6/F7 e passare tale codice allo script da creare?
3) Ho installato la DockApp WMBatteries con il seguente file di config.
.wmbatteriesrc:
- Codice: Seleziona tutto
lightcolor = rgb:FF/00/00
#temperature = /proc/acpi/thermal_zone/THM0/temperature
#bat0_state = /proc/acpi/battery/BAT0/state
bat1_state = /proc/acpi/battery/BAT1/state
#bat0_info = /proc/acpi/battery/BAT0/info
bat1_info = /proc/acpi/battery/BAT1/info
ac_state = /proc/acpi/ac_adapter/ACAD/state
togglespeed = 5
animationspeed = 150
history_size = 20
mode = toggle
backlight = yes
updateinterval = 2
alarm = 10
Ma a quanto pare legge male le informazioni nonostante i file di info e state siano corretti. Ad esempio, quando passo a batteria non mi segna il tempo rimanente (mentre in ambiente KDE il tool KLaptop si, anche se un po' sballato), oppure se ho la corrente attaccata non mi segna la dicitura A:C, ma rimangono sempre fissi 00:00. Inoltre mi segna che la batteria è in continua carica quando sia il led sul notebook che il file di state della batteria indicano "charged" e non "charging" ed infine nemmeno i mAh!
Ecco uno screen (la DockApp è quella rossa):
Se qualcuno mi potrebbe aiutare glie ne sarei veramente grato.
Ciauz


