Asus touchpad disabling doesn't work. Found the error in getXconsole.

Bug #899008 reported by Vegard Loekken
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

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

Revision history for this message
Steve Langasek (vorlon) wrote :

why do you have an X server running as non-root?

Changed in acpi-support (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Vegard Loekken (vegard-loekken) wrote :

I don't. This is wierd. I tried resetting the "displaynum=..."-line back to original, and now it works. Must have been something else I changed, but I can't see what.

Anyway, sorry about making an unnecessary bug report.

Revision history for this message
Steve Langasek (vorlon) wrote :

no worries! closing the bug report.

Changed in acpi-support (Ubuntu):
status: Incomplete → 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.