Comment 29 for bug 199682

Revision history for this message
Lex Ross (lross) wrote :

SirFrankie, my deepest apologies for confusion with attached patch. The path to LEDs has indeed changed from asus-laptop to asus_laptop when upgrading from 9.04 to 9.10. Fn+F2 was working out of the box when performing clean 9.10 install.

The original patch I posted here was only to make Network Manager to turn wireless LED on and off upon network connection and disconnect. It is not meant to fix any of the special keys and is a rough fix anyway as wireless LED is supposed to blink to indicate wireless activity.

I used to run asus_acpi daemon as normal user prior to 9.10 in order to get the keys working. Now that we can see some progress with standard acpid I would look into /etc/acpi/events directory to configure hot keys the right way. For now, I am correcting the original LEDs patch and is going to fix Touchpad button and post the fix here. Special keys like Power Profile, Fn+C, Fn+V and Fn+T are more or less a matter of personal preference so please feel free to contact me directly if you need help configuring them one way or another. It would be nice if we could agree on what the defaults for those keys should be as well.

Please note that the hot keys are now all being translated to key codes reported by showkey command, and as such should be configurable with System->Preferences->Shortcuts menu, with Touchpad button being obvious exception.

The default key codes reported by "sudo showkey -k" command and corresponding keysyms reported by xev command are listed below.

Media Player - 226 (XF86AudioMedia)
Power Profile (also Fn+Space) - 152 (XF86ScreenSaver)
Web Browser - 150 (XF86WWW)
TouchPad on/off (ATKD 06b)- 330
Wireless on/off (Fn+F2) - 238 (XF86WLAN)
Asus Splendid (Fn+C, ATKD 08a) - 148 (XF86Launch1)
Webcam (Fn+V) - 212 (XF86WebCam)
Asus4Phone (Fn+T) - 169 (XF86Phone)

As you can see, most keys are mapped correctly with default settings. I would really appreciate to be able to switch power profiles with the hot key rather then going through Screensaver and Power preferences windows each time I need to watch online movie or anything like that. So that my default profile would be:

Screensaver and display lock in 5 minutes
Brightness at 85%
Dim display on inactivity
Turn display off in 10 minutes

and my alternative profile for watching movies online could be

Screensaver off
Brightness at 100%
Do not dim display on inactivity
Turn off display - never

In the meantime, in order to correct Touchpad button issue please copy attached asus-f5n-touchpad file onto /etc/acpi/events directory and restart acpid as follows.

sudo cp asus-f5n-touchpad /etc/acpi/events/
sudo chmod 644 /etc/acpi/events/asus-f5n-touchpad
sudo restart acpid

You may also wish to move the file /etc/acpi/events/asus-f8sv-touchpad out of acpi directory before restarting acpid. This file is responsible for Fn+C locking the touchpad and is supposed to fix touchpad button on Asus F8 series. Hope this helps.