jetson_clocksΒΆ

class jtop.core.jetson_clocks.JetsonClocks(controller)ΒΆ

Bases: object

jetson_clocks is a tool provided for all NVIDIA Jetson to maximize all performance, read reference for more information.

With this class you can control when activate, deactivate or enable on boot. You can use in a simple way like a jtop attribute jetson_clocks

with jtop() as jetson:
    if jetson.ok():
        # Change status jetson_clocks
        jetson.jetson_clocks = not jetson.jetson_clocks
        # Set on board boot
        jetson.jetson_clocks.boot = True
        # Read status jetson_clocks service
        print(jetson.jetson_clocks.status)
property bootΒΆ

Same of set_boot and get_boot you can quickly enable and disable jetson_clocks.

with jtop() as jetson:
    if jetson.ok():
        # Read jetson_clocks status
        print(jetson.jetson_clocks.boot)
        # Set a new state for jetson_clocks
        jetson.jetson_clocks.boot = True
Returns:

Status jetson_clocks on boot

Return type:

bool

clear_config()ΒΆ

This method clear the jetson_clocks configuration that use jtop.

get_boot()ΒΆ

Return if jetson_clocks start of board boot. This method is equivalent to:

with jtop() as jetson:
    if jetson.ok():
        # Read jetson_clocks status
        print(jetson.jetson_clocks.get_boot())
        # same of
        print(jetson.jetson_clocks.boot)
Returns:

Status jetson_clocks on boot

Return type:

bool

get_enable()ΒΆ

Return current jetson_clocks status. This method is equivalent to:

with jtop() as jetson:
    if jetson.ok():
        # Read jetson_clocks status
        print(jetson.jetson_clocks.get_enable())
        # same of
        print(jetson.jetson_clocks)
Returns:

Status jetson_clocks

Return type:

bool

get_status()ΒΆ

Return the jetson_clocks service status:

There are six options:

Status

Description

running

jetson_clocks is currently running

booting

jetson_clocks is booting. This status appears in the first 60s when your board is started

activating

jtop is running the service to activating jetson_clocks

deactivating

jtop is running the service to deactivating jetson_clocks

uncontrolled

jtop is not able to setup jetson_clocks. This message can appears if jetson_clocks was already running before jtop service started

inactive

jetson_clocks is inactive

Returns:

status jetson_clocks service

Return type:

str

is_config()ΒΆ

Return the jetson_clocks configuration status. If true jtop has stored a configuration file with all data

Returns:

configuration stored

Return type:

bool

set_boot(value)ΒΆ

Enable jetson_clocks on board boot. This method is equivalent to:

with jtop() as jetson:
    if jetson.ok():
        # Set a new state for jetson_clocks
        jetson.jetson_clocks.set_boot(True)
        # same of
        jetson.jetson_clocks.boot = True
Parameters:

value (bool) – Boolean status for enable and disable jetson_clocks on boot

Raises:

ValueError – if value is not a boolean

set_enable(enable)ΒΆ

Enable jetson_clocks on your board. This method is equivalent to:

with jtop() as jetson:
    if jetson.ok():
        # Set a new state for jetson_clocks
        jetson.jetson_clocks.set_enable(True)
        # same of
        jetson.jetson_clocks = True
Parameters:

enable (bool) – Boolean status for enable and disable

Raises:
property statusΒΆ

This property return the same output of get_status

Returns:

status jetson_clocks service

Return type:

str