GithubHelp home page GithubHelp logo

k400_plus's Introduction

Logitech K400 Plus - Linux helper scripts

This repository is targeting Logitech K400 Plus keyboard and common issue with switching to normal Fn functioning. You can find an C code which was rewritten a little for this devices purpose. I wasn't able to create "nice" solution to catch only this device upon a start, isntead I'm pointing stirght to /dev/hidraw* device, in my case /dev/hidraw2. Feel free to create issue with other solutions.

Edit: Looks like Solaar (git version) is now supporting Fn swap in options for K400 Plus which is great, but after wake-up it's still messed up so I'm leaving this repo anyway.

1. Script used to switch Fn functioning back to normal

k400_plus_conf.c is modded version of k810_conf.c.

curl https://raw.githubusercontent.com/lenisko/k400_plus/master/k400_plus_conf.c > /tmp/k400_plus_conf.c
gcc /tmp/k400_plus_conf.c -o /tmp/k400_plus_conf
rm /tmp/k400_plus_conf.c
sudo mv /tmp/k400_plus_conf /usr/local/sbin/k400_plus_conf
sudo chmod +x /usr/local/sbin/k400_plus_conf

2. Systemd service & timer for automation uppon start, sleep/hibernation wakeup

sudo curl https://raw.githubusercontent.com/lenisko/k400_plus/master/k400_plus.service > /etc/systemd/system/k400_plus.service
sudo curl https://raw.githubusercontent.com/lenisko/k400_plus/master/k400_plus.timer > /etc/systemd/system/k400_plus.timer
sudo systemctl enable --now k400_plus.service
sudo systemctl enable --now k400_plus.timer

3. Script for enabling wake-up event on K400 Plus keyboard

We need enable-wakeup under /usr/local/sbin/enable-wakeup so just follow tutorial from this site.

sudo curl https://raw.githubusercontent.com/lenisko/k400_plus/master/90-k400-plus-set-wake-up.rules > /etc/udev/rules.d/90-k400-plus-set-wake-up.rules
sudo udevadm control --reload-rules

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.