Lines Matching +full:intel +full:- +full:ui
3 # Use of this source code is governed by a BSD-style license that can be
35 Intel's processor naming conventions is a mine field of inconsistencies.
40 http://www.intel.com/content/www/us/en/processors/processor-numbers.html
48 if re.search(r'AMD.*[AE][269]-9[0-9][0-9][0-9].*RADEON.*R[245]', cpuinfo):
52 if re.search(r'Intel.*Atom.*[NZ][2-6]', cpuinfo):
54 if re.search(r'Intel.*Celeron.*N2[89][0-9][0-9]', cpuinfo):
56 if re.search(r'Intel.*Celeron.*N3[0-9][0-9][0-9]', cpuinfo):
58 if re.search(r'Intel.*Celeron.*[0-9]{3,4}', cpuinfo):
60 # https://ark.intel.com/products/series/94028/5th-Generation-Intel-Core-M-Processors
61 # https://ark.intel.com/products/series/94025/6th-Generation-Intel-Core-m-Processors
62 # https://ark.intel.com/products/series/95542/7th-Generation-Intel-Core-m-Processors
63 if re.search(r'Intel.*Core.*[mM][357]-[567][Y0-9][0-9][0-9]', cpuinfo):
65 if re.search(r'Intel.*Core.*i[357]-[234][0-9][0-9][0-9]', cpuinfo):
83 rapl_set = set(["Haswell", "Haswell-E", "Broadwell", "Skylake", "Goldmont",
101 return os.path.isdir('/sys/devices/virtual/powercap/intel-rapl/')
118 command = ('dbus-send --type=method_call --system '
119 '--dest=%s %s %s.%s %s') % (destination, path, interface,
152 psu = utils.system_output('cros_config /hardware-properties psu-type')
169 cmd = 'check_powerd_config --suspend_to_idle'
184 """Get the percent-based low-battery shutdown threshold.
187 Float, percent-based low-battery shutdown threshold. 0 if error.
191 command = 'check_powerd_config --low_battery_shutdown_percent'
222 error.CmdError: if ectool returns non-zero exit status.
252 error.CmdError: if ectool returns non-zero exit status.
264 Remove the following types of non-important keyvals.
265 - Minor checkpoints. (start with underscore)
266 - Individual cpu / gpu frequency buckets.
268 - Specific idle states from cpuidle/cpupkg.
269 (regex '.*cpu(idle|pkg)[ABD-Za-z0-9_\-]+C[^0].*')
272 keyvals: keyvals to remove non-important ones.
275 Dictionary, keyvals with non-important ones removed.
280 .*cpu(idle|pkg)[ABD-Za-z0-9_\-]+C[^0].*
290 return {'encoding': 'utf-8'}
300 """Class for control of built-in panel backlight.
327 # See http://www.chromium.org/chromium-os/testing/power-testing for more
349 force_battery_arg = "--force_battery " if force_battery else ""
350 cmd = ("backlight_tool --get_initial_brightness --lux=150 " +
375 error.TestFail: if 'cmd' returns non-zero exit status.
392 self._try_bl_cmd('--set_brightness=%d' % (level))
400 self._try_bl_cmd('--set_brightness_percent=%f' % (percent))
413 return int(self._try_bl_cmd('--get_brightness'))
421 return int(self._try_bl_cmd('--get_max_brightness'))
429 return float(self._try_bl_cmd('--get_brightness_percent'))
437 return float(self._try_bl_cmd('--linear_to_nonlinear=%f' % linear))
445 return float(self._try_bl_cmd('--nonlinear_to_linear=%f' % nonlinear))
477 cmd = 'check_powerd_config --keyboard_backlight'
483 cmd = ("backlight_tool --keyboard --get_initial_brightness "
484 "--lux=0 2>/dev/null")
498 cmd = 'backlight_tool --keyboard --get_brightness_percent'
517 cmd = 'backlight_tool --keyboard --set_brightness_percent=%f' % percent
526 cmd = 'backlight_tool --keyboard --set_brightness=%d' % level
531 """Class to simulate control of backlight via keyboard or Chrome UI.
558 set to false to simulate Chrome UI brightness down button.
593 set to false to simulate Chrome UI brightness down button.
639 utils.system('mount --bind %s %s' % (self._TEMPDIR, self._PREFDIR))
712 mask = (1 << (hi_bit - lo_bit + 1)) - 1
784 allowlisted: Boolean if USB device is allowlisted for USB auto-suspend
814 Initially that includes the policy around USB auto-suspend and our
828 auto-suspend
832 _alist_file: path to laptop-mode-tools (LMT) USB autosuspend
842 '/etc/laptop-mode/conf.d/board-specific/usb-autosuspend.conf'
844 # and should be updated when possible. ("WHITELIST" -> "ALLOWLIST") # nocheck
852 CrOS allowlist only internal USB devices to enter USB auto-suspend mode
853 via laptop-mode tools.
953 @returns: PSR residency in percent or -1 if not able to calculate.
956 return -1
958 tdelta = time.time() - self._init_time
959 cdelta = self._get_counter() - self._init_counter
988 _BASE_INIT_CMD = 'cros_config /detachable-base usb-path'
1007 # The string can be like: env USB_PATH="1-1.1"
1008 path = re.search(r'env USB_PATH=\"?([0-9.-]+)\"?',