The current rfkill code in HAL only works for some devices, with user-space support. HAL should be able to use the kernel API for devices/drivers that support it without user-space help. Richard will be working on adding IBM support, and Lennart MSI one.
*** Bug 10985 has been marked as a duplicate of this bug. ***
What is the status on this ? hal-0.5.11 I have still cannot use the rfkill devices in /sys/class/rfkill/. This breaks support for IWL4965 + hal + networkmanager as it tries to open the nonexisting /sys/class/net/*/device/rf_kill file. System info (I`m using Gentoo): Portage 2.2_rc12 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.26-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-glibc2.2.5 Timestamp of tree: Mon, 13 Oct 2008 15:45:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.4.4-r13, 2.5.2-r8 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0-r1 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.26 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -march=nocona" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://src.gentoo.pl" LANG="pl_PL.utf8" LC_ALL="pl_PL.utf8" LDFLAGS="-Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb visibility vorbis xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Other relevant versions: 4pll00555 linux # equery list -i hal [ Searching for package 'hal' in all categories among: ] * installed packages [I--] [ ] app-misc/hal-info-20080508 (0) [I--] [ ~] sys-apps/hal-0.5.11-r3 (0) 4pll00555 linux # equery list -i networkmanager [ Searching for package 'networkmanager' in all categories among: ] * installed packages [I--] [ ] net-misc/networkmanager-0.6.6 (0) [I--] [ ~] net-misc/networkmanager-vpnc-0.6.4_p20070621 (0)
Created attachment 19658 [details] [review] patch to support the kernel's new rfkill interface please find attached a patch that adds support for the kernel's new generic rfkill interface. Tested here on Ubuntu 8.10 beta; (very ugly) backwards compatibility is maintained for the old ipw/iwl interface.
(In reply to comment #3) > Created an attachment (id=19658) [details] > patch to support the kernel's new rfkill interface > > please find attached a patch that adds support for the kernel's new generic > rfkill interface. Tested here on Ubuntu 8.10 beta; (very ugly) backwards > compatibility is maintained for the old ipw/iwl interface. > Thanks, the patch works, kind of. I had to add a check for it not to return an error back to HAL when some of the device UDIs it tries to process are not network interfaces. Patch attached.
Created attachment 19665 [details] Add a check for hal-ipw-killswitch-linux.c to skip devices which aren`t network interfaces.
fixed in git with an new addon for the rfkill subsystem: http://cgit.freedesktop.org/hal/commit/?id=ab020cb5f396f54691352edb323cf159894144a0 http://cgit.freedesktop.org/hal-info/commit/?id=dd15c4b999790ba7713567fc2e520b51110897ad
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.