
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.sabayonlinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Make_The_Function_Keys_Work_On_An_Apple_Keyboard&amp;feed=atom&amp;action=history</id>
		<title>HOWTO: Make The Function Keys Work On An Apple Keyboard - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Make_The_Function_Keys_Work_On_An_Apple_Keyboard&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Make_The_Function_Keys_Work_On_An_Apple_Keyboard&amp;action=history"/>
		<updated>2013-06-18T05:00:03Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.4</generator>

	<entry>
		<id>http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Make_The_Function_Keys_Work_On_An_Apple_Keyboard&amp;diff=19007&amp;oldid=prev</id>
		<title>Hatalar205 at 15:22, 3 November 2012</title>
		<link rel="alternate" type="text/html" href="http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Make_The_Function_Keys_Work_On_An_Apple_Keyboard&amp;diff=19007&amp;oldid=prev"/>
				<updated>2012-11-03T15:22:21Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{i18n| [[HOWTO: Make The Function Keys Work On An Apple Keyboard|en]] [[Tr:HOWTO: Make The Function Keys Work On An Apple Keyboard|tr]] }}&lt;br /&gt;
&lt;br /&gt;
== The fn key on an Apple keyboard ==&lt;br /&gt;
&lt;br /&gt;
Apple keyboards have a row of keys at the top that serve two purposes. They are the multimedia keys (Volume, Play/Pause, etc) and they are the normal F1-F12 function keys. If you press one of the keys without using the &amp;quot;fn&amp;quot; key as a modifier, it will act as a multimedia key. You must press fn-F1 to send an actual F1 to Sabayon Linux. While this is probably fine for Mac OS, where the function keys are rarely used, it's a little awkward for use under Linux. For example: You must press fn-Control-Option(alt)-F1 to switch to the first virtual terminal, which almost requires 3 hands.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reversing the way the fn key works ==&lt;br /&gt;
&lt;br /&gt;
Fortunately, the Apple keyboard driver in Sabayon Linux is capable of reversing the function of those keys. You can change the driver's behavior by executing a simple command as root:&lt;br /&gt;
&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;echo &amp;quot;2&amp;quot; &amp;gt; /sys/module/hid_apple/parameters/fnmode&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This tells the driver that you want the keys at the top of the keyboard to be function keys (F1-F12) by default, and to require the fn key for the multimedia functions. The effect is immediate. Unfortunately, if you want this to be the default, without running that command every time you reboot, you have to do a little bit more work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Making the change permanent ==&lt;br /&gt;
&lt;br /&gt;
You will need to execute the above command each time you reboot your system. The easiest way to do this is to add it to your /etc/conf.d/local script. This script gets run at startup and at shutdown and allows you to add simple commands to be run at those times. You will want to add it to the local_start() function, before the &amp;quot;return 0&amp;quot; line:&lt;br /&gt;
&lt;br /&gt;
{{File|/etc/conf.d/local|&amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;&lt;br /&gt;
local_start() {&lt;br /&gt;
	# This is a good place to load any misc programs&lt;br /&gt;
	# on startup (use &amp;amp;&amp;gt;/dev/null to hide output)&lt;br /&gt;
&lt;br /&gt;
	echo &amp;quot;2&amp;quot; &amp;gt; /sys/module/hid_apple/parameters/fnmode&lt;br /&gt;
&lt;br /&gt;
	# We should always return 0&lt;br /&gt;
	return 0&lt;br /&gt;
}&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That's it. Your function keys should now behave normally, and you will need to use the fn key for the multimedia keys.&lt;/div&gt;</summary>
		<author><name>Hatalar205</name></author>	</entry>

	</feed>