paul-ridgway / aero-keyboard

Protocols and linux scripts for controlling the Gigabyte Aero 15 Keyboard backlight
38 stars 6 forks source link

Bus 001 Device 010: ID 1044:7a3b Chu Yuen Enterprise Co., Ltd USB-HID Keyboard support #3

Closed renepardon closed 3 years ago

renepardon commented 3 years ago

HI, I tried your toolset but can't get it working I changed the product_id to 0x7a3b because this is the product for my Gigabyte Aero 15 keyboard.

But when trying to execute for example orange.rb I receive this nice message:

/.rvm/gems/ruby-2.6.0/gems/hidapi-0.1.9/lib/hidapi/engine.rb:137:in `get_device_by_path': Path should be in BUS:ADDRESS:INTERFACE format with each value being in hexadecimal (ie - 0001:01A:00), not 1:a:3. (HIDAPI::DevicePathInvalid)

Do you have an idea how to solve this? Usually I could just hit fn+space to make work for keyboard backlight but somehow this stopped working so I tried your code.

paul-ridgway commented 3 years ago

Can you provide the output of lspci and lsusb. Instinctively I suspect if the hardware shortcut (fn+space) has stopped working then it might be a fault with the Keyboard itself?

renepardon commented 3 years ago

Hi @paul-ridgway ok, here we go:

lsusb

``` Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 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 003: ID 08bb:2912 Texas Instruments PCM2912A Audio Codec Bus 003 Device 002: ID 1bcf:28c4 Sunplus Innovation Technology Inc. Depstech webcam MIC Bus 003 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 001 Device 008: ID 13d3:56a2 IMC Networks USB2.0 HD UVC WebCam Bus 001 Device 007: ID 04f3:0c11 Elan Microelectronics Corp. ELAN:Fingerprint Bus 001 Device 104: ID 0da4:0008 Polar Electro Oy Loop Bus 001 Device 105: ID 046d:c077 Logitech, Inc. M105 Optical Mouse Bus 001 Device 010: ID 1044:7a3b Chu Yuen Enterprise Co., Ltd USB-HID Keyboard Bus 001 Device 009: ID 8087:0029 Intel Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub ```

lspci

``` 00:00.0 Host bridge: Intel Corporation Device 9b44 (rev 02) 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 02) 00:02.0 VGA compatible controller: Intel Corporation UHD Graphics (rev 05) 00:12.0 Signal processing controller: Intel Corporation Comet Lake PCH Thermal Controller 00:14.0 USB controller: Intel Corporation Comet Lake USB 3.1 xHCI Host Controller 00:14.2 RAM memory: Intel Corporation Comet Lake PCH Shared SRAM 00:16.0 Communication controller: Intel Corporation Comet Lake HECI Controller 00:1b.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #17 (rev f0) 00:1b.2 PCI bridge: Intel Corporation Device 06c2 (rev f0) 00:1b.3 PCI bridge: Intel Corporation Device 06c3 (rev f0) 00:1b.4 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #21 (rev f0) 00:1d.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #9 (rev f0) 00:1d.4 PCI bridge: Intel Corporation Device 06b4 (rev f0) 00:1f.0 ISA bridge: Intel Corporation Comet Lake LPC Controller 00:1f.3 Audio device: Intel Corporation Comet Lake PCH cAVS 00:1f.4 SMBus: Intel Corporation Comet Lake PCH SMBus Controller 00:1f.5 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH SPI Controller 01:00.0 VGA compatible controller: NVIDIA Corporation Device 249c (rev a1) 01:00.1 Audio device: NVIDIA Corporation Device 228b (rev a1) 02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01) 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05) 04:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a) 05:00.0 Non-Volatile memory controller: Phison Electronics Corporation E12 NVMe Controller (rev 01) 06:00.0 Non-Volatile memory controller: Phison Electronics Corporation E12 NVMe Controller (rev 01) 07:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 2C 2018] (rev 06) 08:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 2C 2018] (rev 06) 08:01.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 2C 2018] (rev 06) 08:02.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 2C 2018] (rev 06) 09:00.0 System peripheral: Intel Corporation JHL7540 Thunderbolt 3 NHI [Titan Ridge 2C 2018] (rev 06) 0a:00.0 PCI bridge: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013] 0b:00.0 PCI bridge: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013] 0b:01.0 PCI bridge: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013] 0b:04.0 PCI bridge: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013] 0b:05.0 PCI bridge: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013] 0c:00.0 USB controller: Fresco Logic FL1100 USB 3.0 Host Controller (rev 10) 0d:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03) 3f:00.0 USB controller: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 2C 2018] (rev 06) ```
paul-ridgway commented 3 years ago

Hmm, it all looks sensible and 1044:7a3b looks like a keyboard. I wonder if its the ruby version or something like that since this code is ~2 years old.

Do you still have a windows install / did you try that?

renepardon commented 3 years ago

hi @paul-ridgway sorry, too many notifications, haven't seen your answer.

Yeah, I have a dual boot setup but never use windoof :) I'll restart later and check

renepardon commented 3 years ago

@paul-ridgway ok, on windows i saw the brightness was off - was a combination of a few things. With fn+space i can change brightness of keyboard backlight and with fn+right or fn+left i can switch until the backlight turns on/off/changes. No matter if Windows or Ubuntu. So no need for your source code :)

Thank you so far