Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I do have a wireless Logitech K750 keyboard (silver Mac version) connected to a Lenovo ThinkPad (via the unifying USB receiver, together with a wireless Logitech mouse M705) and currently running Ubuntu 12.04.

By default the F-keys are mapped as multimedia/function keys, e.g. Play /Pause. As I don't use them very often, I want the F-keys to behave like the "real" F-keys (F1-F12). How can I do that?

I know there is an option in the BIOS settings, but this only toggles the built-in keyboard of the notebook, not on my wireless keyboard.

I know there is a way to change this for the Apple wireless keyboard (AppleKeyboard#Change_Function_Key_behavior), but there is no "parameters" directory in /sys/module/hid_logitech_dj/.

Any ideas? Or is there maybe a way to do this in a later Ubuntu version (13.04)?

UPDATE:

lsusb -d 046d: shows Bus 002 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver

UPDATE 2: Thanks a lot for your help Lekensteyn. Finally Solaar works just fine. In the "Known Issues" of Solaar it says that it does not work with the Nano Receiver. But I have one and it works just fine. Just don't forget to read the installation instructions and run the rules.d/install.sh script. It also recognized my M705 Mouse.

share|improve this question
    
I just found github.com/pwr/Solaar, it looks like it able to toggle FN keys. –  Lekensteyn Apr 26 '13 at 19:59
    
According to the lsusb output, you really have a Unifying device, not a nano receiver. Do you see the Unifying icon on the receiver? –  Lekensteyn Apr 29 '13 at 14:20
add comment

2 Answers 2

up vote 5 down vote accepted

Solaar is a graphical utility that has the ability to configure the Fn key functionality on newer devices:

Solaar screenshot with Fn function swap configuration

It is available though the ppa:daniel.pavel/solaar PPA (if you do not know how to install such a "PPA", see What are PPAs and how do I use them?). After installation, you can search for Solaar in the applications menu and start it from there.

If you prefer a command line tool, that is also available! Example usage:

$ /opt/extras.ubuntu.com/solaar/bin/solaar-cli config fn-swap
fn-swap = False
$ /opt/extras.ubuntu.com/solaar/bin/solaar-cli config fn-swap on
fn-swap = True

Note that these settings are not persistent, you will loose it after reboot. This may change in future versions of Solaar.


I have previously created the ltunify tool which is a Unifying tool that is able to communicate in the older HID++ 1.0 protocol. Until the next version of Solaar is released (current version is 0.8.7), you can use ltunify to toggle the Fn key on an older device such as the K800 keyboard.

Installation instructions (taken from http://askubuntu.com/a/114089/6969):

sudo apt-get install git gcc
git clone https://git.lekensteyn.nl/ltunify.git -b fkeyswap
cd ltunify
make install-home

The command ltunify fkeyswap shows the current status:

$ sudo ltunify fkeyswap 
F key functions are not swapped

To swap the functionality, run ltunify fkeyswap on:

$ sudo ltunify fkeyswap on
F key functions are now swapped

There is also an off action:

$ sudo ltunify fkeyswap off
F key functions are now normal

Please leave a comment if it does not work so it can be fixed. The above functionality uses undocumented hardware registers.

share|improve this answer
    
Unfortunately it does not work because of: "Unable to check fkey status". | Here the list of my 2 Logitech devices: "Devices count: 2" "Connected devices:" "idx=1 Mouse M705" "idx=2 Keyboard K750" | And here the information ("info 2") about the keyboard (replaced the last 3 digits of the serial with xxx): "Device index 2" "Keyboard" "Name: K750" "Wireless Product ID: 4012" "Serial number: 33B99xxx" "Device was unavailable, version information not available." –  Theo Apr 26 '13 at 8:13
    
Please run sudo ltunify -D fkeyswap status and paste the output on pastebin or your question. –  Lekensteyn Apr 26 '13 at 9:14
    
Done. See pastebin –  Theo Apr 26 '13 at 9:22
    
@Theo Updated, Solaar is the solution! –  Lekensteyn Apr 27 '13 at 13:47
    
Great, Solaar solved my problem. Thanks a lot!!! btw: It even works with the Nano receiver. –  Theo Apr 29 '13 at 13:42
show 1 more comment

For wired keyboard like k290 use https://github.com/milgner/k290-fnkeyctl and execute command

/usr/local/sbin/k290_fnkeyctl
share|improve this answer
1  
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. –  Jacob Vlijm Jun 1 at 11:17
    
this is link to program for doing this, use this program for swap FN keys. –  MariuszS Jun 1 at 11:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.