View | Details | Raw Unified | Return to bug 14915
Collapse All | Expand All

(-)/root/ati-powermode.sh (-4 / +4 lines)
Lines 8-16 Link Here
8
# Fedora Modifications By Michael Larabel <Michael AT Phoronix.com> on July 5, 2006
8
# Fedora Modifications By Michael Larabel <Michael AT Phoronix.com> on July 5, 2006
9
9
10
getXuser() {
10
getXuser() {
11
        user=`finger| grep -m1 ":$displaynum " | awk '{print $1}'`
11
        user=`who| grep -m1 ":$displaynum " | awk '{print $1}'`
12
        if [ x"$user" = x"" ]; then
12
        if [ x"$user" = x"" ]; then
13
                user=`finger| grep -m1 ":$displaynum" | awk '{print $1}'`
13
                user=`who| grep -m1 ":$displaynum" | awk '{print $1}'`
14
        fi
14
        fi
15
        if [ x"$user" != x"" ]; then
15
        if [ x"$user" != x"" ]; then
16
                userhome=`getent passwd $user | cut -d: -f6`
16
                userhome=`getent passwd $user | cut -d: -f6`
Lines 49-55 Link Here
49
        getXuser;
49
        getXuser;
50
        if [ x"$XAUTHORITY" != x"" ]; then
50
        if [ x"$XAUTHORITY" != x"" ]; then
51
            export DISPLAY=":$displaynum"
51
            export DISPLAY=":$displaynum"
52
            su $user -c "/usr/bin/aticonfig --set-powerstate=1 --effective=now"
52
            su $user -c "/usr/bin/aticonfig --set-powerstate=1"
53
        fi
53
        fi
54
    done
54
    done
55
else
55
else
Lines 59-65 Link Here
59
        getXuser;
59
        getXuser;
60
        if [ x"$XAUTHORITY" != x"" ]; then
60
        if [ x"$XAUTHORITY" != x"" ]; then
61
            export DISPLAY=":$displaynum"
61
            export DISPLAY=":$displaynum"
62
            su $user -c "/usr/bin/aticonfig --set-powerstate=3 --effective=now"
62
            su $user -c "/usr/bin/aticonfig --set-powerstate=3"
63
        fi
63
        fi
64
    done
64
    done
65
fi
65
fi

Return to bug 14915