From a28f879382c1a31558e694b69a8f409aa1ab2325 Mon Sep 17 00:00:00 2001 From: Rafael Senties Martinelli Date: Thu, 17 Oct 2024 08:50:29 +0200 Subject: [PATCH] Support to Dell G15 5530 #122 --- usr/share/AKBL/computers/DellG15_5530.ini | 203 ++++++++++++++++++ usr/share/doc/AKBL/BusData/Data/Dell G15 5530 | 122 +++++++++++ usr/share/doc/AKBL/BusData/Summary | 7 +- 3 files changed, 329 insertions(+), 3 deletions(-) create mode 100644 usr/share/AKBL/computers/DellG15_5530.ini create mode 100644 usr/share/doc/AKBL/BusData/Data/Dell G15 5530 diff --git a/usr/share/AKBL/computers/DellG15_5530.ini b/usr/share/AKBL/computers/DellG15_5530.ini new file mode 100644 index 0000000..9410d94 --- /dev/null +++ b/usr/share/AKBL/computers/DellG15_5530.ini @@ -0,0 +1,203 @@ +# +# Copyright (C) 2014-2024 the AKBL project. +# +# This configuration file is free ; you can redistribute it and/or modify +# it under the terms of the GNU General Public License 3 as published by +# the Free Software Foundation. +# +# This configuration file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# + + +#********************************************************************************************************************* +# # +# The configuration file allows to easily add and modify regions. The template for it is the following: # +# # +# # +# [REGION ] # +# ID= # +# DESCRIPTION= # +# BLOCK= # +# SUPPORTED_COMMANDS= # +# CAN_BLINK= # +# CAN_MORPH= # +# CAN_LIGHT # +# # +# -> The is only used for parsing the configuration file. Any unique name can be added. # +# # +# -> ID is the field used by the software to order the regions in the interface. The only two id's that should # +# not be changed are PB and PBE. New Id's can be created. # +# # +# -> I do not advice to modify the COMMON section. # +# # +# ~ Since AKBL is a community project any improvement should be reported ~ # +# to: https://github.com/rsm-gh/akbl/issues # +# # +#********************************************************************************************************************# + + +[COMMON] + +NAME = DellG15_5530 + +DEFAULT_MODE = fixed +DEFAULT_SPEED = 255 + +VENDOR_ID = 6268 +PRODUCT_ID = 1361 + +SUPPORTED_COMMANDS = 15 +DATA_LENGTH = 9 +START_BYTE = 2 +FILL_BYTE = 0 +STATE_BUSY = 17 +STATE_READY = 16 +STATE_UNKNOWN_COMMAND = 18 + +COMMAND_END_STORAGE = 0 +COMMAND_SET_MORPH_COLOR = 1 +COMMAND_SET_BLINK_COLOR = 2 +COMMAND_SET_COLOR = 3 +COMMAND_LOOP_BLOCK_END = 4 +COMMAND_TRANSMIT_EXECUTE = 5 +COMMAND_GET_STATUS = 6 +COMMAND_RESET = 7 +COMMAND_SAVE_NEXT = 8 +COMMAND_SAVE = 9 +COMMAND_BATTERY_STATE = 15 +COMMAND_SET_SPEED = 14 + +RESET_TOUCH_CONTROLS = 1 +RESET_SLEEP_LIGHTS_ON = 2 +RESET_ALL_LIGHTS_OFF = 3 +RESET_ALL_LIGHTS_ON = 4 + +BLOCK_LOAD_ON_BOOT = 1 +BLOCK_STANDBY = 2 +BLOCK_AC_POWER = 5 +BLOCK_CHARGING = 6 +BLOCK_BATTERY_SLEEPING = 7 +BLOCK_BATTERY_POWER = 8 +BLOCK_BATTERY_CRITICAL = 9 + +REGION_ALL_BUT_POWER = 1023999 + +[REGION RIGHT_KEYBOARD] +ID=RK +DESCRIPTION=Keyboard: Right +BLOCK=8 +SUPPORTED_COMMANDS=15 +CAN_BLINK=True +CAN_MORPH=True +CAN_LIGHT=True + +[REGION RIGHT_CENTER_KEYBOARD] +ID=RCK +DESCRIPTION=Keyboard: Right-Center +BLOCK=4 +SUPPORTED_COMMANDS=15 +CAN_BLINK=True +CAN_MORPH=True +CAN_LIGHT=True + +[REGION RIGHT_SPEAKER] +ID=RS +DESCRIPTION=Speaker: Right +BLOCK=64 +SUPPORTED_COMMANDS=15 +CAN_BLINK=True +CAN_MORPH=True +CAN_LIGHT=True + +[REGION LEFT_KEYBOARD] +ID=LK +DESCRIPTION=Keyboard: Left +BLOCK=1 +SUPPORTED_COMMANDS=15 +CAN_BLINK=True +CAN_MORPH=True +CAN_LIGHT=True + +[REGION LEFT_CENTER_KEYBOARD] +ID=LCK +DESCRIPTION=Keyboard: Left-Center +BLOCK=2 +SUPPORTED_COMMANDS=15 +CAN_BLINK=True +CAN_MORPH=True +CAN_LIGHT=True + +[REGION LEFT_SPEAKER] +ID=LS +DESCRIPTION=Speaker: Left +BLOCK=32 +SUPPORTED_COMMANDS=15 +CAN_BLINK=True +CAN_MORPH=True +CAN_LIGHT=True + +[REGION MEDIA_BAR] +ID=MB +DESCRIPTION=Media Bar +BLOCK=7168 +SUPPORTED_COMMANDS=15 +CAN_BLINK=True +CAN_MORPH=True +CAN_LIGHT=True + +[REGION TOUCH_PAD] +ID=TP +DESCRIPTION=Touch Pad +BLOCK=512 +SUPPORTED_COMMANDS=15 +CAN_BLINK=True +CAN_MORPH=True +CAN_LIGHT=True + +[REGION ALIENWARE_HEAD] +ID=AH +DESCRIPTION=Alienware Head +BLOCK=128 +SUPPORTED_COMMANDS=15 +CAN_BLINK=True +CAN_MORPH=True +CAN_LIGHT=True + +[REGION ALIENWARE_LOGO] +ID=AL +DESCRIPTION=Alienware Logo +BLOCK=256 +SUPPORTED_COMMANDS=15 +CAN_BLINK=True +CAN_MORPH=True +CAN_LIGHT=True + +[REGION POWER_BUTTON] +ID=PB +DESCRIPTION=Power Button +BLOCK=8192 +SUPPORTED_COMMANDS=2 +CAN_BLINK=False +CAN_MORPH=False +CAN_LIGHT=True + +#[REGION POWER_BUTTON_EYES] +# +# The power button eyes are deactivated because they also modify +# the lights of the left-center keyboard. They are kinda buggy. +# +#ID=PBE +#DESCRIPTION=Power Button Eyes +#BLOCK=16348 +#SUPPORTED_COMMANDS=1 +#CAN_BLINK=False +#CAN_MORPH=False +#CAN_LIGHT=True + diff --git a/usr/share/doc/AKBL/BusData/Data/Dell G15 5530 b/usr/share/doc/AKBL/BusData/Data/Dell G15 5530 new file mode 100644 index 0000000..a4b3297 --- /dev/null +++ b/usr/share/doc/AKBL/BusData/Data/Dell G15 5530 @@ -0,0 +1,122 @@ + +*********************************************************** +*********** Dell G15 5530 *************** +*********************************************************** +#By: https://github.com/hjcostabr76 +#Issue: https://github.com/rsm-gh/akbl/issues/122 + +Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub +Bus 001 Device 004: ID 258a:002a SINO WEALTH Gaming KB +Bus 001 Device 003: ID 187c:0551 Alienware Corporation AW-ELC +Bus 001 Device 002: ID 0bda:5522 Realtek Semiconductor Corp. Integrated_Webcam_HD +Bus 001 Device 005: ID 8087:0026 Intel Corp. AX201 Bluetooth +Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub + +Device: ID 187c:0551 Alienware Corporation AW-ELC +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 2.10 + bDeviceClass 0 + bDeviceSubClass 0 + bDeviceProtocol 0 + bMaxPacketSize0 64 + idVendor 0x187c Alienware Corporation + idProduct 0x0551 + bcdDevice 2.00 + iManufacturer 1 Alienware + iProduct 2 AW-ELC + iSerial 3 00.01 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x0029 + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xe0 + Self Powered + Remote Wakeup + MaxPower 0mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 2 + bInterfaceClass 3 Human Interface Device + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + HID Device Descriptor: + bLength 9 + bDescriptorType 33 + bcdHID 1.11 + bCountryCode 0 Not supported + bNumDescriptors 1 + bDescriptorType 34 Report + wDescriptorLength 25 + Report Descriptor: (length is 25) + Item(Global): Usage Page, data= [ 0x00 0xff ] 65280 + (null) + Item(Local ): Usage, data= [ 0x01 ] 1 + (null) + Item(Main ): Collection, data= [ 0x01 ] 1 + Application + Item(Global): Logical Minimum, data= [ 0x00 ] 0 + Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255 + Item(Global): Report Size, data= [ 0x08 ] 8 + Item(Global): Report Count, data= [ 0x21 ] 33 + Item(Local ): Usage, data= [ 0x01 ] 1 + (null) + Item(Main ): Input, data= [ 0x00 ] 0 + Data Array Absolute No_Wrap Linear + Preferred_State No_Null_Position Non_Volatile Bitfield + Item(Local ): Usage, data= [ 0x01 ] 1 + (null) + Item(Main ): Output, data= [ 0x00 ] 0 + Data Array Absolute No_Wrap Linear + Preferred_State No_Null_Position Non_Volatile Bitfield + Item(Main ): End Collection, data=none + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0021 1x 33 bytes + bInterval 10 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x01 EP 1 OUT + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0021 1x 33 bytes + bInterval 100 +Binary Object Store Descriptor: + bLength 5 + bDescriptorType 15 + wTotalLength 0x0021 + bNumDeviceCaps 1 + Platform Device Capability: + bLength 28 + bDescriptorType 16 + bDevCapabilityType 5 + bReserved 0 + PlatformCapabilityUUID {d8dd60df-4589-4cc7-9cd2-659d9e648a9f} + CapabilityData[0] 0x00 + CapabilityData[1] 0x00 + CapabilityData[2] 0x03 + CapabilityData[3] 0x06 + CapabilityData[4] 0x48 + CapabilityData[5] 0x00 + CapabilityData[6] 0x01 + CapabilityData[7] 0x00 +Device Status: 0x0001 + Self Powered diff --git a/usr/share/doc/AKBL/BusData/Summary b/usr/share/doc/AKBL/BusData/Summary index 0545417..5ae6fff 100644 --- a/usr/share/doc/AKBL/BusData/Summary +++ b/usr/share/doc/AKBL/BusData/Summary @@ -17,8 +17,6 @@ Alienware13 R1 6268 1319 Alienware13 R3 6268 1321 Alienware17 R? 6268 1304 -Dell G16 7630 6268 1361 - Aurora R7 16700 8467 ------------- D U P L I C A T E D I D'S ------------------------ @@ -56,4 +54,7 @@ Alienware X17 R2 6268 1360 Dell G5 5500 6268 1360 Dell G5 5590 6268 1360 Dell G7 7590 6268 1360 -Dell G15 5515 6268 1360 \ No newline at end of file +Dell G15 5515 6268 1360 + +Dell G15 5530 6268 1361 +Dell G16 7630 6268 1361 \ No newline at end of file