Hallo, ich musste erst meine Nachricht wiederfinden, sie wurde ja in einen eigenen Thread ausgelagert.
Ja, der Titel simulation der oberen Ladeschwelle trifft es recht gut.
Das T42 wird hauptsächlich am Netz betrieben und deshalb möchte ich den Akku zwischen 40 und 60 % Ladung lassen, weil das auch der empfohlene Bereich ist in dem man den Akku lagert.
Das Netzteil hängt an einer schaltbaren Steckdosenleiste welche nur eingeschaltet wird, wenn der Laptop benutzt wird, deswegen ist es nicht schlimm wenn die Ladegrenze im ausgeschaltenen Zustand nicht funktioniert.
Ausbauen möchte ich den Akku aber auch nicht, weil man will vielleicht doch mal in einen anderen Raum gehen ohne dass der Laptop ausgeht,
Hier die Ausgabe von "sudo tlp-stat -s -c -b"
Code:
martin@T42:~$ sudo tlp-stat -s -c -b
[sudo] Passwort für martin:
--- TLP 0.8 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
SCHED_POWERSAVE_ON_AC=0
SCHED_POWERSAVE_ON_BAT=1
NMI_WATCHDOG=0
ENERGY_PERF_POLICY_ON_AC=performance
ENERGY_PERF_POLICY_ON_BAT=powersave
DISK_DEVICES="sda sdb"
DISK_APM_LEVEL_ON_AC="254 254"
DISK_APM_LEVEL_ON_BAT="128 128"
SATA_LINKPWR_ON_AC=max_performance
SATA_LINKPWR_ON_BAT=min_power
PCIE_ASPM_ON_AC=performance
PCIE_ASPM_ON_BAT=powersave
RADEON_POWER_PROFILE_ON_AC=high
RADEON_POWER_PROFILE_ON_BAT=low
RADEON_DPM_STATE_ON_AC=performance
RADEON_DPM_STATE_ON_BAT=battery
RADEON_DPM_PERF_LEVEL_ON_AC=auto
RADEON_DPM_PERF_LEVEL_ON_BAT=auto
WIFI_PWR_ON_AC=1
WIFI_PWR_ON_BAT=5
WOL_DISABLE=Y
SOUND_POWER_SAVE_ON_AC=0
SOUND_POWER_SAVE_ON_BAT=1
SOUND_POWER_SAVE_CONTROLLER=Y
BAY_POWEROFF_ON_BAT=0
BAY_DEVICE="sr0"
RUNTIME_PM_ON_AC=on
RUNTIME_PM_ON_BAT=auto
RUNTIME_PM_ALL=1
RUNTIME_PM_DRIVER_BLACKLIST="radeon nouveau"
USB_AUTOSUSPEND=1
USB_BLACKLIST_WWAN=1
RESTORE_DEVICE_STATE_ON_STARTUP=0
+++ System Info
System = IBM ThinkPad T42 2373W5N
BIOS = 1RETDHWW (3.13 )
Release = Ubuntu 16.04.2 LTS
Kernel = 4.10.0-27-generic #30~16.04.2-Ubuntu SMP Thu Jun 29 16:09:18 UTC 2017 i686
/proc/cmdline = BOOT_IMAGE=/boot/vmlinuz-4.10.0-27-generic root=UUID=9be7a15d-3f61-44c5-b2d5-3a016a20702a ro forcepae quiet splash vt.handoff=7
Init system = systemd
+++ System Status
TLP power save = enabled
power source = battery
+++ ThinkPad Extended Battery Functions
tp-smapi = active
tpacpi-bat = inactive (unsupported hardware)
+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/devices/platform/smapi/BAT0/manufacturer = SANYO
/sys/devices/platform/smapi/BAT0/model = IBM-92P1087
/sys/devices/platform/smapi/BAT0/manufacture_date = 2006-11-23
/sys/devices/platform/smapi/BAT0/first_use_date = 2007-09-05
/sys/devices/platform/smapi/BAT0/cycle_count = 184
/sys/devices/platform/smapi/BAT0/design_capacity = 51840 [mWh]
/sys/devices/platform/smapi/BAT0/last_full_capacity = 37850 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_capacity = 23520 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_percent = 63 [%]
/sys/devices/platform/smapi/BAT0/remaining_running_time_now = 85 [min]
/sys/devices/platform/smapi/BAT0/remaining_charging_time = not_charging [min]
/sys/devices/platform/smapi/BAT0/power_now = -15386 [mW]
/sys/devices/platform/smapi/BAT0/power_avg = -14592 [mW]
/sys/devices/platform/smapi/BAT0/state = discharging
/sys/devices/platform/smapi/BAT0/start_charge_thresh = (not available)
/sys/devices/platform/smapi/BAT0/stop_charge_thresh = (not available)
/sys/devices/platform/smapi/BAT0/force_discharge = (not available)
martin@T42:~$
Ich benutzt Lubuntu 16.04.02 LTS und habe dieses Paket nachinstalliert:
tp-smapi-dkms_0.42-1_all.deb
(so wie es im tp_smapi - Wiki seht)
Und ich konnte gestern mit
Code:
sudo sh -c "echo 75 > /sys/devices/platform/smapi/BAT0/start_charge_thresh"
die untere Ladeschwelle setzen und auch mit cat wieder auslesen.
Ebenso konnte ich "inhibit_charge_minutes" setzen und wieder auslesen.
Nun passpiert folgendes:
Code:
martin@T42:~$ cat /sys/devices/platform/smapi/BAT0/inhibit_charge_minutes
cat: /sys/devices/platform/smapi/BAT0/inhibit_charge_minutes: Kein passendes Gerät bzw. keine passende Adresse gefunden
- - - Beitrag zusammengeführt - - -
was vielleicht noch hilfreich sein könnte:
Code:
dmesg | grep thinkpad_ec
[ 292.919851] thinkpad_ec: loading out-of-tree module taints kernel.
[ 292.919937] thinkpad_ec: module verification failed: signature and/or required key missing - tainting kernel
[ 292.941044] thinkpad_ec: thinkpad_ec 0.42 loaded.
- - - Beitrag zusammengeführt - - -
Kann jemand die Ausgabe von:
Code:
grep '.*' /sys/devices/platform/smapi/BAT0/*
auf einem Thinkpad t42 unter (L)(X)Ubuntu posten ?
Code:
/sys/devices/platform/smapi/BAT0/barcoding:1ZA7K6BP121
/sys/devices/platform/smapi/BAT0/charging_max_current:2800
/sys/devices/platform/smapi/BAT0/charging_max_voltage:12600
/sys/devices/platform/smapi/BAT0/chemistry:LION
/sys/devices/platform/smapi/BAT0/current_avg:0
/sys/devices/platform/smapi/BAT0/current_now:0
/sys/devices/platform/smapi/BAT0/cycle_count:185
/sys/devices/platform/smapi/BAT0/design_capacity:51840
/sys/devices/platform/smapi/BAT0/design_voltage:10800
/sys/devices/platform/smapi/BAT0/dump:c0 80 01 00 80 00 00 00 00 00 00 00 00 00 00 00
/sys/devices/platform/smapi/BAT0/dump:c0 c0 00 80 cd 0b d9 2f 00 00 00 00 58 00 f0 0c
/sys/devices/platform/smapi/BAT0/dump:c0 c0 c9 0e ff ff ff ff ff ff c0 00 b9 00 -- 00
/sys/devices/platform/smapi/BAT0/dump:c0 c0 40 14 30 2a 31 00 77 35 59 05 -- -- -- 00
/sys/devices/platform/smapi/BAT0/dump:c0 c0 53 41 4e 59 4f 00 00 00 00 00 00 00 00 00
/sys/devices/platform/smapi/BAT0/dump:c0 c0 49 42 4d 2d 39 32 50 31 30 38 37 00 00 00
/sys/devices/platform/smapi/BAT0/dump:c0 c0 4c 49 4f 4e 00 17 44 01 00 00 00 00 00 00
/sys/devices/platform/smapi/BAT0/dump:c0 c0 31 5a 41 37 4b 36 42 50 31 32 31 00 00 00
/sys/devices/platform/smapi/BAT0/dump:c0 c0 25 37 -- -- -- -- -- -- -- -- -- -- -- 00
/sys/devices/platform/smapi/BAT0/dump:c0 c0 18 00 15 00 f0 0a 38 31 -- -- -- -- -- 00
/sys/devices/platform/smapi/BAT0/dump:c0 c0 42 17 44 01 00 00 f6 0f eb 0f f8 0f 00 00
/sys/devices/platform/smapi/BAT0/first_use_date:2007-09-05
grep: /sys/devices/platform/smapi/BAT0/force_discharge: Kein passendes Gerät bzw. keine passende Adresse gefunden
/sys/devices/platform/smapi/BAT0/group0_voltage:4088
/sys/devices/platform/smapi/BAT0/group1_voltage:4075
/sys/devices/platform/smapi/BAT0/group2_voltage:4086
/sys/devices/platform/smapi/BAT0/group3_voltage:0
grep: /sys/devices/platform/smapi/BAT0/inhibit_charge_minutes: Kein passendes Gerät bzw. keine passende Adresse gefunden
/sys/devices/platform/smapi/BAT0/installed:1
/sys/devices/platform/smapi/BAT0/last_full_capacity:37850
/sys/devices/platform/smapi/BAT0/manufacture_date:2006-11-23
/sys/devices/platform/smapi/BAT0/manufacturer:SANYO
/sys/devices/platform/smapi/BAT0/model:IBM-92P1087
/sys/devices/platform/smapi/BAT0/power_avg:0
/sys/devices/platform/smapi/BAT0/power_now:0
/sys/devices/platform/smapi/BAT0/remaining_capacity:33120
/sys/devices/platform/smapi/BAT0/remaining_charging_time:not_charging
/sys/devices/platform/smapi/BAT0/remaining_percent:88
/sys/devices/platform/smapi/BAT0/remaining_percent_error:21
/sys/devices/platform/smapi/BAT0/remaining_running_time:not_discharging
/sys/devices/platform/smapi/BAT0/remaining_running_time_now:not_discharging
/sys/devices/platform/smapi/BAT0/serial:1369
grep: /sys/devices/platform/smapi/BAT0/start_charge_thresh: Kein passendes Gerät bzw. keine passende Adresse gefunden
/sys/devices/platform/smapi/BAT0/state:idle
grep: /sys/devices/platform/smapi/BAT0/stop_charge_thresh: Kein passendes Gerät bzw. keine passende Adresse gefunden
/sys/devices/platform/smapi/BAT0/temperature:29000
/sys/devices/platform/smapi/BAT0/voltage:12249
Würde ich gerne vergleichen, Danke