You are not logged in.

#1 2012-10-20 04:10:51

rydell
Member
Registered: 2012-10-20
Posts: 3

neomagic and xorg on latitude CS400XT

hi i have an issue with the neomagic driver and xorg and wanted to ask if i have overlooked a way to fix it.

lspci output

 00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
00:03.0 CardBus bridge: Texas Instruments PCI1225 (rev 01)
00:03.1 CardBus bridge: Texas Instruments PCI1225 (rev 01)
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:0d.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)
01:00.0 VGA compatible controller: Neomagic Corporation NM2360 [MagicMedia 256ZX]
01:00.1 Multimedia audio controller: Neomagic Corporation NM2360 [MagicMedia 256ZX Audio] 

xorg log

[   115.860] 
X.Org X Server 1.13.0
Release Date: 2012-09-05
[   115.862] X Protocol Version 11, Revision 0
[   115.863] Build Operating System: Linux 3.6.0-1-ARCH i686 
[   115.865] Current Operating System: Linux Ravenholm 3.6.2-1-ARCH #1 SMP PREEMPT Sat Oct 13 07:19:40 CEST 2012 i686
[   115.865] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=bec72cef-8220-40bb-b2dd-21141547de90 ro quiet
[   115.868] Build Date: 05 October 2012  02:01:30PM
[   115.868]  
[   115.896] Current version of pixman: 0.26.2
[   115.954] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   115.955] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   116.078] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Oct 20 04:07:01 2012
[   116.211] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   116.504] (==) No Layout section.  Using the first Screen section.
[   116.504] (==) No screen section available. Using defaults.
[   116.504] (**) |-->Screen "Default Screen Section" (0)
[   116.505] (**) |   |-->Monitor "<default monitor>"
[   116.523] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   116.523] (==) Automatically adding devices
[   116.523] (==) Automatically enabling devices
[   116.523] (==) Automatically adding GPU devices
[   116.537] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[   116.537] 	Entry deleted from font path.
[   116.537] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   116.537] 	Entry deleted from font path.
[   116.538] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   116.538] 	Entry deleted from font path.
[   116.538] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   116.539] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   116.539] 	Entry deleted from font path.
[   116.539] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   116.539] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/
[   116.539] (==) ModulePath set to "/usr/lib/xorg/modules"
[   116.539] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   116.560] (II) Loader magic: 0x825a620
[   116.560] (II) Module ABI versions:
[   116.560] 	X.Org ANSI C Emulation: 0.4
[   116.560] 	X.Org Video Driver: 13.0
[   116.560] 	X.Org XInput driver : 18.0
[   116.561] 	X.Org Server Extension : 7.0
[   116.566] (--) PCI:*(0:1:0:0) 10c8:0006:1028:0091 rev 0, Mem @ 0xfa000000/33554432, 0xfdc00000/4194304, 0xfdb00000/1048576
[   116.567] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   116.601] Initializing built-in extension Generic Event Extension
[   116.632] Initializing built-in extension SHAPE
[   116.663] Initializing built-in extension MIT-SHM
[   116.694] Initializing built-in extension XInputExtension
[   116.724] Initializing built-in extension XTEST
[   116.755] Initializing built-in extension BIG-REQUESTS
[   116.786] Initializing built-in extension SYNC
[   116.816] Initializing built-in extension XKEYBOARD
[   116.847] Initializing built-in extension XC-MISC
[   116.877] Initializing built-in extension SECURITY
[   116.908] Initializing built-in extension XINERAMA
[   116.937] Initializing built-in extension XFIXES
[   116.967] Initializing built-in extension RENDER
[   116.995] Initializing built-in extension RANDR
[   117.023] Initializing built-in extension COMPOSITE
[   117.051] Initializing built-in extension DAMAGE
[   117.078] Initializing built-in extension MIT-SCREEN-SAVER
[   117.106] Initializing built-in extension DOUBLE-BUFFER
[   117.133] Initializing built-in extension RECORD
[   117.160] Initializing built-in extension DPMS
[   117.186] Initializing built-in extension X-Resource
[   117.211] Initializing built-in extension XVideo
[   117.236] Initializing built-in extension XVideo-MotionCompensation
[   117.259] Initializing built-in extension XFree86-VidModeExtension
[   117.282] Initializing built-in extension XFree86-DGA
[   117.304] Initializing built-in extension XFree86-DRI
[   117.325] Initializing built-in extension DRI2
[   117.325] (II) LoadModule: "glx"
[   117.385] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   117.435] (II) Module glx: vendor="X.Org Foundation"
[   117.435] 	compiled for 1.13.0, module version = 1.0.0
[   117.436] 	ABI class: X.Org Server Extension, version 7.0
[   117.436] (==) AIGLX enabled
[   117.457] Loading extension GLX
[   117.458] (==) Matched neomagic as autoconfigured driver 0
[   117.458] (==) Matched vesa as autoconfigured driver 1
[   117.458] (==) Matched modesetting as autoconfigured driver 2
[   117.458] (==) Matched fbdev as autoconfigured driver 3
[   117.458] (==) Assigned the driver to the xf86ConfigLayout
[   117.458] (II) LoadModule: "neomagic"
[   117.459] (II) Loading /usr/lib/xorg/modules/drivers/neomagic_drv.so
[   117.477] (EE) Failed to load /usr/lib/xorg/modules/drivers/neomagic_drv.so: /usr/lib/xorg/modules/drivers/neomagic_drv.so: undefined symbol: NEO_Sync
[   117.477] (II) UnloadModule: "neomagic"
[   117.477] (II) Unloading neomagic
[   117.478] (EE) Failed to load module "neomagic" (loader failed, 7)
[   117.478] (II) LoadModule: "vesa"
[   117.481] (WW) Warning, couldn't open module vesa
[   117.481] (II) UnloadModule: "vesa"
[   117.481] (II) Unloading vesa
[   117.481] (EE) Failed to load module "vesa" (module does not exist, 0)
[   117.481] (II) LoadModule: "modesetting"
[   117.483] (WW) Warning, couldn't open module modesetting
[   117.483] (II) UnloadModule: "modesetting"
[   117.483] (II) Unloading modesetting
[   117.484] (EE) Failed to load module "modesetting" (module does not exist, 0)
[   117.484] (II) LoadModule: "fbdev"
[   117.486] (WW) Warning, couldn't open module fbdev
[   117.486] (II) UnloadModule: "fbdev"
[   117.486] (II) Unloading fbdev
[   117.486] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   117.486] (EE) No drivers available.
[   117.527] 
Fatal server error:
[   117.528] no screens found
[   117.548] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   117.633] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   117.655] (EE) 

i have searched google for the error it is giving ( undefined symbol: NEO_Sync ) was not able to find it and serched the forums and bug reports for neomagic.

update:

just did a broader search tonight and found a bug report about this issue on the gentoo bugzilla https://bugs.gentoo.org/show_bug.cgi?id=434468

Last edited by rydell (2012-10-23 05:56:21)

Offline

#2 2012-10-23 06:10:57

rydell
Member
Registered: 2012-10-20
Posts: 3

Re: neomagic and xorg on latitude CS400XT

From what i gather in the gentoo bug report there error has to do with XAA being removed from Xorg server and the driver not being updated accordingly.

Offline

#3 2012-10-23 20:45:07

rydell
Member
Registered: 2012-10-20
Posts: 3

Re: neomagic and xorg on latitude CS400XT

update was released for the neomagic driver now version 1.2.7-3. while Xserver does now start, it leaves me with a black screen and i can't even switch back to the terminal. I have to hit the power button to shut down though am going to hook up the trs-80 model 100 to the serial port so i can poke around while X is running though not really sure what i am looking for.

Offline

#4 2012-11-11 17:37:16

semeion
Member
From: Brazil
Registered: 2008-10-20
Posts: 56

Re: neomagic and xorg on latitude CS400XT

Offline

#5 2012-11-15 22:07:06

marcdw
Member
From: Baldwin Park, CA, USA
Registered: 2012-11-15
Posts: 2
Website

Re: neomagic and xorg on latitude CS400XT

Summary:  I fixed my Neomagic problem.

The Neomagic breakage was lasting too long for me and I was almost thinking of giving up Arch as a result.
On my Panasonic Toughbook CF-27 which uses the Neomagic NM2200 I had similar problems. Starting X would give me a black screen and
unusable keyboard. I'd ssh into the machine and ps shows no X items running. The log file actually shows everything loading, including
the driver, but with one error regarding xaa but then it looks as if it continues on.

Via abs I decided to rebuild the driver just to see what the deal is. Since there is no XAA in xorg and there are numerous ifdefs in the
neomagic source regarding it the driver is of course compiled without any XAA stuff. Still the error persists. Falling back to the vesa driver
works but I get the black screen and unusable keyboard at exit.

Okay, first my Xorg log file excerpt:

[   582.783] (II) Loading sub module "xaa"
[   582.784] (II) LoadModule: "xaa"
[   582.786] (WW) Warning, couldn't open module xaa
[   582.787] (II) UnloadModule: "xaa"
[   582.787] (II) Unloading xaa
[   582.787] (EE) NEOMAGIC: Failed to load module "xaa" (module does not
exist, 0)
[   582.787] (II) NEOMAGIC(0): Falling back to shadow
[   582.787] (II) Loading sub module "shadow"
[   582.787] (II) LoadModule: "shadow"
[   582.788] (II) Loading /usr/lib/xorg/modules/libshadow.so
[   582.789] (II) Module shadow: vendor="X.Org Foundation"
[   582.789]    compiled for 1.13.0, module version = 1.1.0
[   582.790]    ABI class: X.Org ANSI C Emulation, version 0.4
[   582.790] (**) NEOMAGIC(0): Using "Shadow Framebuffer" - acceleration
disabled
[   582.790] (--) NEOMAGIC(0): FB base address is set at 0xFD000000.

I reckon the problem has to do with the loading of libshadow, maybe.

So, at line 1086 of neo_driver.c I comment out the section that's looking to load xaa and if fails, falls back to shadow.

/*
    if (!xf86LoadSubModule(pScrn, "xaa")) {
        xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Falling back to shadow\n");
        nPtr->shadowFB = 1;
    }
*/

Lo and behold that worked! X started up just fine giving me my LXDE desktop. On exit my console is restored just as before the breakage.
I invite others to check this out to see if it works for them. Mileage may vary of course, for some folks the neomagic driver itself wouldn't load
which sounds like another issue. I'm sure there's more to the problem than just this little hack/fix but at least I can get going again.
I was really about to remove Arch on this machine, or maybe downgrade xorg to 1.12.x.

Marc

Last edited by marcdw (2012-11-15 22:24:09)


Arch Linux on Panasonic Toughbook CF-27, Pentium II 300MHz, 320M RAM

Offline

#6 2012-12-19 14:27:36

Troglodyte
Member
Registered: 2012-04-04
Posts: 14

Re: neomagic and xorg on latitude CS400XT

Great workaround marcdw!

I have the same problem with my IBM Thinkpad 600e except I also get a different error.


Xorg log:

[   422.311] (EE) open /dev/dri/card0: no such file or directory
[   424.399] (EE) NEOMAGIC: Failed to load module "xaa" (module does not exist, 0)

Is there any chance you could upload the modified driver package? I have no clue how to build a modified package myself.

EDIT:

@marcdw

Thanks to the wiki I finally figured out how to modify and create my own package and now X starts despite that second error. Thanks again for pointing me in the right direction.

Last edited by Troglodyte (2012-12-19 18:41:26)

Offline

#7 2012-12-28 04:56:22

marcdw
Member
From: Baldwin Park, CA, USA
Registered: 2012-11-15
Posts: 2
Website

Re: neomagic and xorg on latitude CS400XT

Only yesterday did I decide to write a patch and updated PKGBUILD. The patch is a single line change instead of commenting out
that whole section. But it works. I reckon there's something wrong with shadow/shadowfb, at least on
some machines.
I'll submit the patch and see what happens.

Marc


Arch Linux on Panasonic Toughbook CF-27, Pentium II 300MHz, 320M RAM

Offline

Board footer

Powered by FluxBB