HAL state after suspend

Andrey Borzenkov arvidjaar at mail.ru
Wed Nov 15 20:05:47 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 16 November 2006 01:21, David Zeuthen wrote:
> > How can I tell HAL to rescan for hardware changes after resume?
>
> See some hacks in e.g. this installed file
>
>   /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux
>
> that we use because some ACPI events lost even during normal suspend to
> ram. It should also make HAL reread values from the batteries.... 

Yes, I know about Rescan method, but it has device scope; what I am missing is 
the way to tell HAL to check the whole device tree. I do not have details 
now, but we had this discussion back on Mandriva list; it was about HAL not 
noticing removal of devices across suspend.

> I 
> presume you are using ACPI?
>

yes

> > ATM I have
> > notebook, that had near to empty battery before suspending to disk. Now
> > battery is full (as long as I van believe indicators) but kpowersave
> > still shows it empty.
> >
> > Of course it may indicate problem somewhere else (powersaved, acpid?).
>
> Need to look at the reported values at each layer in the stack
>

it was kpowersave glitch for whatever reason. powersave did show correct 
information.

> > I used to restart haldaemon on resume, but then this results in
> > kpowersave wranings usually about lost connection so it is not really an
> > option either.
>
> Oh no no no, please don't do this.
>

I have to forward it to our suspend-scripts maintainers :)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFW+OcR6LMutpd94wRAqf0AKCYWdSYPxrUc9BQ6xrG/71IQPYldgCdEOwN
6yVyxKDVafNPqbl0GbbmzYw=
=IN+C
-----END PGP SIGNATURE-----


More information about the hal mailing list