Git Product home page Git Product logo

k380-function-keys-conf's Introduction

k380-function-keys-conf

Make function keys default on Logitech k380 bluetooth keyboard.

Instructions

  1. First install build-essential package (includes gcc, make, libc-dev, etc.).
# On Debian/Ubuntu run:
sudo apt install build-essential
# on CentOS/REHEL/Fedora
sudo dnf groupinstall "Development Tools"
# on Arch-linux 
sudo pacman -Sy base-devel
  1. Download installation files https://github.com/jergusg/k380-function-keys-conf/releases/ (Source code).

  2. Connect your K380 keyboard via bluetooth to your computer.

  3. Run make install

  4. Get the number of your keyboard hidraw interface - /dev/hidrawX where X is 0, 1, 2, 3.

sudo ./fn_on.sh
  1. To switch keyboard's upper keys to F-keys run:
sudo k380_conf -d /dev/hidrawX -f on

Switch keys to F-keys automatically

After install do the following:

sudo make reload

Now, when you reconnect your keyboard it will be automatically switched to F-keys mode.

Based on

http://www.trial-n-error.de/posts/2012/12/31/logitech-k810-keyboard-configurator/

https://github.com/embuc/k480_conf

look there for more information

k380-function-keys-conf's People

Contributors

j-krolik avatar jergusg avatar vhuty avatar xiongyihui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

k380-function-keys-conf's Issues

Resource from Based on section is not available anymore

Hey!

Just found out that this resource is not available and probably should be removed from README

Here is the text from this website:

Es ist ein Fehler aufgetreten!

    [Zurück zur vorherigen Seite](https://www.trial-n-error.net/de/posts/2012/12/31/logitech-k810-keyboard-configurator/#)
    Zurück zur Startseite

PS: Thank you for your work and hope this project will live and prosper

Great

Great, thank you.

How to find out hidraw(X) number?

I can't really find a way to figure out which X i should put in the command. I have 3 hidraw file in sys/class/hidraw/: hidraw0, hidraw1, hidraw2 but i don't know which one is my k380 keyboard

Making it work on macOS

Hi dude, awesome work you have done here.

First of all, thank you very much!!!!

Now the question (that anyone can answer, of course): is there any way to make this work on macOS?

Beginner at GitHub

I am having trouble performing configuring the k380 keyboard using the code provide
I am using Windows 10 & Ubuntu 20.04 from the window store.
Can someone write a step by step guide for newbies like me who would like to use this code

Much appreciated!

Does this work with Windows?

I've searched seemingly everywhere across the web for a way to change the default F-keys on Windows for the K380 without Logitech Options software but can't find anything. This is the most promising thing I found but it only seems to be for Ubuntu(?). Any help or ideas?

have to rerun after sleep

I don't know why but when I leave my notebook for some hours and go back I have to rerun the script otherwise the fn keys go back to the original configuration.

I used this script for months and didn't have this problem, it only started appearing after I reinstalled ubuntu 20.04

not an issue

Just a thank you!!! This is fantastic. You made this keyboard perfect.

Thanks!

@jergusg just wanted to say thanks! You saved me a lot of frustration!!!

An interesting problem

I linstall it on my Arch laptop , and it works perfect on my home .
but when I take my laptop and k380 keyboard to my office , It always shown 'connected' on bluetoothctl cli but the k380 pairing status led still blinking . It can't success connect even I manually make pair that .
I try test many way , My instinct told me that maybe under the interference of the office, the keyboard did not think it was successfully connected Immediately.
At this time, the control command issued by the script made it confused, and it could not connect successfully.
So I Simple add sleep 1s to fn_on.sh first and reinstall that , It works!

Not a bug , It's a great project
Just leave answer and leave it to people who have this problem like me

Explanation key sequence

Can you give some explanation on how to extract the sequence from the USB logs? I'm trying to replicate the procedure for a the fnlock of a Thinkpad with USB logs from wireshark recorded under windows.

Error in mint

I try in Linux Mint 20 but i have this error.

gcc k380_conf.c -o k380_conf
In file included from k380_conf.c:23:
/usr/include/linux/input.h:13:10: fatal error: sys/time.h: No such file or directory
   13 | #include <sys/time.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:9: k380_conf] Error 1

Is it possible to adapt it for linux mint too?
Best Regard

sys/time.h no such file

Hi jergusg!

First congratulations on the work! I saw that it worked well for others!

On linux mint 19.3, when I trying to run make install I take the following error:

gcc k380_conf.c -o k380_conf In file included from k380_conf.c: 23: 0: /usr/include/linux/input.h:13:10: fatal error: sys/time.h: No such file or directory #include <sys/time.h>

What can I be doing wrong?

Tks!

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.