Difference between revisions of "Talk:Installing Ubuntu 6.10 on a ThinkPad X41 Tablet"

From ThinkWiki
Jump to: navigation, search
(Screen Rotation)
(rotate script)
Line 9: Line 9:
 
----
 
----
 
--[[User:Aerials|aerials]] 21:51, 27 September 2006 (CEST)
 
--[[User:Aerials|aerials]] 21:51, 27 September 2006 (CEST)
 +
 +
== rotate script ==
 +
 +
for me in order to get it working i have to modify <br>
 +
x41tsdown.sh
 +
<pre>
 +
#!/bin/sh
 +
XUSER=`who | grep ' :0' | cut -d ' ' -f 1`
 +
if test -n "$XUSER"; then
 +
    su - $XUSER -c "DISPLAY=:0 xrandr -o right"
 +
    su - $XUSER -c "DISPLAY=:0 xsetwacom set "stylus" Rotate CW"
 +
    su - $XUSER -c "DISPLAY=:0 xsetwacom set "cursor" Rotate CW"
 +
    su - $XUSER -c "DISPLAY=:0 xsetwacom set "eraser" Rotate CW"
 +
    su - $XUSER -c "DISPLAY=:0 xvkbd&"
 +
    sleep 2
 +
fi
 +
</pre>
 +
x41tsup.sh
 +
<pre>
 +
#!/bin/sh
 +
su - $XUSER -c "DISPLAY=:0 xrandr -omright"
 +
XUSER=`who | grep ' :0' | cut -d ' ' -f 1`
 +
if test -n "$XUSER"; then
 +
    su - $XUSER -c "DISPLAY=:0 xrandr -o normal"
 +
    su - $XUSER -c "DISPLAY=:0 xsetwacom set "stylus" Rotate NONE"
 +
    su - $XUSER -c "DISPLAY=:0 xsetwacom set "cursor" Rotate NONE"
 +
    su - $XUSER -c "DISPLAY=:0 xsetwacom set "eraser" Rotate NONE"
 +
    sleep 2
 +
fi
 +
killall xvkbd
 +
</pre>
 +
 +
[[User:Waldwolf|Waldwolf]] 00:41, 4 October 2006 (CEST)

Revision as of 00:41, 4 October 2006

NetBoot Installation Move

I moved the NetBoot portion of the documentation, as it's part of isntallation instructions. The pre-installation notes were intended for README-like things, not so much actual procedure.

Screen Rotation

I followed your guide to create the screen rotation scripts/events, and after acpi force-reload and restart it works just fine. But when I reboot the machine, I have to reload and restart acpi again, otherwise it won't work.


--aerials 21:51, 27 September 2006 (CEST)

rotate script

for me in order to get it working i have to modify
x41tsdown.sh

#!/bin/sh
XUSER=`who | grep ' :0' | cut -d ' ' -f 1`
 if test -n "$XUSER"; then
    su - $XUSER -c "DISPLAY=:0 xrandr -o right"
    su - $XUSER -c "DISPLAY=:0 xsetwacom set "stylus" Rotate CW"
    su - $XUSER -c "DISPLAY=:0 xsetwacom set "cursor" Rotate CW"
    su - $XUSER -c "DISPLAY=:0 xsetwacom set "eraser" Rotate CW"
    su - $XUSER -c "DISPLAY=:0 xvkbd&"
    sleep 2
 fi

x41tsup.sh

#!/bin/sh
su - $XUSER -c "DISPLAY=:0 xrandr -omright"
XUSER=`who | grep ' :0' | cut -d ' ' -f 1`
 if test -n "$XUSER"; then
    su - $XUSER -c "DISPLAY=:0 xrandr -o normal"
    su - $XUSER -c "DISPLAY=:0 xsetwacom set "stylus" Rotate NONE"
    su - $XUSER -c "DISPLAY=:0 xsetwacom set "cursor" Rotate NONE"
    su - $XUSER -c "DISPLAY=:0 xsetwacom set "eraser" Rotate NONE"
    sleep 2
 fi
killall xvkbd

Waldwolf 00:41, 4 October 2006 (CEST)