# \[RESPONDED\] Mapping function keys/hot keys for screen brightness on linux (and touchpad smooth zoom?)

**URL:** <https://community.frame.work/t/responded-mapping-function-keys-hot-keys-for-screen-brightness-on-linux-and-touchpad-smooth-zoom/24007>\
**Category:** Linux\
**Created:** [October 21, 2022, 10:21pm UTC](https://community.frame.work/t/responded-mapping-function-keys-hot-keys-for-screen-brightness-on-linux-and-touchpad-smooth-zoom/24007 "2022-10-21T22:21:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timothy\_Olson](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@Timothy\_Olson](https://community.frame.work/u/Timothy_Olson)\
**Post date:** [October 21, 2022, 10:21pm UTC](https://community.frame.work/t/responded-mapping-function-keys-hot-keys-for-screen-brightness-on-linux-and-touchpad-smooth-zoom/24007/1 "2022-10-21T22:21:58Z")

</div>

Hi, I’m using a Framework laptop DIY with Manjaro Linux (Arch based). I’ve had success with most features of the laptop in the installation and am aware of the finickyness of Linux, but one issue I have yet to find an easy solution for is the hotkey and function key mapping for the framework keyboard. The function keys on their own work fine, but I prefer the Fn to be on “hotkey” mode (not sure which one is Fn lock, but I want to press the Fn key to refresh with F5).  
So far, all three volume keys work under F1, F2, and F3, the Pause/Play works under F5, the Screen Display under F9, and Print Scrn under F11. I have no luck with F4 (Rewind), F6 (Fast Forward), F7 (Lower Brightness), F8 (Raise Brightness), F10 (Airplane Mode) or F12 (Framework Logo, not sure what this is supposed to be for).

There are keyboard layouts from specific laptops that I can install, does the Framework keyboard match any of them?

An additional question I had was regarding zooming in on the touchpad. I am used to being able to do a 2 finger zoom in and zoom out much like on a phone, but I don’t know how to get this feature to work in either X11 or Wayland (I’m using Plasma). If I could have my preferred way, I would be able to 2 finger zoom on the touchpad and this would cause an ordinary window to zoom in much like on a non-mobile site using a mobile browser (without affecting toolbars and menu bars). The Ctrl + 2 finger zoom would be identical to Ctrl + + or Ctrl + - zooming. I have installed fusuma if there is a way for this to work with that.

---

<div class="post-metadata">

**Author:** ![Cipher](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/cipher/32/11656_2.png) [@Cipher](https://community.frame.work/u/Cipher)\
**Post date:** [October 21, 2022, 11:26pm UTC](https://community.frame.work/t/responded-mapping-function-keys-hot-keys-for-screen-brightness-on-linux-and-touchpad-smooth-zoom/24007/2 "2022-10-21T23:26:47Z")

</div>

> [@Timothy\_Olson](#):
>
> I prefer the Fn to be on “hotkey” mode

Simplest solution I know of is to use _ **fn lock** _. Press **fn + esc** , that should do the trick. same to undo it.

> [@Timothy\_Olson](#):
>
> So far, all three volume keys work under F1, F2, and F3, the Pause/Play works under F5, the Screen Display under F9, and Print Scrn under F11. I have no luck with F4 (Rewind), F6 (Fast Forward), F7 (Lower Brightness), F8 (Raise Brightness), F10 (Airplane Mode) or F12 (Framework Logo, not sure what this is supposed to be for).

Read this comment on brightness hotkeys

> [@\[SOLVED-GUIDE\] 12th gen not sending XF86MonBrightnessUp / Down](http://community.frame.work/t/12th-gen-not-sending-xf86monbrightnessup-down/20605/11):
>
> this is a linux kernel problem that is kind of tricky to solve. As the way the linux kernel is written devices can be either registered as a hid-sensor or libinput device, but we have a compound device that is both. If you look at dmesg on boot you will see the ec hid endpoint is registered as a libinput device and then taken over by the hid-sensor-hub driver. I have a thread with some of the linux hid subsystem maintainers, and the conclusion is the way the Linux Kernel is currently written, …

Not sure why others hotkeys are not working, maybe wrong keyboard layouts is selected?  
I’m also on KDE Plasma, mine is selected to _ **Generic 104-key PC** _. I am using a British English Keyboard if that matters.  
Hopefully someone else can chime in about this.

> [@Timothy\_Olson](#):
>
> I am used to being able to do a 2 finger zoom in and zoom out much like on a phone, but I don’t know how to get this feature to work in either X11 or Wayland

I know Wayland has support for gestures in KDE. Double check the touchpad setting just to be sure. I do have tap-to-click enabled, rest was as is. I can use pinch to zoom in and out.  
Hope this helps.

---

<div class="post-metadata">

**Author:** ![Timothy\_Olson](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@Timothy\_Olson](https://community.frame.work/u/Timothy_Olson)\
**Post date:** [October 27, 2022, 4:35pm UTC](https://community.frame.work/t/responded-mapping-function-keys-hot-keys-for-screen-brightness-on-linux-and-touchpad-smooth-zoom/24007/3 "2022-10-27T16:35:31Z")

</div>

> Simplest solution I know of is to use _ **fn lock** _. Press **fn + esc** , that should do the trick. same to undo it.

I’m aware of how this works, however I am unsure about which binding is the “default” if I were to map the keys. Are the regular function keys (F1, F2, F3, etc.) considered by the system to be the same default bindings as the lower case letters? Or are the hot keys the default. I’m having trouble parsing the output from `xmodmap -pk`.

---

<div class="post-metadata">

**Author:** ![Cipher](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/cipher/32/11656_2.png) [@Cipher](https://community.frame.work/u/Cipher)\
**Post date:** [October 28, 2022, 1:36am UTC](https://community.frame.work/t/responded-mapping-function-keys-hot-keys-for-screen-brightness-on-linux-and-touchpad-smooth-zoom/24007/4 "2022-10-28T01:36:10Z")

</div>

> [@Timothy\_Olson](#):
>
> I am unsure about which binding is the “default” if I were to map the keys.

I have not tested if **fn lock** persists through reboots. As far as I understand, function Keys are not default and only work with fn key, unless fn lock is enabled.  
I have no experiencing modifying key mapping, never tried to. Can’t offer you any help with xmodmap issues.

---

<div class="post-metadata">

**Author:** ![Dirk\_Haar](https://avatars.discourse-cdn.com/v4/letter/d/3ec8ea/32.png) [@Dirk\_Haar](https://community.frame.work/u/Dirk_Haar)\
**Post date:** [February 15, 2024, 9:51pm UTC](https://community.frame.work/t/responded-mapping-function-keys-hot-keys-for-screen-brightness-on-linux-and-touchpad-smooth-zoom/24007/5 "2024-02-15T21:51:55Z")

</div>

Btw, you can change the fkey mode in the BIOS.

---

<div class="post-metadata">

**Author:** ![Matt\_Hartley](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/matt_hartley/32/13623_2.png) [@Matt\_Hartley](https://community.frame.work/u/Matt_Hartley)\
**Post date:** [February 16, 2024, 12:14am UTC](https://community.frame.work/t/responded-mapping-function-keys-hot-keys-for-screen-brightness-on-linux-and-touchpad-smooth-zoom/24007/6 "2024-02-16T00:14:14Z")

</div>

Welcome to the community!

Cipher has touched anything I would have thought of.

I must confess I have never used pinch zoom on a laptop (just my phone), but it looks like there have been Manjaro users [who have had success with it in the past](https://forum.manjaro.org/t/2-finger-pinch-zoom-gesture-not-working-smoothly-on-kde/99013/2). Once configured, there is also [a GUI application available that adds a visual control layer as well.](https://gitlab.com/nokun/gestures)

---

<div class="post-metadata">

**Author:** ![Dirk\_Haar](https://avatars.discourse-cdn.com/v4/letter/d/3ec8ea/32.png) [@Dirk\_Haar](https://community.frame.work/u/Dirk_Haar)\
**Post date:** [March 29, 2024, 9:39am UTC](https://community.frame.work/t/responded-mapping-function-keys-hot-keys-for-screen-brightness-on-linux-and-touchpad-smooth-zoom/24007/7 "2024-03-29T09:39:34Z")

</div>

I use Mint Cinnamon. Switching gestures on in the settings allows me to zoom using the touchpad (I chose Alt - two finger scrolling) without any hazzle.
