| 1937 | // Only on UEFI. Clap prints this by itself |
| 1938 | #[cfg(feature = "uefi")] |
| 1939 | fn print_help(updater: bool) { |
| 1940 | println!( |
| 1941 | r#"Swiss army knife for Framework laptops |
| 1942 | |
| 1943 | Usage: framework_tool [OPTIONS] |
| 1944 | |
| 1945 | Options: |
| 1946 | -v, --verbose... More output per occurrence |
| 1947 | -q, --quiet... Less output per occurrence |
| 1948 | --versions List current firmware versions |
| 1949 | --version Show tool version information (Add -vv for more detailed information) |
| 1950 | --features Show features support by the firmware |
| 1951 | --esrt Display the UEFI ESRT table |
| 1952 | --device <DEVICE> Device used to compare firmware version [possible values: bios, ec, pd0, pd1, rtm01, rtm23] |
| 1953 | --compare-version Version string used to match firmware version (use with --device) |
| 1954 | --power Show current power status (battery and AC) |
| 1955 | --thermal Print thermal information (Temperatures and Fan speed) |
| 1956 | --sensors Print sensor information (ALS, G-Sensor) |
| 1957 | --fansetduty Set fan duty cycle (0-100%) |
| 1958 | --fansetrpm Set fan RPM (limited by EC fan table max RPM) |
| 1959 | --autofanctrl [<FANID>]Turn on automatic fan speed control (optionally provide fan index) |
| 1960 | --pdports Show USB-C PD port state |
| 1961 | --pdports-chromebook Show PD port info (generic Chromium EC) |
| 1962 | --info Show info from SMBIOS (Only on UEFI) |
| 1963 | --meinfo [<DUMPFILE>] Show Intel ME information (from SMBIOS type 0xDB) |
| 1964 | --pd-info Show details about the PD controllers |
| 1965 | --pd-reset <PD_NUM> Reset a specific PD controller (for debugging only) |
| 1966 | --pd-disable <PD_NUM> Disable all ports on a specific PD controller (for debugging only) |
| 1967 | --pd-enable <PD_NUM> Enable all ports on a specific PD controller (for debugging only) |
| 1968 | --privacy Show privacy switch statuses (camera and microphone) |
| 1969 | --pd-bin <PD_BIN> Parse versions from PD firmware binary file |
| 1970 | --ec-bin <EC_BIN> Parse versions from EC firmware binary file |
| 1971 | --capsule <CAPSULE> Parse UEFI Capsule information from binary file |
| 1972 | --dump <DUMP> Dump extracted UX capsule bitmap image to a file |
| 1973 | --h2o-capsule <H2O_CAPSULE> Parse UEFI Capsule information from binary file |
| 1974 | --dump-ec-flash <DUMP_EC_FLASH> Dump EC flash contents |
| 1975 | --flash-ec <FLASH_EC> Flash EC with new firmware from file |
| 1976 | --flash-ro-ec <FLASH_EC> Flash EC with new firmware from file |
| 1977 | --flash-rw-ec <FLASH_EC> Flash EC with new firmware from file |
| 1978 | --reboot-ec Control EC RO/RW jump [possible values: reboot, jump-ro, jump-rw, cancel-jump, disable-jump] |
| 1979 | --ec-hib-delay [<SECONDS>] Get or set EC hibernate delay (S5 to G3) |
| 1980 | --uptimeinfo Show EC uptime information |
| 1981 | --s0ix-counter Show S0ix counter |
| 1982 | --intrusion Show status of intrusion switch |
| 1983 | --inputdeck Show status of the input deck |
| 1984 | --inputdeck-mode Set input deck power mode [possible values: auto, off, on] (Laptop 12, 13, 16) |
| 1985 | --expansion-bay Show status of the expansion bay (Laptop 16 only) |
| 1986 | --nvidia Show NVIDIA GPU information (Laptop 16 only) |
| 1987 | --charge-limit [<VAL>] Get or set battery charge limit (Percentage number as arg, e.g. '100') |
| 1988 | --charge-current-limit [<VAL>] Get or set battery current charge limit (Percentage number as arg, e.g. '100') |
| 1989 | --charge-rate-limit [<VAL>] Set max charge rate limit |
| 1990 | --get-gpio <GET_GPIO> Get GPIO value by name or all, if no name provided |
| 1991 | --fp-led-level [<VAL>] Get or set fingerprint LED brightness level [possible values: high, medium, low] |
| 1992 | --fp-brightness [<VAL>]Get or set fingerprint LED brightness percentage |
| 1993 | --kblight [<KBLIGHT>] Set keyboard backlight percentage or get, if no value provided |
| 1994 | --remap-key <ROW> <COL> <SCANCODE> |
| 1995 | Remap a key by changing the scancode |
| 1996 | --rgbkbd <START> <HEXCOLOR> [<HEXCOLOR> ...] |