khdapsmonitor
System Software
Score 60%
Description:

KHDAPSMonitor is a system tray monitor for laptops with the Hard Drive Active Proctection System.

This is my first KDE application, and also fills my need of a KDE HDAPS monitor. Written as the existing one here (khdapsmon) has several outstanding issues and is being re-written in python. I don't like python here is khdapsmonitor in C++, and it's here to stay.

Gentoo users simply need to emerge khdapsmonitor as I also maintain it in the Gentoo Portage tree.

Please send all comments to my homepage, http://bugs.gentoo.org or uberlord@gentoo.org as I don't check here much. Thanks!

centic

8 years ago

The following patch allows me to run it on both versions of the kernel-interfaces:

--- sysfs.cpp.orig 2008-11-26 10:49:27.000000000 +0100
+++ sysfs.cpp 2008-11-26 10:53:06.000000000 +0100
@@ -62,14 +62,22 @@
while (i < deviceList.count())
{
if(QFile("/sys/block/" + deviceList[i] + "/queue/protect").exists())
- i++;
+ i++;
+ // newer kernels provide a different interface
+ else if (QFile("/sys/block/" + deviceList[i] + "/device/unload_heads").exists())
+ i++;
else
deviceList.remove(deviceList.at(i));
}
+
return deviceList;
}

bool SysFS::queueProtected(QString device)
{
- return fileBool("/sys/block/" + device + "/queue/protect");
+ // newer kernels provide a different interface
+ if (QFile("/sys/block/" + device + "/device/unload_heads").exists())
+ return fileBool("/sys/block/" + device + "/device/unload_heads");
+ else
+ return fileBool("/sys/block/" + device + "/queue/protect");
}

Report

bitcrazy

8 years ago

Hi,
because of some changes in sysfs in Kernel 2.6.27 khdapsmonitor stopped working. So I patched it; just substitute every appearance of '/queue/protect' with '/device/unload_heads' in src/sysfs.cpp.

Greetings
m0nk

Report

Lenz

11 years ago

Hi,

first of all, I want to tell you how nice your app is. I really like it, works very well.

Since the default icons don't fit very well into the Nuvola icon set, I created a icon set based on it. You can find it here:

http://www.kde-look.org/content/show.php?content=44481


Have fun,
Lenz.

Report

product-maker 8 15

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.1
updated Jun 29 2006
added Jun 29 2006
downloads today
0
page views today 0