PH717 with linux keyboard animation does not stop

Options
krom
krom Member Posts: 1 New User
edited November 2023 in 2020 Archives
Hello there.
I'm using only linux on this laptop.
After some work, everything works fine with Ubuntu 19.10
- self kernel build needed for eth driver
- original Nvidia drivers are for dual display
- one hidden BIOS setting needed to disable RAID on mSATA disks   
Anyway that annoying keyboard animation can't be disabled in BIOS.  

Here is a short script to disable it:

=======================
#!/usr/bin/perl

use USB::LibUSB;

my $ctx = USB::LibUSB->init();
my $handle = $ctx->open_device_with_vid_pid(0x0d62,0x9a1a);

sub hsend {
 my @data=@_;
 my $i,$sum=0,$dp;
 
 for($i=0;$i<7;$i++){
  printf "%02x ",$data[$i];
  $sum+=$data[$i];  
 }
 $sum=(0xff - $sum) % 0x100;
 printf "sum=%02x\n",$sum;

 $data[7]=$sum;
 $dp=pack("c*",@data);
 print unpack('H*',$dp),"\n";;
 
 $handle->control_transfer_write(0x21,9,0x0300,0x0003,$dp, 1000);
}


print "off\n";
hsend(8,0,0,0,0,0,0);
============================

One could experiment with third value in hsend, there are more stupid animations.
A protocol for setting individual key light is still to be dicoverd.

PS: This is not the question, but maybe it could be usefull for for somebody.