https://bugzilla.novell.com/show_bug.cgi?id=333114
User dlooney@ucsd.edu added comment
https://bugzilla.novell.com/show_bug.cgi?id=333114#c4
David Looney changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dlooney@ucsd.edu
--- Comment #4 from David Looney 2008-02-03 11:34:13 MST ---
I don't think the problem is with wttyhx. The Fn+F3 originally worked out of
the box for 10.3 DVD install for me, but was "broken" when Xorg was updated.
Even if you edit thinkpad_hotkey_handler to directly su -c "xset dpms force
off" to use the user logged in to the X session, Xorg.0.log shows client
refused. Perhaps updated Xorg is looking at the real rather than apparent UID,
and the root process running the handler has no Xauthority ?
Fn+F3 does work if you pull out the user AND explicity export the user
Xauthority file, e.g. with:
local DUMMY
read login_user DUMMY DUMMY DUMMY DUMMY < <(/usr/bin/who | /usr/bin/grep -m 1
"(")
export XAUTHORITY=/home/$login_user/.Xauthority
DEBUG "XAUTHORITY = $XAUTHORITY" INFO
Alternatively, as root (returned by wttyhx as X_USER) you could use the
authorization of the gdm to gain access:
run_on_xserver() {
get_x_user
DEBUG "User $X_USER display $DISP $1 " INFO
su $X_USER -c "export XAUTHORITY=/var/lib/gdm/$DISP.Xauth ; DISPLAY=$DISP
$1"
}
This also works. Probably a better way to solve the auth problem ?
This should also effect any other key bindings using run_on_xserver.
David Looney
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.