Skip to contentSkip to conversation

eeepc-wmi: add additional hotkeys

PATCH Superseded [email protected] 4 participants 11 messages Oct 11, 2010 – Nov 6, 2010 1 message not in the archive

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 eeepc-wmi: add additional hotkeys

From: Chris Bagwell <[email protected]>

Added 4 hotkeys using same keymap values as eeepc-latop. These are mousepad toggle, resolution change, screen off, and task manager. These were tested on 1005PE and are the Fn-F3, F4, F7, and F9, respectively.

Also, added a new hot key for power toggles (Fn-Space on 1005PE) and is meant to drive cpufv interface from userspace.

Finally, added several keys to be ignored that are being emitted but do not mapped to any useful or documented hotkeys. This is purely cosmetic to prevent uknown key reports on console/log files. These keys are reported on 1005PE's.

---
 drivers/platform/x86/eeepc-wmi.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
drivers/platform/x86/eeepc-wmi.c +15 -0
index 9dc50fb..441b000 100644
@@ -60,6 +60,10 @@ MODULE_ALIAS("wmi:"EEEPC_WMI_MGMT_GUID);
 
 #define EEEPC_WMI_DEVID_BACKLIGHT	0x00050012
 
+/* Keys marked with KE_IGNORE and KEY_RESERVE are keys known to
+ * not be useful to userspace and prevents printing to console
+ * about unknown key received.
+ */
 static const struct key_entry eeepc_wmi_keymap[] = {
 	/* Sleep already handled via generic ACPI code */
 	{ KE_KEY, 0x5d, { KEY_WLAN } },
@@ -69,6 +73,17 @@ static const struct key_entry eeepc_wmi_keymap[] = {
 	{ KE_IGNORE, NOTIFY_BRNDOWN_MIN, { KEY_BRIGHTNESSDOWN } },
 	{ KE_IGNORE, NOTIFY_BRNUP_MIN, { KEY_BRIGHTNESSUP } },
 	{ KE_KEY, 0xcc, { KEY_SWITCHVIDEOMODE } },
+	{ KE_KEY, 0x6b, { KEY_F13 } }, /* Disable Touchpad */
+	{ KE_KEY, 0xe1, { KEY_F14 } },
+	{ KE_KEY, 0xe9, { KEY_DISPLAY_OFF } },
+	{ KE_KEY, 0xe0, { KEY_PROG1 } },
+	{ KE_KEY, 0x5c, { KEY_F15 } },
+	{ KE_IGNORE, 0x83, { KEY_RESERVED } },
+	{ KE_IGNORE, 0xeb, { KEY_RESERVED } },
+	{ KE_IGNORE, 0xec, { KEY_RESERVED } },
+	{ KE_IGNORE, 0xed, { KEY_RESERVED } },
+	{ KE_IGNORE, 0xee, { KEY_RESERVED } },
+	{ KE_IGNORE, 0xef, { KEY_RESERVED } },
 	{ KE_END, 0},
 };
 
Signature · 1 line
1.7.3.1
#1 lore raw

PATCH 2/2 eeepc-wmi: Add cpufv sysfs interface

From: Chris Bagwell <[email protected]>

eeepc-laptop provides a sysfs interface to read and control what it calls cpufv. When WMI is enabled, the ACPI interface changes slightly and becames a write-only control with only 3 valid values.

Write-only is OK because same DSDT's will ignore duplicate values and even invalid values will be treated same as "0" value.

Expose cpufv again to allow for user space utils that can extended battery life noticably and come a little closer to parity with eeepc-laptop.

This was tested with EEE PC 1005PE by monitoring powertop output while writing values of "0", "1", and "2" and by reviewing the decompiled DSDT of an 1201NL and comparing it to 1005PE's DSDT.

---
 drivers/platform/x86/eeepc-wmi.c |   51 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)
drivers/platform/x86/eeepc-wmi.c +51 -0
index 441b000..988b16c 100644
@@ -57,6 +57,7 @@ MODULE_ALIAS("wmi:"EEEPC_WMI_MGMT_GUID);
 
 #define EEEPC_WMI_METHODID_DEVS	0x53564544
 #define EEEPC_WMI_METHODID_DSTS	0x53544344
+#define EEEPC_WMI_METHODID_CFVS	0x53564643
 
 #define EEEPC_WMI_DEVID_BACKLIGHT	0x00050012
 
@@ -307,6 +308,49 @@ static void eeepc_wmi_notify(u32 value, void *context)
 	kfree(obj);
 }
 
+static int store_cpufv(struct device *dev, struct device_attribute *attr,
+		       const char *buf, size_t count)
+{
+	int value;
+	struct acpi_buffer input = { (acpi_size)sizeof(value), &value };
+	acpi_status status;
+
+	if (!count || sscanf(buf, "%i", &value) != 1)
+		return -EINVAL;
+	if (value < 0 || value > 2)
+		return -EINVAL;
+
+	status = wmi_evaluate_method(EEEPC_WMI_MGMT_GUID,
+				     1, EEEPC_WMI_METHODID_CFVS, &input, NULL);
+
+	if (ACPI_FAILURE(status))
+		return -EIO;
+	else
+		return count;
+}
+
+static DEVICE_ATTR(cpufv, S_IRUGO | S_IWUSR, NULL, store_cpufv);
+
+static void eeepc_wmi_sysfs_exit(struct platform_device *device)
+{
+	device_remove_file(&device->dev, &dev_attr_cpufv);
+}
+
+static int eeepc_wmi_sysfs_init(struct platform_device *device)
+{
+	int retval = -ENOMEM;
+
+	retval = device_create_file(&device->dev, &dev_attr_cpufv);
+	if (retval)
+		goto error_sysfs;
+
+	return 0;
+
+error_sysfs:
+	eeepc_wmi_sysfs_exit(platform_device);
+	return retval;
+}
+
 static int __devinit eeepc_wmi_platform_probe(struct platform_device *device)
 {
 	struct eeepc_wmi *eeepc;
@@ -402,8 +446,14 @@ static int __init eeepc_wmi_init(void)
 		goto del_dev;
 	}
 
+	err = eeepc_wmi_sysfs_init(platform_device);
+	if (err)
+		goto del_sysfs;
+
 	return 0;
 
+del_sysfs:
+	eeepc_wmi_sysfs_exit(platform_device);
 del_dev:
 	platform_device_del(platform_device);
 put_dev:
@@ -418,6 +468,7 @@ static void __exit eeepc_wmi_exit(void)
 {
 	struct eeepc_wmi *eeepc;
 
+	eeepc_wmi_sysfs_exit(platform_device);
 	eeepc = platform_get_drvdata(platform_device);
 	platform_driver_unregister(&platform_driver);
 	platform_device_unregister(platform_device);
Signature · 1 line
1.7.3.1
maintainer
#2 lore raw

Re: [PATCH 2/2] eeepc-wmi: Add cpufv sysfs interface

Quoted 107 lines · On Mon, Oct 11, 2010 at 3:48 AM, <[email protected]> wrote:

From: Chris Bagwell <[email protected]>

eeepc-laptop provides a sysfs interface to read and control what it calls cpufv.  When WMI is enabled, the ACPI interface changes slightly and becames a write-only control with only 3 valid values.

Write-only is OK because same DSDT's will ignore duplicate values and even invalid values will be treated same as "0" value.

Expose cpufv again to allow for user space utils that can extended battery life noticably and come a little closer to parity with eeepc-laptop.

This was tested with EEE PC 1005PE by monitoring powertop output while writing values of "0", "1", and "2" and by reviewing the decompiled DSDT of an 1201NL and comparing it to 1005PE's DSDT.

---
 drivers/platform/x86/eeepc-wmi.c |   51 ++++++++++++++++++++++++++++++++++++++

 1 files changed, 51 insertions(+), 0 deletions(-)
drivers/platform/x86/eeepc-wmi.c +50 -0
index 441b000..988b16c 100644
@@ -57,6 +57,7 @@ MODULE_ALIAS("wmi:"EEEPC_WMI_MGMT_GUID);
 
  #define EEEPC_WMI_METHODID_DEVS        0x53564544
  #define EEEPC_WMI_METHODID_DSTS        0x53544344
+#define EEEPC_WMI_METHODID_CFVS        0x53564643
 
  #define EEEPC_WMI_DEVID_BACKLIGHT      0x00050012
 
@@ -307,6 +308,49 @@ static void eeepc_wmi_notify(u32 value, void *context)
        kfree(obj);
  }
 
+static int store_cpufv(struct device *dev, struct device_attribute *attr,
+                      const char *buf, size_t count)
+{
+       int value;
+       struct acpi_buffer input = { (acpi_size)sizeof(value), &value };
+       acpi_status status;
+
+       if (!count || sscanf(buf, "%i", &value) != 1)
+               return -EINVAL;
+       if (value < 0 || value > 2)
+               return -EINVAL;
+
+       status = wmi_evaluate_method(EEEPC_WMI_MGMT_GUID,
+                                    1, EEEPC_WMI_METHODID_CFVS, &input, NULL);
+
+       if (ACPI_FAILURE(status))
+               return -EIO;
+       else
+               return count;
+}
+
+static DEVICE_ATTR(cpufv, S_IRUGO | S_IWUSR, NULL, store_cpufv);
+
+static void eeepc_wmi_sysfs_exit(struct platform_device *device)
+{
+       device_remove_file(&device->dev, &dev_attr_cpufv);
+}
+
+static int eeepc_wmi_sysfs_init(struct platform_device *device)
+{
+       int retval = -ENOMEM;
+
+       retval = device_create_file(&device->dev, &dev_attr_cpufv);
+       if (retval)
+               goto error_sysfs;
+
+       return 0;
+
+error_sysfs:
+       eeepc_wmi_sysfs_exit(platform_device);
+       return retval;
+}
+
  static int __devinit eeepc_wmi_platform_probe(struct platform_device *device)
  {
        struct eeepc_wmi *eeepc;
@@ -402,8 +446,14 @@ static int __init eeepc_wmi_init(void)
                goto del_dev;
        }
 
+       err = eeepc_wmi_sysfs_init(platform_device);
+       if (err)
+               goto del_sysfs;
+
        return 0;
 
+del_sysfs:
+       eeepc_wmi_sysfs_exit(platform_device);

 del_dev:
       platform_device_del(platform_device);
 put_dev:

drivers/platform/x86/eeepc-wmi.c +1 -1
@@ -418,6 +468,7 @@ static void __exit eeepc_wmi_exit(void)
  {
        struct eeepc_wmi *eeepc;
 
+       eeepc_wmi_sysfs_exit(platform_device);
        eeepc = platform_get_drvdata(platform_device);
        platform_driver_unregister(&platform_driver);
        platform_device_unregister(platform_device);
--
Quoted 2 lines

1.7.3.1

Seems ok, too bad they don't provide a way to guess the current configuration and the number of available settings. Especially when all they do is calling the old device.

Signature · 2 lines
Corentin Chary
http://xf.iksaif.net
#3 lore raw

Re: [PATCH 2/2] eeepc-wmi: Add cpufv sysfs interface

Quoted 103 lines · Corentin Chary
Quoted 102 lines · On Mon, Oct 11, 2010 at 3:48 AM,  <[email protected]> wrote:

From: Chris Bagwell <[email protected]>

eeepc-laptop provides a sysfs interface to read and control what it calls cpufv.  When WMI is enabled, the ACPI interface changes slightly and becames a write-only control with only 3 valid values.

Write-only is OK because same DSDT's will ignore duplicate values and even invalid values will be treated same as "0" value.

Expose cpufv again to allow for user space utils that can extended battery life noticably and come a little closer to parity with eeepc-laptop.

This was tested with EEE PC 1005PE by monitoring powertop output while writing values of "0", "1", and "2" and by reviewing the decompiled DSDT of an 1201NL and comparing it to 1005PE's DSDT.

---
 drivers/platform/x86/eeepc-wmi.c |   51 ++++++++++++++++++++++++++++++++++++++

 1 files changed, 51 insertions(+), 0 deletions(-)
drivers/platform/x86/eeepc-wmi.c +50 -0
index 441b000..988b16c 100644
@@ -57,6 +57,7 @@ MODULE_ALIAS("wmi:"EEEPC_WMI_MGMT_GUID);
 
  #define EEEPC_WMI_METHODID_DEVS        0x53564544
  #define EEEPC_WMI_METHODID_DSTS        0x53544344
+#define EEEPC_WMI_METHODID_CFVS        0x53564643
 
  #define EEEPC_WMI_DEVID_BACKLIGHT      0x00050012
 
@@ -307,6 +308,49 @@ static void eeepc_wmi_notify(u32 value, void *context)
        kfree(obj);
  }
 
+static int store_cpufv(struct device *dev, struct device_attribute *attr,
+                      const char *buf, size_t count)
+{
+       int value;
+       struct acpi_buffer input = { (acpi_size)sizeof(value), &value };
+       acpi_status status;
+
+       if (!count || sscanf(buf, "%i", &value) != 1)
+               return -EINVAL;
+       if (value < 0 || value > 2)
+               return -EINVAL;
+
+       status = wmi_evaluate_method(EEEPC_WMI_MGMT_GUID,
+                                    1, EEEPC_WMI_METHODID_CFVS, &input, NULL);
+
+       if (ACPI_FAILURE(status))
+               return -EIO;
+       else
+               return count;
+}
+
+static DEVICE_ATTR(cpufv, S_IRUGO | S_IWUSR, NULL, store_cpufv);
+
+static void eeepc_wmi_sysfs_exit(struct platform_device *device)
+{
+       device_remove_file(&device->dev, &dev_attr_cpufv);
+}
+
+static int eeepc_wmi_sysfs_init(struct platform_device *device)
+{
+       int retval = -ENOMEM;
+
+       retval = device_create_file(&device->dev, &dev_attr_cpufv);
+       if (retval)
+               goto error_sysfs;
+
+       return 0;
+
+error_sysfs:
+       eeepc_wmi_sysfs_exit(platform_device);
+       return retval;
+}
+
  static int __devinit eeepc_wmi_platform_probe(struct platform_device *device)
  {
        struct eeepc_wmi *eeepc;
@@ -402,8 +446,14 @@ static int __init eeepc_wmi_init(void)
                goto del_dev;
        }
 
+       err = eeepc_wmi_sysfs_init(platform_device);
+       if (err)
+               goto del_sysfs;
+
        return 0;
 
+del_sysfs:
+       eeepc_wmi_sysfs_exit(platform_device);

 del_dev:
       platform_device_del(platform_device);
 put_dev:

drivers/platform/x86/eeepc-wmi.c +0 -0
@@ -418,6 +468,7 @@ static void __exit eeepc_wmi_exit(void)
  {
        struct eeepc_wmi *eeepc;
 
Quoted 12 lines
Quoted 7 lines
drivers/platform/x86/eeepc-wmi.c +1 -1
+       eeepc_wmi_sysfs_exit(platform_device);
        eeepc = platform_get_drvdata(platform_device);
        platform_driver_unregister(&platform_driver);
        platform_device_unregister(platform_device);
--

1.7.3.1

Seems ok, too bad they don't provide a way to guess the current configuration and the number of available settings. Especially when all they do is calling the old device.

Agree. But its probably not to bad in real life. I have some scripts that monitor dbus and update cpufv based on switching between batter/ac and powerup. With eeepc-laptop interface, it does read previous state to prevent unneeded write but other then that it didn't seem to useful to read it. Since acpi is doing same compare logic, always writing at important transition seems simplest approach for userland anyways.

Chris

maintainer
#4 lore raw
In reply to [email protected]
Quoted 7 lines · On Mon, Oct 11, 2010 at 3:48 AM, <[email protected]> wrote:

From: Chris Bagwell <[email protected]>

Added 4 hotkeys using same keymap values as eeepc-latop. These are mousepad toggle, resolution change, screen off, and task manager.  These were tested on 1005PE and are the Fn-F3, F4, F7, and F9, respectively.

Quoted 7 lines

Also, added a new hot key for power toggles (Fn-Space on 1005PE) and is meant to drive cpufv interface from userspace.

Finally, added several keys to be ignored that are being emitted but do not mapped to any useful or documented hotkeys.  This is purely cosmetic to prevent uknown key reports on console/log files. These keys are reported on 1005PE's.

What are exactly these keys ? Since they are probably some obscure Fn+ combo, and they are probably used on another model, I'm not sure we should hide them.

I'm still not happy with F13 for "disable touchpad" but I did the same for other laptops,
and we don't have a key for that ATM.

Otherwise, looks good.

#5 lore raw
Quoted 11 lines · Corentin Chary
Quoted 10 lines · On Mon, Oct 11, 2010 at 3:48 AM,  <[email protected]> wrote:

From: Chris Bagwell <[email protected]>

Added 4 hotkeys using same keymap values as eeepc-latop. These are mousepad toggle, resolution change, screen off, and task manager.  These were tested on 1005PE and are the Fn-F3, F4, F7, and F9, respectively.

Also, added a new hot key for power toggles (Fn-Space on 1005PE) and is meant to drive cpufv interface from userspace.

Quoted 7 lines
Quoted 4 lines

Finally, added several keys to be ignored that are being emitted but do not mapped to any useful or documented hotkeys.  This is purely cosmetic to prevent uknown key reports on console/log files. These keys are reported on 1005PE's.

What are exactly these keys ? Since they are probably some obscure Fn+ combo, and they are probably used on another model, I'm not sure we should hide them.

They are Fn-1, 2, s, d, f, and e. I can't really guess what 1 and 2 are for but I assume sdfe are arrow keys or something similar on larger models?

I debated on if to add ignores since surely some model uses them but I settled on someone else can modify current file instead of adding new lines once they are driven to add their laptop specific keys.

Quoted 4 lines

I'm still not happy with F13 for "disable touchpad" but I did the same for other laptops,
and we don't have a key for that ATM.

And user land doesn't seem very supported of this concept at the moment as well. I've tried some xinput stuff on touchpad tied to F13 but no luck so far. It does have a property to disable touchpad but I've not had time to fully debug yet. I'm trying to stay away fo synclient since thats end-of-lifed.

Quoted 2 lines

Otherwise, looks good.

Thanks. BTW, please let me know specifically if you'd like the ignore keys removed and I'll re-send a patch. I don't have enough info to be able to map them though.

Chris

maintainer
#6 lore raw
Quoted 41 lines · Chris Bagwell
Quoted 11 lines · Corentin Chary
Quoted 10 lines · On Mon, Oct 11, 2010 at 3:48 AM,  <[email protected]> wrote:

From: Chris Bagwell <[email protected]>

Added 4 hotkeys using same keymap values as eeepc-latop. These are mousepad toggle, resolution change, screen off, and task manager.  These were tested on 1005PE and are the Fn-F3, F4, F7, and F9, respectively.

Also, added a new hot key for power toggles (Fn-Space on 1005PE) and is meant to drive cpufv interface from userspace.

Quoted 7 lines
Quoted 4 lines

Finally, added several keys to be ignored that are being emitted but do not mapped to any useful or documented hotkeys.  This is purely cosmetic to prevent uknown key reports on console/log files. These keys are reported on 1005PE's.

What are exactly these keys ? Since they are probably some obscure Fn+ combo, and they are probably used on another model, I'm not sure we should hide them.

They are Fn-1, 2, s, d, f, and e.  I can't really guess what 1 and 2 are for but I assume sdfe are arrow keys or something similar on larger models?

I debated on if to add ignores since surely some model uses them but I settled on someone else can modify current file instead of adding new lines once they are driven to add their laptop specific keys.

Quoted 4 lines

I'm still not happy with F13 for "disable touchpad" but I did the same for other laptops,
and we don't have a key for that ATM.

And user land doesn't seem very supported of this concept at the moment as well.  I've tried some xinput stuff on touchpad tied to F13 but no luck so far.  It does have a property to disable touchpad but I've not had time to fully debug yet.  I'm trying to stay away fo synclient since thats end-of-lifed.

Quoted 1 line
Quoted 5 lines
Quoted 1 line

Otherwise, looks good.

Thanks.  BTW, please let me know specifically if you'd like the ignore keys removed and I'll re-send a patch.  I don't have enough info to be able to map them though.

I'd remove them, and wait for someone to complain that he has garbage in dmesg or unmapped keys.

Signature · 2 lines
Corentin Chary
http://xf.iksaif.net

A message that is not in the archive (sent off-list or not yet received): AANLkTin3J3oOaYD8G=YSrBr0AKzw7mY7v0BQssw5z2Z6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#8 lore raw
Quoted 16 lines · Corentin Chary
Quoted 7 lines · On Mon, Oct 11, 2010 at 3:48 AM, <[email protected]…

From: Chris Bagwell <[email protected]>

Added 4 hotkeys using same keymap values as eeepc-latop. These are mousepad toggle, resolution change, screen off, and task manager. These were tested on 1005PE and are the Fn-F3, F4, F7, and F9, respectively.

Quoted 7 lines

Also, added a new hot key for power toggles (Fn-Space on 1005PE) and is meant to drive cpufv interface from userspace.

Finally, added several keys to be ignored that are being emitted but do not mapped to any useful or documented hotkeys. This is purely cosmetic to prevent uknown key reports on console/log files. These keys are reported on 1005PE's.

Quoted 7 lines

What are exactly these keys ? Since they are probably some obscure Fn+ combo, and they are probably used on another model, I'm not sure we should hide them.

I'm still not happy with F13 for "disable touchpad" but I did the same for other laptops,
and we don't have a key for that ATM.

The most sensible way would be to add one then. We just need to decide if it should be a key or a switch.

Signature · 8 lines
Dmitry

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
#9 lore raw
Quoted 21 lines · Dmitry Torokhov
Quoted 20 lines · Corentin Chary
Quoted 7 lines · On Mon, Oct 11, 2010 at 3:48 AM,  <[email protected]> wrote:

From: Chris Bagwell <[email protected]>

Added 4 hotkeys using same keymap values as eeepc-latop. These are mousepad toggle, resolution change, screen off, and task manager.  These were tested on 1005PE and are the Fn-F3, F4, F7, and F9, respectively.

Quoted 7 lines

Also, added a new hot key for power toggles (Fn-Space on 1005PE) and is meant to drive cpufv interface from userspace.

Finally, added several keys to be ignored that are being emitted but do not mapped to any useful or documented hotkeys.  This is purely cosmetic to prevent uknown key reports on console/log files. These keys are reported on 1005PE's.

What are exactly these keys ? Since they are probably some obscure Fn+ combo, and they are probably used on another model, I'm not sure we should hide them.

Quoted 7 lines
Quoted 3 lines

I'm still not happy with F13 for "disable touchpad" but I did the same for other laptops,
and we don't have a key for that ATM.

The most sensible way would be to add one then. We just need to decide if it should be a key or a switch.

Motivated by thread on linux-input "Touchpad toggle mess", I changed Fn-F3(toggle touchpad) from KEY_F13 to KEY_F22 With Gnome 2.32 (Fedora 14), now magically my touchpad toggle works automagically.

So I'd like to submit a patch to change both eeepc-laptop and eeepc-wmi to use KEY_F22 for toggle touchpad to get some immediate benifit. Any issues with this? Is F13 doing anything useful by default?

I know in this thread and in other thread Dmitry mentioned we should make a KEY_TOUCHPAD_TOGGLE (or whatever name). I'm probably just smart enough to do that if preferred but don't think I'd be able to take it to the next level and get it translated to XF86XK_TouchpadToggle. Help appreciate in that area.

Chris

maintainer
#10 lore raw
Quoted 40 lines · Chris Bagwell
Quoted 21 lines · Dmitry Torokhov
Quoted 20 lines · Corentin Chary
Quoted 7 lines · On Mon, Oct 11, 2010 at 3:48 AM,  <[email protected]> wrote:

From: Chris Bagwell <[email protected]>

Added 4 hotkeys using same keymap values as eeepc-latop. These are mousepad toggle, resolution change, screen off, and task manager.  These were tested on 1005PE and are the Fn-F3, F4, F7, and F9, respectively.

Quoted 7 lines

Also, added a new hot key for power toggles (Fn-Space on 1005PE) and is meant to drive cpufv interface from userspace.

Finally, added several keys to be ignored that are being emitted but do not mapped to any useful or documented hotkeys.  This is purely cosmetic to prevent uknown key reports on console/log files. These keys are reported on 1005PE's.

What are exactly these keys ? Since they are probably some obscure Fn+ combo, and they are probably used on another model, I'm not sure we should hide them.

Quoted 7 lines
Quoted 3 lines

I'm still not happy with F13 for "disable touchpad" but I did the same for other laptops,
and we don't have a key for that ATM.

The most sensible way would be to add one then. We just need to decide if it should be a key or a switch.

Motivated by thread on linux-input "Touchpad toggle mess", I changed Fn-F3(toggle touchpad) from KEY_F13 to KEY_F22  With Gnome 2.32 (Fedora 14), now magically my touchpad toggle works automagically.

So I'd like to submit a patch to change both eeepc-laptop and eeepc-wmi to use KEY_F22 for toggle touchpad to get some immediate benifit.  Any issues with this?  Is F13 doing anything useful by default?

Quoted 8 lines

I know in this thread and in other thread Dmitry mentioned we should make a KEY_TOUCHPAD_TOGGLE (or whatever name).  I'm probably just smart enough to do that if preferred but don't think I'd be able to take it to the next level and get it translated to XF86XK_TouchpadToggle.  Help appreciate in that area.

Chris

Hi Chris,
Since 2.6.38 merge window should be in a long time, I think we have the time to ad new keys.

Dimitry, what do you think of :

KEY_TOUCHPAD_TOGGLE 248
KEY_TOUCHPAD_ON 249
KEY_TOUCHPAD_OFF 250

Maybe we should keep these lower keycodes for other stuff, and use some higher ones ?

Thanks,

Signature · 2 lines
Corentin Chary
http://xf.iksaif.net
#11 lore raw
Quoted 54 lines · Corentin Chary
Quoted 40 lines · Chris Bagwell
Quoted 21 lines · Dmitry Torokhov
Quoted 20 lines · Corentin Chary
Quoted 7 lines · On Mon, Oct 11, 2010 at 3:48 AM,  <[email protected]> wrote:

From: Chris Bagwell <[email protected]>

Added 4 hotkeys using same keymap values as eeepc-latop. These are mousepad toggle, resolution change, screen off, and task manager.  These were tested on 1005PE and are the Fn-F3, F4, F7, and F9, respectively.

Quoted 7 lines

Also, added a new hot key for power toggles (Fn-Space on 1005PE) and is meant to drive cpufv interface from userspace.

Finally, added several keys to be ignored that are being emitted but do not mapped to any useful or documented hotkeys.  This is purely cosmetic to prevent uknown key reports on console/log files. These keys are reported on 1005PE's.

What are exactly these keys ? Since they are probably some obscure Fn+ combo, and they are probably used on another model, I'm not sure we should hide them.

Quoted 7 lines
Quoted 3 lines

I'm still not happy with F13 for "disable touchpad" but I did the same for other laptops,
and we don't have a key for that ATM.

The most sensible way would be to add one then. We just need to decide if it should be a key or a switch.

Motivated by thread on linux-input "Touchpad toggle mess", I changed Fn-F3(toggle touchpad) from KEY_F13 to KEY_F22  With Gnome 2.32 (Fedora 14), now magically my touchpad toggle works automagically.

So I'd like to submit a patch to change both eeepc-laptop and eeepc-wmi to use KEY_F22 for toggle touchpad to get some immediate benifit.  Any issues with this?  Is F13 doing anything useful by default?

Quoted 8 lines

I know in this thread and in other thread Dmitry mentioned we should make a KEY_TOUCHPAD_TOGGLE (or whatever name).  I'm probably just smart enough to do that if preferred but don't think I'd be able to take it to the next level and get it translated to XF86XK_TouchpadToggle.  Help appreciate in that area.

Chris

Hi Chris,
Since 2.6.38 merge window should be in a long time, I think we have the time to ad new keys.

Quoted 9 lines

Dimitry, what do you think of :

KEY_TOUCHPAD_TOGGLE 248
KEY_TOUCHPAD_ON 249
KEY_TOUCHPAD_OFF 250

Maybe we should keep these lower keycodes for other stuff, and use some higher ones ?

I think we should move them up. Bastien mentioned that X already standardized on F21, 22 and 23 so they will need to remap anyways, thus we'll be "wasting" valuable lower scancode estate if we do it this way.

The only thing that is left is to feed udev guys with keymaps till X is able to take the full scancode trange.

Thanks.

Signature · 1 line
Dmitry