Touchpad Hotkey not working on Asus V6

Bug #713278 reported by John Doe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
acpi-support
Invalid
Undecided
Unassigned
acpid (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: acpid

The Hotkey for dis/enabling the touchpad isn't working for me.

I tried to track the Problem down, but without luck.

While pressing the key, acpi_listen says:

hotkey ATKD 0000006b 00000000

This is the correct entry in /etc/acpi/events/asus-touchpad.

I've tried to run /etc/acpi/asus-touchpad.sh manually, but all I got was:

user@Demian:/etc/acpi$ ./asus-touchpad.sh
Couldn't find a filedescriptor that points to the terminal.

user@Demian:/etc/acpi$ sudo ./asus-touchpad.sh
awk: line 1: regular expression compile failed (missing '(')
:0)
No protocol specified
Unable to connect to X server
No protocol specified
Unable to connect to X server

After changing #!/bin/sh to #!/bin/bash in /etc/acpi/asus-touchpad.sh I am able to run the Script manually (it works) but the hotkey is still useless.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: acpid 1.0.10-5ubuntu4
ProcVersionSignature: Ubuntu 2.6.35-25.44-generic 2.6.35.10
Uname: Linux 2.6.35-25-generic i686
Architecture: i386
Date: Fri Feb 4 19:51:45 2011
ProcEnviron:
 LANG=de_DE.utf8
 SHELL=/bin/bash
SourcePackage: acpid

Revision history for this message
John Doe (jodo-deactivatedaccount) wrote :
Revision history for this message
Amit Mendapara (cristatus) wrote :

I am having the same issue with my Asus K52JT laptop. This laptop has 'Elantech' touchpad so I fixed the `asus-touchpad.sh` accordingly (see the attachment). Now the problem is that, touchpad is only enable/disable in GDM screen. Once I logged in, acpid is throwing the same error.

No protocol specified
Unable to connect to X server

Revision history for this message
Amit Mendapara (cristatus) wrote :

I think I found the solution. Here is the update `asus-touchpad.sh` (for Elantech touchpad). The trick is to run the `xinput` with current user

test "$user" && alias xinput="sudo -u $user xinput"

Now, if user is logged in the `xinput` command will be run with the current user. BTW, I think the `asus-touchpad.sh` should be fixed to handle both `Synaptics and Elantech` touchpad.

Changed in acpid (Ubuntu):
status: New → Confirmed
affects: acpid → acpi-support
Changed in acpi-support:
status: New → Confirmed
Revision history for this message
John Doe (jodo-deactivatedaccount) wrote :

Many thanks Amit, but I guess 'asus-touchpad.sh' alone isn't the full solution. I've changed the file to work with my Synaptics-Touchpad and it works fine, but... only if I run the file manually.

The Hotkey is still not working. I've tested Debain6 in the meantime, the error is the same there. Maybe this should also reported upstream?

I've attached the changed file that works with Synaptics.

Revision history for this message
John Doe (jodo-deactivatedaccount) wrote :

Ok, got the Hotkey working.

What I've done: I created a new command with gnome-keybinding-properties, pointed it to /etc/acpi/asus-touchpad.sh, and used the Hotkey for it.

That works, but is only a workaround. That should, of course, run out of the box.

Revision history for this message
John Doe (jodo-deactivatedaccount) wrote :

It would also be nice if someone could link this Bug against Ubuntu 11.04 (which I'm using now). The Bug is there too, workaround is also usable.

Revision history for this message
Cristiano (cristiano-moraes) wrote :

I'm also using Ubuntu 11.04. I've note that "xinput list" don't return anything when script is called by acpi but If I call the script directly from console, it works.

I create a script to test this.

Revision history for this message
John Doe (jodo-deactivatedaccount) wrote :

My previous solution @#5 with the manually added Hotkey isn't working anymore on Natty.

Revision history for this message
John Doe (jodo-deactivatedaccount) wrote :

I have to correct myself: it is working, but only after changing "#!/bin/sh" in the Script to "#!/bin/bash".

Revision history for this message
bdoe (bdoe-att) wrote :

I'm running Linux Mint 11 "Katya", which is based on Ubuntu 11.04 Natty. I just tried the trick in reply #5, adding the hotkey to gnome-keybinding-properties, and the Fn+F9 combination finally works to enable and disable the touchpad on my Asus G73JH laptop. I did not have to edit or alter /etc/acpi/asus-touchpad.sh at all.

What I find interesting is that the hotkey event handler /etc/acpi/events/asus-touchpad does not appear to work at all, even though it has the proper hotkey definition according to acpi_listen. As far as I could tell, the hotkey was not being trapped at all. With Ubuntu 10.10, I had the opposite issue: The hotkey event handler worked, properly passing control to asus-touchpad.sh, but the sh script itself would hang at the first "xinput" command.

Revision history for this message
Cyrille (cyrille-bartholomee) wrote :

Having the same issue. Script asus-touchpad.sh is called when pressing special key, but nothing happens. With some debugging I found $XINPUTNUM remains empty. When running script from console and getXconsole is disabled everything works fine... Maybe this information helps resolving this issue.

description: updated
Revision history for this message
dino99 (9d9) wrote :

This version has expired long ago

Changed in acpid (Ubuntu):
status: Confirmed → Invalid
Changed in acpi-support:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.