Skip to content

Commit

Permalink
Configuration for M15 R6 #124
Browse files Browse the repository at this point in the history
  • Loading branch information
rsm-gh committed Dec 10, 2024
1 parent b219440 commit 1c38d78
Show file tree
Hide file tree
Showing 3 changed files with 292 additions and 0 deletions.
176 changes: 176 additions & 0 deletions usr/share/AKBL/computers/AlienwareM15R6.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
#
# Copyright (C) 2014-2021 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 <UNIQUE_REGION_NAME>] #
# ID= <UNIQUE REGION ID> #
# DESCRIPTION= <DESCRIPTION> #
# BLOCK= <INTEGER> #
# SUPPORTED_COMMANDS= <INTEGER> #
# CAN_BLINK= <BOOLEAN> #
# CAN_MORPH= <BOOLEAN> #
# CAN_LIGHT <BOOLEAN> #
# #
# -> The <UNIQUE_REGION_NAME> 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 = AlienwareM15 R6

DEFAULT_MODE = fixed
DEFAULT_SPEED = 255

VENDOR_ID = 6268
PRODUCT_ID = 1360

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 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 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

115 changes: 115 additions & 0 deletions usr/share/doc/AKBL/BusData/Data/Alienware M15 R6
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@

***********************************************************
*********** Alienware M15 R6 ***************
***********************************************************
#By: https://github.com/samuelrrangel
#Issue: https://github.com/rsm-gh/akbl/issues/124

Device: ID 187c:0550 Alienware Corporation LED controller
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.10
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x187c Alienware Corporation
idProduct 0x0550 LED controller
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
1 change: 1 addition & 0 deletions usr/share/doc/AKBL/BusData/Summary
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Alienware M15 R2 6268 1360
Alienware M15 R3 6268 1360
Alienware M15 R4 6268 1360
Alienware M15 R5 6268 1360
Alienware M15 R6 6268 1360
Alienware M17 R2 6268 1360
Alienware15 R4 6268 1360
Alienware17 R5 6268 1360
Expand Down

0 comments on commit 1c38d78

Please sign in to comment.