X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=presentation_mode;h=c0e583cbb5ac340f8f634295bd20d693ac41dbfc;hb=08297393bd605ed9104b3f9f1d6e35eb26bb7f4e;hp=e56427e4dead7c9e578c5d6aea3212e0dc69c464;hpb=e39bf45ec9f046c0343d2ab3179e970e9102d64f;p=bin.git diff --git a/presentation_mode b/presentation_mode index e56427e..c0e583c 100755 --- a/presentation_mode +++ b/presentation_mode @@ -1,14 +1,18 @@ #!/bin/sh +# sudo radeontool regset FP_GEN_CNTL $((0x000345cd & ~0x0c07 | 0x0405)) +# sudo radeontool regset FP_GEN_CNTL $((0x00034148 & ~0x0c07 | 0x0405)) + if [ -n "$1" ]; then - xrandr -s 1024x768 - xmodmap -e 'keysym Left = p' - xmodmap -e 'keysym Right = n' +# xrandr -s 1024x768 + xrandr -s 800x600 + xmodmap -e 'keysym Left = p' + xmodmap -e 'keysym Right = n' killall xscreensaver else xrandr -s 1440x900 - xmodmap -e 'keycode 102 = Right' - xmodmap -e 'keycode 100 = Left' + xmodmap -e 'keycode 102 = Right' + xmodmap -e 'keycode 100 = Left' # XXX test to see if the X screensaver is already running /usr/bin/xscreensaver & >/dev/null 2>&1 fi; \ No newline at end of file