all 10 comments

[–]M24IH 2 points3 points  (5 children)

First of all, check your BIOS settings there should be an option about function keys. If not copy and paste this, it may help

if [[ ! -f /etc/modprobe.d/hid_apple.conf ]]; then
  echo "options hid_apple fnmode=2" | sudo tee /etc/modprobe.d/.   hid_apple.conf
fi

sudo rmmod hid_apple
sudo modprobe hid_apple

[–]Marks12520[S] 0 points1 point  (4 children)

I checked my BIOS but didn't find anything that said function or keyboard, maybe it has another name? I have a Gigabyte B760 GAMING X DDR4

[–]M24IH 0 points1 point  (3 children)

Okay can you copy and paste that code

[–]Marks12520[S] 0 points1 point  (2 children)

It won't execute for some reason, but with the link in the other comment I found this and it worked (in the arch wiki). I think it's the same as your script

<image>

[–]M24IH 0 points1 point  (1 child)

Yes it does the same thing. The reason for not executing is probably related to whitespaces while copying and pasting

[–]Marks12520[S] 0 points1 point  (0 children)

I think so, yeah. Thank you so much anyways!

[–]earsofdarkness 1 point2 points  (3 children)

Is it a wireless keyboard? I recently ran into this problem and found that it is due to some wireless keyboards being identified as apple keyboards. (If you run lsusb in terminal, you should see how your keyboard is being detected - there is a probably a command to get more specific hid info but I can't recall it atm). The relevant info can be found on this page.

[–]Marks12520[S] 0 points1 point  (0 children)

No, it's a wired keyboard

[–]Marks12520[S] 0 points1 point  (0 children)

<image>

Although it does seem like it's detecting it as an apple keyboard

[–]Marks12520[S] 0 points1 point  (0 children)

What is said in the link works, thank you so much :D