topic title: Installing tp_smapi
Posts: 69
Neil
Joined: 16 Oct 2013
#1
Hi folks, I'm back...

After messing up my last install of AntiX, loosing the applications menu, I finally decided to wipe that drive and do a fresh install of AntiX 13.2. Went with the full install this time, again set to follow the Sid repo.

I had installed tp_smapi-dkms on my previous setup, and it was working great. But now, with this new 13.2 installation, I have once again installed using apt, then removed it, and re-installed using Synaptic, removed that install and used apt again, but the installation doesn't seem to take. There should be battery configuration files in sys/devices/platform/smapi/BATO/start_charge_thresh and stop_charge_thresh but there is not a smapi directory in the platform directory.

What am I doing wrong? It was so easy on the 13.1 base install.
Posts: 325
male
Joined: 04 Nov 2011
#2
antiX13.2 I have not been on a laptop ...
male@antiX1:~$ apt-cache policy tp-smapi-dkms
tp-smapi-dkms:
Installiert: 0.41-1
Installationskandidat: 0.41-1
Versionstabelle:
*** 0.41-1 0
500
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ftp.cz.debian.org/debian/"
linktext was:"http://ftp.cz.debian.org/debian/"
====================================
testing/main i386 Packages
100 /var/lib/dpkg/status

male@antiX1:~$ uname -r
3.9-8.dmz.1-liquorix-686
You've performed (all as root):

Code: Select all

apt-get update
apt-get install tp-smapi-dkms
m-a-a-i tp-smapi
modprobe -v tp_smapi
What if successful shows:

Code: Select all

insmod /lib/modules/KERNELVERSION/updates/dkms/thinkpad_ec.ko
insmod /lib/modules/KERNELVERSION/updates/dkms/tp_smapi.ko
Posts: 69
Neil
Joined: 16 Oct 2013
#3
Hi male,

Thanks for the bit of info I needed.
male wrote:You've performed (all as root):
Yes...with the exception of"sudo m-a-a-i tp-smapi" which replies"command not found", but the"modprobe -v tp_smapi" command was what I had been missing. Seems I had forgotten to add"-v" when I ran modprobe before, and was getting a"modprobe command not found" error.

Got it all sorted out and working well now.
Posts: 325
male
Joined: 04 Nov 2011
#4
Congratulations!

Maybe Suitable for conky .. __{{emoticon}}__

Code: Select all

...
TEXT
${color blue}${font gentium:size=15}${time %a %d %b %Y %k:%M}${font}
${color}antiX-M11-686 
${color}$sysname $kernel
${color}Uptime: $uptime
${color}Wlan: ${color white}${addr eth2}
${color}down: ${downspeed eth2}${alignr}up: ${upspeed eth2}
${color}LAN:   ${color white}${addr eth1}
${color}down: ${downspeed eth1}${alignr}up: ${upspeed eth1}
${color}ram:  ${color} $mem${color} /${color}$memmax ${color}- ${color}$memperc%
${color}CycleCount:  ${exec cat /sys/devices/platform/smapi/BAT0/cycle_count}
${color}Capacity:       ${exec cat /sys/devices/platform/smapi/BAT0/design_capacity}${alignr}${color red}${exec cat /sys/devices/platform/smapi/BAT0/remaining_capacity} mWh
${color}BAT0-temp:  ${exec cat /sys/devices/platform/smapi/BAT0/temperature} °C/1000
${color}FAN:   ${ibm_fan} rpm
${color}CPU:   ${acpitemp}C°
${color}Battery: ${alignr}${if_match ${battery_percent BAT0} >= 100}${color white}${battery_bar 10,60 BAT0}${else}${if_match ${battery_percent BAT0} < 99}${color green}${battery_bar 10,60 BAT0}${else}${if_match ${battery_percent BAT0} < 55}${color yellow}${battery_bar 10,60 BAT0}${else}${if_match ${battery_percent BAT0} <= 32}${color red}${battery_bar 10,60 BAT0}${endif}${endif}${endif}${endif}
${voffset -22}${alignr 12}${font :size=7}${color black}${battery_percent BAT0}%${font}
${voffset -5}${color}Root: ${color} ${fs_free /} ${color}= ${fs_free_perc /}%