Logitech K810+K380: Difference between revisions

From Wiki
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Dualboot Bluetooth Pairing =
https://unix.stackexchange.com/questions/255509/bluetooth-pairing-on-dual-boot-of-windows-linux-mint-ubuntu-stop-having-to-p
= K810 =
== Factory reset ==
* “Escape”, “o”,“Escape”, “o”,“Escape”, “b”
== Pairing under Linux ==
== Pairing under Linux ==
* Terminal 1
* Terminal 1
Line 22: Line 29:
* http://blog.chschmid.com/?p=1537
* http://blog.chschmid.com/?p=1537
* bt-device -l
* bt-device -l
== Auto enable function keys ==
* build according to  http://blog.chschmid.com/?p=1537
* /etc/scripts/K810/K810.sh
<blockquote>
<pre>
#!/bin/sh
if [ "$ACTION" == "add" ];
then
    # configure k810 ($DEVPATH) at $DEVNAME.
    /etc/scripts/K810/k810_conf -d $DEVNAME -f on
fi
</pre>
</blockquote>
* /etc/udev/rules.d/00-k810.rules
<blockquote>
<pre>
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{address}=="00:1F:20:75:B8:37", RUN+="/etc/scripts/K810/K810.sh %p"
</pre>
</blockquote>
* /etc/scripts/K810/K810_manual.sh
<blockquote>
<pre>
#! /bin/bash
line=`dmesg | grep -i k810 | grep hidraw`
[[ $line =~ (.*)(hidraw+[^:])(.*) ]]
device=${BASH_REMATCH[2]}
/etc/scripts/K810/k810_conf -d /dev/${device} -f on
</pre>
</blockquote>
= K380 =
== Auto enable function keys ==
<blockquote>
<pre>
sudo bash
git clone https://github.com/jergusg/k380-function-keys-conf.git
cd k380*
./build.sh
</pre>
</blockquote>
[[Category:Hardware]]

Latest revision as of 19:30, 21 February 2018

Dualboot Bluetooth Pairing

https://unix.stackexchange.com/questions/255509/bluetooth-pairing-on-dual-boot-of-windows-linux-mint-ubuntu-stop-having-to-p

K810

Factory reset

  • “Escape”, “o”,“Escape”, “o”,“Escape”, “b”

Pairing under Linux

  • Terminal 1
hcitool scan
hcidump -at
  • Terminal 2
bluez-simple-agent hci0 xx:xx:xx:xx:xx:xx
> enter passkey
bluez-test-device trusted xx:xx:xx:xx:xx:xx
bluez-test-input connect xx:xx:xx:xx:xx:xx

Function keys

Auto enable function keys

#!/bin/sh
if [ "$ACTION" == "add" ];
then
    # configure k810 ($DEVPATH) at $DEVNAME.
    /etc/scripts/K810/k810_conf -d $DEVNAME -f on
fi
  • /etc/udev/rules.d/00-k810.rules
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{address}=="00:1F:20:75:B8:37", RUN+="/etc/scripts/K810/K810.sh %p"


  • /etc/scripts/K810/K810_manual.sh
#! /bin/bash
line=`dmesg | grep -i k810 | grep hidraw`
[[ $line =~ (.*)(hidraw+[^:])(.*) ]]
device=${BASH_REMATCH[2]}
/etc/scripts/K810/k810_conf -d /dev/${device} -f on

K380

Auto enable function keys

sudo bash
git clone https://github.com/jergusg/k380-function-keys-conf.git
cd k380*
./build.sh