Is there a tp_smapi (for ThinkPads) Fedora RPM anywhere?
If not, how do ThinkPad users install tp_smapi? Can one use dkms to keep tp_smapi up-to-date?
On Wednesday 27 July 2011 04:40 AM, Timothy Murphy wrote:
Is there a tp_smapi (for ThinkPads) Fedora RPM anywhere?
If not, how do ThinkPad users install tp_smapi? Can one use dkms to keep tp_smapi up-to-date?
http://www.thinkwiki.org/wiki/Tp_smapi
On Wednesday 27 July 2011 04:40 AM, Timothy Murphy wrote:
Is there a tp_smapi (for ThinkPads) Fedora RPM anywhere?
If not, how do ThinkPad users install tp_smapi? Can one use dkms to keep tp_smapi up-to-date?
[1] http://www.jonathanpritchard.com/blog/how-to-install-tp_smapi-and-change-bat...
[2] http://izhar.fedorapeople.org/tp_smapi-kmod/
Jatin K wrote:
Is there a tp_smapi (for ThinkPads) Fedora RPM anywhere?
If not, how do ThinkPad users install tp_smapi? Can one use dkms to keep tp_smapi up-to-date?
[1] http://www.jonathanpritchard.com/blog/how-to-install-tp_smapi-and-change-
battery-charging-thresholds-on-fedora-14-271
Thanks very much - that seems to be what I was looking for.
As far as I can see, this RPM corresponds to an old kernel?
On Wednesday 27 July 2011 12:36 PM, Timothy Murphy wrote:
Jatin K wrote:
Is there a tp_smapi (for ThinkPads) Fedora RPM anywhere?
If not, how do ThinkPad users install tp_smapi? Can one use dkms to keep tp_smapi up-to-date?
[1] http://www.jonathanpritchard.com/blog/how-to-install-tp_smapi-and-change-
battery-charging-thresholds-on-fedora-14-271
Thanks very much - that seems to be what I was looking for.
As far as I can see, this RPM corresponds to an old kernel?
yes ...the second one is for reference purpose only
Jatin K wrote:
Is there a tp_smapi (for ThinkPads) Fedora RPM anywhere?
If not, how do ThinkPad users install tp_smapi? Can one use dkms to keep tp_smapi up-to-date?
[1] http://www.jonathanpritchard.com/blog/how-to-install-tp_smapi-and-
change-
battery-charging-thresholds-on-fedora-14-271
Thanks very much - that seems to be what I was looking for.
I followed the instructions in Pritchard's blog above, and managed to install akmods . But the procedure beyond that failed, since it seems akmods requires the kernel source to be present, which was not mentioned in the blog: ------------------------------------ [tim@blanche ~]$ sudo service akmods restart Checking kmods exist for 2.6.38.8-35.fc15.i686.PAE [ OK ] Files needed for building modules against kernel 2.6.38.8-35.fc15.i686.PAE could not be found as the following directories are missing: /usr/src/kernels/2.6.38.8-35.fc15.i686.PAE/ /lib/modules/2.6.38.8-35.fc15.i686.PAE/build/ [FAILED] ------------------------------------
I didn't think one normall required the kernel source in order to compile a kernel module? I thought kernel-headers and kernel-devel was usually sufficient?
It seems there is an alternative method of installing tp_smapi , namely using dkms . But I'm not clear whether dkms and akmods do the same thing? And if so, which is likely to be better on a Fedora/KDE system?
On 07/27/2011 04:19 PM, Timothy Murphy wrote:
It seems there is an alternative method of installing tp_smapi , namely using dkms . But I'm not clear whether dkms and akmods do the same thing? And if so, which is likely to be better on a Fedora/KDE system?
I believe they do basically the same thing. I've been using dkms for several years to keep the nvidia drivers up to date with the kernel.
However, dkms is currently broken on F15.
https://bugzilla.redhat.com/show_bug.cgi?id=702483
On 07/27/2011 01:19 AM, Timothy Murphy wrote:
But the procedure beyond that failed, since it seems akmods requires the kernel source to be present, which was not mentioned in the blog:
No it doesn't. It needs the appropriate kernel-devel, however, but doesn't list it as a dependency.
Joe Zeff wrote:
On 07/27/2011 01:19 AM, Timothy Murphy wrote:
But the procedure beyond that failed, since it seems akmods requires the kernel source to be present, which was not mentioned in the blog:
No it doesn't. It needs the appropriate kernel-devel, however, but doesn't list it as a dependency.
Could you give a hint how to install tp_smapi with akmods, please.
I have kernel-headers and kernel-devel installed, as well as akmod-tp_smapi-0.40-1.fc11.i686.rpm which I installed by sudo yum localinstall akmod-tp_smapi-0.40-1.fc11.i686.rpm --nogpgcheck
According to http://fedorasolved.org/Members/zcat/akmods I should now run "sudo service akmods restart", but when I do this I get the error message ------------------------------------ [tim@blanche ~]$ sudo service akmods restart Checking kmods exist for 2.6.38.8-35.fc15.i686.PAE [ OK ] Files needed for building modules against kernel 2.6.38.8-35.fc15.i686.PAE could not be found as the following directories are missing: /usr/src/kernels/2.6.38.8-35.fc15.i686.PAE/ /lib/modules/2.6.38.8-35.fc15.i686.PAE/build/ [FAILED] ------------------------------------ Both these directories are present (though empty) ------------------------------------ [tim@blanche ~]$ ls -lsd /usr/src/kernels/2.6.38.8-35.fc15.i686.PAE 4 drwxr-xr-x. 2 root root 4096 Jul 28 00:20 /usr/src/kernels/2.6.38.8-35.fc15.i686.PAE [tim@blanche ~]$ ls -lsd /lib/modules/2.6.38.8-35.fc15.i686.PAE/build 0 lrwxrwxrwx. 1 root root 50 Jul 13 02:31 /lib/modules/2.6.38.8-35.fc15.i686.PAE/build -> ../../../usr/src/kernels/2.6.38.8-35.fc15.i686.PAE
if you guys manage to install the tp_smapi on Fedora 15 please to share XD ..
it seems to fail here >.< , not sure what to update in that akmod package ..
On Tuesday 09 August 2011 02:16 PM, Mohd Izhar Firdaus Ismail wrote:
if you guys manage to install the tp_smapi on Fedora 15 please to share XD ..
it seems to fail here>.< , not sure what to update in that akmod package ..
may be this[1] can be helpful to you
[1] http://www.thinkwiki.org/wiki/Tp_smapi
Warm Regards
Jatin K wrote:
On Tuesday 09 August 2011 02:16 PM, Mohd Izhar Firdaus Ismail wrote:
if you guys manage to install the tp_smapi on Fedora 15 please to share XD ..
may be this[1] can be helpful to you
It's a pity this does not seem to have any reference to Fedora. Has anyone actualy install tp_smapi under Fedora-15?
On Tue, Aug 9, 2011 at 9:22 PM, Timothy Murphy gayleard@eircom.net wrote:
Jatin K wrote:
On Tuesday 09 August 2011 02:16 PM, Mohd Izhar Firdaus Ismail wrote:
if you guys manage to install the tp_smapi on Fedora 15 please to share XD ..
may be this[1] can be helpful to you
It's a pity this does not seem to have any reference to Fedora. Has anyone actualy install tp_smapi under Fedora-15?
hurm . .weird.. seems in like recent kernel it compiles fine (it was failing to compile on early F15)
btw , just install that akmod rpms .. should work .. i'm using that ..
-- Timothy Murphy e-mail: gayleard /at/ eircom.net tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Mohd Izhar Firdaus Ismail wrote:
Has anyone actualy installed tp_smapi under Fedora-15?
hurm . .weird.. seems in like recent kernel it compiles fine (it was failing to compile on early F15)
btw , just install that akmod rpms .. should work .. i'm using that ..
Could you tell me exactly what you did, please. I am running Fedora-15 (32-bit) with kernel 2.6.40-4.fc15.i686.PAE. I have akmods-0.3.6-3.fc12.noarch and akmod-tp_smapi-0.40-1.fc11.i686 installed from RPMs.
When I try to start the akmods service I get ------------------------------------ [tim@blanche ~]$ sudo service akmods restart Checking kmods exist for 2.6.40-4.fc15.i686.PAE [ OK ] Files needed for building modules against kernel 2.6.40-4.fc15.i686.PAE could not be found as the following directories are missing: /usr/src/kernels/2.6.40-4.fc15.i686.PAE/ /lib/modules/2.6.40-4.fc15.i686.PAE/build/ [FAILED] ------------------------------------
For reasons I don't understand, I have /usr/src/kernels/2.6.40-4.fc15.i686/ (provided by kernel-devel-2.6.40-4.fc15.i686) but not /usr/src/kernels/2.6.40-4.fc15.i686.PAE/
On Thu, Aug 11, 2011 at 5:34 AM, Timothy Murphy gayleard@alice.it wrote:
Mohd Izhar Firdaus Ismail wrote:
Has anyone actualy installed tp_smapi under Fedora-15?
hurm . .weird.. seems in like recent kernel it compiles fine (it was failing to compile on early F15)
btw , just install that akmod rpms .. should work .. i'm using that ..
Could you tell me exactly what you did, please. I am running Fedora-15 (32-bit) with kernel 2.6.40-4.fc15.i686.PAE. I have akmods-0.3.6-3.fc12.noarch and akmod-tp_smapi-0.40-1.fc11.i686 installed from RPMs.
When I try to start the akmods service I get
[tim@blanche ~]$ sudo service akmods restart Checking kmods exist for 2.6.40-4.fc15.i686.PAE [ OK ] Files needed for building modules against kernel 2.6.40-4.fc15.i686.PAE could not be found as the following directories are missing: /usr/src/kernels/2.6.40-4.fc15.i686.PAE/ /lib/modules/2.6.40-4.fc15.i686.PAE/build/ [FAILED]
For reasons I don't understand, I have /usr/src/kernels/2.6.40-4.fc15.i686/ (provided by kernel-devel-2.6.40-4.fc15.i686) but not /usr/src/kernels/2.6.40-4.fc15.i686.PAE/
Thats the right steps ..though i'm using 64bit
whats your `uname -r` ?
-- Timothy Murphy e-mail: gayleard /at/ eircom.net tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Mohd Izhar Firdaus Ismail wrote:
For reasons I don't understand, I have /usr/src/kernels/2.6.40-4.fc15.i686/ (provided by kernel-devel-2.6.40-4.fc15.i686) but not /usr/src/kernels/2.6.40-4.fc15.i686.PAE/
Thats the right steps ..though i'm using 64bit
whats your `uname -r` ?
[tim@blanche ~]$ uname -a Linux blanche.gayleard.com 2.6.40-4.fc15.i686.PAE #1 SMP Fri Jul 29 18:47:58 UTC 2011 i686 i686 i386 GNU/Linux [tim@blanche ~]$ ls /usr/src/kernels/ 2.6.38.8-35.fc15.i686 2.6.38.8-35.fc15.i686.PAE 2.6.40-4.fc15.i686
It seems that the 2.6.40-4.fc15.i686.PAE kernel comes with 2.6.40-4.fc15.i686 kernel-devel . Is that a Fedora packaging error?
Timothy Murphy wrote:
Mohd Izhar Firdaus Ismail wrote:
For reasons I don't understand, I have /usr/src/kernels/2.6.40-4.fc15.i686/ (provided by kernel-devel-2.6.40-4.fc15.i686) but not /usr/src/kernels/2.6.40-4.fc15.i686.PAE/
I see now that I have to yum-install kernel-PAE-devel ; I assumed that yum-installing kernel-devel would find the current kernel, but it seems that is not so.
I have akmod-tp_smapi-0.40-1.fc11.i686 installed. It seems this is the latest Fedora version of akmod-tp_smapi .
Now when I run "sudo akmods" I get what seem to be two errors: ------------------------------------- /tmp/akmodsbuild.t8b8ZhBM/BUILD/tp_smapi- kmod-0.40/_kmod_build_2.6.40-4.fc15.i686.PAE/thinkpad_ec.c: In function 'thinkpad_ec_try_lock': /tmp/akmodsbuild.t8b8ZhBM/BUILD/tp_smapi- kmod-0.40/_kmod_build_2.6.40-4.fc15.i686.PAE/thinkpad_ec.c:123:1: warning: control reaches end of non-void function [-Wreturn-type] make[3]: *** [/tmp/akmodsbuild.t8b8ZhBM/BUILD/tp_smapi- kmod-0.40/_kmod_build_2.6.40-4.fc15.i686.PAE/thinkpad_ec.o] Error 1 make[3]: *** Waiting for unfinished jobs.... ... /tmp/akmodsbuild.t8b8ZhBM/BUILD/tp_smapi- kmod-0.40/_kmod_build_2.6.40-4.fc15.i686.PAE/tp_smapi.c: In function 'store_battery_start_charge_thresh': /tmp/akmodsbuild.t8b8ZhBM/BUILD/tp_smapi- kmod-0.40/_kmod_build_2.6.40-4.fc15.i686.PAE/tp_smapi.c:776:8: error: 'smapi_mutex' undeclared (first use in this function) -------------------------------------
Surely there must be some 32-bit Fedora Thinkpad users who are successfully running tp_smapi? What is the secret of your success?
Timothy Murphy wrote:
Now I have downloaded the tp_smapi source from http://sourceforge.net/projects/tpctl/files/tp_smapi/0.40/tp_smapi-0.40.tgz/download and compiled this, and I seem to get the same error on my Thinkpad T60 as I got when running akmods with akmod-tp_smapi : ----------------------------------- /usr/local/src/tp_smapi-0.40/thinkpad_ec.c: In function ‘thinkpad_ec_lock’: /usr/local/src/tp_smapi-0.40/thinkpad_ec.c:108:28: error: ‘thinkpad_ec_mutex’ undeclared (first use in this function) -----------------------------------
I see the line static DECLARE_MUTEX(thinkpad_ec_mutex); but it is not clear to me where thinkpad_ec_mutex is defined .
Timothy Murphy wrote:
Timothy Murphy wrote:
Now I have downloaded the tp_smapi source from
http://sourceforge.net/projects/tpctl/files/tp_smapi/0.40/tp_smapi-0.40.tgz/download
and compiled this, and I seem to get the same error on my Thinkpad T60 as I got when running akmods with akmod-tp_smapi :
This compiles for me now on replacing DECLARE_MUTEX by DEFINE_SEMAPHORE in thinkpad_ec.c and tp_smapi.c .
I've installed it, but have no confidence I have done the right thing.
As far as I can see, DECLARE_MUTEX disappeared from the kernel some time ago, so I don't see how this can have compiled recently.
Timothy Murphy wrote:
Timothy Murphy wrote:
Now I have downloaded the tp_smapi source from
http://sourceforge.net/projects/tpctl/files/tp_smapi/0.40/tp_smapi-0.40.tgz/download
and compiled this, and I seem to get the same error on my Thinkpad T60 as I got when running akmods with akmod-tp_smapi :
This compiles for me now on replacing DECLARE_MUTEX by DEFINE_SEMAPHORE in thinkpad_ec.c and tp_smapi.c .
I've installed it, but have no confidence I have done the right thing.
As far as I can see, DECLARE_MUTEX disappeared from the kernel some time ago, so I don't see how this can have compiled recently.