Public bug reported: After following the trace of my /etc/acpi/asus-touchpad.sh, I found that the error was in the getXconsole function of /usr/share/acpi-support /power-funcs.
When asus-touchpad.sh is runned, it is runned as root (understandably), but that makes this line fail: displaynum=`ps t tty$console | sed -n -re 's,.*/X .*:([0-9]+).*,\1,p'` since that only gets root's processes. I changed it to: displaynum=`ps at tty$console | sed -n -re 's,.*/X .*:([0-9]+).*,\1,p'` and now it works like a charm. Just thaught I should mention it, so that the authors can fix it, but also so that other users with the same problem can fix it themself. Extra information: Description: Ubuntu 11.10 Release: 11.10 acpi-support: *** 0.138 0 500 http://no.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages ** Affects: acpi-support (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/899008 Title: Asus touchpad disabling doesn't work. Found the error in getXconsole. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/899008/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs