* [PATCH 0/2] eeepc-laptop bt and fan
@ 2008-07-12 9:59 Corentin CHARY
[not found] ` <200807121159.03034.corentincj-EjuBZuxMvz2sTnJN9+BGXg@public.gmane.org>
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Corentin CHARY @ 2008-07-12 9:59 UTC (permalink / raw)
To: Len Brown, acpi4asus-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
eeecommunity-donated-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-acpi-u79uwXL29TY76Z2rM5mHXA
Hi,
Two patchs from Alexandre d'Alton. The bt patch add a file to switch BT power.
The fan patch create a name file to make libsensors work.
Thanks
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] eeepc-laptop: add bt support
[not found] ` <200807121159.03034.corentincj-EjuBZuxMvz2sTnJN9+BGXg@public.gmane.org>
@ 2008-07-12 10:03 ` Corentin CHARY
[not found] ` <200807121203.06561.corentincj-EjuBZuxMvz2sTnJN9+BGXg@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Corentin CHARY @ 2008-07-12 10:03 UTC (permalink / raw)
To: acpi4asus-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Cc: linux-acpi-u79uwXL29TY76Z2rM5mHXA,
eeecommunity-donated-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Len Brown
From: Alexandre d'Alton <alex-jojFES6RfZNxtahE/wReCQ@public.gmane.org>
Adds a bt file that allows to switch the BT power if
a BT module is added to the BT_CON connector of the eeepc 900, I think it
will also work for the 901 that has BT by default.
Signed-off-by: Corentin Chary <corentincj-EjuBZuxMvz2sTnJN9+BGXg@public.gmane.org>
---
eeepc-laptop.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--- a/drivers/misc/eeepc-laptop.c 2008-07-03 13:36:19.000000000 +0200
+++ b/drivers/misc/eeepc-laptop.c 2008-07-04 10:09:28.000000000 +0200
@@ -88,7 +88,7 @@
};
const char *cm_getv[] = {
- "WLDG", NULL, NULL, NULL,
+ "WLDG", "BTHG", NULL, NULL,
"CAMG", NULL, NULL, NULL,
NULL, "PBLG", NULL, NULL,
"CFVG", NULL, NULL, NULL,
@@ -97,7 +97,7 @@
};
const char *cm_setv[] = {
- "WLDS", NULL, NULL, NULL,
+ "WLDS", "BTHS", NULL, NULL,
"CAMS", NULL, NULL, NULL,
"SDSP", "PBLS", "HDPS", NULL,
"CFVS", NULL, NULL, NULL,
@@ -312,12 +312,14 @@
EEEPC_CREATE_DEVICE_ATTR(cardr, CM_ASL_CARDREADER);
EEEPC_CREATE_DEVICE_ATTR(disp, CM_ASL_DISPLAYSWITCH);
EEEPC_CREATE_DEVICE_ATTR(wlan, CM_ASL_WLAN);
+EEEPC_CREATE_DEVICE_ATTR(bt, CM_ASL_BLUETOOTH);
static struct attribute *platform_attributes[] = {
&dev_attr_camera.attr,
&dev_attr_cardr.attr,
&dev_attr_disp.attr,
&dev_attr_wlan.attr,
+ &dev_attr_bt.attr,
NULL
};
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/2] eeepc-laptop: make libsensors work
2008-07-12 9:59 [PATCH 0/2] eeepc-laptop bt and fan Corentin CHARY
[not found] ` <200807121159.03034.corentincj-EjuBZuxMvz2sTnJN9+BGXg@public.gmane.org>
@ 2008-07-12 10:05 ` Corentin CHARY
2008-07-24 8:08 ` [Acpi4asus-user] [PATCH 0/2] eeepc-laptop bt and fan Corentin Chary
2 siblings, 0 replies; 5+ messages in thread
From: Corentin CHARY @ 2008-07-12 10:05 UTC (permalink / raw)
To: acpi4asus-user; +Cc: Len Brown, eeecommunity-donated, linux-acpi
From: Alexandre d'Alton <alex@alexdalton.org>
Creates a name file in the sysfs directory, that
seems to be needed for the libsensors library to work.
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
---
eeepc-laptop.c | 8 ++++++++
1 file changed, 8 insertions(+)
--- a/drivers/misc/eeepc-laptop.c 2008-07-10 13:53:00.000000000 +0200
+++ b/drivers/misc/eeepc-laptop.c 2008-07-10 12:14:46.000000000 +0200
@@ -527,10 +527,18 @@
EEEPC_CREATE_SENSOR_ATTR(pwm1_enable, S_IRUGO | S_IWUSR,
eeepc_get_fan_ctrl, eeepc_set_fan_ctrl);
+static ssize_t
+show_name(struct device *dev, struct device_attribute *attr, char *buf)
+{
+ return sprintf(buf, "fan\n");
+}
+static SENSOR_DEVICE_ATTR(name, S_IRUGO, show_name, NULL);
+
static struct attribute *hwmon_attributes[] = {
&sensor_dev_attr_fan1_pwm.dev_attr.attr,
&sensor_dev_attr_fan1_input.dev_attr.attr,
&sensor_dev_attr_pwm1_enable.dev_attr.attr,
+ &sensor_dev_attr_name.dev_attr.attr,
NULL
};
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] eeepc-laptop: add bt support
[not found] ` <200807121203.06561.corentincj-EjuBZuxMvz2sTnJN9+BGXg@public.gmane.org>
@ 2008-07-12 11:07 ` Matthew Garrett
0 siblings, 0 replies; 5+ messages in thread
From: Matthew Garrett @ 2008-07-12 11:07 UTC (permalink / raw)
To: Corentin CHARY
Cc: linux-acpi-u79uwXL29TY76Z2rM5mHXA,
acpi4asus-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
eeecommunity-donated-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Len Brown
Please use the rfkill interface for this, rather than adding another
special-cased attribute.
--
Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Acpi4asus-user] [PATCH 0/2] eeepc-laptop bt and fan
2008-07-12 9:59 [PATCH 0/2] eeepc-laptop bt and fan Corentin CHARY
[not found] ` <200807121159.03034.corentincj-EjuBZuxMvz2sTnJN9+BGXg@public.gmane.org>
2008-07-12 10:05 ` [PATCH 2/2] eeepc-laptop: make libsensors work Corentin CHARY
@ 2008-07-24 8:08 ` Corentin Chary
2 siblings, 0 replies; 5+ messages in thread
From: Corentin Chary @ 2008-07-24 8:08 UTC (permalink / raw)
To: Len Brown, acpi4asus-user, eeecommunity-donated, linux-acpi
Hi,
Just forget these patch now. We are currently working on another patch
with rfkill support.
I'll send them ASAP.
Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-07-24 8:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-12 9:59 [PATCH 0/2] eeepc-laptop bt and fan Corentin CHARY
[not found] ` <200807121159.03034.corentincj-EjuBZuxMvz2sTnJN9+BGXg@public.gmane.org>
2008-07-12 10:03 ` [PATCH 1/2] eeepc-laptop: add bt support Corentin CHARY
[not found] ` <200807121203.06561.corentincj-EjuBZuxMvz2sTnJN9+BGXg@public.gmane.org>
2008-07-12 11:07 ` Matthew Garrett
2008-07-12 10:05 ` [PATCH 2/2] eeepc-laptop: make libsensors work Corentin CHARY
2008-07-24 8:08 ` [Acpi4asus-user] [PATCH 0/2] eeepc-laptop bt and fan Corentin Chary
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.