linux-thinkpad / tp_smapi

173 stars 13 forks source link

tp_smapi fails on boot in thinkpad EDGE 13 #2

Open tasty-minerals opened 13 years ago

tasty-minerals commented 13 years ago

tp_smapi gets screwed in Arch on thinkpad EDGE 13. How to fix it?

System: Linux archbang 3.0-ARCH #1 SMP PREEMPT Wed Aug 17 21:55:57 CEST 2011 x86_64 AMD Turion(tm) Neo X2 Dual Core Processor L625 AuthenticAMD GNU/Linux

modprobe tp_smapi FATAL: Error inserting tp_smapi (/lib/modules/3.0-ARCH/extra/tp_smapi.ko): No such device or address

dmesg | grep thinkpad_ec [ 1794.094260] thinkpad_ec: thinkpad_ec_read_row: failed requesting row: (0x01:0x00)->0xfffffff0 [ 1794.094275] thinkpad_ec: initial ec test failed

tp_smapi version 0.41 more info see forum page please (https://bbs.archlinux.org/viewtopic.php?pid=984015#p984015) Actually tp_smapi has never worked on any kernel release for EDGE

evgeni commented 13 years ago

Well, it can't find the EC, so no luck for you here at the moment. I have heard that the latest bios helps on some Edges, (like the Edge 01962DG). However, hdaps seems not to work on them either, only some battery functions. Could you also try https://gitorious.org/linux-test-utils/tp_charge (when gitorious is back online again) and tell me whether it works for you?

teleshoes commented 13 years ago

yea, lenovo hates us, and likes destroying batteries. they dont announce the EC on some newer devices {e.g. w520}, and on others, dont expose it at all. i believe youre out of luck with the EDGE.

the default behaviours are always the exact wrong ones, too.

evgeni, tp_charge appears to work with my w520, but wont of course allow me to switch discharging battery.

evgeni commented 13 years ago

@teleshoes tp_smapi 0.41 does work on the w520 too? i only had chance to test it on x220 and t420 :)

teleshoes commented 13 years ago

yep- the only thing 0.40 is missing to make w520 work is TP_DMI_MATCH("LENOVO", "ThinkPad"), because the EC isnt announced properly. {probably intentional, since they broke force_discharge and dont want to encourage backwards compatibility}

btw, im thinking of having my easy-install script install from your repo. that ok with you?

evgeni commented 13 years ago

bah, stupid keyboard shortcuts, didnt mean to close...

yeah, the dmi match is the very thing I did in .41 and you are ofcourse free to use the repo in your scripts, just don't cry if I break master in the future ;) (hint: use tags)

eduardowoj commented 12 years ago

@evgeni You said you tested it on T420. I'm trying to install tp_smapi 0.40 on my T420 running Fedora 17 but I'm without any success. I'm getting this error:

Error: could not insert module ./thinkpad_ec.ko: No such device

and after some dmesg output, in the end:

[ 3562.288485] thinkpad_ec: no ThinkPad embedded controller!

Can you help me with this?

evgeni commented 12 years ago

@eduardowoj I only very shortly tested it on the t420 as I do not own a T420 and am pretty sure that tp-smapi 0.40 will fail there as it does on X220 etc. Try 0.41 (or 280da64b126ab8f59695920b0b4f5432d6b24fb7), but do not expect much magic. It should load and some functions might work. That's it.

eduardowoj commented 12 years ago

@evgeni Oh, sorry. But thanks anyway, I'll try the 0.41 :-)

hit commented 11 years ago

Although it should load on ALL thinkpads after 280da64, it won't on Edge E325.

[root@arch ~]# dmidecode -t0 -t1 -t11
# dmidecode 2.12
SMBIOS 2.6 present.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
    Vendor: LENOVO
    Version: 8SET34WW (1.16 )
    Release Date: 10/31/2012
    Address: 0xE0000
    Runtime Size: 128 kB
    ROM Size: 2048 kB
    Characteristics:
        PCI is supported
        PNP is supported
        BIOS is upgradeable
        BIOS shadowing is allowed
        Boot from CD is supported
        Selectable boot is supported
        EDD is supported
        3.5"/720 kB floppy services are supported (int 13h)
        Print screen service is supported (int 5h)
        8042 keyboard services are supported (int 9h)
        Serial services are supported (int 14h)
        Printer services are supported (int 17h)
        CGA/mono video services are supported (int 10h)
        ACPI is supported
        USB legacy is supported
        BIOS boot specification is supported
        Targeted content distribution is supported
    BIOS Revision: 1.16
    Firmware Revision: 1.18

Handle 0x0001, DMI type 1, 27 bytes
System Information
    Manufacturer: LENOVO
    Product Name: 12973QG
    Version: ThinkPad     
    Serial Number: LRE08XM
    UUID: 31FC2A01-507B-11CB-A71E-A06660DEBEDF
    Wake-up Type: Power Switch
    SKU Number: Not Specified
    Family: Family Number Unknown

Handle 0x0027, DMI type 11, 5 bytes
OEM Strings
    String 1: OEM default string
evgeni commented 11 years ago

Do you have a log what it is complaining about? And, even if it would load, I bet it would not work on an E325, but let's start with a log.

hit commented 11 years ago
[root@arch ~]# modprobe -v tp_smapi
insmod /lib/modules/3.9.2-1-ARCH/extramodules/thinkpad_ec.ko.gz force_io=1 
modprobe: ERROR: could not insert 'tp_smapi': No such device or address
[root@arch ~]# dmesg | grep thinkpad_ec
[   6.488439] thinkpad_ec: thinkpad_ec_read_row: failed requesting row: (0x01:0x00)->0xfffffff0
[   6.489432] thinkpad_ec: initial ec test failed

Something more or is this enough?

evgeni commented 11 years ago

Enough to tell you your model is unsupported. Nothing you wanted to hear maybe, but the truth :)

hit commented 11 years ago

Excactly what I suspected... :|

Jinnmv commented 11 years ago

What about TP Edge E330?

sudo dmidecode -t0 -t1 -t11

 # dmidecode 2.11
SMBIOS 2.7 present.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
    Vendor: LENOVO
    Version: H3ET72WW(1.09)
    Release Date: 02/25/2013
    Address: 0xE0000
    Runtime Size: 128 kB
    ROM Size: 12288 kB
    Characteristics:
        PCI is supported
        PNP is supported
        BIOS is upgradeable
        BIOS shadowing is allowed
        Boot from CD is supported
        Selectable boot is supported
        EDD is supported
        3.5"/720 kB floppy services are supported (int 13h)
        Print screen service is supported (int 5h)
        8042 keyboard services are supported (int 9h)
        Serial services are supported (int 14h)
        Printer services are supported (int 17h)
        CGA/mono video services are supported (int 10h)
        ACPI is supported
        USB legacy is supported
        BIOS boot specification is supported
        Targeted content distribution is supported
        UEFI is supported
    BIOS Revision: 1.9

Handle 0x0001, DMI type 1, 27 bytes
System Information
    Manufacturer: LENOVO
    Product Name: 3354AG1
    Version: ThinkPad Edge E330
    Serial Number: R9V33EW
    UUID: 1E1E0881-51E0-11CB-AE2A-AB4CCD3BA267
    Wake-up Type: Power Switch
    SKU Number: LENOVO_MT_3354
    Family: ThinkPad Edge E330

UPDATE: According to http://www.thinkwiki.org/wiki/Tp_smapi: _If you are installing on a recent Thinkpad that has an Ivy Bridge processor (X230, T430, T530, etc.), tpsmapi will not work. Use thinkpad-acpi.

jal2 commented 10 years ago

Hi,

just for an update: I've tried tp_smapi 0.41 and the thinkpad_ec from there loads here without any errors on an Edge 13 (machine type 0221-A13, BIOS 1.08, Turion II Neo 1,5GHz). I haven't tried all the functionality, but the tlp tool was able to display the cycle counter of the battery.

auscompgeek commented 9 years ago

It's possible the included hdaps module is inducing a bug in the EC. My Edge 11 cooperates with tp_smapi until hdaps is loaded, at which point the EC is bricked until the laptop is powered off.