hal-info keymap and asus laptops
Khashayar Naderehvandi
khashayar.lists at gmail.com
Sun Dec 28 12:44:10 PST 2008
On Sun, Dec 28, 2008 at 8:52 PM, Matthew Garrett <mjg59 at srcf.ucam.org> wrote:
> On Sun, Dec 28, 2008 at 08:18:30PM +0100, Khashayar Naderehvandi wrote:
>
>> I have a few questions, though, if that's alright. Firstly, the
>> 'wlan'-button, should ideally "browse" through various combinations of
>> wlan/bluetooth being on/off. Is there a way to accomplish that with
>> hal? Ubuntu 8.10, seems to be able to do that using acpid scripts.
>
> That's actually a good question. Convention currently suggests KEY_WLAN,
> although that's probably wrong. There's no way to do the toggling
> through hal - that's up to whatever's listening for the events.
>
Thanks, I'll use that for now. The problem is, if that button will end
up only toggling the WLAN, say in a gnome desktop, there's not gonna
be an easy way to turn off the bluetooth. Which is no good when you're
on battery power.
>> Should I add an entry for the hardware switch that toggles all radio
>> transmitters? Since this is a hardware switch, there might be little
>> point in adding a line for it. On the other hand, if hal will be tied
>> into some sort of a notification system (which I'm hoping), there
>> could be reason to have a line there, but what action should it
>> toggle?
>
> You can send SW_RFKILL_ALL if you want, I think, though there's no huge
> benefit.
>
Alright, I'll do this.
>> Last, I tried my updated fdi file under Fedora, but pressing the
>> special keys didn't seem to toggle any action. I'm not sure what's
>> wrong. How can I troubleshoot? Under Ubuntu everything works fine
>> through the acpid scripts.
>
> Ah - the appropriate kernel patch may not be in Fedora yet.
>
I tried it under Ubuntu as well (I'm using a 2.6.28 kernel there),
with no luck. The thing is "lshal | grep keymap" shows a correct array
of input.keymap.data, but lshal -m doesn't show anything when I press
the keys. acpi_listen, does though.
I'm just basing this on the actual 30-keymap-module-asus-laptop.fdi
file, but I might be doing something wrong. For example, if
acpi_listen says this when I press the "mute" button:
hotkey ATKD 00000032 00000016
shouldn't this line from .fdi be correct:
<append key="input.keymap.data" type="strlist">0x032:mute</append>
I also want to say that I'm no programmer by any means, and I'm
starting to think I'm already doing things over my ability. If that's
the case, I probably won't be able to produce anything of any use for
hal, but I'll probably learn something trying :-) I'm trying to follow
the hal keymap quirk site
(http://people.freedesktop.org/~hughsient/quirk/quirk-keymap-index.html).
I hope it's still valid.
Regards,
Khashayar.
More information about the hal
mailing list