I wrote another little script which can help identify what changes in the EC over time - simply run the script and it monitors changes displaying them in red (hope this helps)
`
!/usr/bin/python/env python
sudo pip install pysensors
import os,time,subprocess,binascii
def getbgColorExact(r,g,b):
return '\033[{};2;{};{};{}m'.format(48, r, g, b)
def getfgColorExact(r,g,b):
return '\033[{};2;{};{};{}m'.format(38, r, g, b)
RESET = '\033[0m'
EC_IO_FILE="/sys/kernel/debug/ec/ec0/io"
if not os.path.exists(EC_IO_FILE):
subprocess.call(['modprobe','ec_sys','write_support=1'],stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
I wrote another little script which can help identify what changes in the EC over time - simply run the script and it monitors changes displaying them in red (hope this helps)
`
!/usr/bin/python/env python
sudo pip install pysensors
import os,time,subprocess,binascii
def getbgColorExact(r,g,b): return '\033[{};2;{};{};{}m'.format(48, r, g, b) def getfgColorExact(r,g,b): return '\033[{};2;{};{};{}m'.format(38, r, g, b) RESET = '\033[0m'
EC_IO_FILE="/sys/kernel/debug/ec/ec0/io" if not os.path.exists(EC_IO_FILE): subprocess.call(['modprobe','ec_sys','write_support=1'],stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
os.system('clear')
curvals = [None] 256 curchanged = [0] 256 curchanged2 = [1] *256
while True:
`