this post was submitted on 03 Dec 2023
48 points (92.9% liked)

Linux

48077 readers
703 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

This laptoo has Fn as default instead of F keys. I hate it. I found several solutions for different vendors to switch state in bios. Is that the only option?

all 20 comments
sorted by: hot top controversial new old
[–] [email protected] 21 points 11 months ago (1 children)

Generally yes. The Fn key is usually handled either by the keyboard itself or by the BIOS, and the OS just sees the resulting key presses as if the keyboard had all the buttons. Can you not find such a switch in your BIOS? Saying what vendor it is might also help someone help you.

[–] [email protected] 9 points 11 months ago

Seconded, BIOS setting for me

[–] [email protected] 16 points 11 months ago

Try pressing fn+esc. Switches between fn keys and F keys on my laptop.

[–] [email protected] 15 points 11 months ago

The OS has no concept of an "fn" key. The keyboard never sends an fn keycode to the host machine. It's a feature that's entirely handled by the keyboard firmware itself. Your computer either receives an F2 key or a "brightness down" key, but it has no idea an fn key was involved in that one way or another.

So you could maybe modify your keymap to swap things out yourself. Intercept the "brightness down" keycode and manually map it to F2 or whatever. That's the only in-software solution I can think of. That's basically what the BIOS toggles do, as far as I know. Less than ideal to do yourself, though.

[–] [email protected] 10 points 11 months ago

Best would be BIOS. What vendor, what model? INFORMAATIIOOON

[–] [email protected] 9 points 11 months ago (1 children)

i very much prefer Fkey the default, and i have yet to encounter a user request to change Fkey to Fn.

the worst is the models that have a sleep or airplane mode Fn key right next to the backspace and defaulting from the factory to Fn over Fkey.

[–] [email protected] 4 points 11 months ago (1 children)

i have yet to encounter a user request to change Fkey to Fn.

It's me. Hi. I prefer Fn over Fkey.

The only software I use that recognizes F-keys is htop, but it also supports other key codes.

On the flip side, I use the volume and brightness controls on my Fn keys all the time.

[–] zygo_histo_morpheus 3 points 11 months ago

My laptop has a fn lock that you can toggle, it can be very convenient to switch to f-key mode when working with some applications but most of the time I'm using volume or brightness keys.

[–] [email protected] 9 points 11 months ago (1 children)

I personally find it rather infuriating that swapping those is made so difficult, and to this day don't know who has more usecase for media keys and varied power buttons over function keys.

And the worst thing is, if the upper row defaults as mefia keys, and toggling Fn to be function keys by default, you also toggle numpad to the right side of the keyboard. Don't get me wrong, I like numpad, but I quite don't like losing half of my keyboard, because keyboard manufacturers don't know what keys should be behind the Fn.

[–] [email protected] 8 points 11 months ago

I personally find it rather infuriating that swapping those is made so difficult, and to this day don't know who has more usecase for media keys and varied power buttons over function keys.

Non-IT people, who, believe it or not, are the majority of users out there. I've stopped keeping score several years ago on how many people had asked me how to bind F-keys to something else, but at that point things were like 100% of IT people wanted F-keys, while 70-80% of non-IT asked me for help rebinding them to other things.

I'm a programmer and these decisions annoy me as well, I'm just pointing to the answer as for why some computers come with the annoyance enabled (and often make it unnecessarily hard to change it). I'm by no means defending it. If anything, I think it should be up to the OS to have an easy way to change the behavior instead of assuming what the user needs and making it difficult to change.

[–] [email protected] 7 points 11 months ago

You can usually switch the default in bios.

[–] [email protected] 7 points 11 months ago

On my QK80 mechanical keyboard I could do this:

echo 2 > /sys/module/hid_apple/parameters/fnmode

Maybe your keyboard driver has a similar parameter?

[–] grinceur 6 points 11 months ago

on my laptop there is a Fn key combinasion to switch between them... btw i don't think it's possible to trigger this from the Os side of thing, it is tied to the firmware...

[–] [email protected] 5 points 11 months ago

It is also a software switch in the keyboard. Find the key that has the FN inside a padlock and it will switch the dual purpose keys to regular keys.

[–] [email protected] 2 points 11 months ago (1 children)

It's the only option I know but thankfully it is easy as piss. Just figure out your key to enter bios (usually ESC or f12, you may need to try the Fn key and f12 for obvious reasons), restart and enter the bios, slide around until you find the option, select, change, F10 to save and exit and you're good. May even want to set a bios password while you're in there, why not? Should take like 10-15min.

[–] [email protected] 7 points 11 months ago* (last edited 11 months ago) (1 children)

Or sudo systemctl reboot --firmware-setup

[–] [email protected] 2 points 11 months ago (1 children)

No shit? This boots you into bios?

[–] [email protected] 4 points 11 months ago (1 children)

Directly, and without having to figure out which button to spam.

[–] [email protected] 1 points 11 months ago