<div dir="ltr"><br><br><div class="gmail_quote">On Sat, Jul 26, 2008 at 8:28 AM, Paulo Cavalcanti <span dir="ltr">&lt;<a href="mailto:promac@gmail.com">promac@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Hi,<br><br>I have had some problems for making my laptop special keys <br>to work. First of all, hall-info from F8 is not updated. In my case,<br>a Dell owner, the file<br><br>/usr/share/hal/fdi/information/10freedesktop/30-keymap-dell.fdi<br>

<br>is divided based on Dell models (very few). The current hall-info has only one configuration<br>for all models. Anyway, fixing the keymap made all my keys working:<br><br>Fn+F1 hibernate<br>Fn+F3 battery status (just show the status once, a second hit does not show anything. Why?)<br>

and all the multimedia keys.<br><br>This is good, because there is no need to include setkeycodes in /etc/rc.local.<br><br>The only key that is really not working is the Fn+F8, to switch between the LCD and<br>an external monitor. Although I have<br>

<br>&lt;append key=&quot;input.keymap.data&quot; type=&quot;strlist&quot;&gt;e00b:displaytoggle&lt;/append&gt; &lt;!-- Fn+F8 CRT/LCD --&gt;<br><br>in my file, it does not make any difference at all. If I press Fn+F8, dmesg gives me:<br>

<br>atkbd.c: Unknown key pressed (translated set 2, code 0x8b on isa0060/serio0).<br>atkbd.c: Use &#39;setkeycodes e00b &lt;keycode&gt;&#39; to make it known.<br><br>Therefore, the key is not mapped. Well, I tried mapping it to 214 (XF86Video), 227, etc ... and no joy.<br>

<br>I have an nvidia 8400 GS card. If during the boot I press Fn+F8 before entering X, I can switch to the<br>external monitor, but I cannot go back to the laptop LCD. I tried the nv and the nvidia binary driver in xorg.conf.<br>

Using the nv driver, the login screen appears on both, LCD+monitor, but after loging in, only the external monitor is active. Using the binary driver, not even that, the login screen appears onto only one.<br><br>I saw some posts about using xrandr for this purpose:<br>

<br><a href="http://ubuntuforums.org/archive/index.php/t-634675.html" target="_blank">http://ubuntuforums.org/archive/index.php/t-634675.html</a><br><br>My question is: is it possible to switch using an nvidia card on Fedora? Would xrandr work?<br>

<br>I also think that an updated hall-info for F8 is in order. It would be really nice if those keys worked just out of the box.<br>This is the type of issue that is very difficult to fix without some knowledge, and makes users look for other distros. In fact, switching to an external monitor is essential for presentations using a projector. Since I wiped out my Vista OS, I do not even know if switching worked on Windows for my Vostro 1400.<br>

<br></div></blockquote><div><br>Well, the scheme works surprisinly well.<br><br>I tested it on my desktop and a TV, and my laptop and an external Samsung CRT.<br><br>I also managed to make mplayer send its output automatically to the secondary display when<br>
in full screen mode (using SDL).<br><br>Unfortunately, everything depends on the graphics driver. I used the binary nvidia driver (177.13).<br><br>But definitively, it is something very useful, and should be supported out of the box, in my opinion.<br>
<br><br>#!/bin/bash<br>#<br># Toggles display (0: TwinView, 1: TV/CRT, and 2:LCD) <br># by switching through xorg resolutions.<br># It is neessary to use &#39;MetaModes&#39; in <br># the Nvidia driver to set up a few <br>
# different resolutions.<br>#<br>if [ -f ~/.changeres ]; then<br>&nbsp;&nbsp; . ~/.changeres<br>fi<br><br>if [ -z $INDEX ]; then<br>&nbsp;&nbsp; INDEX=-1<br>fi<br><br>let INDEX &quot;INDEX += 1&quot;<br><br>if [[ $INDEX &gt; 2 ]]; then<br>&nbsp;&nbsp;&nbsp; INDEX=0<br>
fi<br><br># Interfaces to RandR extension.<br># Sets the screen size using an index<br># into the list of available sizes.<br># In case of error, it prints:<br>#&nbsp;&nbsp; &quot;Size index 4 is too large, there are only 3 sizes&quot;<br>
<br>xrandr -s $INDEX <br><br>if [ $? == &quot;0&quot; ]; then<br>&nbsp;&nbsp; echo &quot;OK&quot;<br>else<br>&nbsp;&nbsp; INDEX=0<br>&nbsp;&nbsp; xrandr -s $INDEX<br>fi<br><br>echo &quot;#!/bin/bash&quot; &gt; ~/.changeres<br>echo &quot;INDEX=$INDEX&quot; &gt;&gt; ~/.changeres<br>
<br>-----------------------------------------------------------<br><br>This is the contents of my ~/.xbindkeysrc:<br><br>#Toggle Display<br>&quot;/home/roma/bin/changeres.sh&quot;<br>&nbsp;&nbsp;&nbsp; m:0x0 + c:214<br>&nbsp;&nbsp;&nbsp; XF86Display<br>
</div></div><br><br clear="all"><br>-- <br>Paulo Roma Cavalcanti<br>LCG - UFRJ<br>
</div>