-
Notifications
You must be signed in to change notification settings - Fork 7
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
Added Appstream metadata XML with hardware mapping. #28
base: master
Are you sure you want to change the base?
Added Appstream metadata XML with hardware mapping. #28
Conversation
This allow linux distributions collecting such information to propose this package when the relevant hardware is present in a computer, as implemented with the isenkram system. This is also reported as <URL: https://bugs.debian.org/840560 >.
</description> | ||
<url type="homepage">https://github.com/evgeni/hdapsd</url> | ||
<provides> | ||
<modalias>dmi:*:pn*:pvrThinkPad*:rvn*</modalias> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
[Evgeni Golov]
This should be `com.github.linux-thinkpad.hdapsd`, right?
It can be anything, as long as it is unique, in reverse DNS notation and
matches the file name of the XML file. I do not know what it should be,
I just picked a random ID based on the Homepage URL used in the Debian
package when I initialy wrote the XML file. Your proposal is just as
good as mine. Note, '-' should be avoided, and I tend to replace it
with '_' if it is part of a DNS or project name fragment.
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?
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.
…--
Happy hacking
Petter Reinholdtsen
|
[Evgeni Golov]
The joystick feature?
Are you mixing up hdapsd and tp-smapi?
Yes. Thank you for putting me straight. I had those two mixed in my
head. :)
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.
Right. It know it work on several of my old Thinkpads, but I have not
used it in a while. :)
…--
Happy hacking
Petter Reinholdtsen
|
Just in case you want to list more specific thinkpad modalias entries, here is one from X230
I can provide DMI lines for a few more models if there is any interest in going that route. |
This allow linux distributions collecting such information to propose this package when the relevant hardware is present in a computer, as implemented with the isenkram system.
This is also reported as <URL: https://bugs.debian.org/840560 >.