Summary: | DualShock 4 related fixes | ||
---|---|---|---|
Product: | upower | Reporter: | Bastien Nocera <bugzilla> |
Component: | general | Assignee: | Richard Hughes <richard> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | bugzilla |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
linux: Add test for wireless joypad connected via USB
lib: Add UP_DEVICE_KIND_GAMING_INPUT for gaming devices linux: Detect joysticks as gaming input devices linux: Move function to prepare for new use linux: Grab model name from device if unavailable from battery linux: Grab model name from device if unavailable from battery |
Description
Bastien Nocera
2017-08-31 14:20:58 UTC
Created attachment 133904 [details] [review] linux: Add test for wireless joypad connected via USB Mostly for the type of device rather than the connections. Created attachment 133905 [details] [review] lib: Add UP_DEVICE_KIND_GAMING_INPUT for gaming devices Joypads, joysticks, dance mats, paddles, Wiimotes, steering wheels, tractor cabin simulators, pedals, yokes, breathing controllers, and, hmm, etc. Created attachment 133906 [details] [review] linux: Detect joysticks as gaming input devices Created attachment 133907 [details] [review] linux: Move function to prepare for new use Move up_device_supply_get_sibling_with_subsystem() so we can use it in up_device_supply_refresh_device() Created attachment 133908 [details] [review] linux: Grab model name from device if unavailable from battery The "model_name" and "serial_number" information that upower exports for batteries that supply a laptop or UPS are supposed to be that of the battery. But that's very unlikely to happen for devices, such as wireless mice, keyboards or joysticks. Look for a sibling input device if a device battery does not contain model information so as to avoid generic names in UIs. Created attachment 133959 [details] [review] linux: Grab model name from device if unavailable from battery The "model_name" and "serial_number" information that upower exports for batteries that supply a laptop or UPS are supposed to be that of the battery. But that's very unlikely to happen for devices, such as wireless mice, keyboards or joysticks. Look for a sibling input device if a device battery does not contain model information so as to avoid generic names in UIs. Attachment 133904 [details] pushed as 1dc2b96 - linux: Add test for wireless joypad connected via USB Attachment 133905 [details] pushed as 5ccd4fe - lib: Add UP_DEVICE_KIND_GAMING_INPUT for gaming devices Attachment 133906 [details] pushed as 320cc87 - linux: Detect joysticks as gaming input devices Attachment 133907 [details] pushed as 623a6bf - linux: Move function to prepare for new use Attachment 133959 [details] pushed as 2ef05c4 - linux: Grab model name from device if unavailable from battery |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.