Re: how to have rfkill supported by hal?



On Fri, 2007-06-22 at 19:57 +0200, dragoran wrote:
> Dan Williams wrote:
> > On Fri, 2007-06-22 at 17:09 +0000, yelo_3 wrote:
> >   
> >> The rfkill bug was recently corrected in svn
> >> My question is: since now lots of notebooks with a wireless hotkey are not supported by hal, and only emit ACPI or other events, wouldn't it be easier to code a rfkill hal emulation that can be controlled by a binary executable /usr/bin/toggle_rfkill?
> >>     
> >
> > HAL should be fixed to work with ACPI-based laptops.  For now, I'd
> > suggest a small daemon that monitors ACPI events (or, have acpid callout
> > scripts write the status to a file somewhere), and then add a section to
> > the HAL rfkill script to read that file for rfkill status.
> >
> > Dan
> >   
> what about the hardware switch found on some intel based laptops? there 
> is no acpi event or anything like this... the drivers get the info from 
> the firmware and print a message to dmesg. should the hal rfkill switch 
> parse this? or should this be fixed in the intel drivers? (send some 
> kind of event?)

No, until the kernel rfkill framework lands, the HAL callout for
GetPower should check the value of /sys/class/net/eth0/device/rf_kill
and SetPower should echo a value to that field.

Dan





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]