Lines Matching refs:ec_command
84 def ec_command(self, cmd, **kwargs): member in EC_Common
124 response = self.ec_command('hello', **kwargs)
132 response = self.ec_command('autofanctrl')
143 response = self.ec_command('pwmgetfanrpm')
159 response = self.ec_command('pwmsetfanrpm %d' % rpm)
173 response = self.ec_command('tempsinfo all')
205 response = self.ec_command('temps %d' % idx)
218 response = self.ec_command('battery')
229 self.ec_command('lightbar on')
230 self.ec_command('lightbar init')
231 self.ec_command('lightbar 4 255 255 255')
232 response = self.ec_command('lightbar')
233 self.ec_command('lightbar off')
248 self.ec_command('kbpress %d %d %d' % (row, col, action_type))
331 self.ec_command("usbpd %s" % (self.index)))
365 for line in self.ec_command(cmd, ignore_status=True).split('\n'):
457 self.ec_command(cmd, ignore_status=True)
474 res = self.ec_command(cmd, ignore_status=True)
544 self._num_ports = len(self.ec_command("usbpdpower").split(b'\n'))