[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Trouble with X 4.0.3 on IBM T22 (kernel 2.4.5)



>>>>> "Martin" == Martin Sk?tt <Martin> writes:

    Martin> I just bought an 800 MHz IBM T22 with 14.1" TFT and a S3
    Martin> Savage IX video chip. [...]  Can anyone help to get X up
    Martin> and running?  [...]

Below is my XF86Config-4, as used on my T22.  At the moment, I also
find that I have to switch to a non-X virtual console when I suspend
and switch back on resume to cause X to refresh (otherwise it
doesn't)!  The script that does that (/etc/apm/event.d/01xhack-local)
is also below.

Other hacks required on my T22 (for now :-) include:

* Unloading the eepro100 module on suspend, since it won't come back
  since about kernel version 2.4.6.

* Turning esd off and unloading the cs46xx module before suspend, to
  try and increase reliability.

I can post the hacks I use for these if anyone is interested.

Needless to say, there are still some power management issues...  :-)

peace & happiness,
martin

--------8<---------8<-------- CUT HERE --------8<---------8<--------
# XF86Config-4 (XFree86 server configuration file) generated by Dexconf, the
# Debian X Configuration tool, using values from the debconf database.
#
# Edit this file with caution, and see the XF86Config manual page.
# (Type "man XF86Config" at the shell prompt.)

Section "Files"
	FontPath	"unix/:7100"			# local font server
	# if the local font server has problems, we can fall back on these
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath	"/usr/lib/X11/fonts/Speedo"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
EndSection

Section "ServerFlags"
	Option	"NoPM" "True"
EndSection


Section "Module"
	Load	"ddc"
	Load	"GLcore"
	Load	"dbe"
	Load	"dri"
	Load	"extmod"
	Load	"glx"
	Load	"pex5"
	Load	"record"
	Load	"xie"
	Load	"bitmap"
	Load	"freetype"
	Load	"speedo"
	Load	"type1"
	Load	"vbe"
	Load	"int10"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
#	Option		"XkbModel"	"pc104"
	Option		"XkbModel"	"pc101"
	Option		"XkbLayout"	"us"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"PS/2"
	Option		"Emulate3Buttons"	"true"
EndSection

Section "InputDevice"
	Identifier	"Generic Mouse"
	Driver		"mouse"
	Option		"SendCoreEvents"	"true"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "Device"
	Identifier	"T22 Savage"
	Driver		"savage"
	VideoRam	8192
EndSection

Section "Monitor"
	Identifier	"LCD"
	ModeLine "1400x1050" 153.5 1400 1464 1784 1912 1050 1052 1064 1090 -HSync -VSync
#	HorizSync	30-92
	HorizSync	30-92
#	VertRefresh	50-85
	VertRefresh 	50-150
	Option		"DPMS"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"T22 Savage"
	Monitor		"LCD"
	DefaultDepth	16
	SubSection "Display"
		Depth		1
		Modes		"1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1400x1050"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice	"Generic Mouse"
EndSection

Section "DRI"
	Mode	0666
EndSection

# end of XF86Config

--------8<---------8<-------- CUT HERE --------8<---------8<--------
#!/bin/sh
# local stuff for suspend/resume

RESUME_FILE=/var/run/resume_to_console
PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

[ "`which chvt`" ] || exit 0

case "$1" in
suspend)
	rm -f $RESUME_FILE
	xpid=`pidof X`
	[ "$xpid" ] && {
		curvt=`fgconsole`
		xvt=`ps ho args p $xpid | sed 's/.* vt\([0-9]*\) .*/\1/'`
		[ "$xvt" -eq  "$curvt" ] && {
			echo $curvt >$RESUME_FILE
			chvt 1
		}
	}
	;;
resume)
	[ -f $RESUME_FILE ] && chvt `cat $RESUME_FILE`
	rm -f $RESUME_FILE
	;;
esac

exit 0
--------8<---------8<-------- CUT HERE --------8<---------8<--------



Reply to: