Hi Darren!

Please Cc: me, I am not subscribed to the list, TIA.

On Sat, 27 Dec 2008 13:53:15 +0100, Darren Salt wrote:
>> to have Fn+F2 disabling bluetooth as well, right?
>
> No; you want the rightmost of the four silver buttons.

Well, the Window user manual is clear and it happened the 1000H I used
has Windows XP Home installed, with Fn+F2 toggling between

  wlan ON & bluetooth ON -> wlan ON & bluetooth OFF ->
   -> wlan OFF & bluetooth ON -> wlan OFF & bluetooth OFF

NB, I am not arguing that we should follow Windows here, but the same
behavior is shared by IBM/Lenovo ThinkPads, at least on the T42p and X60
models.

>> AFAIK there is no other way to disable bluetooth from userspace.
>
> http://git.debian.org/?p=debian-eeepc/eeepc-bluetooth.git;a=blob_plain;f=eeepc-bluetooth.patch;hb=HEAD
>
> This provides /sys/devices/platform/eeepc/bluetooth and is for 2.6.26 &
> 2.6.27. Part of this patch is also needed for 2.6.28.

FWIW, tested to work correctly on both 1000H and 904HD.

A small note: IIRC the correct location for updated modules is
/lib/modules/$(KVERS)/updates/ [1] and then you do not need the
/etc/depmod.d override.  This functionality is available in
module-init-tools from version 3.1, but since etch already has 3.3,
there is no need for a versioned Depends:.  Patch attached, tested on
both machines.

Thx, bye,
Gismo / Luca

Footnotes: 
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=276660#30

From b841badaf750a7a1597a75504f761bf8cb89506b Mon Sep 17 00:00:00 2001
From: Luca Capello <[email protected]>
Date: Wed, 31 Dec 2008 16:49:57 +0100
Subject: [PATCH] install the module into /lib/modules/$(KVERS)/updates/eeepc

From version 3.1, module-init-tools loads all modules from updates/
before the others, thus no need to override the kernel one.
---
 debian/changelog              |   13 +++++++++++++
 debian/eeepc-bluetooth.depmod |    1 -
 debian/rules                  |    2 +-
 debian/rules.modules          |    7 ++-----
 4 files changed, 16 insertions(+), 7 deletions(-)
 delete mode 100644 debian/eeepc-bluetooth.depmod

diff --git a/debian/changelog b/debian/changelog
index cbc3220..a1f630d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,16 @@
+eeepc-bluetooth (1.0-2) UNRELEASED; urgency=low
+
+  [ Luca Capello ]
+  * debian/eeepc-bluetooth.depmod:
+    - remove, no more needed.
+  * debian/rules:
+    - do not install eeepc-bluetooth.depmod.
+  * debian/rules.modules:
+    + install the module into /lib/modules/$(KVERS)/updates/eeepc since
+      module-init-tools >= 3.1 loads them before any other.
+
+ --
+
 eeepc-bluetooth (1.0-1) unstable; urgency=low
 
   * Initial release
diff --git a/debian/eeepc-bluetooth.depmod b/debian/eeepc-bluetooth.depmod
deleted file mode 100644
index c33635c..0000000
--- a/debian/eeepc-bluetooth.depmod
+++ /dev/null
@@ -1 +0,0 @@
-override eeepc-laptop * eeepc
diff --git a/debian/rules b/debian/rules
index c0ed58c..5aedd34 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,7 +23,7 @@ build/$(package)::
 	install -D -m 0755 debian/rules.modules \
 		debian/tmp/modules/$(name)/debian/rules
 	# Prepare the other debian stuff
-	for f in *.modules.in *.depmod control compat copyright changelog; do \
+	for f in *.modules.in control compat copyright changelog; do \
 		install -m 0644 debian/$$f \
 			debian/tmp/modules/$(name)/debian; \
 	done
diff --git a/debian/rules.modules b/debian/rules.modules
index 27752a8..89dc0fd 100755
--- a/debian/rules.modules
+++ b/debian/rules.modules
@@ -3,7 +3,7 @@
 pkg_name = eeepc-bluetooth
 
 mod_name = eeepc-laptop.ko
-mod_dir = lib/modules/$(KVERS)/eeepc
+mod_dir = lib/modules/$(KVERS)/updates/eeepc
 
 # module-assistant stuff
 PACKAGE = $(pkg_name)-modules
@@ -21,15 +21,12 @@ binary-modules: kdist_config
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs $(mod_dir) etc/depmod.d
+	dh_installdirs $(mod_dir)
 
 	# build module
 	$(MAKE) -C $(CURDIR) KSRC=$(KSRC)
 	# install module
 	dh_install $(mod_name) $(mod_dir)
-	# install depmod override
-	cp debian/$(pkg_name).depmod $(pkg_name)
-	dh_install $(pkg_name) etc/depmod.d
 
 	dh_installdocs
 	dh_installchangelogs
-- 
1.5.6.5

Attachment: pgpp40GwNwmF0.pgp
Description: PGP signature

_______________________________________________
Debian-eeepc-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel

Reply via email to