History log of /haiku/src/apps/powerstatus/ACPIDriverInterface.cpp
Revision Date Author Comments
# 2d9c1950 28-Jan-2015 Axel Dörfler <axeld@pinc-software.de>

PowerStatus: use the design capacity if needed.

* When the last full capacity is not available, use the design
capacity of the battery instead.


# b19e9d5b 08-Jan-2015 Axel Dörfler <axeld@pinc-software.de>

PowerStatus: improved API, minor fixes.

* ioctl() does not return a status_t; fixed its usage.
* Do not overwrite the cached battery info with bogus data (this is
quite strict, though).
* Improved DriverInterface API with a more "natural" argument order.
* Simplified some code.


# 90169e63 08-Jan-2015 Axel Dörfler <axeld@pinc-software.de>

PowerStatus: give the locker a name.

* Plus minor cleanup.


# 7cf7fa23 28-Nov-2013 Jérôme Duval <jerome.duval@gmail.com>

PowerStatus: fix a possible division error.

* also fix some types misuses.


# dc15e113 19-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Yet another localization patch made by Jorma Karvonen.
Fixes #7237.

Notes:
1) proposed in original patch localization of the
Deskbar item name I found a bad idea so it is rejected;
2) I have additionally removed translation for console
messages visible only in terminal. They are purposed
mainly for debugging and are not visible to the user
in usual usage conditions;
3) Translation of the name of settings file also was
removed as common localization practice.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40557 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 43687843 27-Dec-2010 Fredrik Holmqvist <fredrik.holmqvist@gmail.com>

Just for clarity. Renamed parameter from path to dirpath to so it's not hidden by path variable. CID 5272.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39967 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3bd54e05 24-Dec-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Mike Roll: i18n PowerStatus. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39939 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 780e0413 11-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* The device watcher now waits on a semaphore, and doesn't use snooze() anymore.
* This has the advantage that we can quit PowerStatus instantly, instead of
having to wait for two seconds in the worst case.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32257 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e391ec67 11-Jul-2009 Clemens Zeidler <clemens.zeidler@googlemail.com>

- extended info window looks a little bit better now.
- cache the battery status and read it out in the polling thread
- fix time label



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31517 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6aed176c 09-Jul-2009 Clemens Zeidler <clemens.zeidler@googlemail.com>

Add a ACPI battery driver interface to the PowerStatus app. If there is anyone with a working APM please test if its still working!
TODO:
- Get along with the Layout engine, the extended info window looks "no very nice".
- Reading the battery status takes too long so put it into a thread or cache it.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31484 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2d9c19509308bd01545db9a689db5eb9fafdf577 28-Jan-2015 Axel Dörfler <axeld@pinc-software.de>

PowerStatus: use the design capacity if needed.

* When the last full capacity is not available, use the design
capacity of the battery instead.


# b19e9d5b71831ec5df3f2b06632bfef3d0bdcab9 08-Jan-2015 Axel Dörfler <axeld@pinc-software.de>

PowerStatus: improved API, minor fixes.

* ioctl() does not return a status_t; fixed its usage.
* Do not overwrite the cached battery info with bogus data (this is
quite strict, though).
* Improved DriverInterface API with a more "natural" argument order.
* Simplified some code.


# 90169e6310ba20c6c41ee81347d27724c3cf7080 08-Jan-2015 Axel Dörfler <axeld@pinc-software.de>

PowerStatus: give the locker a name.

* Plus minor cleanup.


# 7cf7fa23f491cc1a7d4350b696c38968de554e2a 28-Nov-2013 Jérôme Duval <jerome.duval@gmail.com>

PowerStatus: fix a possible division error.

* also fix some types misuses.


# dc15e113e46653abfda42ed15f6f05740e782093 19-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Yet another localization patch made by Jorma Karvonen.
Fixes #7237.

Notes:
1) proposed in original patch localization of the
Deskbar item name I found a bad idea so it is rejected;
2) I have additionally removed translation for console
messages visible only in terminal. They are purposed
mainly for debugging and are not visible to the user
in usual usage conditions;
3) Translation of the name of settings file also was
removed as common localization practice.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40557 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 43687843cc9936e6f90e8a0b7f4abfcb9aa8a601 27-Dec-2010 Fredrik Holmqvist <fredrik.holmqvist@gmail.com>

Just for clarity. Renamed parameter from path to dirpath to so it's not hidden by path variable. CID 5272.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39967 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3bd54e05be18c72d8a22cae8aa0cd9657ebefb7c 24-Dec-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Mike Roll: i18n PowerStatus. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39939 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 780e0413a18c42385856fa9987ac9f9c02f3d0c2 11-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* The device watcher now waits on a semaphore, and doesn't use snooze() anymore.
* This has the advantage that we can quit PowerStatus instantly, instead of
having to wait for two seconds in the worst case.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32257 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e391ec67b76eb39e7ecdb4da2693e1adf19cd0f7 11-Jul-2009 Clemens Zeidler <clemens.zeidler@googlemail.com>

- extended info window looks a little bit better now.
- cache the battery status and read it out in the polling thread
- fix time label



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31517 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6aed176c0988537d716a89e11130b4253179f607 09-Jul-2009 Clemens Zeidler <clemens.zeidler@googlemail.com>

Add a ACPI battery driver interface to the PowerStatus app. If there is anyone with a working APM please test if its still working!
TODO:
- Get along with the Layout engine, the extended info window looks "no very nice".
- Reading the battery status takes too long so put it into a thread or cache it.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31484 a95241bf-73f2-0310-859d-f6bbb57e9c96