Skip to content

Added Appstream metadata XML with hardware mapping. #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
SUBDIRS=src doc misc
doc_DATA = README.md ChangeLog
EXTRA_DIST = README.md
EXTRA_DIST = README.md \
com.github.evgeni.hdapsd.metainfo.xml

dist_metainfo_DATA = com.github.evgeni.hdapsd.metainfo.xml
metainfodir = $(datarootdir)/metainfo
31 changes: 31 additions & 0 deletions com.github.evgeni.hdapsd.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<component>
<id>com.github.evgeni.hdapsd</id>
<metadata_license>MIT</metadata_license>
<name>hdapsd</name>
<summary>HDAPS daemon for various laptops with motion sensors</summary>
<description>
<p>This is a disk protection user-space daemon. It monitors the
acceleration values through an interface and automatically
initiates disk head parking if a fall or sliding of the laptop is
detected.</p>
<p>Currently, the following interfaces are supported:</p>
<ul>
<li>IBM/Lenovo ThinkPad (HDAPS)</li>
<li>Apple iBook/PowerBook (AMS)</li>
<li>Apple MacBook/MacBook Pro (APPLESMC)</li>
<li>HP (HP3D)</li>
<li>Dell (FREEFALL)</li>
<li>Toshiba (ACPI and HAPS)</li>
<li>Acer (INPUT)</li>
</ul>
<p>On ThinkPads, it is recommended that you use this daemon with
the hdaps module provided by tp-smapi rather the one in the
kernel, as this will save you a bit of power and will work on a
wider range of ThinkPads.</p>
</description>
<url type="homepage">https://github.com/evgeni/hdapsd</url>
<provides>
<modalias>dmi:*:pn*:pvrThinkPad*:rvn*</modalias>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this make hdapsd automatically installed on all ThinkPads?
I don't think that Thinkpads shipped with rotating disks for the last 10 years, and the ones from the last 5 years probably don't even support rotating disks at all, so it seems wrong to suggest this tool for these?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is currently nothing automatically installing it, but yes, the
modalias glob will match all Thinkpads. Perhaps you have a more fitting
match expression? 'cat $(find /sys -name modalias)|sort -u' can provide
some ideas.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the joystick feature only present on machines with a rotating disk, or is that part useful also on Thinkpads with SSD?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The joystick feature?
Are you mixing up hdapsd and tp-smapi?

hdapsd (this repo) is only for parking HDDs and not useful on flash-based storage.

tp-smapi exposes a sensor (also) as a joystick so you can play games by moving the laptop, but the interface it's using doesn't exist since SandyBridge models from 2012.

</provides>
</component>