rsm-gh / akbl

Control the lights of Alienware computers under GNU/Linux systems.
GNU General Public License v3.0
128 stars 24 forks source link

swapped zones on m14xr2 #48

Closed samuaz closed 5 years ago

samuaz commented 5 years ago

System information

DEBUG from/usr/lib/python3.7/AKBL/Data/Theme/Theme.pyon methodload`: #############################################

Alienware-KBL configuration theme

#############################################

name=gamming speed=1


area=AH

mode=fixed left_color=#ffffff right_color=#0000ff


area=AL

mode=fixed left_color=#40ff00 right_color=#0000ff


area=LCK

mode=fixed left_color=#ffffff right_color=#0000ff


area=LK

mode=fixed left_color=#ffffff right_color=#0000ff


area=LS

mode=fixed left_color=#ffffff right_color=#0000ff


area=MB

mode=fixed left_color=#ffffff right_color=#0000ff


area=PB

mode=fixed left_color=#ffffff right_color=#0000ff


area=PBE

mode=fixed left_color=#ff8000 right_color=#0000ff


area=RCK

mode=morph left_color=#00ffff right_color=#00ffff


area=RK

mode=fixed left_color=#00ffff right_color=#40ff00


area=RS

mode=fixed left_color=#ffffff right_color=#0000ff


area=TP

mode=fixed left_color=#ffffff right_color=#0000ff

WARNING from /usr/lib/python3.7/AKBL/Daemon.py on method set_lights: samuel

DEBUG from /usr/lib/python3.7/AKBL/Engine/Driver.py on method write_constructor: packet=[ 2| 6| 0| 0| 0| 0| 0| 0| 0] legend=set_get_status

DEBUG from /usr/lib/python3.7/AKBL/Engine/Driver.py on method read_device: msg=array('B', [17, 0, 0, 0, 0, 0, 0, 0])

DEBUG from /usr/lib/python3.7/AKBL/Engine/Driver.py on method write_constructor: packet=[ 2| 6| 0| 0| 0| 0| 0| 0| 0] legend=set_get_status packet=[ 2| 7| 4| 0| 0| 0| 0| 0| 0] legend=reset, command=RESET_ALL_LIGHTS_ON

DEBUG from /usr/lib/python3.7/AKBL/Engine/Driver.py on method write_constructor: packet=[ 2| 6| 0| 0| 0| 0| 0| 0| 0] legend=set_get_status

DEBUG from /usr/lib/python3.7/AKBL/Engine/Driver.py on method read_device: msg=array('B', [16, 0, 0, 0, 0, 0, 0, 0])

DEBUG from /usr/lib/python3.7/AKBL/Engine/Driver.py on method write_constructor: packet=[ 2| 6| 0| 0| 0| 0| 0| 0| 0] legend=set_get_status

DEBUG from /usr/lib/python3.7/AKBL/Engine/Driver.py on method read_device: msg=array('B', [16, 0, 0, 0, 0, 0, 0, 0])

DEBUG from /usr/lib/python3.7/AKBL/Engine/Driver.py on method write_constructor: packet=[ 2| 6| 0| 0| 0| 0| 0| 0| 0] legend=set_get_status

DEBUG from /usr/lib/python3.7/AKBL/Engine/Driver.py on method read_device: msg=array('B', [16, 0, 0, 0, 0, 0, 0, 0])

DEBUG from /usr/lib/python3.7/AKBL/Engine/Driver.py on method write_constructor: packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 14| 0| 1| 0| 0| 0| 0| 0] legend=set_speed, speed=1

packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 3| 1| 0| 0|128|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=128 packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 3| 2| 0| 1| 0| 79| 0| 0] legend=add_light_zone: left_color=#40ff00, hex_id=256 packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 3| 3| 0| 0| 2|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=2 packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 3| 4| 0| 0| 1|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=1 packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 3| 5| 0| 0| 32|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=32 packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 3| 6| 0| 28| 0|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=7168 packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 3| 7| 0| 32| 0|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=8192 packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 3| 8| 0| 63|220|248| 0| 0] legend=add_light_zone: left_color=#ff8000, hex_id=16348 packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=save_block, block=1 packet=[ 2| 1| 9| 0| 0| 4| 15|240|255] legend=add_morph_zone: left_color=#00ffff, right_color=#00ffff, hex_id=4 packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=save_block, block=1 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 3| 10| 0| 0| 8| 15|240| 0] legend=add_light_zone: left_color=#00ffff, hex_id=8 packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 3| 11| 0| 0| 64|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=64 packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 3| 12| 0| 2| 0|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=512 packet=[ 2| 8| 1| 0| 0| 0| 0| 0| 0] legend=__save_block, block=1 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 9| 0| 0| 0| 0| 0| 0| 0] legend=__save_block packet=[ 2| 5| 0| 0| 0| 0| 0| 0| 0] legend=end_block_line

packet=[ 2| 14| 0| 1| 0| 0| 0| 0| 0] legend=set_speed, speed=1

packet=[ 2| 3| 1| 0| 0|128|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=128 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 3| 2| 0| 1| 0| 79| 0| 0] legend=add_light_zone: left_color=#40ff00, hex_id=256 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 3| 3| 0| 0| 2|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=2 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 3| 4| 0| 0| 1|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=1 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 3| 5| 0| 0| 32|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=32 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 3| 6| 0| 28| 0|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=7168 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 3| 7| 0| 32| 0|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=8192 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 3| 8| 0| 63|220|248| 0| 0] legend=add_light_zone: left_color=#ff8000, hex_id=16348 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 1| 9| 0| 0| 4| 15|240|255] legend=add_morph_zone: left_color=#00ffff, right_color=#00ffff, hex_id=4 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 3| 10| 0| 0| 8| 15|240| 0] legend=add_light_zone: left_color=#00ffff, hex_id=8 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 3| 11| 0| 0| 64|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=64 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 3| 12| 0| 2| 0|255|240| 0] legend=add_light_zone: left_color=#ffffff, hex_id=512 packet=[ 2| 4| 0| 0| 0| 0| 0| 0| 0] legend=end_colors_line

packet=[ 2| 5| 0| 0| 0| 0| 0| 0| 0] legend=end_block_line

`

Bug description

some zones are like bad mapping for example the color of the power button eyes are apply to the alienware logo.

other settings like keep media lights on are not working

also there is a some problem with the right keyboard zone, if i set the color of the power button eyes, also apply a second color to the keyboard if you have red in the right keyboard zone and apply yellow to the powerbutton eyes... you get a orange right keyboard zone.

rsm-gh commented 5 years ago

Hi @samuaz thanks for reporting this.

Before taking a deep look to the problem, have you downloaded and installed the last version of akbl and tested your problems?

I noticed that you still using alienware-kbl as command and I made a ton of updates since then.

-rsm

samuaz commented 5 years ago

yes, im do a git clone of stable branch and after that sudo ./setup

130 samuel@m14xr2 ~/alienware/akbl (git)-[stable] % akbl --version :( 2018.11.01

thats the output of version

samuaz commented 5 years ago

block testing results:

zone 1 = left keyboard zone 2 = left center keyboard zone 4 = right center keyboard zone 8 = right keyboard zone 16 = nothing zone 32 = left speaker zone 64 = right speaker zone 128 = nothing zone 256 = alienware text logo zone 512 = touchpad (and also turn on alienware power button) zone 1024 = power button only (but not set the color of blocktesting only turn on/off) zone 2048 = turn off and turn on power button zone 4096 = same as 2048 zone 8192 = make power button more white color zone 16384 = turn on power button and restore color but not apply the block testing color zone 16383 to 524288 turn on power button and restore color but not apply the block testing color zone 1048476 = turn on keyboard all right keyboard zone (center and right) + touchpad + alienware text logo + media keys zone 2097152 = nothing zone 4194304 = nothing

samuaz commented 5 years ago

i remember to use this program like 2 years ago and works nice and good, its posible a hardware issue? maybe i should install windows again to test?

rsm-gh commented 5 years ago

@hi samuaz thanks for your feedback.

Concerning the blocks, I noticed that they were all good in the configuration file. The only difference that I saw is that you probably did not noticed that the block 128 is for the alienware logo that it is behind the computer.

That said, I see that most of your problems involve the power button/power button eyes. That button is kinda problematic actually the whole power button have never really worked (neither on pyalien-fx).

If the power button eyes are being so problematic, I'll deactivate it so the rest works fine. You can see the configuration file here.

Concerning your windows questions, I don't really think so. It may be the fact that the software has evolved a lot and maybe it had an impact, or just the fact that the power button eyes are really doing something wrong.

Currently I'm working in big improvements concerning the code architecture & the documentation so more people can easily contribute.

Maybe it will create some bugs, but after that I'm pretty sure that me or the community will be able to hack and reverse engineer the last parts of the software that we need for a 100% stable and working.

If you have other comments/problems don't hesitate to post them.

-rsm

rsm-gh commented 5 years ago

@samuaz when I was going to deactivate the power button eyes, I realized that the computer name was wrong and it was a M14XR1. Its possible that it was causing the bug and that you were using the M14XR1 instead.

Can you give me a feedback with the new version? And in case you still have problems, it would be nice if you can remove the block power button eyes from the configuration file and give me a feedback, like that I'll be sure of the modification for the other users.

-rsm

rsm-gh commented 5 years ago

Also verify under GUI > Help > Computer Data that you're using the M14XR2 and not the R1~

samuaz commented 5 years ago

i just clone the lasted version and yes, akbl is saying that my machine is r1 instead of r2: so akbl is detecting r1 but my machine is r2

Dected As: M14XR1 Vendor ID: 6268 Product ID: 1313

DEVICE ID 187c:0521 on Bus 002 Address 004 ================= bLength : 0x12 (18 bytes) bDescriptorType : 0x1 Device bcdUSB : 0x110 USB 1.1 bDeviceClass : 0x0 Specified at interface bDeviceSubClass : 0x0 bDeviceProtocol : 0x0 bMaxPacketSize0 : 0x40 (64 bytes) idVendor : 0x187c idProduct : 0x0521 bcdDevice : 0x0 Device 0.0 iManufacturer : 0x1 Alienware iProduct : 0x2 M14x iSerialNumber : 0x3 1.0.8 bNumConfigurations : 0x1 CONFIGURATION 1: 64 mA =================================== bLength : 0x9 (9 bytes) bDescriptorType : 0x2 Configuration wTotalLength : 0x29 (41 bytes) bNumInterfaces : 0x1 bConfigurationValue : 0x1 iConfiguration : 0x0 bmAttributes : 0x80 Bus Powered bMaxPower : 0x20 (64 mA) INTERFACE 0: Human Interface Device ==================== bLength : 0x9 (9 bytes) bDescriptorType : 0x4 Interface bInterfaceNumber : 0x0 bAlternateSetting : 0x0 bNumEndpoints : 0x1 bInterfaceClass : 0x3 Human Interface Device bInterfaceSubClass : 0x0 bInterfaceProtocol : 0x0 iInterface : 0x0 ENDPOINT 0x81: Interrupt IN ========================== bLength : 0x7 (7 bytes) bDescriptorType : 0x5 Endpoint bEndpointAddress : 0x81 IN bmAttributes : 0x3 Interrupt wMaxPacketSize : 0xa (10 bytes) bInterval : 0xa

samuaz commented 5 years ago

i try with java program called alienfx-lite and its working good. its detect my machine as m14xr2

rsm-gh commented 5 years ago

@samuaz the problem is happening because your device data do not has the word "Gaming" which was the difference between the R1 and the R2. I ignore why you don't have it any more but it is causing the problem.

As a short fix until I develop a "computer model selector feature", after installing akbl, you can delete the M14XR1 profile so the only one available for you be the R2.

The profiles are located at /usr/share/AKBL/computers/.

Let me know if that solved your problems, -rsm

samuelkeenvil commented 5 years ago

i try that but if i delete the m14xr1.ini akbl application and service fails to start.

mmm i do is change my bios to only uefi and reinstall archlabs with systemd-boot maybe that make the problem with the device data

i do:

root@m14xr2 /home/samuel # dmidecode | grep -A3 '^System Information' System Information Manufacturer: Alienware Product Name: M14xR2 Version: A13

where they should have the gaming word?

rsm-gh commented 5 years ago

I just removed the M14XR2 hack. Deleting the M14Xr1 profile should now work!

rsm-gh commented 5 years ago

I'm going to close this since I think that the pull #55 will allow to correct the version for the M14XR2, and it will probably fix this.

In case the problem still there, a new bug can be created to modify the M14XR2 file.