LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-25-2015, 12:05 PM   #1
chaoxifer
LQ Newbie
 
Registered: Nov 2010
Location: Seoul, South Korea
Distribution: Arch, Gentoo
Posts: 15

Rep: Reputation: 0
How can I modify kernel for function key in laptop?


Hello guys,

I'm looking for how can I add function key keycodes / scancodes.

In linux, I can only use few of function keys of my laptop. So, I'm looking for methods to use other function keys.

In 'xev', no scancodes represent for those function keys. Instead, when I typed those keys in 'acpi_listen', some of the keys work.

In that case, I want to know what problem is. If the problem is related to kernel, what is part that I should modify?


Thank you.
 
Old 04-25-2015, 09:38 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,314
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
What distro/version is the one in question?

A web search for "keymap [distro name]" might turn up useful information.
 
Old 04-27-2015, 11:04 AM   #3
chaoxifer
LQ Newbie
 
Registered: Nov 2010
Location: Seoul, South Korea
Distribution: Arch, Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
I'm using Arch Linux.

Is scancode related to keymap? Then, what about fn key combination?

I found information that it needs to use keyboard driver to use fn key properly.
 
Old 04-27-2015, 11:25 AM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,137

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
The keyboard driver translates the scancode received from the keyboard into a character or action. If you're talking about the Fn key, then that cannot be accessed by Linux. The particular combinations using it are handled by the keyboard circuitry, which outputs a scancode when it's appropriate. Either way, the kernel isn't involved.

What exactly are you having a problem with?
 
1 members found this post helpful.
Old 04-27-2015, 11:19 PM   #5
chaoxifer
LQ Newbie
 
Registered: Nov 2010
Location: Seoul, South Korea
Distribution: Arch, Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you very much, DavidMcCann.

Now I can understand why Linux kernel cannot suppport fn key of my laptop.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Laptop touchpad not working,function key automatically activated on restarting Ubuntu daudiam Linux - Hardware 2 12-10-2010 11:35 PM
Mandriva 2010 - Laptop Function Key Dims Display, Display Auto-Brightens Oceans80 Mandriva 2 08-28-2010 06:12 PM
Why don't laptop function key combonations work? Sanus Compleo Ubuntu 1 03-28-2009 04:34 PM
pc modify to switch with router function? hocheetiong Linux - Networking 1 12-23-2007 03:51 AM
C : Function to modify pointer to char introuble Programming 2 06-21-2006 12:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration