XF86_SVGA


Forum: Laptops
Topic: XF86_SVGA
started by: petergunn

Posted by petergunn on Dec. 15 2004,18:42
I tried the XF86_SVGA X-server binary from the latest Knoppix and it works great on my Thinkpad 560z, no need to hack Gtk config or change fonts in emelfm as I suggested in the XBF/XFCom thread - it just works.

1) You need to install...

/usr/bin/X11/XF86_SVGA
/etc/X11/XF86Config

remember to...
sudo chown root XF86_SVGA
sudo chgrp root XF86_SVGA
sudo chmod +s XF86_SVGA

Im still using the XF86Config.neomagic I got with the XBF tar file. XBF/XFcom expected the XF86Config file in /etc but XF86_SVGA expects it in /etc/X11

2) Edit your ~/.xserverrc

comment out everything thats there and add...

exec /usr/bin/X11/XF86_SVGA -bpp 16 -nolisten tcp &> /dev/null

3) Edit your ~/.xinitrc

add the following before starting fluxbox or your window manager... (you dont have to do this if your DEL & BackSpace keys work properly without it)

xmodmap -e "keycode 22 = BackSpace"
xmodmap -e "keycode 107 = Delete"

4) restart your X-server (startx)

And your read to go! :-)

The binary Im using has support for the following chipsets...

 SVGA: server for SVGA graphics adaptors (Patchlevel 1):
     NV1, STG2000, RIVA 128, RIVA TNT, RIVA TNT2, RIVA ULTRA TNT2,
     RIVA VANTA, RIVA ULTRA VANTA, RIVA INTEGRATED, GeForce 256,
     GeForce DDR, Quadro, GeForce2 GTS, GeForce2 GTS (rev1),
     GeForce2 Ultra, Quadro 2 Pro, GeForce2 MX, GeForce2 MX DDR,
     Quadro 2 MXR, ET4000, ET4000W32, ET4000W32i, ET4000W32i_rev_b,
     ET4000W32i_rev_c, ET4000W32p, ET4000W32p_rev_a, ET4000W32p_rev_b,
     ET4000W32p_rev_c, ET4000W32p_rev_d, ET6000, ET6100, et3000, pvga1,
     wd90c00, wd90c10, wd90c30, wd90c24, wd90c31, wd90c33, gvga, r128, ati,
     sis86c201, sis86c202, sis86c205, sis86c215, sis86c225, sis5597,
     sis5598, sis6326, sis530, sis620, sis300, sis630, sis540, tvga8200lx,
     tvga8800cs, tvga8900b, tvga8900c, tvga8900cl, tvga8900d, tvga9000,
     tvga9000i, tvga9100b, tvga9200cxr, tgui9400cxi, tgui9420, tgui9420dgi,
     tgui9430dgi, tgui9440agi, cyber9320, tgui9660, tgui9680, tgui9682,
     tgui9685, cyber9382, cyber9385, cyber9388, cyber9397, cyber9520,
     cyber9525, 3dimage975, 3dimage985, cyber9397dvd, blade3d, cyberblade,
     clgd5420, clgd5422, clgd5424, clgd5426, clgd5428, clgd5429, clgd5430,
     clgd5434, clgd5436, clgd5446, clgd5480, clgd5462, clgd5464, clgd5465,
     clgd6205, clgd6215, clgd6225, clgd6235, clgd7541, clgd7542, clgd7543,
     clgd7548, clgd7555, clgd7556, ncr77c22, ncr77c22e, cpq_avga, mga2064w,
     mga1064sg, mga2164w, mga2164w AGP, mgag200, mgag100, mgag400, oti067,
     oti077, oti087, oti037c, al2101, ali2228, ali2301, ali2302, ali2308,
     ali2401, cl6410, cl6412, cl6420, cl6440, video7, ark1000vl, ark1000pv,
     ark2000pv, ark2000mt, mx, realtek, s3_savage, s3_virge, AP6422, AT24,
     AT3D, s3_svga, NM2070, NM2090, NM2093, NM2097, NM2160, NM2200,
     ct65520, ct65525, ct65530, ct65535, ct65540, ct65545, ct65546,
     ct65548, ct65550, ct65554, ct65555, ct68554, ct69000, ct64200,
     ct64300, mediagx, V1000, V2100, V2200, p9100, spc8110, i740, i740_pci,
     Voodoo Banshee, Voodoo3, smi, generic

You can the files I used here...
< http://www.milanosbar.com/xfree86/knoppix_svga.tgz >

Maybe someone can put together a .dsl ?? :-)

Posted by Max on Dec. 15 2004,19:25
Any reason for using the Neomagic XF86Config instead of the one included in the tgz file?
Posted by Max on Dec. 15 2004,21:03
I used the XF86Config that came with the tqz.  Made the modifications you outlined, then when I tried to "startx" I got:

giving up.
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): Server error

So then I thought maybe you had a typo in your exec statement in .xserverrc so I changed
exec /usr/bin/X11/XBF86_SVGA -bpp 16 -nolisten tcp &> /dev/null
to...
exec /usr/bin/X11/XF86_SVGA -bpp 16 -nolisten tcp &> /dev/null
..since that was the name of the file.

Then when I tried "startx" I got:
XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0" after 0 requests (0 known processed) with 0 events remaining.

Any ideas????

Posted by petergunn on Dec. 15 2004,21:23
Quote (Max @ Dec. 15 2004,16:03)
I used the XF86Config that came with the tqz.  Made the modifications you outlined, then when I tried to "startx" I got:

giving up.
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): Server error

So then I thought maybe you had a typo in your exec statement in .xserverrc so I changed
exec /usr/bin/X11/XBF86_SVGA -bpp 16 -nolisten tcp &> /dev/null
to...
exec /usr/bin/X11/XF86_SVGA -bpp 16 -nolisten tcp &> /dev/null
..since that was the name of the file.

Then when I tried "startx" I got:
XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0" after 0 requests (0 known processed) with 0 events remaining.

Any ideas????

remember to...
sudo chown root XF86_SVGA
sudo chgrp root XF86_SVGA
sudo chmod +s XF86_SVGA

BTW the XF86Config in the tar file is the XF86Config.neomagic from the XBF tar file. Use a different XF86Config if you have a non-neomagic chipset.

Posted by Max on Dec. 15 2004,21:37
Same error

I'm running a HD install of DSL 0.8.3 if that makes any difference.

Posted by petergunn on Dec. 15 2004,21:41
Quote (Max @ Dec. 15 2004,16:37)
Same error

I'm running a HD install of DSL 0.8.3 if that makes any difference.


Re-read my first post, there were some typos that Ive fixed. If it still doesnt work...

use CTRL+ALT+BACKSPACE keys to exit to the command line and try running XF86_SVGA with no parameters. If X starts up hit CTRL+ALT+BACKSPACE again to exit.

If it doesnt start up do...

script
XF86_SVGA
ldd /usr/X11R6/bin/XF86_SVGA
ls -al /usr/bin/X11/XF86_SVGA
ls -al /usr/bin/X11
(hit CTRL+D to stop recording output)

and post the output (which is in the file called typescript)  so we can see whats going wrong.

BTW You did remember to put the XFConfig into /etc/X11/ directory, not the /etc/ directory where XBF/XFCom looks?

Posted by Max on Dec. 15 2004,22:26
Yes, I have XF86Config is /etc/X11    (Is it suppose to be named XF86Config or XFConfig???)

Here is the output from the script and below that the XF86Config file:
Script started on Wed Dec 15 16:13:52 2004
dsl@box:~$ XF86_SVGA

XFree86 Version 3.3.6a / X Window System
(protocol Version 11, revision 0, vendor release 6300)
Release Date: xx November 2000
If the server is older than 6-12 months, or if your card is newer
than the above date, look for a newer version before reporting
problems.  (see < http://www.XFree86.Org/FAQ) >
Operating System: Linux 2.4.13 i686 [ELF]
Configured drivers:
 SVGA: server for SVGA graphics adaptors (Patchlevel 1):
     NV1, STG2000, RIVA 128, RIVA TNT, RIVA TNT2, RIVA ULTRA TNT2,
     RIVA VANTA, RIVA ULTRA VANTA, RIVA INTEGRATED, GeForce 256,
     GeForce DDR, Quadro, GeForce2 GTS, GeForce2 GTS (rev1),
     GeForce2 Ultra, Quadro 2 Pro, GeForce2 MX, GeForce2 MX DDR,
     Quadro 2 MXR, ET4000, ET4000W32, ET4000W32i, ET4000W32i_rev_b,
     ET4000W32i_rev_c, ET4000W32p, ET4000W32p_rev_a, ET4000W32p_rev_b,
     ET4000W32p_rev_c, ET4000W32p_rev_d, ET6000, ET6100, et3000, pvga1,
     wd90c00, wd90c10, wd90c30, wd90c24, wd90c31, wd90c33, gvga, r128, ati,
     sis86c201, sis86c202, sis86c205, sis86c215, sis86c225, sis5597,
     sis5598, sis6326, sis530, sis620, sis300, sis630, sis540, tvga8200lx,
     tvga8800cs, tvga8900b, tvga8900c, tvga8900cl, tvga8900d, tvga9000,
     tvga9000i, tvga9100b, tvga9200cxr, tgui9400cxi, tgui9420, tgui9420dgi,
     tgui9430dgi, tgui9440agi, cyber9320, tgui9660, tgui9680, tgui9682,
     tgui9685, cyber9382, cyber9385, cyber9388, cyber9397, cyber9520,
     cyber9525, 3dimage975, 3dimage985, cyber9397dvd, blade3d, cyberblade,
     clgd5420, clgd5422, clgd5424, clgd5426, clgd5428, clgd5429, clgd5430,
     clgd5434, clgd5436, clgd5446, clgd5480, clgd5462, clgd5464, clgd5465,
     clgd6205, clgd6215, clgd6225, clgd6235, clgd7541, clgd7542, clgd7543,
     clgd7548, clgd7555, clgd7556, ncr77c22, ncr77c22e, cpq_avga, mga2064w,
     mga1064sg, mga2164w, mga2164w AGP, mgag200, mgag100, mgag400, oti067,
     oti077, oti087, oti037c, al2101, ali2228, ali2301, ali2302, ali2308,
     ali2401, cl6410, cl6412, cl6420, cl6440, video7, ark1000vl, ark1000pv,
     ark2000pv, ark2000mt, mx, realtek, s3_savage, s3_virge, AP6422, AT24,
     AT3D, s3_svga, NM2070, NM2090, NM2093, NM2097, NM2160, NM2200,
     ct65520, ct65525, ct65530, ct65535, ct65540, ct65545, ct65546,
     ct65548, ct65550, ct65554, ct65555, ct68554, ct69000, ct64200,
     ct64300, mediagx, V1000, V2100, V2200, p9100, spc8110, i740, i740_pci,
     Voodoo Banshee, Voodoo3, smi, generic
(using VT number 2)

XF86Config: /etc/X11/XF86Config
(**) stands for supplied, (--) stands for probed/default values

Config Error: /etc/X11/XF86Config:1

Section "Files"
              ^^
File section keyword expected
dsl@box:~$ ldd /usr/X11R6/bin/XF86_SVGA
libz.so.1 => /usr/lib/libz.so.1 (0x4001b000)
libm.so.6 => /lib/libm.so.6 (0x4002d000)
libdl.so.2 => /lib/libdl.so.2 (0x4004f000)
libc.so.6 => /lib/libc.so.6 (0x40052000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
dsl@box:~$ ls -al /usr/bin/X11/XF86_SVGA
-rwsr-sr-x    1 root     root      3057368 Dec 15 14:44 /usr/bin/X11/XF86_SVGA
dsl@box:~$ ls -al /usr/bin/X11
lrwxrwxrwx    1 root     root           12 Oct  8 13:03 /usr/bin/X11 -> ../X11R6/bin
dsl@box:~$
Script done on Wed Dec 15 16:15:21 2004


Also, here is the XF86Config file:
Section "Files"
   RgbPath    "/usr/X11R6/lib/X11/rgb"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
   FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
   FontPath   "/usr/X11R6/lib/X11/fonts/encodings/"
   FontPath   "/usr/X11R6/lib/X11/fonts/util/"
   FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
#    ModulePath "/usr/X11R6/lib/modules"
EndSection

#Section "Module"
#    Load "xf86Jstk.so"
#EndSection

Section "ServerFlags"
#    NoTrapSignals
#    DontZap
#    DontZoom
#    DisableVidModeExtension
#    AllowNonLocalXvidtune
#    DisableModInDev
#    AllowNonLocalModInDev
EndSection

Section "Keyboard"
   Protocol "Standard"
   AutoRepeat 500 5
   XkbDisable
   XkbKeymap   "xfree86(us)"
EndSection

Section "Pointer"
#    Protocol    "Microsoft"
#    Device      "/dev/ttyS0"
   Protocol    "PS/2"
   Device      "/dev/psaux"
   Emulate3Buttons
   Emulate3Timeout    50
EndSection

Section "Monitor"
   Identifier  "Generic Multisync"
   VendorName  "Unknown"
   ModelName   "Unknown"
   HorizSync   30-64
   VertRefresh 50-100

# 640x480 @ 60 Hz, 31.5 kHz hsync
Modeline "640x480"     25.175 640  664  760  800   480  491  493  525
# 800x600 @ 60 Hz, 37.8 kHz hsync
Modeline "800x600"     40     800  840  968 1056   600  601  605  628 +hsync +vsync
# 1024x768 @ 60 Hz, 48.4 kHz hsync
Modeline "1024x768"    65    1024 1032 1176 1344   768  771  777  806 -hsync -vsync

EndSection

Section "Device"
   Identifier "NeoMagic"
#    Chipset "NM2160"
#    IOBase 0xfea00000
#    MemBase 0xfd000000
#    VideoRam 2048
#    DacSpeed 90
#    Option "linear"
#    Option "nolinear"
#    Option "sw_cursor"
#    Option "hw_cursor"
#    Option "no_accel"
#    Option "intern_disp"
#    Option "extern_disp"
#    Option "mmio"
#    Option "no_mmio"
#    Option "lcd_center"
#    Option "no_stretch"
EndSection

Section "Screen"
   Driver      "svga"
   Device      "NeoMagic"
   Monitor     "Generic Multisync"
   Subsection "Display"
       Depth       8
       Modes       "1024x768" "800x600" "640x480"
   EndSubsection
   Subsection "Display"
       Depth       16
       Modes       "1024x768" "800x600" "640x480"
   EndSubsection
   Subsection "Display"
       Depth       24
       Modes       "800x600" "640x480"
   EndSubsection
EndSection

Posted by petergunn on Dec. 15 2004,22:41
can you post the output of...

od -c /etc/X11/XF86Config | head -4

I think you might have strange \r\n DOS end of lines. If so you might need to ...

cat /etc/X11/XF86Config | dos2unix > ~/tmp
sudo mv ~/tmp /etc/X11/XF86Config

Posted by Max on Dec. 15 2004,23:02
Script started on Wed Dec 15 16:58:59 2004
dsl@box:~$ od -c /etc/X11/XF86Config | head -4
0000000   #   #   #       B   E   G   I   N       D   E   B   C   O   N
0000020   F       S   E   C   T   I   O   N  \n   #       X   F   8   6
0000040   C   o   n   f   i   g       (   X   F   r   e   e   8   6    
0000060   s   e   r   v   e   r       c   o   n   f   i   g   u   r   a
dsl@box:~$
Script done on Wed Dec 15 16:59:23 2004

Posted by laughing_gas on Dec. 15 2004,23:35
Would it be possible to make this a .dsl extension?  I imagine a lot of folks on old thinkpads would benefit.
Posted by petergunn on Dec. 16 2004,00:36
Quote (Max @ Dec. 15 2004,18:02)
Script started on Wed Dec 15 16:58:59 2004
dsl@box:~$ od -c /etc/X11/XF86Config | head -4
0000000   #   #   #       B   E   G   I   N       D   E   B   C   O   N
0000020   F       S   E   C   T   I   O   N  \n   #       X   F   8   6
0000040   C   o   n   f   i   g       (   X   F   r   e   e   8   6    
0000060   s   e   r   v   e   r       c   o   n   f   i   g   u   r   a
dsl@box:~$
Script done on Wed Dec 15 16:59:23 2004

That doesnt look like the file in my tar or the one you posted earlier...

mine looks like this...

dsl@box:~$ od -c /etc/X11/XF86Config | head -4
0000000    S   e   c   t   i   o   n       "   F   i   l   e   s   "  \n
0000020                    R   g   b   P   a   t   h                   "
0000040    /   u   s   r   /   X   1   1   R   6   /   l   i   b   /   X
0000060    1   1   /   r   g   b   "  \n                   F   o   n   t

Rename that file and put the one from my tar in its place.

Posted by petergunn on Dec. 16 2004,00:39
Quote (laughing_gas @ Dec. 15 2004,18:35)
Would it be possible to make this a .dsl extension?  I imagine a lot of folks on old thinkpads would benefit.

Not just thinkpads, if you look at the chipsets XF86_SVGA supports it looks like it will accelerate the majority of hardware that Xvesa doesnt support if you have the right XF86Config :-)

Posted by Max on Dec. 16 2004,02:53
My mistake.  I had renamed everything so that I could start X back up.  Here is the dump:

Script started on Wed Dec 15 20:47:43 2004
dsl@box:~$ d   od -c /etc/X11/XF86Config.new | head -4
0000000   S   e   c   t   i   o   n       "   F   i   l   e   s   "  \r
0000020  \n                   R   g   b   P   a   t   h                
0000040   "   /   u   s   r   /   X   1   1   R   6   /   l   i   b   /
0000060   X   1   1   /   r   g   b   "  \r  \n                   F   o
dsl@box:~$
Script done on Wed Dec 15 20:48:07 2004


I does look like my file has \r\n where your's is just \n

I'll try your dos2unix utility and report back...

Posted by Max on Dec. 16 2004,04:25
Works great now.  Must have been the config file in DOS format.

Maybe this will fix the problem with the mouse and keyboard locking up after the screen is closed and re-opened later.

Thanks for all your help.  It really is quite noticably faster.

Posted by petergunn on Dec. 16 2004,04:38
Quote (Max @ Dec. 15 2004,23:25)
Works great now.  Must have been the config file in DOS format.

Maybe this will fix the problem with the mouse and keyboard locking up after the screen is closed and re-opened later.

Thanks for all your help.  It really is quite noticably faster.

Cool :-)

Yes it seems to fix all the suspend/resume problems with my lappy. Any ideas how to turn it into a .dsl?

Posted by henk1955 on Dec. 16 2004,10:59
with your hint, i was able to make a XFree86.dsl out of the debian (sarge) xserver-xfree86_4.3.0.dfsg.1-8_i386.deb
the only "difficulty" was the content of XF86Config. but as usual Google was my friend.

now i have XFree86 running on a Dell Latitude C640 ( ATI Radeon Mobility 7500) and a Dell GX260 (Intel i810)

this is how i did it:
dpkg --extract xserver*.deb temp/
cd temp
set the suid bit on usr/X11R6/bin/XFree86
make dirlist.txt file like:
Code Sample
usr/X11R6/bin/XFree86
usr/X11R6/bin/gtf
usr/X11R6/bin/ioport
usr/X11R6/bin/mmapr
...
usr/X11R6/lib/modules/linux/libfbdevhw.a
usr/X11R6/lib/modules/linux/libint10.a

thats all in usr/X11R6/
then use < clivesay's repack >
create a suitable XF86Config copy it or make a link to it in /etc/X11
change /home/dsl/.xserverrc to
Code Sample
exec /usr/X11R6/bin/XFree86  -nolisten tcp

and thats it

Posted by Arto on Dec. 22 2004,17:46
Sorry, i'm a super noob at linux..
I was wondering.. how do i configure XF86? In RedHat i just typed XF86Config, but here it doesn't seem to work.

Anyway, i installed XF86_SVGA, it started up ok, just my mouse was all mesed up..

Help please :P

Posted by SaidinUnleashed on Dec. 22 2004,17:54
Arto, Just wait for the XFree86.dsl.

It will come with a bunch of premade configs that you will simply put in place, and instructions on how to do so.

It is currently in pre-testing and looks GOOOD.

Give us some time to run it aroung the track a few times.

-J.P.

Posted by jmnk on Dec. 27 2004,20:54
Hi,
I'm kind of new to dsl but I already like it. I managed to have it up and running on my tiny Libretto 110 laptop after installing XFree86.dsl and tweaking the XF86Config file. But I lost my desktop icons - how do I get those back? I'm running hard drive installation.
thanks.

Posted by ke4nt1 on Dec. 27 2004,21:05
a BIG thanks to petergunn for working out the details on
the SVGA server, and to henk1955 for the .dsl contrib.

XFree runs quite nicely on all my gear so far, using a
proper XF86Config file with it.

Do check out the NVidia.dsl if you have nvidia gear.
It really spritzes up your desktop/app speeds..

Nice to have my main box running at 75HZ refresh. :)

Again, thanks folks..

73
ke4nt

Posted by John on Dec. 27 2004,23:00
I am usingI am using the XFree86.dsl right now on my ancient Acer laptop.  Very good work guys.
Posted by arsenic on Jan. 03 2005,05:28
just followed verbatim and it worked flawlessly on a Dell Inspiron 3200 - chip is 128XD.
thank you for this.  and wonderful work.  the feather linux crew would be interested too im sure.  ill make a suggestion over there...

Posted by Mike on Mar. 23 2005,02:58
Greetings,

I am a bit inexperienced, could someone please point me to the ~/.xserverrc file, and explain how to uncomment existing?

Thanks Mike :D

Posted by Mike on Mar. 23 2005,23:50
I never did comment ./xserverrc file, instead I typed:

Linux vga=787

at Lilo boot prompt and every thing just works!

I had followed all of petergunns instructions up to edit of
./xserverrc file.

Before I installed the tar file , nothing worked on Xserver,
very affective fix, is there any way I can edit a startup script
to contain the vga setting?

Thanks, Mike

Posted by FameWolf on June 22 2005,18:26
Ok folks..I have one of those old thinkpads..I have DSL installed but cant even get into X because my chipset needs the SVGA server..so how do I go about installing the xfree86.dsl package and where is it located at?

Thanks in advance.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.