Re: Custom X scripts no longer work
Chris <[email protected]>
| Newsgroups | gmane.linux.pxes.devel |
|---|---|
| Organization | NAIC |
| Message-ID | <[email protected]> |
Sure,
I cannot take credit for it, however, I swiped it from a Knoppix disk :0).
I will include a copy, or you can just look at what knoppix does for it.
If I rely upon the standard pxes Xf86config-4, I only get 800x600 with a awful
refresh rate. Using this new one, I get 1024x768 with about a 72 or 75
refresh -- much more tollerable.
The good news is that it is configuring my ATI cards better than the previous
pxes scripts. The two cards it has a hard time with are the virge and the
i810 -- Although these are better too. It used to just crash-out with these
cards, now it gets 800x600 with ~60 refresh -- so at least that is
something :0).
But -- I would really appreciate some advice on how I can get this working
again. It just will not let me write to the filesystem on the thin client --
even with the remount,rw. There must be some trick that can be employed...
Thanks Diego!
Chris
==============================================================
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "PS/2 Mouse" "CorePointer"
# Serial Mouse not detected
# USB Mouse not detected
EndSection
Section "ServerFlags"
Option "AllowMouseOpenFail" "true"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/PEX"
# Additional fonts: Locale, Gimp, TTF...
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
# FontPath "/usr/X11R6/lib/X11/fonts/latin2/75dpi"
# FontPath "/usr/X11R6/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib,
see /etc/X11/XftConfig!
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/share/fonts/ttf/western"
FontPath "/usr/share/fonts/ttf/decoratives"
FontPath "/usr/share/fonts/truetype"
FontPath "/usr/share/fonts/truetype/openoffice"
FontPath "/usr/share/fonts/truetype/ttf-bitstream-vera"
FontPath "/usr/share/fonts/latex-ttf-fonts"
FontPath "/usr/X11R6/lib/X11/fonts/defoma/CID"
FontPath "/usr/X11R6/lib/X11/fonts/defoma/TrueType"
EndSection
Section "Module"
Load "ddc" # ddc probing of monitor
Load "GLcore"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "bitmap" # bitmap-fonts
Load "speedo"
Load "type1"
Load "freetype"
Load "record"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Serial Mouse"
Driver "mouse"
Option "Protocol" "Microsoft"
Option "Device" "/dev/ttyS0"
Option "Emulate3Buttons" "true"
Option "Emulate3Timeout" "70"
Option "SendCoreEvents" "true"
EndSection
Section "InputDevice"
Identifier "PS/2 Mouse"
Driver "mouse"
Option "Protocol" "auto"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "true"
Option "Emulate3Timeout" "70"
Option "SendCoreEvents" "true"
EndSection
Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "SendCoreEvents" "true"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "Buttons" "5"
EndSection
# Auto-generated by KNOPPIX mkxf86config
Section "Monitor"
Identifier "Monitor0"
Option "DPMS" "true"
VendorName "DEL"
ModelName "DEL2430"
# HorizSync 28.0 - 78.0 # Warning: This may fry very old Monitors
HorizSync 28.0 - 96.0 # Warning: This may fry old Monitors
VertRefresh 50.0 - 76.0 # Very conservative. May flicker.
# These are the DDC-probed settings reported by your monitor.
# 1280x1024, 75.0Hz; hfreq=79.98, vfreq=75.03
ModeLine "1280x1024" 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync
+vsync
# 1024x768, 75.0Hz; hfreq=60.02, vfreq=75.03
ModeLine "1024x768" 78.75 1024 1040 1136 1312 768 769 772 800 +hsync
+vsync
# 1024x768, 70.0Hz; hfreq=56.48, vfreq=70.07
ModeLine "1024x768" 75.00 1024 1048 1184 1328 768 771 777 806 -hsync
-vsync
# 1024x768, 60.0Hz; hfreq=48.36, vfreq=60.00
ModeLine "1024x768" 65.00 1024 1048 1184 1344 768 771 777 806 -hsync
-vsync
# 800x600, 75.0Hz; hfreq=46.88, vfreq=75.00
ModeLine "800x600" 49.50 800 816 896 1056 600 601 604 625 +hsync
+vsync
# 800x600, 60.0Hz; hfreq=37.88, vfreq=60.32
ModeLine "800x600" 40.00 800 840 968 1056 600 601 605 628 +hsync
+vsync
# 800x600, 56.0Hz; hfreq=35.16, vfreq=56.25
ModeLine "800x600" 36.00 800 824 896 1024 600 601 603 625 +hsync
+vsync
# 640x480, 75.0Hz; hfreq=37.50, vfreq=75.00
ModeLine "640x480" 31.50 640 656 720 840 480 481 484 500 -hsync
-vsync
# 640x480, 72.0Hz; hfreq=37.86, vfreq=72.81
ModeLine "640x480" 31.50 640 656 696 816 480 481 484 504 -hsync
-vsync
# 640x480, 60.0Hz; hfreq=31.47, vfreq=59.94
ModeLine "640x480" 25.17 640 648 744 784 480 482 484 509 -hsync
-vsync
EndSection
Section "Device"
### Available Driver options are:-
# sw_cursor is needed for some ati and radeon cards
#Option "sw_cursor"
#Option "hw_cursor"
#Option "NoAccel"
#Option "ShowCache"
#Option "ShadowFB"
#Option "UseFBDev"
#Option "Rotate"
Identifier "Card0"
# The following line is auto-generated by KNOPPIX mkxf86config
Driver "s3virge"
VendorName "All"
BoardName "All"
# BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultColorDepth 16
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 32
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
On Friday 03 September 2004 09:35 pm, Diego Torres Milano wrote:
> Can you tell me what is in the (or better send me) XF86config-4.virge ?
>
> On Fri, 2004-09-03 at 15:56, Chris wrote:
> > Hello.
> >
> > I have been wresting with this for a while, and I cannot find any clear
> > documentation on the best way to do this.
> >
> > The problem is that I have several thin client machines that have video
> > cards that are not well configured by the default XF86Config-4.tpl. I
> > used to use /tftpboot/pxes/config. I put in a nice little script that
> > deleted and over-wrote the /etc/X11/XF86config-4 file. It won't let me
> > do that anymore.
> >
> > The reason I overwrote the /etc/X11 file instead of the /tmp/parsed file
> > was because the customization scripts are called too early in the rcS,
> > and my copy would be over-written when X configuration took place in the
> > rcS script.
> >
> > So, I tried hacking the rcS script, and put the copy of my custom
> > XF86config-4 file at the end so it would not get overwritten -- still no
> > dice.
> >
> > The problem seems to be that it will not let me overwrite any of these
> > files. It used to on pxes-0.5, but not anymore.
> >
> > This was the working version of my script:
> >
> > /usr/bin/tftp pxesserver >/dev/null <<!
> > timeout 30
> > get Xs/XF86Config-4.virge
> > !
> > mount -n -o remount,rw / 2>/tmp/bs.log ## was necessary because
> > mounted r/o rm -f /etc/X11/XF* 2>/tmp/bs.log
> > cp -f XF86Config-4.virge /etc/X11/XF86Config 2>/tmp/bs.log
> > cp -f XF86Config-4.virge /etc/X11/XF86Config-4 2>/tmp/bs.log
> > mount -n -o remount,ro 2>/tmp/bs.log
> >
> > bs.log is always made, but always empty.
> >
> > I likewise cannot write over /etc/X11/XF86Config-4.tpl -- Operation not
> > permitted.
> >
> > Is there a better way to do this, or a way I can do what I have done in
> > the past?
> >
> >
> > Thank you!
> >
> > Chris
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by BEA Weblogic Workshop
> > FREE Java Enterprise J2EE developer tools!
> > Get your free copy of BEA WebLogic Workshop 8.1 today.
> > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> > _______________________________________________
> > pxes-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/pxes-devel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click