TP_smapi incompatib​le?

Hi,
Before the bios update made available on 19th May, my w520 couldn't boot into debian wheezy after a successful installation. However the latest bios update solved that issue. But still the tp_smapi can not be loaded.
usr@debian-thinkpadw520:~$ sudo modprobe tp_smapi
[sudo] password for usr:
FATAL: Error inserting tp_smapi (/lib/modules/2.6.39-1-amd64/updates/dkms/tp_smapi​.ko): No such device
Any ideas about loading the module properly? Thanks in advance!!
AG
R60 9460PR1 Intel T2500 2.0GHz, X1300 Mobility SXGA+
T60p 8741W9G Intel T7600 2.33GHz, ATI FireGL v5250 Mobility WXGA+
W520 4270CTO Intel CORE i7 2720QM 2.20GHz, NVidia Quadro 1000m HD+
X230 2306CTO Intel CORE i5 3320M 2.60GHz, Intel HD 4000 WXGA

I would not expect any help from Lenovo on the given issue, since you're using an unsupported OS...as in one that was not provided by them...
You may want to post this question in Linux section of TPF (http://forum.thinkpads.com/viewforum.php?f=9) since there are several Linux-savvy ThinkPad buffs over there who might be able to give you a hand...
Good luck. 
Cheers,
George
In daily use: R60F, R500F, T61, T410
Collecting dust: T60
Enjoying retirement: A31p, T42p,
Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

Similar Messages

  • [SOLVED] hdapsd/gnome-hdaps-applet/kernel26/tp_smapi: Some issues

    Hej all,
    I posted some comments on the package hdapsd http://aur.archlinux.org/packages.php?ID=5401. At the moment, loading the modules from tp_smapi and starting hdaps works without problems, when enabling the unload_heads by executing as root
    echo -1 > /sys/block/sda/device/unload_heads
    Now shaking the laptop (only a bit;) results in the output of hdapsd
    Fri Mar 6 17:30:48 2009: Starting hdapsd
    Fri Mar 6 17:33:16 2009: parking
    Fri Mar 6 17:33:19 2009: Error! Not parked when we thought we were... (paged out and timer expired?)
    Fri Mar 6 17:33:19 2009: un-parking
    But a simultaneously played movie stops... So something is working, but also the new gnome-hdaps-applet (version 20081204-1) does not change the "play" sign into the "pause" sign while shaking... All this worked while using the bit outdated kernel26tp with old versions of hdapsd and gnome-hdaps-applet.
    So, does someone has ideas how to debug this further?
    Thanks,
    Andreas
    Edit: The problem is solved and had nothing to do with the software/kernel. I needed to update the firmware of my drive with the help of lenovos FWHD55.ISO...(in fact it was a bit harder since I own a non-IBM harddrive...see here http://www.thinkwiki.org/wiki/Talk:Prob … hard_disks and search for hfui15.exe, don't forget the -pm switch to tell the badly programmed software that your HD is Primary master...)
    Last edited by aneiser (2009-03-08 11:15:14)

    Hej all,
    I posted some comments on the package hdapsd http://aur.archlinux.org/packages.php?ID=5401. At the moment, loading the modules from tp_smapi and starting hdaps works without problems, when enabling the unload_heads by executing as root
    echo -1 > /sys/block/sda/device/unload_heads
    Now shaking the laptop (only a bit;) results in the output of hdapsd
    Fri Mar 6 17:30:48 2009: Starting hdapsd
    Fri Mar 6 17:33:16 2009: parking
    Fri Mar 6 17:33:19 2009: Error! Not parked when we thought we were... (paged out and timer expired?)
    Fri Mar 6 17:33:19 2009: un-parking
    But a simultaneously played movie stops... So something is working, but also the new gnome-hdaps-applet (version 20081204-1) does not change the "play" sign into the "pause" sign while shaking... All this worked while using the bit outdated kernel26tp with old versions of hdapsd and gnome-hdaps-applet.
    So, does someone has ideas how to debug this further?
    Thanks,
    Andreas
    Edit: The problem is solved and had nothing to do with the software/kernel. I needed to update the firmware of my drive with the help of lenovos FWHD55.ISO...(in fact it was a bit harder since I own a non-IBM harddrive...see here http://www.thinkwiki.org/wiki/Talk:Prob … hard_disks and search for hfui15.exe, don't forget the -pm switch to tell the badly programmed software that your HD is Primary master...)
    Last edited by aneiser (2009-03-08 11:15:14)

  • [solved] Issue installing tp_smapi

    Since recently, I am having problem when I try to install tp_smapi from AUR. Here's the issue:
    ==> Building and installing package
    /tmp/yaourt-tmp-juha/aur-tp_smapi-pf/./PKGBUILD: line 14: /lib/modules//usr/lib/modules/extramodules-3.4-pf/version: No such file or directory
    ==> ERROR: An unknown error has occurred. Exiting...
    /usr/lib/yaourt/pkgbuild.sh: line 200: 4269 User defined signal 1 PKGDEST="$YPKGDEST" makepkg "${MAKEPKG_ARG[@]}" -s -f -p ./PKGBUILD
    ==> ERROR: Makepkg was unable to build tp_smapi-pf.
    desk
    Last edited by Lockheed (2012-07-17 08:21:21)

    Things like this is probably better suited for the comments section in the AUR package.
    I had a problem installing it earlier because I tried to reinstall tm_smapi before dealing with the glibc and /lib issue. I don't know if that's any related to your problem though.

  • [SOLVED] tp_smapi fails after system update (to 2.6.39)

    I am currently running Arch Linux on my ThinkPad X41.
    I am having troubles trying to get tp_smapi work on my system after the full system update that I did yesterday. I jumped from (12.2010) 2.6.36 to kernel 2.6.39. Since yesterday, tp_smapi was working perfectly, but after the update, it seems that the new kernel cannot recognize the tp_smapi module. I tried to remove and insert it again with modprobe tp_smapi, but I am getting: "FATAL: Module tp_smapi not found" every time.
    As I have build tp_smapi from AUR, I removed it with pacman -Rd tp_smapi and installed my package again. Even removed hdapsd and reinstalled it again after tp_smapi and I am getting the same - the module could not be found.
    I saw that there is a slightly newer tp_smapi in AUR, but currently I am not able to build the package, as I am getting some build() errors like: "gcc: error -pg and -fomit-frame-pointer are incompatible."
    This PKGBUILD seems a patch for 2.6.37 kernel and probably could not build directly under the new kernel. Anyway, I am still not able to bring the good old tp_smapi to working condition.
    Anyone with a working solution about this?
    edit: I have posted this in another thread, but hope this should be useful in a separate topic.
    Last edited by dir2cas (2011-07-14 08:35:18)

    Hey, SUCCESS out here...
    @whompus, thanks so much for the precious advices and clues.
    First, I looked into this thread (very useful as well): https://bbs.archlinux.org/viewtopic.php?id=80138
    Following it, I found out a new gcc CFLAG argument, primary used in newer gcc versions (after gcc v4.2)
    -march=native
    According to the information, given it should automatically detects the features your CPU supports and sets the options appropriately.
    Setting my /etc/makepkg.conf accordingly, and adding some other useful options, my tp_smapi package build succeded.
    My new /etc/makepkg.conf
    [dir2cas@X41 ~]> cat /etc/makepkg.conf
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
    'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
    'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
    'rsync::/usr/bin/rsync -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/curl
    # ARCHITECTURE, COMPILE FLAGS
    #-- Exclusive: will only run on i686
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    # Default i686 architecture flags
    # CARCH="i686"
    # CHOST="i686-pc-linux-gnu"
    # CFLAGS="-march=i686 -mtune=generic -O2 -pipe"
    # CXXFLAGS="${CFLAGS}"
    # Athlon XP/Thunderbird XP/Duron Palomino/Duron architecture flags
    # CARCH="i686"
    # CHOST="i686-pc-linux-gnu"
    # CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
    # CXXFLAGS="${CFLAGS}"
    # Pentium M Dothan/Celeron M architecture flags
    CARCH="i686"
    CHOST="i686-pc-linux-gnu"
    #CFLAGS="-march=pentium-m -O2 -pipe -msse2 -fomit-frame-pointer"
    CFLAGS="-march=native -O2 -pipe -msse2 -mtune=native"
    CXXFLAGS="${CFLAGS}"
    LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
    #-- Make Flags: change this for DistCC/SMP systems
    #MAKEFLAGS="-j2"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(fakeroot !distcc color !ccache)
    # A negated environment option will do the opposite of the comments below.
    #-- fakeroot: Allow building packages as a non-root user
    #-- distcc: Use the Distributed C/C++/ObjC compiler
    #-- color: Colorize output messages
    #-- ccache: Use ccache to cache compilation
    BUILDENV=(fakeroot !distcc color !ccache)
    #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
    #-- specify a space-delimited list of hosts running in the DistCC cluster.
    #DISTCC_HOSTS=""
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
    # A negated option will do the opposite of the comments below.
    #-- strip: Strip symbols from binaries/libraries in STRIP_DIRS
    #-- docs: Save doc directories specified by DOC_DIRS
    #-- libtool: Leave libtool (.la) files in packages
    #-- emptydirs: Leave empty directories in packages
    #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge: Remove files specified by PURGE_TARGETS
    OPTIONS=(strip docs libtool emptydirs zipman purge)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Directories to be searched for the strip option (if strip is specified)
    STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # PACKAGE OUTPUT
    # Default: put built package and cached source in build directory
    #-- Destination: specify a fixed directory where all packages will be placed
    #PKGDEST=/home/packages
    #-- Source cache: specify a fixed directory where source files will be cached
    #SRCDEST=/home/sources
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    # doing.
    PKGEXT='.pkg.tar.gz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:
    tp_smapi package build
    [dir2cas@X41 abs]> tar xzvf tp_smapi.tar.gz
    tp_smapi/
    tp_smapi/fix_hdaps_orientation.patch
    tp_smapi/PKGBUILD
    tp_smapi/tp_smapi.install
    tp_smapi/fix_for_2.6.37.patch
    tp_smapi/tp_smapi.patch
    [dir2cas@X41 abs]>
    [dir2cas@X41 abs]>
    [dir2cas@X41 abs]>
    [dir2cas@X41 abs]> cd tp_smapi/
    [dir2cas@X41 tp_smapi]> ll
    total 32K
    drwxr-xr-x 2 dir2cas users 40 Apr 10 14:34 ./
    drwxr-xr-x 3 dir2cas users 4.0K Jul 14 00:52 ../
    -rw-r--r-- 1 dir2cas users 2.0K Apr 10 14:16 PKGBUILD
    -rw-r--r-- 1 dir2cas users 1.1K Jan 7 2011 fix_for_2.6.37.patch
    -rw-r--r-- 1 dir2cas users 535 Apr 10 14:16 fix_hdaps_orientation.patch
    -rw-r--r-- 1 dir2cas users 124 Apr 10 14:17 tp_smapi.install
    -rw-r--r-- 1 dir2cas users 678 Jan 1 1970 tp_smapi.patch
    [dir2cas@X41 tp_smapi]>
    [dir2cas@X41 tp_smapi]>
    [dir2cas@X41 tp_smapi]>
    [dir2cas@X41 tp_smapi]> makepkg -s
    ==> Making package: tp_smapi 0.40-5 (Thu Jul 14 00:52:29 EEST 2011)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    -> Downloading tp_smapi-0.40.tgz...
    --2011-07-14 00:52:30-- http://downloads.sourceforge.net/sourceforge/tpctl/tp_smapi-0.40.tgz
    Resolving downloads.sourceforge.net... 216.34.181.59
    Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: http://downloads.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz [following]
    --2011-07-14 00:52:31-- http://downloads.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz
    Reusing existing connection to downloads.sourceforge.net:80.
    HTTP request sent, awaiting response... 302 Found
    Location: http://sunet.dl.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz [following]
    --2011-07-14 00:52:31-- http://sunet.dl.sourceforge.net/project/tpctl/tp_smapi/0.40/tp_smapi-0.40.tgz
    Resolving sunet.dl.sourceforge.net... 194.71.11.73
    Connecting to sunet.dl.sourceforge.net|194.71.11.73|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 39002 (38K) [application/x-gzip]
    Saving to: `tp_smapi-0.40.tgz.part'
    100%[===================================================================>] 39,002 201K/s in 0.2s
    2011-07-14 00:52:32 (201 KB/s) - `tp_smapi-0.40.tgz.part' saved [39002/39002]
    -> Found fix_for_2.6.37.patch
    -> Found fix_hdaps_orientation.patch
    -> Found tp_smapi.patch
    ==> Validating source files with md5sums...
    tp_smapi-0.40.tgz ... Passed
    fix_for_2.6.37.patch ... Passed
    fix_hdaps_orientation.patch ... Passed
    tp_smapi.patch ... Passed
    ==> Validating source files with sha256sums...
    tp_smapi-0.40.tgz ... Passed
    fix_for_2.6.37.patch ... Passed
    fix_hdaps_orientation.patch ... Passed
    tp_smapi.patch ... Passed
    ==> Extracting Sources...
    -> Extracting tp_smapi-0.40.tgz with bsdtar
    ==> Starting build()...
    patching file Makefile
    patching file thinkpad_ec.c
    patching file tp_smapi.c
    patching file hdaps.c
    make -C /lib/modules/2.6.39-ARCH/build M=/home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40 O=/lib/modules/2.6.39-ARCH/build modules
    make[1]: Entering directory `/usr/src/linux-2.6.39-ARCH'
    CC [M] /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.o
    /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.c: In function 'check_dmi_for_ec':
    /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.c:468:1: warning: the frame size of 1328 bytes is larger than 1024 bytes [-Wframe-larger-than=]
    CC [M] /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/tp_smapi.o
    CC [M] /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/hdaps.o
    Building modules, stage 2.
    MODPOST 3 modules
    CC /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/hdaps.mod.o
    LD [M] /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/hdaps.ko
    CC /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.mod.o
    LD [M] /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.ko
    CC /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/tp_smapi.mod.o
    LD [M] /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/tp_smapi.ko
    make[1]: Leaving directory `/usr/src/linux-2.6.39-ARCH'
    ==> Entering fakeroot environment...
    ==> Starting package()...
    make: Entering directory `/usr/src/linux-2.6.39-ARCH'
    INSTALL /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/hdaps.ko
    INSTALL /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/thinkpad_ec.ko
    INSTALL /home/dir2cas/devel/abs/tp_smapi/src/tp_smapi-0.40/tp_smapi.ko
    DEPMOD 2.6.39-ARCH
    make: Leaving directory `/usr/src/linux-2.6.39-ARCH'
    ==> Tidying install...
    -> Purging other files...
    -> Compressing man and info pages...
    -> Stripping unneeded symbols from binaries and libraries...
    ==> Creating package...
    -> Generating .PKGINFO file...
    -> Adding install file...
    -> Compressing package...
    ==> Leaving fakeroot environment.
    ==> Finished making: tp_smapi 0.40-5 (Thu Jul 14 00:52:37 EEST 2011)
    [dir2cas@X41 tp_smapi]> ll
    total 100K
    drwxr-xr-x 4 dir2cas users 88 Jul 14 00:52 ./
    drwxr-xr-x 3 dir2cas users 4.0K Jul 14 00:52 ../
    -rw-r--r-- 1 dir2cas users 2.0K Apr 10 14:16 PKGBUILD
    -rw-r--r-- 1 dir2cas users 1.1K Jan 7 2011 fix_for_2.6.37.patch
    -rw-r--r-- 1 dir2cas users 535 Apr 10 14:16 fix_hdaps_orientation.patch
    drwxr-xr-x 3 dir2cas users 24 Jul 14 00:52 pkg/
    drwxr-xr-x 3 dir2cas users 40 Jul 14 00:52 src/
    -rw-r--r-- 1 dir2cas users 22K Jul 14 00:52 tp_smapi-0.40-5-i686.pkg.tar.gz
    -rw-r--r-- 1 dir2cas users 39K Dec 16 2008 tp_smapi-0.40.tgz
    -rw-r--r-- 1 dir2cas users 124 Jul 14 00:52 tp_smapi.install
    -rw-r--r-- 1 dir2cas users 678 Jan 1 1970 tp_smapi.patch
    Thanks alot!
    Last edited by dir2cas (2011-07-13 22:06:58)

  • Can't build tp_smapi package under custom kernel, built ok with stock

    Hi,
    I followed this guide and built a custom kernel http://wiki.archlinux.org/index.php/Cus … n_with_ABS   (with the PKGBUILD file found in this page).
    Basically I changed the LOCALVERSION while config kernel module, and changed processor type to Pentium M, exclude some drivers.
    Now I can't build tp_smapi package with yaourt -S, gives me error:
    -> Extracting tp_smapi-0.40.tgz with bsdtar
    ==> Entering fakeroot environment...
    ==> Starting build()...
    patching file Makefile
    /usr/bin/make -C /lib/modules/2.6.32.8-custom/build M=/tmp/yaourt-tmp-user/aur-tp_smapi/tp_smapi/src/tp_smapi-0.40 O=/lib/modules/2.6.32.8-custom/build modules
    make[1]: Entering directory `/usr/src/linux-2.6.32.8-custom'
    /usr/src/linux-2.6.32.8-custom/Makefile:529: /usr/src/linux-2.6.32.8-custom/arch/x86/Makefile: No such file or directory
    make[2]: *** No rule to make target `/usr/src/linux-2.6.32.8-custom/arch/x86/Makefile'.  Stop.
    make[1]: *** [sub-make] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.32.8-custom'
    make: *** [modules] Error 2
    make: Entering directory `/usr/src/linux-2.6.32.8-custom'
    Makefile:529: /usr/src/linux-2.6.32.8-custom/arch/x86/Makefile: No such file or directory
    make: *** No rule to make target `/usr/src/linux-2.6.32.8-custom/arch/x86/Makefile'.  Stop.
    make: Leaving directory `/usr/src/linux-2.6.32.8-custom'
    ==> Tidying install...
      -> Purging other files...
    However it builds fine if run the stock Arch kernel.
    This package depends on kernel26-headers, it pulls this down and installed, but itself is failed.
    I believe the error is due to it requires the kernel26-headers as the other AUR packages don't.
    tp_smapi's PKGBUILD is here
    http://dpaste.com/162443/
    Any suggestions/help?
    Last edited by skygunner (2010-02-21 08:16:04)

    Hi,
    I wanted to build a kernel26-ice with tp_smapi included as I would love to have more than one kernel on my system. However, I do not find any information on patching the kernel with such patch. Can anyone guide me to the right direction?
    EDIT:
    Excuse me for any inconvenience, I found, that kernel26-zen may be what I am looking for as it uses tp_smapi as a patch.
    Last edited by Liuuutas (2010-03-28 14:58:54)

  • Can't load tp_smapi?

    When I type "make load" in extracted tp_smapi installing directory, it shows a problem:
    bash-3.2# make load
    Makefile:25: *** This driver requires kernel 2.6.19 or newer, and matching kernel sources. You may need to override KVER=2.6.25-ARCH or KSRC=/lib/modules/2.6.25-ARCH/source or KBUILD=/lib/modules/2.6.25-ARCH/build or MOD_DIR=/lib/modules/2.6.25-ARCH/kernel. Stop.
    How can I get the kernel sources? It seems that pacman doesn't provide src packages.
    Thanks for your help!

    Arch kernel is shipped with its own hdaps module (/lib/modules/2.6.25-ARCH/kernel/drivers/hwmon/hdaps.ko), which is not patched for thinkpads. modprobe tries to load this one; that's why one needs to 'insmod ...' the patched one. [If you want to be able to use the patched hdaps module with modprobe, see the link I posted on AUR page.]
    Now, as far as I understand, hdaps module by itself doesn't do any disk management, you need hdapsd (a daemon, it's also in AUR) to do that. There's some info on thinkwiki.

  • [somewhat solved] Charging thresholds with tp_smapi issue

    I installed the latest Arch linux on my Thinkpad Edge e420 without any issues (so Ubuntu did teach me something the last ~5 years) and was following the tp_smapi wiki how-to on changing the battery charging thresholds when I found that when I set either one (either start or stop), it would change the other to being one less or one more:
    [root@arch josh]# echo 80 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh
    [root@arch josh]# cat /sys/devices/platform/smapi/BAT0/stop_charge_thresh
    80
    [root@arch josh]# cat /sys/devices/platform/smapi/BAT0/start_charge_thresh
    81
    [root@arch josh]# echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
    [root@arch josh]# cat /sys/devices/platform/smapi/BAT0/start_charge_thresh
    40
    [root@arch josh]# cat /sys/devices/platform/smapi/BAT0/stop_charge_thresh
    39
    And this happens for whatever number I chose for `start_charge_thresh` or `stop_charge_thresh`. Running `lsmod`, I see that `tp_smapi` and `thinkpad_ec` are both installed and running,
    josh@arch~ # lsmod
    tp_smapi 20660 0
    thinkpad_ec 4253 1 tp_smapi
    Any suggestions? Or needed extra information?
    Last edited by makhoma (2012-11-23 18:58:06)

    Despite having the start/stop_charging_threshold set as 40/39 as in the above example, my battery charges to 80% and then stops (I've done this three separate times, leaving it plugged in with enough time to charge it 100%, and each time it stopped at 80). Another one of those Linux quirks, I guess.

  • Z560 and tp_smapi

    In looking for ways to extend my battery life on my Z560 I found a reference to the tp_smapi module.  As this appears to give additional information and control on thinkpads I decided to give it a try.  I was able to downloadand install  it and HDAPS using the package manager.  But when I attempted to activate it:
    modprobe tp_smapi
    FATAL: Error inserting tp_smapi (/lib/modules/2.6.38-11-generic/extra/tp_smapi.ko): Operation not permitted
    Looking at my /var/log/kern.log I see:
    Nov 29 08:44:48 DHD-Z560 kernel: [217875.819980] hdaps: supported laptop not found!
    Nov 29 08:44:48 DHD-Z560 kernel: [217875.819984] hdaps: driver init failed (ret=-19)!
    Nov 29 08:46:56 DHD-Z560 kernel: [218003.488260] thinkpad_ec: no ThinkPad embedded controller!
    Does the Z560 lack the embedded controller as this appears to indicate, or is there something more I need to do to activate it?  Is a different version needed for an IdeaPad Z560?  Do I need to reboot for this to work?
    Dave

    I was able to get some improvement by adding some boot options to /etc/default/grub, specifically:
    pcie_aspm=force i915.i915_enable_rc6=1 i915.lvds_downclock=1
    I was also able to improve things further by creating an /etc/X11/xorg.conf and setting:
    Option "DRI" "False"
    in the device section for the display.
    I am still trying to track down whatever is causing all the CPU wakeups and have opened a bug on this:
    https://bugs.launchpad.net/linuxmint/+bug/905076
    If you have any suggestions regarding tracking this down after looking at the data I attached to the bug report I would appreciate them, as I have yet to receive any assistance there.
    Dave

  • ThinkPad T500, HDAPS: tp_smapi: Unknown symbol thinkpad_*

    I followed the guide at http://wiki.archlinux.org/index.php/HDAPS, but didn't get further than the tp_smapi section:
    # modprobe tp_smapi
    FATAL: Error inserting tp_smapi (/lib/modules/2.6.28-ARCH/extra/tp_smapi.ko): Unknown symbol in module, or unknown parameter (see dmesg)
    # dmesg | tail -n5
    thinkpad_ec: cannot claim IO ports 0x1600-0x161f... consider using force_io=1.
    tp_smapi: Unknown symbol thinkpad_ec_unlock
    tp_smapi: Unknown symbol thinkpad_ec_invalidate
    tp_smapi: Unknown symbol thinkpad_ec_read_row
    tp_smapi: Unknown symbol thinkpad_ec_lock
    # ll /sys/devices/platform/smapi
    ls: cannot access /sys/devices/platform/smapi: No such file or directory
    # ll /dev/js
    ls: cannot access /dev/js: No such file or directory
    What's wrong?

    The module thinkpad_ec has to be loaded before you can use tp_smapi,
    but it refuses to load on your system becaue it can't claim certain IO ports.
    You can force thinkpad_ec to claim the ports with modprobe thinkpad_ec force_io=1,
    and to make it permanent you can add options thinkpad_ec force_io=1 to /etc/modprobe.d/options.
    Edit: I have to tell thinkpad_ec to force claiming the ports on my system as well (Lenovo ThinkPad X200)
    and so far I haven't had any problems with it, but there's no guarantee it'll work on your system. Just try.
    Last edited by csstaub (2009-03-21 13:46:47)

  • [SOLVED]Lenovo t400 tp_smapi & hdaps problems

    I noticed there are many people here who run thinkpads.
    I am the proud owner of a thinkpad for 2 months now and i run arch linux on it togeter with kde4.
    But the thing that's bugging me for a 2 days now is that i can't get tp_smapi to work.
    I followed the wiki exacty but i get an error if i try to load it
    FATAL: Error inserting tp_smapi (/lib/modules/2.6.31-ARCH/extra/tp_smapi.ko): No such device or address
    Now i found this solution: Thinkwiki
    But i dont know how to apply this solution on arch linux..
    And i also get this error when i try to load the hadps module for thinkpads:
    FATAL: Error inserting hdaps (/lib/modules/2.6.31-ARCH/kernel/drivers/hwmon/hdaps.ko): No such device
    But i think that the second error is because tp_smapi doesn't work
    Does anyone has any idea how to fix this?
    Last edited by Miitch (2009-10-19 19:21:53)

    I  never have to recompile tp_smapi, however with every new kernel you've got to do the following:
    [kuba@t61p ~]\$ cat linux/bin/fix_hdaps.sh
    #!/bin/sh
    path="/lib/modules/$(uname -r)/"
    rm $path/kernel/drivers/hwmon/hdaps.ko
    cp $path/extra/hdaps.ko $path/kernel/drivers/hwmon/
    /etc/rc.d/hdapsd restart
    hdaps module gets bad path by default.
    Hope that helps.

  • [solved-ish?]tp_smapi charge thresholds not charging

    I've searched the forums, followed the wiki, but can't find an answer to my problems.
    I recently bought a used T60p, did the start charge at 40% and the stop charge at 80%.
    Right now, my battery is at 43%, so it should be charing normally, but acpi says the following:
    [heleos@thinkpad ~]\$ acpi
    Battery 0: Unknown, 43%
    The battery does not charge as I think it should. When I modprobe -r tp_smapi, the battery begins to charge.
    I'm kind of at a loss as to what I'm doing wrong, so if anyone does know, chime in please! Thanks
    Last edited by heleos (2011-09-12 02:08:01)

    Found this thread (https://bbs.archlinux.org/viewtopic.php?id=113105), didn't come up in my search.... I'll mark this closed for now?

  • [SOLVED] /home not mounted on boot after installing tp_smapi

    Hi. After installing tp_smapi, my /home partition isn't mounted on boot any more.
    I can log in as a normal user, but I am then left with a command line and thus need to mount /home manually and launch X/dwm with startx. The startup shell shows no error messages.
    After I uninstall tp_smapi, X starts up automatically again and everything seems to work.
    Here's my fstab:
    /dev/sda2 / ext4 rw,noatime,data=ordered 0 1
    # /dev/sda4 UUID=9d976c9a-4fe2-4cc9-a8b9-c22c713149d7
    /dev/sda4 /home ext4 rw,noatime,data=ordered 0 2
    # /dev/sda3 UUID=a6153a96-b9ef-412f-a670-af6775275f15
    /dev/sda3 none swap defaults 0 0
    I am dual-booting Arch with Windows XP on a Thinkpad X60s. A /mnt/home folder also exists. And, the error aside, tp_smapi seems to work nicely,
    Thanks for any help!
    Last edited by marttt (2013-06-01 20:59:55)

    Okay, it works now (after creating /mnt/home anew and rebooting). However, I wonder why did tp_smapi touch my mount points in the first place?
    Last edited by marttt (2013-05-31 20:46:09)

  • Performanc​e Center Server 12.01 showing incompatib​ility error with ALM 12.01

    I have installed HP ALM 12.01 and Server and when trying to add Performance Center server 12.01 to it I am getting error message.
    "Performance Center Server is not compatible with this version of ALM. You can Still add it with "Unavailable" Status".
    After adding and Changing it's Status. All System heath test are failing
    Please provide solution to this issue.
    Screen Prints attached

    This is the installation issue with Performance Center. Please check the version of ALM in the PERF Server. You have to Uninstall the old one completely and reintall the ALM 12.01 version.

  • HP LaserJet M2727nf incompatib​ility with Windows 8.1

    My  hard drive crashed and I ended up buying a new computer with a more recently released operating system.  I now have Windows 8.1.  My HP LaserJet M2727nf was working fine, but since I obtained the new operating system, the printer does not work.  The error message states that the problem is the operating system.   I have one of these printers in my home office and one in my church office.   Is there a work around for this problem?  I cannot afford new printers.  My budget is stretched to the limit with the new computer.  I am not tech savy so I will greatly appreciate any assistance.  Please speak in laymen's terms.

    You should download the driver for your printer, here what i get :
    Fo windows 8.1 32bit :
    http://h20564.www2.hp.com/hpsc/swd/public/detail?s​p4ts.oid=3377076&swItemId=ds_99353_9&swEnvOid=4157
    for Windows 8.1 64bit :
    http://h20564.www2.hp.com/hpsc/swd/public/detail?s​p4ts.oid=3377076&swItemId=ds_99374_9&swEnvOid=4132

  • Photosmart 8750 and Photoshop Elements 8 incompatib​ility

    I cannot get my printer (HP 8750 Pro) to print a greeting card correctly.  I am using PSE 8 and Win7 Premium Home.  When I send the card to the printer I enter the paper size (8.5 x 11).  I change the settings to print on HP Brochure matte with 300 dpi.  I go into Page Setup and see there are no margins, then more options and enter the print size which is Height 7.0 inches by 5.5 inches wide.  I then hit apply and OK.  Check the rest of the settings, insert the cardstock into the printer.  What usually prints is a little picture of my card in the upper left hand corner of the paper.  Just enough to ruin the entire piece of cardstock.  The picture is 2 inches high and 1 and 1/4 inch wide.  I have downloaded and installed the Windows 7 driver published by HP.
    Does anyone have any idea what I'm doing wrong?  Sometimes, but not too often, I get a perfect page printed exactly right.  This is ruining cardstock and wasting ink.  My workaround has been to use another computer with XP sp2 and attach the printer to that one via USB.  It's quite inconvienient.
    I paid beaucoup bucks for this printer and there has been virtually no support from HP.  Can't even email support.  My next printer is definitely not going to be an HP.
    lizzzi

    I have spoken to the Tech support people at Adobe and they told me that PSE 2 is not compatible with 8 megapixels cameras and that I would have to upgrad to PSE 3.
    What utter nonsense. Seriously. Until a few months ago I used PSE2 exclusively with my 20D, and it was just fine. I've since upgraded to CS2, but PSE2 works fine with 8MP images. Whomever you spoke to didn't know what they were talking about (or had recently been visited by the marketing division.) :)
    Also, in PSE, I am using the Unsharp Mask in the filter menu. When using the Unsharp Mask with the various settings: Amount: 150%; Radius: 2.5 Pixels; and Threshold: 0
    Here's something to try: drag your base layer (either the background layer or your cloned/cleaned up layer) to the new layer icon in the layers palette to copy the layer. Double click on the name of this new layer and type "sharpen" without the quotes. Change the blend mode of this layer to luminosity. With this layer selected, go to filters->unsharp mask. Start with these settings: radius .8 pixels, amount 300%, threshold 5. This should sharpen your image right up without distorting it. It may, however, add some noise, depending on the image. Click ok. If you want to back off on the sharpening a bit, you can reduce the opacity of the sharpen layer a bit. Remember that for best printing results you want the image to look a little crunchy. If you're going to use for a web image you can back off on the sharpening a bit (by lowering the opacity).

Maybe you are looking for

  • Iphotos there but not really???

    I have photos in my library that are there. And like usual when you open iphoto, they are along the top. But I cannot open them (if you want to edit or just see them larger). It just shows this swirling icon. Any ideas....your knowledge is appreciate

  • How can I see my SONY MCS-8M's operation hours?

    Hi, I'm Mike. I got a SONY MCS-8M but don't know how long has it been used before. (user manual was missing) So, can anybody tell me how to find out my operation hours?

  • Can't install actions in PSE 9

    I've been using PSE9 for three years with no issues but recently, I found I could not load any more actions. I follow the instructions to install them (which I've done many times over the past three years) and while the actions show up in the appropr

  • Creating a PDF from a  Secure Website (entire site)

    I am having trouble creating a PDF from a website that requires a login and password. I have full access to the secure website through a subscription and wanted to print certain levels (or even be able to print the whole site that I can access) but w

  • Setup BPEL Process Manager with OID

    I followed all the instructions provided by the Content Services Custom BPEL workflow to setup BPEL with OID but I have The error "Identity Service cannot find user" while log in to http://fr101sv0226.corp.tpnet.intra:9700/integration/worklistapp/Log