Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't set colour on keyboards backlight but can on case lights light #68

Open
wbrown766 opened this issue Mar 8, 2022 · 0 comments
Open

Comments

@wbrown766
Copy link

So got this laptop a while ago and tried to set this up when I first put Linux on it... TLDR: didn't have time to play properly like I just thought I hadn't installed it right or something stupid.

So the time has come.

Im currently test driving Linux Mint 20.3 on a TongFang GM7MP0P which isnt on the list of compatible devicesm but what the heck they can't be that diferent.

sudo dmidecode output

Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
	Vendor: American Megatrends Inc.
	Version: N.1.08
	Release Date: 10/30/2020
	Address: 0xF0000
	Runtime Size: 64 kB
	ROM Size: 16 MB
	Characteristics:
		PCI is supported
		BIOS is upgradeable
		BIOS shadowing is allowed
		Boot from CD is supported
		Selectable boot is supported
		BIOS ROM is socketed
		EDD is supported
		5.25"/1.2 MB floppy services are supported (int 13h)
		3.5"/720 kB floppy services are supported (int 13h)
		3.5"/2.88 MB floppy services are supported (int 13h)
		Print screen service is supported (int 5h)
		8042 keyboard services are supported (int 9h)
		Serial services are supported (int 14h)
		Printer services are supported (int 17h)
		ACPI is supported
		USB legacy is supported
		BIOS boot specification is supported
		Targeted content distribution is supported
		UEFI is supported
	BIOS Revision: 5.17
	Firmware Revision: 1.16
...
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
	Manufacturer: TongFang
	Product Name: GM7MP0P
	Version: Standard
	Serial Number: Standard
	Asset Tag: Standard
	Features:
		Board is a hosting board
		Board is replaceable
	Location In Chassis: Standard
	Chassis Handle: 0x0003
	Type: Motherboard
	Contained Object Handles: 0
...

sudo hwinfo --short output

keyboard:
                       Integrated Technology Express ITE Device(8291)
                       Integrated Technology Express ITE Device(8291)
  /dev/input/event4    AT Translated Set 2 keyboard

lsusb output

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 0bda:0316 Realtek Semiconductor Corp. USB3.0-CRW
Bus 001 Device 002: ID 048d:ce00 Integrated Technology Express, Inc. ITE Device(8291)
Bus 001 Device 003: ID 048d:6005 Integrated Technology Express, Inc. ITE Device(8291)
Bus 001 Device 004: ID 04f2:b68b Chicony Electronics Co., Ltd HD Webcam
Bus 001 Device 005: ID 8087:0026 Intel Corp. 

So I done a fresh pip3 install.

Tested functionality:

  • could set some styles
  • could no set any colours
  • brigthness works on the few styles that do work
  • speed works on the few styles that do work

I looked through the known issues but no joy.

However I did notice that sudo hwinfo --short outputs 2 devices and lsusb confirms this with 2 different IDs so its not a glitch in the matrix.

I changed this line in the main.py file

165 |        control = ControlCenter(vendor_id=0x048d, product_id=0x0xce00)

to

165  |        control = ControlCenter(vendor_id=0x048d, product_id=0x6005)

which after a reboot made my case lights light instead of the keyboards backlight.

WHAT.... I DIDN'T EVEN KNOW THIS THING HAD CASE LIGHTS.

Tested functionality:

  • could set some styles
  • could set colours
  • brigthness works on both colours and on the few styles that do work
  • speed works on the few styles that do work

After this I really don't know what to try as I can't see it being a problem with your current code, any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant