/openbmc/webui-vue/docs/guide/components/buttons/ |
H A D | index.md | 4 the `primary` and `secondary` buttons. Buttons, like all Boostrap-vue components 6 [theme-color map keys](/guide/guidelines/colors). To create a button that looks 9 [Learn more about Bootstrap-vue buttons](https://bootstrap-vue.js.org/docs/components/button) 13 Add `btn-icon-only` class to the button and add `title` attribute to get helper 14 text on hover over the button. 18 ![Button examples](./button.png) 22 <b-button variant="primary">Primary</b-button> 23 <b-button variant="primary"> 24 <icon-add /> 26 </b-button> [all …]
|
/openbmc/linux/drivers/platform/x86/ |
H A D | wireless-hotkey.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Airplane mode button for AMD, HP & Xiaomi laptops 5 * Copyright (C) 2014-2017 Alex Hung <alex.hung@canonical.com> 39 struct wl_button *button = acpi_driver_data(device); in wireless_input_setup() local 42 button->input_dev = input_allocate_device(); in wireless_input_setup() 43 if (!button->input_dev) in wireless_input_setup() 44 return -ENOMEM; in wireless_input_setup() 46 snprintf(button->phys, sizeof(button->phys), "%s/input0", acpi_device_hid(device)); in wireless_input_setup() 48 button->input_dev->name = "Wireless hotkeys"; in wireless_input_setup() 49 button->input_dev->phys = button->phys; in wireless_input_setup() [all …]
|
H A D | adv_swbutton.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * adv_swbutton.c - Software Button Interface Driver. 24 /*------------------------------------------------------------------------- 26 *-------------------------------------------------------------------------- 31 struct adv_swbutton *button = dev_get_drvdata(&device->dev); in adv_swbutton_notify() local 35 input_report_key(button->input, KEY_PROG1, 0); in adv_swbutton_notify() 36 input_sync(button->input); in adv_swbutton_notify() 39 input_report_key(button->input, KEY_PROG1, 1); in adv_swbutton_notify() 40 input_sync(button->input); in adv_swbutton_notify() 43 dev_dbg(&device->dev, "Unsupported event [0x%x]\n", event); in adv_swbutton_notify() [all …]
|
H A D | xo15-ebook.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * OLPC XO-1.5 ebook switch driver 4 * (based on generic ACPI button driver) 19 #define MODULE_NAME "xo15-ebook" 29 MODULE_DESCRIPTION("OLPC XO-1.5 ebook switch driver"); 45 struct ebook_switch *button = acpi_driver_data(device); in ebook_send_state() local 49 status = acpi_evaluate_integer(device->handle, "EBK", NULL, &state); in ebook_send_state() 51 return -EIO; in ebook_send_state() 54 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state() 55 input_sync(button->input); in ebook_send_state() [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Chassis/ |
H A D | README.md | 5 Chassis Power Control service exposes D-Bus methods for chassis power operations 7 ### Power Button Interface 9 Power button interface `xyz.openbmc_project.Chassis.Buttons.Power` provides 14 - simPress - To emulate physical power button press. 15 - simLongPress - To emulate physical power button long press. 19 - Released - Power button released signal. 20 - Pressed - Power button pressed signal. 21 - PressedLong - Power button long pressed signal. 23 ### ID Button Interface 25 ID button interface `xyz.openbmc_project.Chassis.Buttons.ID` provides following [all …]
|
/openbmc/docs/designs/ |
H A D | multihost-phosphor-buttons.md | 1 # Multi-host front panel phosphor buttons interface 15 phosphor-buttons currently only support push type buttons.support for different 18 additional input types in phosphor button interfaces and event handling. 21 (power and reset).There may be cases where we need to create button interface 22 which monitors non gpio events and triggers button actions for example events 27 This feature is needed to support additional phosphor button interfaces 29 available in the front panel apart from existing power and reset button 34 The front panel of bmc has buttons like power button, reset button in general 38 +----------------------------------------------+ 42 | +--------------+ +--------------+ | [all …]
|
/openbmc/phosphor-webui/app/server-health/controllers/ |
H A D | syslog-controller.html | 2 <div id="sys-log"> 3 <section id="sys-log__logs"> 6 <div class="page-header"> 9 …<button type="button" class="dropdown__button" ng-click="showLogDropdown = !showLogDropdown"><stro… 10 <ul class="dropdown__list inline" ng-show="showLogDropdown"> 11 <li ng-repeat="recordType in recordTypeList"> 12 … <button type="button" ng-click="selectRecordType(recordType);">{{recordType}}</button> 16 …<a ng-href="data:text/json;charset=utf-8,{{sysLogs}}" class="inline btn-export float-right" downl… 17 …button class="inline clear-input float-right btn-secondary" ng-click="confirm = !confirm" ng-show=… 18 <div class="inline__confirm sys-log__confirm" ng-show="confirm"> [all …]
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | gpio_keys_polled.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2007-2010 Gabor Juhos <juhosg@openwrt.org> 26 #define DRV_NAME "gpio-keys-polled" 45 const struct gpio_keys_button *button, in gpio_keys_button_event() argument 49 unsigned int type = button->type ?: EV_KEY; in gpio_keys_button_event() 53 input_event(input, type, button->code, button->value); in gpio_keys_button_event() 54 __set_bit(button->code, bdev->rel_axis_seen); in gpio_keys_button_event() 58 input_event(input, type, button->code, button->value); in gpio_keys_button_event() 59 __set_bit(button->code, bdev->abs_axis_seen); in gpio_keys_button_event() 62 input_event(input, type, button->code, state); in gpio_keys_button_event() [all …]
|
H A D | gpio_keys.c | 1 // SPDX-License-Identifier: GPL-2.0-only 31 #include <dt-bindings/input/gpio-keys.h> 34 const struct gpio_keys_button *button; member 41 unsigned int release_delay; /* in msecs, for IRQ-only buttons */ 45 unsigned int software_debounce; /* in msecs, for GPIO-driven buttons */ 67 * There are 4 attributes under /sys/devices/platform/gpio-keys/ 68 * keys [ro] - bitmap of keys (EV_KEY) which can be 70 * switches [ro] - bitmap of switches (EV_SW) which can be 72 * disabled_keys [rw] - bitmap of keys currently disabled 73 * disabled_switches [rw] - bitmap of switches currently disabled [all …]
|
H A D | qt1050.c | 1 // SPDX-License-Identifier: GPL-2.0 229 err = regmap_read(ts->regmap, QT1050_CHIP_ID, &val); in qt1050_identify() 231 dev_err(&ts->client->dev, "Failed to read chip ID: %d\n", err); in qt1050_identify() 236 dev_err(&ts->client->dev, "ID %d not supported\n", val); in qt1050_identify() 241 err = regmap_read(ts->regmap, QT1050_FW_VERSION, &val); in qt1050_identify() 243 dev_err(&ts->client->dev, "could not read the firmware version\n"); in qt1050_identify() 247 dev_info(&ts->client->dev, "AT42QT1050 firmware version %1d.%1d\n", in qt1050_identify() 256 struct input_dev *input = ts->input; in qt1050_irq_threaded() 262 err = regmap_read(ts->regmap, QT1050_DET_STATUS, &val); in qt1050_irq_threaded() 264 dev_err(&ts->client->dev, "Fail to read detection status: %d\n", in qt1050_irq_threaded() [all …]
|
/openbmc/linux/drivers/input/misc/ |
H A D | cpcap-pwrbutton.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * CPCAP Power Button Input Driver 17 #include <linux/mfd/motorola-cpcap.h> 30 struct cpcap_power_button *button = _button; in powerbutton_irq() local 33 val = cpcap_sense_virq(button->regmap, irq); in powerbutton_irq() 35 dev_err(button->dev, "irq read failed: %d", val); in powerbutton_irq() 39 pm_wakeup_event(button->dev, 0); in powerbutton_irq() 40 input_report_key(button->idev, KEY_POWER, val); in powerbutton_irq() 41 input_sync(button->idev); in powerbutton_irq() 48 struct cpcap_power_button *button; in cpcap_power_button_probe() local [all …]
|
/openbmc/phosphor-webui/app/common/directives/ |
H A D | ldap-user-roles.html | 1 <!-- Add & Remove Role Groups Buttons --> 3 <button 4 type="button" 5 ng-class="{'disabled' : roleGroupType === '' }" 6 ng-disabled="roleGroupType === ''" 7 class="btn btn-tertiary" 8 ng-click="addGroupFn(); $parent.newGroup={}" 10 <icon aria-hidden="true" file="icon-plus.svg"></icon> 12 </button> 13 <button [all …]
|
H A D | log-filter.html | 1 <div id="event-filter"> 2 <div class="event-filter__content row column"> 3 <fieldset class="event__severity-filter"> 4 <legend class="filter-label">Filter by severity</legend> 5 <button class="btn" ng-click="toggleSeverityAll()" 6 ng-class="selectedSeverity.all ? 'btn-primary' : 'btn-secondary'">All 7 </button> 8 <button class="btn" ng-click="toggleSeverity('high')" 9 ng-class="selectedSeverity.high ? 'btn-primary' : 'btn-secondary'">High 10 </button> [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | button.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * button.c - ACPI Button Driver 9 #define pr_fmt(fmt) "ACPI: button: " fmt 22 #include <acpi/button.h> 24 #define ACPI_BUTTON_CLASS "button" 30 #define ACPI_BUTTON_DEVICE_NAME_POWER "Power Button" 34 #define ACPI_BUTTON_DEVICE_NAME_SLEEP "Sleep Button" 56 MODULE_DESCRIPTION("ACPI Button Driver"); 72 /* GP-electronic T701, _LID method points to a floating GPIO */ 160 .name = "button", [all …]
|
/openbmc/linux/drivers/platform/surface/ |
H A D | surfacepro3_button.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * power/home/volume button support for 16 #include <acpi/button.h> 44 MODULE_DESCRIPTION("Surface Pro3 Button Driver"); 48 * Power button, Home button, Volume buttons support is supposed to 76 struct surface_button *button = acpi_driver_data(device); in surface_button_notify() local 82 /* Power button press,release handle */ in surface_button_notify() 89 /* Home button press,release handle */ in surface_button_notify() 96 /* Volume up button press,release handle */ in surface_button_notify() 103 /* Volume down button press,release handle */ in surface_button_notify() [all …]
|
/openbmc/openbmc-test-automation/gui/data/ |
H A D | resource_variables.py | 19 xpath_submit_button = '//button[@type="submit"]' 20 xpath_button_profile_settings = '//a[@href="#/profile-settings"]' 22 xpath_button_user_action = "//button[@id='user-actions']" 23 xpath_button_logout = '//button[text()="Log out"]' 24 xpath_yes_button = "//button[text()='Yes']" 25 xpath_power_indicator = "//*[@id='power-indicator-bar']" 26 xpath_select_button_power_on = "//*[@id='power__power-on']" 27 xpath_cancel_button = "//button[contains(text(),'Cancel')]" 28 xpath_save_setting_button = "//button[contains(text(),'Save settings')]" 29 xpath_save_button = "//button[contains(text(),'Save')]" [all …]
|
/openbmc/phosphor-webui/app/configuration/controllers/ |
H A D | network-controller.html | 2 <div id="configuration-network"> 6 <form class="net-config__form" role="form" action=""> 7 <fieldset class="net-config__fieldset row column"> 8 <legend class="column small-12 page-header h2"> 11 <div class="net-config__fieldset-content"> 12 <div class="column small-12 large-3"> 13 <label for="net-config__mac">Hostname</label> 14 <input id="net-config__mac" type="text" ng-model="hostname" /> 16 <div class="column small-12 large-3"> 17 <label for="netinterface-select">Network interface</label> [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Chassis/Buttons/ |
H A D | Button.interface.yaml | 2 Button interface is a generic phosphor button interface which supports two 3 primary actions (pressed/releasd). When the button is pressed "Pressed" 4 signal is emitted and when button is released then "Released" 7 - name: simPress 9 Emulate button press. 11 - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand 12 - xyz.openbmc_project.Chassis.Common.Error.IOError 13 - name: simRelease 15 Emulate button release. 17 - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand [all …]
|
H A D | Power.interface.yaml | 2 Power button control service 4 - name: simPress 6 Emulate power button press. 8 - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand 9 - xyz.openbmc_project.Chassis.Common.Error.IOError 10 - name: simLongPress 12 Emulate power button long press. 14 - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand 15 - xyz.openbmc_project.Chassis.Common.Error.IOError 18 - name: Enabled [all …]
|
H A D | NMI.interface.yaml | 2 NMI button is a Diagnostic Interrupt(Front Panel NMI).Diagnostic interrupt 3 is a non-maskable interrupt or signal for generating diagnostic traces and 4 core dumps from the operating system. The diagnostic interrupt button is 6 button on the front panel and then trigger NMI signal. 8 - name: simPress 10 Emulate NMI button press. 12 - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand 13 - xyz.openbmc_project.Chassis.Common.Error.IOError 16 - name: Enabled 20 Enable/disable NMI button. false means NMI button is disabled true [all …]
|
/openbmc/openbmc-tools/dbus-vis/ |
H A D | index.html | 2 <!-- Caution: Electron does not allow inline scripts or styles! --> 5 <meta charset="UTF-8"> 6 <!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> 7 <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> 8 <meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'"> 27 <button id="btn_open_file">Open file</button> 33 <button id="btn_start_capture">Start Capture</button> 34 <button id="btn_stop_capture">Stop Capture</button> 77 …<br/><span>Welcome! Please <button id="btn_open_file2">Open file</button> to get timeline view/s.<… 88 dbus-pcap status goes here [all …]
|
/openbmc/phosphor-buttons/inc/ |
H A D | button_handler.hpp | 16 namespace button namespace 43 * it detects button presses. 45 * There are 3 buttons supported - Power, ID, and Reset. 46 * As not all systems may implement each button, this class will 47 * check for that button on D-Bus before listening for its signals. 62 * @param[in] bus - sdbusplus connection object 68 * @brief The handler for a power button press 72 * @param[in] msg - sdbusplus message from signal 77 * @brief The handler for an ID button press 81 * @param[in] msg - sdbusplus message from signal [all …]
|
/openbmc/phosphor-buttons/ |
H A D | README.md | 1 # phosphor-buttons 3 Phosphor-buttons has a collection of IO event handler interfaces for physical 6 It defines an individual dbus interface object for each physical button/switch 7 inputs such as power button, reset button etc. Each button interface monitors 8 its associated IO for event changes and emits signals that the button-handler 11 ## Button Behavior 13 ### Power Button 15 All events occur when the button is released. 22 - Short press: Do a host power off 23 - Long press, as determined by the 'long-press-time-ms' meson option: Do a [all …]
|
/openbmc/linux/drivers/soc/loongson/ |
H A D | loongson2_pm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Loongson-2 PM Support 100 struct input_dev *button; in loongson2_power_button_init() local 102 button = input_allocate_device(); in loongson2_power_button_init() 104 return -ENOMEM; in loongson2_power_button_init() 106 button->name = "Power Button"; in loongson2_power_button_init() 107 button->phys = "pm/button/input0"; in loongson2_power_button_init() 108 button->id.bustype = BUS_HOST; in loongson2_power_button_init() 109 button->dev.parent = NULL; in loongson2_power_button_init() 110 input_set_capability(button, EV_KEY, KEY_POWER); in loongson2_power_button_init() [all …]
|
/openbmc/linux/Documentation/input/ |
H A D | gamepad.rst | 1 --------------------------- 3 --------------------------- 11 having user-space deal with different button-mappings for each gamepad, this 25 | <===DP===> |SE| |ST| (W) -|- (E) | | 35 D-Pad Left Right Action Pad 43 - Action-Pad 44 4 buttons in diamonds-shape (on the right side). The buttons are 47 - D-Pad (Direction-pad) 49 - Menu-Pad 50 Different constellations, but most-times 2 buttons: SELECT - START [all …]
|