In a message a few minutes ago, I wrote:
> I've just installed 5.0/amd64 (from the CD set) on a Lenovo
> Thinkpad T60 laptop (dmesg below).  I'm running GENERIC.mp.  I
> will probably move to -stable soon, but right now I'm running
> -release.  X autoconfigures and works nicely (1680x1050 pixels,
> /var/log/Xorg.0.log below), *but* occasionally it hangs. :( :(
[[...]]

A few other details:

I'm not running xdm.  I normally login at the console, then type
"startx&;logout" to start X.  My .xinitrc is as follows (the ICON_X1
and ICON_X2 magic is to allow this same .xinitrc to work on two laptops
with different screen resolutions):

--- begin /home/jonathan/.xinitrc ---
#!/bin/sh

PATH=/usr/X11R6/bin:/usr/local/bin:$PATH
export PATH

xterm -C -g 80x28+0+0 -bw 4 -fn 7x14 -fg white -bg black -j -rw +s -sl 2000 +sb 
-si -sk +sf -wf -cm &

HOST=`hostname -s`
export HOST
DOMAIN=`domainname`
export DOMAIN

##xsetroot -solid grey15
xsetroot -solid black
xset m 2 10
##xset b 10
xset r on
xset r rate 250 40

# make Caps Lock key be another control key
# thanks to Philip Guenther for suggesting how to get this right!
xmodmap - <<'EOF'
remove Lock = Caps_Lock
keysym Caps_Lock = Control_L
add control = Control_L
!! Swap Caps_Lock and Control_L (adapted from the xmodmap(1) man page)
!!remove Lock = Caps_Lock
!!remove Control = Control_L
!!keysym Control_L = Caps_Lock
!!keysym Caps_Lock = Control_L
!!add Lock = Caps_Lock
!!add Control = Control_L
EOF

# workaround for broken right-arrow on helium: map page-L/R to L/R arrow
# defaults on helium:
#   Page-left   = keycode 234 = no keysym
#   Page-right  = keycode 233 = no keysym
#   Left-arrow  = keycode 100 = keysym Left
#   Right-arrow = keycode 102 = keysym Right
xmodmap - <<'EOF'
keycode 234 = Left
keycode 233 = Right
EOF

xclock -g 55x56-0+0 -update 60 -fg white -rv -pad 0 -bw 0 &
xbatt -g 40x56-18+0 -bw 0 &     # logically this should be -g ...-56+0, but
                                # for some reason it comes out too far left
                                # that way
xmeter -g 50x56-96+0 -bw 0 -fn 6x10 -rv -sn -scpu 101 -update 1 -cpu $HOST &
##xcalc -g 200x300-192+0 -xrm '*iconGeometry:64x80-120+0' -iconic -rv &

sleep 1

xterm -g 80x68+0-0 -bw 4 -fn 7x14 -fg white -bg black -j -rw +s -sl 2000 +sb 
-si -sk +sf -wf -cm &
xterm -g 80x38-0+56 -bw 4 -fn 7x14 -fg white -bg black -j -rw +s -sl 2000 +sb 
-si -sk +sf -wf -cm &
xterm -g 80x28-0-0 -bw 4 -fn 7x14 -fg white -bg black -j -rw +s -sl 2000 +sb 
-si -sk +sf -wf -cm &

case `xdpyinfo | grep dimensions: | awk '{print $2}' -` in
1680x*) xterm -g 80x58+572-0 -bw 4 -fn 7x14 -fg white -bg black -j -rw +s -sl 
2000 +sb -si -sk +sf -wf -cm &
        ICON_X1=-690
        ICON_X2=-625
        ;;
*)      ICON_X1=+595
        ICON_X2=+660
        ;;
esac

xterm -g 80x30+0+136 -iconic -xrm "*iconGeometry:${ICON_X1}+0" -bw 4 -fn 7x14 
-fg white -bg black -j -rw +s -sl 2000 +sb -si -sk +sf -wf -cm &
xterm -g 80x30+0+190 -iconic -xrm "*iconGeometry:${ICON_X1}+20" -bw 4 -fn 7x14 
-fg white -bg black -j -rw +s -sl 2000 +sb -si -sk +sf -wf -cm &
xterm -g 80x30+0+244 -iconic -xrm "*iconGeometry:${ICON_X1}+40" -bw 4 -fn 7x14 
-fg white -bg black -j -rw +s -sl 2000 +sb -si -sk +sf -wf -cm &
xterm -g 80x30+0+298 -iconic -xrm "*iconGeometry:${ICON_X1}+60" -bw 4 -fn 7x14 
-fg white -bg black -j -rw +s -sl 2000 +sb -si -sk +sf -wf -cm &
xterm -g 80x30+0+352 -iconic -xrm "*iconGeometry:${ICON_X1}+80" -bw 4 -fn 7x14 
-fg white -bg black -j -rw +s -sl 2000 +sb -si -sk +sf -wf -cm &
xterm -g 80x30+0+406 -iconic -xrm "*iconGeometry:${ICON_X1}+100" -bw 4 -fn 7x14 
-fg white -bg black -j -rw +s -sl 2000 +sb -si -sk +sf -wf -cm &

xterm -g 80x30-0+136 -iconic -xrm "*iconGeometry:${ICON_X2}+00" -bw 4 -fn 7x14 
-fg white -bg black -j -rw +s -sl 2000 +sb -si -sk +sf -wf -cm &
xterm -g 80x30-0+190 -iconic -xrm "*iconGeometry:${ICON_X2}+20" -bw 4 -fn 7x14 
-fg white -bg black -j -rw +s -sl 2000 +sb -si -sk +sf -wf -cm &
xterm -g 80x30-0+244 -iconic -xrm "*iconGeometry:${ICON_X2}+40" -bw 4 -fn 7x14 
-fg white -bg black -j -rw +s -sl 2000 +sb -si -sk +sf -wf -cm &
xterm -g 80x30-0+298 -iconic -xrm "*iconGeometry:${ICON_X2}+60" -bw 4 -fn 7x14 
-fg white -bg black -j -rw +s -sl 2000 +sb -si -sk +sf -wf -cm &
xterm -g 80x30-0+352 -iconic -xrm "*iconGeometry:${ICON_X2}+80" -bw 4 -fn 7x14 
-fg white -bg black -j -rw +s -sl 2000 +sb -si -sk +sf -wf -cm &
xterm -g 80x30-0+406 -iconic -xrm "*iconGeometry:${ICON_X2}+100" -bw 4 -fn 7x14 
-fg white -bg black -j -rw +s -sl 2000 +sb -si -sk +sf -wf -cm &

##ctwm -n
twm
--- end /home/jonathan/.xinitrc ---

-- 
-- "Jonathan Thornburg [remove -animal to reply]" 
<jth...@astro.indiana-zebra.edu>
   Dept of Astronomy & IUCSS, Indiana University, Bloomington, Indiana, USA
   "Washing one's hands of the conflict between the powerful and the
    powerless means to side with the powerful, not to be neutral."
                                      -- quote by Freire / poster by Oxfam

Reply via email to