Package: tp-smapi-dkms Version: 0.41-1 Severity: normal Hi,
On my new T420s thinkpad (Sandy Bridge), the start_charge_thresh and force_discharge don't work under wheezy. I don't use HDAPS module because my model have a SSD. For BAT0 and BAT1: /stop_charge_thresh : works (get/set value) /start_charge_thresh : can't get/set value /force_discharge : don’t work Start charge threshold : root@flav:~# echo 50 > /sys/devices/platform/smapi/BAT0/start_charge_thresh root@flav:~# echo 50 > /sys/devices/platform/smapi/BAT1/start_charge_thresh root@flav:~# cat /sys/devices/platform/smapi/BAT0/start_charge_thresh cat: /sys/devices/platform/smapi/BAT0/start_charge_thresh: Aucun périphérique ou adresse root@flav:~# cat /sys/devices/platform/smapi/BAT1/start_charge_thresh cat: /sys/devices/platform/smapi/BAT1/start_charge_thresh: Aucun périphérique ou adresse [ 475.847176] smapi smapi: smapi_request: SMAPI error: SMAPI function is not available (func=2116) [ 475.847187] smapi smapi: __get_real_thresh: cannot get start_thresh of bat=0: SMAPI function is not available [ 475.959073] smapi smapi: set_real_thresh: set stop to 50 for bat=0 [ 491.339427] smapi smapi: smapi_request: SMAPI error: SMAPI function is not available (func=2116) [ 491.339442] smapi smapi: __get_real_thresh: cannot get start_thresh of bat=1: SMAPI function is not available [ 491.451250] smapi smapi: set_real_thresh: set stop to 50 for bat=1 Force discharge : root@flav:~# echo 1 > /sys/devices/platform/smapi/BAT0/force_discharge bash: ech0: erreur d'écriture : Aucun périphérique ou adresse root@flav:~# echo 1 > /sys/devices/platform/smapi/BAT1/force_discharge bash: echo: erreur d'écriture : Aucun périphérique ou adresse root@flav:~# cat /sys/devices/platform/smapi/BAT0/force_discharge cat: /sys/devices/platform/smapi/BAT0/force_discharge: Aucun périphérique ou adresse root@flav:~# cat /sys/devices/platform/smapi/BAT1/force_discharge cat: /sys/devices/platform/smapi/BAT1/force_discharge: Aucun périphérique ou adresse [ 862.492872] smapi smapi: smapi_request: SMAPI error: SMAPI function is not available (func=2118) [ 862.492887] smapi smapi: set_force_discharge: get failed for bat=0: SMAPI function is not available [ 865.588943] smapi smapi: smapi_request: SMAPI error: SMAPI function is not available (func=2118) [ 865.588954] smapi smapi: set_force_discharge: get failed for bat=1: SMAPI function is not available With the Lenovo software (on W7), these functions are available and works. All the others functions works and the values are ok! Regards Flav -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (890, 'stable'), (790, 'oneiric-updates'), (790, 'oneiric-security'), (790, 'oneiric'), (90, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_CH.utf8, LC_CTYPE=fr_CH. utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages tp-smapi-dkms depends on: ii dkms 2.2.0.2-1 tp-smapi-dkms recommends no packages. tp-smapi-dkms suggests no packages. -- no debconf information When I set the thresholds under W7 and reboot under Debian with AC, I get these dumps : - With 50%/80% start/stop thresholds : root@flavianallaz-GE:~# cat /sys/devices/platform/smapi/BAT0/dump e0 80 01 03 e8 5a -- -- -- -- -- -- -- -- -- 00 e0 c0 04 80 d3 0b 7a 2f 00 00 00 00 5c 00 e9 0f e0 c0 60 11 ff ff ff ff ff ff c0 00 02 00 ec 0b e0 c0 e9 10 5c 2b 31 00 e6 3e fc 00 00 00 00 00 e0 c0 50 61 6e 61 73 6f 6e 69 63 00 30 36 00 00 e0 c0 34 32 54 34 38 34 37 00 00 00 00 00 00 00 e0 c0 4c 49 4f 4e 00 00 00 00 00 00 00 00 00 00 e0 c0 31 5a 4a 4b 35 31 37 36 30 36 43 00 00 00 e0 c0 4c 3f 21 00 80 00 02 00 18 00 25 42 a1 00 e0 c0 18 00 01 00 2c 01 38 31 00 00 00 00 00 00 e0 c0 42 25 00 a1 d3 0f d6 0f 00 00 d2 0f 07 60 root@flavianallaz-GE:~# cat /sys/devices/platform/smapi/BAT1/dump e0 80 01 03 e8 5a -- -- -- -- -- -- -- -- -- 00 e0 c0 00 e0 cf 0b 66 2f 00 00 00 00 56 00 58 0b e0 c0 24 0d ff ff ff ff ff ff c0 00 03 00 d4 0b e0 c0 3c 0c 30 2a 31 00 e1 3e c7 0a 00 00 00 00 e0 c0 53 4f 4e 59 00 30 36 00 00 00 00 00 00 00 e0 c0 35 31 4a 30 35 30 38 00 00 00 00 00 00 00 e0 c0 4c 69 50 00 00 00 00 00 00 00 00 00 00 00 e0 c0 31 5a 48 36 39 31 37 31 32 4e 37 00 00 00 e0 c0 4d 3f 01 00 00 00 00 00 00 00 00 00 00 00 e0 c0 18 00 00 00 6c 07 38 31 00 00 00 00 00 00 e0 c0 42 24 01 10 00 00 cd 0f cc 0f cd 0f 04 50 - With 55%/85% start/stop thresholds : root@flavianallaz-GE:~# cat /sys/devices/platform/smapi/BAT0/dump e0 80 01 03 e8 5a -- -- -- -- -- -- -- -- -- 00 e0 c0 04 80 d5 0b 7a 2f 00 00 00 00 5c 00 e9 0f e0 c0 60 11 ff ff ff ff ff ff c0 00 02 00 ed 0b e0 c0 e9 10 5c 2b 31 00 e6 3e fc 00 00 00 00 00 e0 c0 50 61 6e 61 73 6f 6e 69 63 00 30 36 00 00 e0 c0 34 32 54 34 38 34 37 00 00 00 00 00 00 00 e0 c0 4c 49 4f 4e 00 00 00 00 00 00 00 00 00 00 e0 c0 31 5a 4a 4b 35 31 37 36 30 36 43 00 00 00 e0 c0 4c 3f 21 00 80 00 02 00 18 00 25 42 a1 00 e0 c0 18 00 01 00 2c 01 38 31 00 00 00 00 00 00 e0 c0 42 25 00 a1 d3 0f d6 0f 00 00 d2 0f 07 60 root@flavianallaz- GE:~# cat /sys/devices/platform/smapi/BAT1/dump e0 80 01 03 e8 5a -- -- -- -- -- -- -- -- -- 00 e0 c0 00 e0 cf 0b 6d 2f 00 00 00 00 56 00 58 0b e0 c0 24 0d ff ff ff ff ff ff c0 00 03 00 d5 0b e0 c0 3c 0c 30 2a 31 00 e1 3e c7 0a 00 00 00 00 e0 c0 53 4f 4e 59 00 30 36 00 00 00 00 00 00 00 e0 c0 35 31 4a 30 35 30 38 00 00 00 00 00 00 00 e0 c0 4c 69 50 00 00 00 00 00 00 00 00 00 00 00 e0 c0 31 5a 48 36 39 31 37 31 32 4e 37 00 00 00 e0 c0 4d 3f 01 00 00 00 00 00 00 00 00 00 00 00 e0 c0 18 00 00 00 6c 07 38 31 00 00 00 00 00 00 e0 c0 42 24 01 10 00 00 cf 0f cf 0f cf 0f 04 50 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org