Xorg.. twm not starting and terrible performance with fluxbox

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Xorg.. twm not starting and terrible performance with fluxbox

Mrugesh Karnik
Well hi again,

It took longer than I expected to change the server. Anyway.

The VIA Unichrome situation turned out to be a no-go for me. I had to
install an NVIDIA GeForce FX5200 on the machine and get X running.

I think this whole thread and me compiling various Xorg versions about 8
or 9 times was a waste of time. Because as it turns out, fluxbox, even
on the nvidia drivers took ages to open xcalc and such. The only
difference was that, the mouse pointer moved properly with nvidia
drivers when fluxbox was trying to open xcalc. With vesa, the pointer
lagged like hell!

Something interesting did happen though. I had that "Unknown device" in
my lspci output for both Gentoo and FC4 when I was on VIA Unichrome. Now
after switching to nvidia, I can see a Host Bridge properly identified
in its place. I wonder why that would be?

I still am confused about one thing though... which exactly is the 2D
driver for VIA Unichrome?

I apologise to those who wasted their time reading this thread and
replying in it.. but I found the problem worth investigating and I am
still intrigued by it..

Regards and a sincere thanks,
Mrugesh
--
[hidden email] mailing list

Reply | Threaded
Open this post in threaded view
|

Re: Xorg.. twm not starting and terrible performance with fluxbox

Abhay Kedia
On Thursday 17 Nov 2005 10:55 pm, Mrugesh Karnik wrote:
> I still am confused about one thing though... which exactly is the 2D
> driver for VIA Unichrome?
Could this be it?
http://unichrome.sourceforge.net/

Abhay

attachment0 (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Xorg.. twm not starting and terrible performance with fluxbox

Benno Schulenberg-2
In reply to this post by Mrugesh Karnik
Mrugesh Karnik wrote:
> Something interesting did happen though. I had that "Unknown
> device" in my lspci output for both Gentoo and FC4 when I was on
> VIA Unichrome. Now after switching to nvidia, I can see a Host
> Bridge properly identified in its place. I wonder why that would
> be?

Flaky hardware?  Timings too fast in the BIOS?

> I apologise to those who wasted their time reading this thread
> and replying in it.. but I found the problem worth investigating
> and I am still intrigued by it..

Kernel misconfigured?  When the vesa driver doesn't give acceptable
performance, there is something wrong.  You might want to actually
answer the questions I asked earlier.

Benno
--
[hidden email] mailing list

Reply | Threaded
Open this post in threaded view
|

Re: Xorg.. twm not starting and terrible performance with fluxbox

Mrugesh Karnik
Benno Schulenberg wrote:

> Flaky hardware?  Timings too fast in the BIOS?

What timings? :S

> Kernel misconfigured?  When the vesa driver doesn't give acceptable
> performance, there is something wrong.  You might want to actually
> answer the questions I asked earlier.

I couldn't answer the questions back then due to a number of factors.
Anyway, I still can't post the output of lsmod from my FC4 system, as I
won't be able to boot into it for another couple of days atleast.

Here's something you asked for:

CONFIG_AGP=y
CONFIG_AGP_AMD64=y
# CONFIG_AGP_INTEL is not set

CONFIG_DRM=m
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
CONFIG_DRM_VIA=m

CONFIG_BLK_DEV_VIA82CXXX=y
CONFIG_SCSI_SATA_VIA=y
CONFIG_VIA_RHINE=y
CONFIG_VIA_RHINE_MMIO=y
CONFIG_VIA_VELOCITY=y
CONFIG_DRM_VIA=m
CONFIG_I2C_VIA=m
CONFIG_I2C_VIAPRO=m
CONFIG_SENSORS_VIA686A=m


Here's emerge --info:

Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-3.4.4,
glibc-2.3.5-r2, 2.6.13-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r5 x86_64 AMD Sempron(tm) Processor 2500+
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="en_GB.UTF-8"
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acl acpi alsa apache2 arts audiofile avi
bash-completion bcmath berkdb bitmap-fonts bluetooth bzip2 cdparanoia
cdr crypt curl dbug dbus dio directfb dri dvd dvdr dvdread emboss
emul-linux-x86 encode esd exif expat fam fbcon ffmpeg flac foomaticdb
fortran ftp gd gif gpm gstreamer gtk2 hal idn imap imlib ipv6 jabber
jack jack-tmpfs javascript jpeg kde kerberos krb4 lcms ldap libwww
lm_sensors lzw lzw-tiff mad maildir mailwrapper mbox mhash mime mng mp3
mpeg msn musepack mysql ncurses nis nls nptl nptlonly offensive ogg
opengl pam pcre pdflib perl php png portaudio posix python qt quicktime
readline real samba sdl sndfile snmp spell ssl svg sysvipc tcpd tiff
till timidity truetype truetype-fonts type1-fonts udev unichrome unicode
usb userlocales vcd verbose vorbis xine xml xml2 xpm xsl xslt xv xvid
yahoo zlib video_cards_via linguas_en_GB userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS

Anything else you'd like to know?

Mrugesh
--
[hidden email] mailing list

Reply | Threaded
Open this post in threaded view
|

Re: Xorg.. twm not starting and terrible performance with fluxbox

Benno Schulenberg-2
Mrugesh Karnik wrote:
> Benno Schulenberg wrote:
> > Flaky hardware?  Timings too fast in the BIOS?
>
> What timings? :S

Well, somewhere deep in the BIOS peripheral settings, there are
things like "Enable AGP Fast Write" or similar.  Set all those
things to Off or Disabled.  You wil want stability first, speed
maybe later.  It probably won't make a difference, but it at least
excludes one possible source of problems.

> System uname: 2.6.13-gentoo-r5 x86_64 AMD Sempron(tm) Processor
> 2500+

You've said you have an MSI K8M800 motherboard.  Looking at
http://www.msicomputer.com/product/p_list.asp?class=mb&cpu=3, such
boards only support "Sempron 2600+, 2800+, 3000+, 3100+, 3300+",
not a 2500+.  This may not be a problem, but then again, it might
not be listed for a reason.

> real samba sdl sndfile snmp spell ssl svg sysvipc tcpd tiff till

No "sse" USE flag?  You could try adding it and re-emerging Xorg.

> Anything else you'd like to know?

To confirm your exact CPU, 'cat /proc/cpuinfo'.
An 'lsmod' on this system under Gentoo.
An 'emerge -pv xorg-x11'.
A 'cat /etc/X11/xorg.conf'.
And 'grep "^(--\|^(WW\|^(EE" /var/log/Xorg.0.log'.

Benno
--
[hidden email] mailing list

Reply | Threaded
Open this post in threaded view
|

Re: Xorg.. twm not starting and terrible performance with fluxbox

Mrugesh Karnik
Benno Schulenberg wrote:

> Well, somewhere deep in the BIOS peripheral settings, there are
> things like "Enable AGP Fast Write" or similar.  Set all those
> things to Off or Disabled.  You wil want stability first, speed
> maybe later.  It probably won't make a difference, but it at least
> excludes one possible source of problems.

Yeah, those were all disabled when I was running Unichrome. I've turned
them all on for NVIDIA though. No stability problems.

> You've said you have an MSI K8M800 motherboard.  Looking at
> http://www.msicomputer.com/product/p_list.asp?class=mb&cpu=3, such
> boards only support "Sempron 2600+, 2800+, 3000+, 3100+, 3300+",
> not a 2500+.  This may not be a problem, but then again, it might
> not be listed for a reason.

Hmmmm. Well I checked the motherboard manual when I bought this computer
and it says "Supports AMD K8 64 bit processors (Socket 754).

> No "sse" USE flag?  You could try adding it and re-emerging Xorg.

Well, 3dnow, mmx and sse are all masked in the amd64 profile anyway...

> To confirm your exact CPU, 'cat /proc/cpuinfo'.

It is an AMD Sempron 2500+

> An 'lsmod' on this system under Gentoo.

Module                  Size  Used by
w83627hf               34984  0
eeprom                  8784  0
i2c_sensor              3840  2 w83627hf,eeprom
i2c_isa                 2816  0
snd_seq_oss            36608  0
snd_seq_midi_event      8320  1 snd_seq_oss
snd_seq                56896  4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            55712  0
snd_mixer_oss          18880  1 snd_pcm_oss
ohci_hcd               21316  0
snd_via82xx            29312  4
snd_ac97_codec         91352  1 snd_via82xx
snd_pcm                97420  5 snd_pcm_oss,snd_via82xx,snd_ac97_codec
snd_timer              25544  3 snd_seq,snd_pcm
snd_page_alloc         11144  2 snd_via82xx,snd_pcm
snd_mpu401_uart         8320  1 snd_via82xx
snd_rawmidi            28448  1 snd_mpu401_uart
snd_seq_device         10064  3 snd_seq_oss,snd_seq,snd_rawmidi
snd                    60200  16
snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
i2c_viapro              9300  0
i2c_core               23704  5
w83627hf,eeprom,i2c_sensor,i2c_isa,i2c_viapro
ehci_hcd               31944  0
uhci_hcd               33568  0
8139too                28800  0
nvidia               4055676  12

This is the current one. Back with Unichrome, I had via and drm loaded
in place of nvidia.

Nothing fancy in there I guess.

> An 'emerge -pv xorg-x11'.

[ebuild   R   ] x11-base/xorg-x11-6.8.2-r4  (-3dfx) (-3dnow)
+bitmap-fonts -cjk -debug -dlloader -dmx -doc -font-server
-insecure-drivers +ipv6 -minimal (-mmx) +nls -nocxx +opengl +pam -sdk
(-sse) -static +truetype-fonts +type1-fonts (-uclibc) -xprint +xv 0 kB


> A 'cat /etc/X11/xorg.conf'.

This is errr one of the xorg.conf files used of Unichrome. The other one
had dri disabled, that's all...

Section "ServerLayout"
         Identifier     "X.org Configured"
         Screen      0  "Screen0" 0 0
         InputDevice    "Mouse0" "CorePointer"
         InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
         RgbPath      "/usr/lib64/X11/rgb"
         ModulePath   "/usr/lib64/modules"
         FontPath     "/usr/share/fonts/misc/"
         FontPath     "/usr/share/fonts/TTF/"
         FontPath     "/usr/share/fonts/Type1/"
         FontPath     "/usr/share/fonts/CID/"
         FontPath     "/usr/share/fonts/75dpi/"
         FontPath     "/usr/share/fonts/100dpi/"
EndSection

Section "Module"
         Load  "xtrap"
         Load  "dbe"
         Load  "glx"
         Load  "dri"
         Load  "extmod"
         Load  "record"
         Load  "type1"
         Load  "freetype"
EndSection

Section "InputDevice"
         Identifier  "Keyboard0"
         Driver      "kbd"
         Option      "XkbModel" "pc105"
         Option      "XkbLayout" "us"
EndSection

Section "InputDevice"
         Identifier  "Mouse0"
         Driver      "mouse"
         Option      "Protocol" "IMPS/2"
         Option      "Device" "/dev/input/mice"
         Option      "ZAxisMapping" "4 5"
         # Option      "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
         Identifier   "Monitor0"
         VendorName   "LG Electronics"
         ModelName    "StudioWorks 700i"
         HorizSync    30 - 70
         VertRefresh  50 - 160
         Option       "dpms"
EndSection

Section "Device"
         ### Available Driver options are:-
         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
         ### [arg]: arg optional
         #Option     "ShadowFB"                  # [<bool>]
         #Option     "VGAClocks"                 # [<bool>]
         #Option     "KGAUniversal"              # [<bool>]
         Identifier  "Videocard0"
         Driver      "via"
         VendorName  "VIA Technologies, Inc."
         BoardName   "S3 Unichrome Pro VGA Adapter (rev 01)"
         BusID       "PCI:1:0:0"
         Option      "ForcePCIMode" "True"
EndSection

Section "Screen"
         Identifier "Screen0"
         Device     "Videocard0"
         Monitor    "Monitor0"
         DefaultDepth 24
         SubSection "Display"
                 Viewport   0 0
                 Depth     16
                 Modes     "800x600" "640x480"
         EndSubSection
         SubSection "Display"
                 Viewport   0 0
                 Depth     24
                 Modes     "1280x1024" "1152x864" "1024x768" "800x600"
"640x480"
         EndSubSection
EndSection

Section "DRI"
         Group      0
         Mode       0666
EndSection


> And 'grep "^(--\|^(WW\|^(EE" /var/log/Xorg.0.log'.

Well, I can't get you those results for Unichrome on this Gentoo
machine. It's all NVIDIA in there now, even in the FC4 logs...

> Benno

Mrugesh
--
[hidden email] mailing list

Reply | Threaded
Open this post in threaded view
|

Re: Xorg.. twm not starting and terrible performance with fluxbox

Mrugesh Karnik
In reply to this post by Benno Schulenberg-2
Benno Schulenberg wrote:

> You've said you have an MSI K8M800 motherboard.  Looking at
> http://www.msicomputer.com/product/p_list.asp?class=mb&cpu=3, such
> boards only support "Sempron 2600+, 2800+, 3000+, 3100+, 3300+",
> not a 2500+.  This may not be a problem, but then again, it might
> not be listed for a reason.

http://www.msi.com.tw/program/products/mainboard/mbd/pro_mbd_detail.php?UID=647

That's the motherboard actually. K8M800-CE is the chipset name from VIA.

Mrugesh
--
[hidden email] mailing list