Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[quasi-RISOLTO] laptop battery
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
Ercole
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2004
Posts: 78

PostPosted: Sun May 22, 2005 11:18 am    Post subject: [quasi-RISOLTO] laptop battery Reply with quote

Salve a tutti... finalmente credevo di essere riuscito a configurare un kernel perfettametne funzionante... quando ho deciso di provare una dockapp per monitorare lo stato della batteria... (dimenticavo... parlo del mio portatile)... ebbene... la batteria non viene riconosciuta... mi dice che non e' presente
:(

se vado in /proc/acpi/battery/BAT1 e do un less state ottengo

Code:
present:                 no


Questa e' la sezione del config del kernel relativa ad ACPI

Code:
#
# Power management options (ACPI, APM)
#
CONFIG_PM=y
CONFIG_PM_DEBUG=y
# CONFIG_SOFTWARE_SUSPEND is not set

#
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_INTERPRETER=y
# CONFIG_ACPI_SLEEP is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=m
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_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_X86_PM_TIMER is not set
# CONFIG_ACPI_CONTAINER is not set


Qualche idea in proposito??? qualche link dove documentarmi???


Last edited by Ercole on Tue May 24, 2005 12:22 pm; edited 2 times in total
Back to top
View user's profile Send private message
neryo
Veteran
Veteran


Joined: 09 Oct 2004
Posts: 1292
Location: Ferrara, Italy, Europe

PostPosted: Sun May 22, 2005 11:32 am    Post subject: Reply with quote

prova ad emergiare sys-apps/apmd

o sys-power/acpid

e poi mettile nel runlevel di default
_________________
cache: a safe place for hiding or storing things..

D-link DWL-G650 AirPlus
Apache Php Mysql
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Sun May 22, 2005 12:04 pm    Post subject: Reply with quote

un giorno ero in chat e abbiamo speso tutto il pomeriggio per cercare di far riconoscere la sua batteria all'acpi. soluzione trovata su linuxlaptop. ovvero che il suo portatile usa procedure non standard per rilevare la batteria. quindi niente acpi.

informati sul sito che è molto completo, almeno per i portatili di punta, se il tuo è supportato.[/url]
Back to top
View user's profile Send private message
Ercole
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2004
Posts: 78

PostPosted: Sun May 22, 2005 4:20 pm    Post subject: Reply with quote

Io ho un Toshiba Satellite M30, su Linux Laptop ho guardato per quanto riguarda le installazioni di Gentoo, ma non ho trovato soluzione la mio problema... provero' a documentarmi meglio... grazie cmq a tutti e due!
;)
Back to top
View user's profile Send private message
Ercole
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2004
Posts: 78

PostPosted: Sun May 22, 2005 4:26 pm    Post subject: Reply with quote

Come non detto... non so perche' non lo avevo fatto prima... ma e' bastato emergere acpid!!!!

Ora funge che e' un piacere!!!

TROPPO GRAZIE!!!

:D
Back to top
View user's profile Send private message
neryo
Veteran
Veteran


Joined: 09 Oct 2004
Posts: 1292
Location: Ferrara, Italy, Europe

PostPosted: Sun May 22, 2005 5:14 pm    Post subject: Reply with quote

Ercole wrote:
Come non detto... non so perche' non lo avevo fatto prima... ma e' bastato emergere acpid!!!!


Figurati!! immaginavo.. ho avuto lo stesso problema! :wink:
_________________
cache: a safe place for hiding or storing things..

D-link DWL-G650 AirPlus
Apache Php Mysql
Back to top
View user's profile Send private message
Ercole
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2004
Posts: 78

PostPosted: Sun May 22, 2005 11:37 pm    Post subject: Reply with quote

Ora sto cercando di crearmi un RUNLEVEL ad hoc per quando non sono connesso alla rete elettrica... ma non riesco ad intercettare l'evento generato quando stacco la corrente... ma sto giro spero di risolvere da solo!
:P
Back to top
View user's profile Send private message
fat_penguin
Apprentice
Apprentice


Joined: 25 Jul 2004
Posts: 294
Location: sud side of Switzerland

PostPosted: Mon May 23, 2005 11:43 am    Post subject: Reply with quote

Ercole, una domanda, ma ora /proc/acpi/battery/BAT1 cosa ti da?
Dove va acpid a perdere i dati?

Invece l'evento che cerchi forse lo trovi sotto /proc/acpi/battery/status

byebye
fat_penguin
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Mon May 23, 2005 12:05 pm    Post subject: Reply with quote

Ercole wrote:
Ora sto cercando di crearmi un RUNLEVEL ad hoc per quando non sono connesso alla rete elettrica... ma non riesco ad intercettare l'evento generato quando stacco la corrente... ma sto giro spero di risolvere da solo!
:P


se segui questo sei a posto c'è una sezione che tratta l'argomento...
ma nota bene il tutto funziona se si usa cpufreqd (e non speedfreq), cosa che consiglio caldamente
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
Ercole
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2004
Posts: 78

PostPosted: Mon May 23, 2005 12:12 pm    Post subject: Reply with quote

X-Drum stavo proprio seguendo quella guida... vedro' di fare come dici
;)

@fat_penguin: stasera ci guardo e ti faccio sapere!
:wink:
Back to top
View user's profile Send private message
Ercole
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2004
Posts: 78

PostPosted: Tue May 24, 2005 6:26 am    Post subject: Reply with quote

Al momento la batteria funge che e' piacere....

Code:
cat /proc/acpi/battery/BAT1

present:                 yes
design capacity:         47520 mWh
last full capacity:      44107 mWh
battery technology:      rechargeable
design voltage:          10800 mV
design capacity warning: 885 mWh
design capacity low:     0 mWh
capacity granularity 1:  10 mWh
capacity granularity 2:  10 mWh
model number:            G71C0003C210
serial number:           2100077747
battery type:            Li-ION
OEM info:

bash-2.05b$ cat /proc/acpi/battery/BAT1/state
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mW
remaining capacity:      44107 mWh
present voltage:         11270 mV


Il problema pero' e' che non si accorge quando collego o meno il cavo della rete elettrica... finche' non riavvio la sessione di gnome non ne vuol sapere di capire che il cavo e' stato scollegato!

:(
Back to top
View user's profile Send private message
fat_penguin
Apprentice
Apprentice


Joined: 25 Jul 2004
Posts: 294
Location: sud side of Switzerland

PostPosted: Tue May 24, 2005 6:48 am    Post subject: Reply with quote

Scusa la mia insistenza, ma voglio capire l'arcano:

se non attivi il demone acipd /proc/acpi/battery/BAT1 è diverso ???
non dovrebbe essere il kernel a mettere i dati li???
perche acpid è necessario???

byebye
fat_penguin
Back to top
View user's profile Send private message
Ercole
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2004
Posts: 78

PostPosted: Tue May 24, 2005 7:32 am    Post subject: Reply with quote

prima di emergere acpid mi quando cercavo di visualizzare qualsiasi cosa dentro BAT1 mi diceva sempre

Code:
present no


e null'altro!

:(
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Tue May 24, 2005 9:10 am    Post subject: Reply with quote

se per vederlo usi l'applet di gnome credo sia normale che non se ne accorga..molti hanno questo problema con quell'applet, per vedere se il pc in se se ne accorge dovresti guardare i log di acpid oppure semplicemente vedere se cambia /proc/acpi/ac_adapter/AC/state
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
Ercole
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2004
Posts: 78

PostPosted: Tue May 24, 2005 9:42 am    Post subject: Reply with quote

i log di acipd li stavo monitorando ieri sera, ma pare non se ne renda conto... stasera ricontrollo
:(
Back to top
View user's profile Send private message
Ercole
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2004
Posts: 78

PostPosted: Tue May 24, 2005 12:22 pm    Post subject: Reply with quote

Per quanto riguarda la dockapp di Gnome per indicare lo stato della batteria avevi ragione... non funge molto bene... in effetti /proc/acpi/ac_adapter/ac1/state si aggiorna bene

Stavo guardando i log per capire l'evento creato dalla sconnessione della rete elettrica... io dentro /var/log/ ho solo acpi che contiene questo:

Code:
[Sun May 22 18:23:17 2005] starting up
[Sun May 22 18:23:17 2005] 1 rule loaded
[Sun May 22 18:23:49 2005] client connected from 9090[1000:100]
[Sun May 22 18:23:49 2005] 1 client rule loaded
[Sun May 22 19:02:01 2005] exiting
[Sun May 22 19:02:02 2005] starting up
[Sun May 22 19:02:02 2005] 3 rules loaded
[Sun May 22 19:02:03 2005] client connected from 9090[1000:100]
[Sun May 22 19:02:03 2005] 1 client rule loaded
[Sun May 22 19:33:34 2005] exiting
[Mon May 23 18:47:21 2005] starting up
[Mon May 23 18:47:21 2005] 3 rules loaded
[Mon May 23 18:47:58 2005] client connected from 8494[1000:100]
[Mon May 23 18:47:58 2005] 1 client rule loaded
[Mon May 23 20:08:01 2005] client connected from 14734[1000:100]
[Mon May 23 20:08:01 2005] 1 client rule loaded
[Mon May 23 23:38:27 2005] client connected from 2383[1000:100]
[Mon May 23 23:38:27 2005] 1 client rule loaded
[Mon May 23 23:38:34 2005] client connected from 2400[1000:100]
[Mon May 23 23:38:34 2005] 1 client rule loaded
[Tue May 24 02:28:47 2005] exiting
[Tue May 24 07:55:00 2005] starting up
[Tue May 24 07:55:00 2005] 3 rules loaded
[Tue May 24 07:55:38 2005] client connected from 8563[1000:100]
[Tue May 24 07:55:38 2005] 1 client rule loaded
[Tue May 24 13:31:44 2005] exiting
[Tue May 24 13:42:53 2005] starting up
[Tue May 24 13:42:53 2005] 3 rules loaded
[Tue May 24 13:43:29 2005] client connected from 8618[1000:100]
[Tue May 24 13:43:29 2005] 1 client rule loaded
[Tue May 24 14:10:20 2005] exiting
[Tue May 24 14:10:35 2005] starting up
[Tue May 24 14:10:35 2005] 3 rules loaded
[Tue May 24 14:10:36 2005] client connected from 8618[1000:100]
[Tue May 24 14:10:36 2005] 1 client rule loaded


Ma nulla delle 14:15 ora in cui ho staccato il cavo e 14:17 ora in cui ho ricollegato

:(

idee????
Back to top
View user's profile Send private message
MajinJoko
l33t
l33t


Joined: 20 Sep 2005
Posts: 639
Location: Bergamo / Verona

PostPosted: Fri Jan 27, 2006 1:32 pm    Post subject: Reply with quote

ciao, anche io ho il problema che non rileva la batteria. Intendo che ottengo

proc/acpi/battery/bat1/state present no

quando invece è inserita.

mentre per lo stato dell'ac_adapter, nessun problema, facendo cioè "cat /proc/acpi/ac_adapter/state" ottengo on-line o off-offline sempre senza problemi.


purtroppo anche riemergendo "acpid" lo state della batteria rimane sempre su "present: no".


ho anche provato a compilare il kernel con battery come modulo o built in, e non cambia mai, l'errore è lo stesso.


vorrei però aggiungere che IN UN PAIO DI OCCASIONI (e non di più) suppergiù due settimane fa la batteria veniva riconosciuta.. però non ho mai toccato la parte relativa all'acpi nel kernel o emerso qualcosa che possa intaccarlo..



avete qualche consiglio da darmi?


vi ringrazio, e buona giornata
_________________
[(.. watashi wa Urumi Kanzaki ga suki da ..)]
Back to top
View user's profile Send private message
MajinJoko
l33t
l33t


Joined: 20 Sep 2005
Posts: 639
Location: Bergamo / Verona

PostPosted: Sun Jan 29, 2006 5:03 pm    Post subject: Reply with quote

ho un piccolo aggiornamento.

ora (credo da subito dopo aver riemerso acpid) la batteria non viene rilevato se è inserita dall'avvio. mi basta togliera e reinserirla ed ecco che viene perfettamente rilevata. Ma finché non faccio questa operazione ottengo sempre "present: no".

Ho provato (tanto per..) a compilare il kernel con "battery" impostato a modulo, o built-in, ed in entrambi i casi la situazione rimane lo stesso.

Sfogliando un pò /var/log/acpi, ho trovato che quando inserisco (o rimuovo) la batteria vengono registrati una serie di eventi molto simile a questa:

Code:
[Sun Jan 29 17:50:41 2006] received event "processor CPU0 00000080 00000000"
[Sun Jan 29 17:50:41 2006] notifying client 3327[102:408]
[Sun Jan 29 17:50:41 2006] executing action "/etc/acpi/default.sh processor CPU0 00000080 00000000"
[Sun Jan 29 17:50:41 2006] BEGIN HANDLER MESSAGES
[Sun Jan 29 17:50:41 2006] END HANDLER MESSAGES
[Sun Jan 29 17:50:41 2006] action exited with status 0

[Sun Jan 29 17:50:41 2006] completed event "processor CPU0 00000080 00000000"
[Sun Jan 29 17:50:41 2006] received event "battery BAT1 00000081 00000001"
[Sun Jan 29 17:50:41 2006] notifying client 3327[102:408]
[Sun Jan 29 17:50:41 2006] executing action "/etc/acpi/default.sh battery BAT1 00000081 00000001"
[Sun Jan 29 17:50:41 2006] BEGIN HANDLER MESSAGES
[Sun Jan 29 17:50:41 2006] END HANDLER MESSAGES
[Sun Jan 29 17:50:41 2006] action exited with status 0
[Sun Jan 29 17:50:41 2006] completed event "battery BAT1 00000081 00000001"
[Sun Jan 29 17:50:41 2006] received event "battery BAT1 00000080 00000001"
[Sun Jan 29 17:50:41 2006] notifying client 3327[102:408]
[Sun Jan 29 17:50:41 2006] executing action "/etc/acpi/default.sh battery BAT1 00000080 00000001"
[Sun Jan 29 17:50:41 2006] BEGIN HANDLER MESSAGES
[Sun Jan 29 17:50:41 2006] END HANDLER MESSAGES
[Sun Jan 29 17:50:41 2006] action exited with status 0
[Sun Jan 29 17:50:41 2006] completed event "battery BAT1 00000080 00000001"


e ora, da profano, vi chiedo.. non riesco a passare in maniera un pò brutale questi eventi io a chi di dovere? (lo so, qui i tecnicismi si sprecano.. 8) )

è solo un'idea per risolvere un piccolo (ma lo stesso fastidioso) problema..


vi ringrazio e vi auguro buona serata,

Michele
_________________
[(.. watashi wa Urumi Kanzaki ga suki da ..)]
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Sun Jan 29, 2006 5:53 pm    Post subject: Reply with quote

proporrei un workaroud, logicamente è da provare.
prima di smontare e montare il modulo potresti provare a far eseguire i comandi che avvia acpid manualmente. ovvero:
Code:
/etc/acpi/default.sh battery BAT1 00000081 00000001
/etc/acpi/default.sh battery BAT1 00000080 00000001

logicamente li devi lanciare da root.
se dopo vedi che ti rileva la batteria potresti inserirli in /etc/conf.d/local.start
in modo che vengano eseguiti ad ogni avvio.
Back to top
View user's profile Send private message
MajinJoko
l33t
l33t


Joined: 20 Sep 2005
Posts: 639
Location: Bergamo / Verona

PostPosted: Sun Jan 29, 2006 7:18 pm    Post subject: Reply with quote

grazie per la risposta.


qui la faccende assume toni più che comici..


allora.. i comandi inseriti da root non sortiscono alcun effetto :cry: .. se avvio il portatile solo con la batteria la trova.. se lo avvio collegato all'alimentatore non la trova finché non tolgo e reinserisco la batteria..


comunque, i comandi:
Code:
/etc/acpi/default.sh battery BAT1 00000081 00000001
/etc/acpi/default.sh battery BAT1 00000080 00000001

non fanno nulla. In var/log/acpi, infatti, non lasciano alcuna traccia..



vabbeh, pazienza..


grazie ancora e buona serata a tutti
_________________
[(.. watashi wa Urumi Kanzaki ga suki da ..)]
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