Active Protection on Linux
Active Protection on Linux
Hi people,
Just want to know if anyone has successfully configured the active protection of the harddrive, aka hdaps, on any linux distro's for new series like T60 and the Z6X.
I got almost everything except this protection to work on my z61t with Fedora Core 6.
Thanks in advance!
Just want to know if anyone has successfully configured the active protection of the harddrive, aka hdaps, on any linux distro's for new series like T60 and the Z6X.
I got almost everything except this protection to work on my z61t with Fedora Core 6.
Thanks in advance!
Recursion:
See: Recursion.
See: Recursion.
I think the Z61t have the same aps as the other TP models, so follow these instructions:
http://www.thinkwiki.org/wiki/Installin ... ion_System
I've gotten it to work on my X40.
http://www.thinkwiki.org/wiki/Installin ... ion_System
I've gotten it to work on my X40.
Thinkpad x220 Li7-2620M 8gb/80gb mSATA intel 320SSD/160gb Intel 330 (didn't fit, had to remove the aluminium shell)
Linux Mint 17
Linux Mint 17
Hm.... interesting...
I did follow the exact guide to configure it on thinkwiki.org
But "modproge hdaps" gives me a "No such device error" so I started wondering maybe my z61t is not supported by that module yet.
I'll try again later. Thanks guys.
By the way, I don't have hardware encryption on, don't need it for now.
I did follow the exact guide to configure it on thinkwiki.org
But "modproge hdaps" gives me a "No such device error" so I started wondering maybe my z61t is not supported by that module yet.
I'll try again later. Thanks guys.
By the way, I don't have hardware encryption on, don't need it for now.
Recursion:
See: Recursion.
See: Recursion.
Sorry Magnus, I didn't quite follow your post. Do you mean that if hdaps is compiled into the kernel, there should not be any errors?magnus wrote:It would give that error if hdaps was compiled into the kernel or if it wasn't compiled at all.hsjC wrote: I did follow the exact guide to configure it on thinkwiki.org
But "modproge hdaps" gives me a "No such device error" so I started wondering maybe my z61t is not supported by that module yet.
Recursion:
See: Recursion.
See: Recursion.
First off let me say that my guess is that it's not compiled with the kernel at all, and that you'd most likely need a custom kernel in order to be able to use it. At the moment I won't go into that , because I don't think I have time to follow it up 
An easy way would be to load up windows and see if the active protection works there. If it does, then it's a linux thing.
Then comes the rest...
When you compile the kernel, it's possible to either compile it into the kernel, as a module or not at all. That goes for pretty much any feature. If it's compiled into the kernel, and you try to load it as a module, it will give an error because there's no module.
If it's compiled into the kernel, you should have a device at '/sys/devices/platform/hdaps'. If it's not there, it's not compile dinto the kernel.
Basically you need support for hdaps compiled either as a kernel or a module with the kernel in order to get support.
In addition you need a harddrive flashed with appropriate firmware. (If it's factory installed it's probably already flashed with appropriate firmware).
An easy way would be to load up windows and see if the active protection works there. If it does, then it's a linux thing.
Then comes the rest...
When you compile the kernel, it's possible to either compile it into the kernel, as a module or not at all. That goes for pretty much any feature. If it's compiled into the kernel, and you try to load it as a module, it will give an error because there's no module.
If it's compiled into the kernel, you should have a device at '/sys/devices/platform/hdaps'. If it's not there, it's not compile dinto the kernel.
Basically you need support for hdaps compiled either as a kernel or a module with the kernel in order to get support.
In addition you need a harddrive flashed with appropriate firmware. (If it's factory installed it's probably already flashed with appropriate firmware).
Just checked, it's not compiled into the kernel. But I do have a hdaps.ko file within /lib/modules/...../kernel/drivers/hwmon/
And when I try "modprobe hdaps", it gives me the "no such device error"
That's why I am guessing my model is somehow not supported.
Did you guys install those software suspend patches first before hdaps works?
And when I try "modprobe hdaps", it gives me the "no such device error"
That's why I am guessing my model is somehow not supported.
Did you guys install those software suspend patches first before hdaps works?
Recursion:
See: Recursion.
See: Recursion.
I don't see any connection between software suspend and hdaps. hdaps works for me out of the box, without any patches. I'm running Ubuntu Edgy on a T60.hsjC wrote:Just checked, it's not compiled into the kernel. But I do have a hdaps.ko file within /lib/modules/...../kernel/drivers/hwmon/
And when I try "modprobe hdaps", it gives me the "no such device error"
That's why I am guessing my model is somehow not supported.
Did you guys install those software suspend patches first before hdaps works?
In fact I've just patched the kernel and get the queue freezing working (which I take as the only reason hdaps should exist), though not working very well. It locks up the whole system from time to time, especially during high IO, and I can do nothing but press the power button...
Anyone has successful experience with queue freezing?
I am gonna try debian instead of fedora. Besides hdaps problem, fedora won't put my z61t into suspend/hibernate. It generates a soft lockup on cpu error. Very annoying.
jasonxh, could you please check if hdaps is compiled into your kernel, or it's loaded as a module? And, is ur wireless working? Suspend/hibernate and all that?
jasonxh, could you please check if hdaps is compiled into your kernel, or it's loaded as a module? And, is ur wireless working? Suspend/hibernate and all that?
Recursion:
See: Recursion.
See: Recursion.
hdaps is compiled as a module. My wireless works also out of the box. The stock version of suspend/hibernate is not very stable, but it "occasionally" works... so I switched to Suspend2, which is much more stable for me, but the hibernate UI is not working yet...
BTW, I have to mention that I modified the code of hdaps to get the axis right on my T60. I have to swap x and y axes, and also invert y-axis. It's not that important though.
BTW, I have to mention that I modified the code of hdaps to get the axis right on my T60. I have to swap x and y axes, and also invert y-axis. It's not that important though.
You're welcome. Sometimes personal preference is just too mysterious to find a reason for.
It seems to me that you have some misunderstandings of my post. hdaps is simply an interface to get the position data, and you can use hdaps-gl to visualize it. It doesn't give you the power to freeze IO queue of your disk, which hdapsd heavily depends on. You will have to patch your kernel for this. And as I've said, I just tried, but it seems the patch I found wasn't very stable.
I'm a total newbie myself, so I'm not very clear what your problem is. Maybe you can have a try with dmesg?
It seems to me that you have some misunderstandings of my post. hdaps is simply an interface to get the position data, and you can use hdaps-gl to visualize it. It doesn't give you the power to freeze IO queue of your disk, which hdapsd heavily depends on. You will have to patch your kernel for this. And as I've said, I just tried, but it seems the patch I found wasn't very stable.
I'm a total newbie myself, so I'm not very clear what your problem is. Maybe you can have a try with dmesg?
I really did nothing, but simply "sudo modprobe hdaps"... However if you meet the axis problem like me, then perhaps you will have to modify linuxsource/drivers/hwmon/hdaps.c and do a kernel module compile.
Ok, to make it clear, first you run
to make sure the module is correctly installed. Then run
to load the module. If nothing turns up, you should have succeeded. If anything goes wrong, try
and post the output here. Maybe someone will be able to help with the extended information.
When you have loaded the module, you can run
to see a visualization of it, and also to check if you have the axis problem like me
Hope it helps.
Ok, to make it clear, first you run
Code: Select all
modinfo hdapsCode: Select all
sudo modprobe hdapsCode: Select all
dmesg|grep hdapsWhen you have loaded the module, you can run
Code: Select all
hdaps-glHope it helps.
Fedora forum sux.... Not many fedora gurus go there I guess.
I tried with Ubuntu, hdaps works beautifully....
Why fedora...why...
Anyway, I tried copying the hdaps.ko file from ubuntu to my fedora, it gave me a "invalid format" error. Is there a way to force linux to load that module, or, edit the file a bit so that the system would think it's the "valid" format?
I tried with Ubuntu, hdaps works beautifully....
Why fedora...why...
Anyway, I tried copying the hdaps.ko file from ubuntu to my fedora, it gave me a "invalid format" error. Is there a way to force linux to load that module, or, edit the file a bit so that the system would think it's the "valid" format?
Recursion:
See: Recursion.
See: Recursion.
I suggest you try this source
http://sourceforge.net/project/showfile ... _id=171579
It's tp_smapi actually, but it includes a patched version of hdaps (the original version conflicts with tp_smapi, and Ubuntu is using this patched version). After unpacking it, try
and it will remove currently installed version (if any) and install these two modules for you. If everything goes smoothly, just modprobe it and enjoy!
http://sourceforge.net/project/showfile ... _id=171579
It's tp_smapi actually, but it includes a patched version of hdaps (the original version conflicts with tp_smapi, and Ubuntu is using this patched version). After unpacking it, try
Code: Select all
sudo make install HDAPS=1Good to hear that.
So you don't have the axis problem then? Lucky you.
Now that you decide to patch the kernel for queue freezing, I would like to tell you some of my recent experience with that. I suggest you use start with a vanilla kernel from kernel.org. I've tried it before with the "Ubuntulized" 2.6.17 kernel which turned out very unstable after the patch, and then I tried the 2.6.19 from kernel.org and it works beautifully. The BIG disadvantage is that you gonna lose your Fedora specific patches unless you manually do them yourself. Anyway, I'm very happy with my current kernel. So the choice is up to you, or you can give them both a try anyway.
Now that you decide to patch the kernel for queue freezing, I would like to tell you some of my recent experience with that. I suggest you use start with a vanilla kernel from kernel.org. I've tried it before with the "Ubuntulized" 2.6.17 kernel which turned out very unstable after the patch, and then I tried the 2.6.19 from kernel.org and it works beautifully. The BIG disadvantage is that you gonna lose your Fedora specific patches unless you manually do them yourself. Anyway, I'm very happy with my current kernel. So the choice is up to you, or you can give them both a try anyway.
Actually, now that you mentioned it, I didn't even check the axis thing.
How would you tell if you have that problem by running hdaps-gl?
Does it explicitly tell you that?
Edit: Oh, now I remember that I tried to compile hdaps-gl. It told me I don't have gl libraries or something.
How would you tell if you have that problem by running hdaps-gl?
Does it explicitly tell you that?
Edit: Oh, now I remember that I tried to compile hdaps-gl. It told me I don't have gl libraries or something.
Recursion:
See: Recursion.
See: Recursion.
You don't have precompiled version in Fedora repository? I didn't compile it from source, so I'm not clear what libs it needs. By looking at package deps in Ubuntu repo, I guess you could try installing these libs (package names in Ubuntu repo):
- freeglut3-dev
libgl1-mesa-dev
libglu1-mesa-dev
You the man Jason!! 
After installing freeglut, hdaps-gl compiles and runs flawlessly. I also compiled another gnome applet called "tilt". Both programs show that I don't have the axis problem, hehe. The 3D picture matches perfectly with how it is physically.
BTW, are you having an "inverted" axis problem?
EDIT: I actually did the same thing as you, patched a 2.6.19 kernel from kernel.org but for some reason it's not booting. It couldn't find my logic volume groups. I need to compile LVM support into the kernel or something?
After installing freeglut, hdaps-gl compiles and runs flawlessly. I also compiled another gnome applet called "tilt". Both programs show that I don't have the axis problem, hehe. The 3D picture matches perfectly with how it is physically.
BTW, are you having an "inverted" axis problem?
EDIT: I actually did the same thing as you, patched a 2.6.19 kernel from kernel.org but for some reason it's not booting. It couldn't find my logic volume groups. I need to compile LVM support into the kernel or something?
Recursion:
See: Recursion.
See: Recursion.
Glad that you made it! 
The invert param in hdaps will invert the position data along each axis, i.e. (x,y) => (-x,-y). (this behavior varies among different versions of hdaps code). However, my problem is a little bit more complicated than simple inversion: I have to do this (x,y) => (y,-x). So you get it?
I just modified the code to be more general, i.e. accepting an integer param and interpreting it as three mask bits respectively for inverting x,y, and swap. This way I can get do anything I want then.
I think Lenovo engineers simply misplaced the device or something, since it really doesn't matter what direction it is, as long as it detects the acceleration.
The invert param in hdaps will invert the position data along each axis, i.e. (x,y) => (-x,-y). (this behavior varies among different versions of hdaps code). However, my problem is a little bit more complicated than simple inversion: I have to do this (x,y) => (y,-x). So you get it?
I just modified the code to be more general, i.e. accepting an integer param and interpreting it as three mask bits respectively for inverting x,y, and swap. This way I can get do anything I want then.
I think Lenovo engineers simply misplaced the device or something, since it really doesn't matter what direction it is, as long as it detects the acceleration.
You should import your original kernel options before you start compiling the new one. Just copy the config file (maybe you can locate it in /boot) to the kernel source dir, and rename it to ".config" (don't miss the dot). Then run "make oldconfig". It will scan your old options and prompt for new features that were not configured. This way you can retain your original options as much as possible. After that you can "make menuconfig" to change options as you want, and go on with the kernel compile routine.
Always be very careful when you configure kernel options!
Always be very careful when you configure kernel options!
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Help installing cyanogenmod on Samsung S7 Active
by Whitieiii » Tue May 30, 2017 3:51 am » in Off-Topic Stuff - 6 Replies
- 326 Views
-
Last post by TankPad
Wed May 31, 2017 8:41 pm
-
-
-
Thinkpad T450 hardware attack / TPM protection
by thinkofit » Sun Jan 08, 2017 3:55 am » in ThinkPad T430/T530 and later Series - 5 Replies
- 675 Views
-
Last post by CASPER
Sat Jun 24, 2017 3:29 am
-
-
-
770X Aftermarket Battery? (*And quick PIII linux question)
by Choram » Wed Jan 04, 2017 6:52 am » in ThinkPad Legacy Hardware - 1 Replies
- 928 Views
-
Last post by Dekks
Thu Jan 05, 2017 12:43 am
-
-
-
What is a good Linux OS for legacy thinkpads?
by Blender » Sat Jan 07, 2017 1:47 am » in ThinkPad Legacy Hardware - 26 Replies
- 2626 Views
-
Last post by Farro
Thu Jan 19, 2017 11:55 am
-
Who is online
Users browsing this forum: No registered users and 1 guest



