You are not logged in.

#1 2016-08-28 13:49:53

jgaray
Member
From: Spain
Registered: 2007-04-03
Posts: 10

Old laptop with mach64 not working

Hello all,

I'm installing Arch Linux on an old laptop (a Pentium III, mind you). Everything is going as expected, with the usual challenges here and there, but I can't get X to work with the mach64 driver (and it took some time to find out this was the driver I was supposed to use).

The video card is an ATI Rage Mobility-M1 PCI (rev 64)

When I try to start X, I get a "server error". /var/log/Xorg.0.log (see below) indicates this:

[  1965.605] (II) MACH64(0): Using Block 0 MMIO aperture at 0xFEBFF400.
[  1965.605] (II) MACH64(0): Using Block 1 MMIO aperture at 0xFEBFF000.
[  1965.606] (EE) MACH64(0): Unable to map linear aperture. Invalid argument (22)

I have tried without xorg.conf file, with a xorg.conf file generated with "Xorg :0 -configure", and even modifying some of the options, to no avail.
If I remove the mach64 driver, it works both with fb and vesa (whichever is installed).

I have been searching forums, help pages, the mach64 page at x.org... Nothing helps so far. Any hint would be greatly appreciated! It might be a bug, but before filing it, I want to be sure.

Thanks in advance for trying!

FILES
Xorg.0.conf:

[  1964.984] 
X.Org X Server 1.18.4
Release Date: 2016-07-19
[  1965.039] X Protocol Version 11, Revision 0
[  1965.058] Build Operating System: Linux 4.5.4-1-ARCH i686 
[  1965.080] Current Operating System: Linux jgg-nec01-gl 4.6.4-1-ARCH #1 SMP PREEMPT Mon Jul 11 19:30:13 CEST 2016 i686
[  1965.081] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=82e8dc29-b383-48f6-beb7-053002c969c8 rw quiet
[  1965.129] Build Date: 19 July 2016  05:56:07PM
[  1965.152]  
[  1965.176] Current version of pixman: 0.34.0
[  1965.228] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  1965.228] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1965.342] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Aug 28 15:21:31 2016
[  1965.372] (==) Using config file: "/etc/X11/xorg.conf"
[  1965.403] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1965.404] (==) ServerLayout "X.org Configured"
[  1965.404] (**) |-->Screen "Screen0" (0)
[  1965.404] (**) |   |-->Monitor "Monitor0"
[  1965.405] (**) |   |-->Device "Card0"
[  1965.405] (**) |-->Input Device "Mouse0"
[  1965.405] (**) |-->Input Device "Keyboard0"
[  1965.406] (==) Automatically adding devices
[  1965.406] (==) Automatically enabling devices
[  1965.406] (==) Automatically adding GPU devices
[  1965.406] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  1965.406] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[  1965.406] 	Entry deleted from font path.
[  1965.406] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[  1965.406] 	Entry deleted from font path.
[  1965.406] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[  1965.406] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[  1965.406] 	Entry deleted from font path.
[  1965.407] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[  1965.407] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[  1965.407] 	Entry deleted from font path.
[  1965.407] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[  1965.407] 	Entry deleted from font path.
[  1965.407] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[  1965.407] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[  1965.407] 	Entry deleted from font path.
[  1965.407] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[  1965.407] (**) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/
[  1965.407] (**) ModulePath set to "/usr/lib/xorg/modules"
[  1965.407] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[  1965.407] (WW) Disabling Mouse0
[  1965.407] (WW) Disabling Keyboard0
[  1965.407] (II) Loader magic: 0x82a96c0
[  1965.408] (II) Module ABI versions:
[  1965.408] 	X.Org ANSI C Emulation: 0.4
[  1965.408] 	X.Org Video Driver: 20.0
[  1965.408] 	X.Org XInput driver : 22.1
[  1965.408] 	X.Org Server Extension : 9.0
[  1965.413] (++) using VT number 1

[  1965.413] (--) controlling tty is VT number 1, auto-enabling KeepTty
[  1965.426] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[  1965.430] (--) PCI:*(0:0:5:0) 1002:4c52:1033:807a rev 100, Mem @ 0xfd000000/16777216, 0xfebff000/4096, I/O @ 0x0000e800/256, BIOS @ 0x????????/131072
[  1965.431] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  1965.431] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[  1965.431] (II) LoadModule: "glx"
[  1965.433] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  1965.441] (II) Module glx: vendor="X.Org Foundation"
[  1965.442] 	compiled for 1.18.4, module version = 1.0.0
[  1965.442] 	ABI class: X.Org Server Extension, version 9.0
[  1965.442] (==) AIGLX enabled
[  1965.442] (II) LoadModule: "mach64"
[  1965.443] (II) Loading /usr/lib/xorg/modules/drivers/mach64_drv.so
[  1965.444] (II) Module mach64: vendor="X.Org Foundation"
[  1965.444] 	compiled for 1.18.0, module version = 6.9.5
[  1965.444] 	Module class: X.Org Video Driver
[  1965.444] 	ABI class: X.Org Video Driver, version 20.0
[  1965.444] (II) MACH64: Driver for ATI Mach64 chipsets
[  1965.445] (==) MACH64(0): Depth 24, (--) framebuffer bpp 32
[  1965.446] (==) MACH64(0): Using XAA acceleration architecture
[  1965.446] (II) MACH64: Mach64 in slot 0:5:0 detected.
[  1965.446] (II) Loading sub module "vbe"
[  1965.446] (II) LoadModule: "vbe"
[  1965.447] (II) Loading /usr/lib/xorg/modules/libvbe.so
[  1965.448] (II) Module vbe: vendor="X.Org Foundation"
[  1965.448] 	compiled for 1.18.4, module version = 1.1.0
[  1965.448] 	ABI class: X.Org Video Driver, version 20.0
[  1965.448] (II) Loading sub module "int10"
[  1965.448] (II) LoadModule: "int10"
[  1965.448] (II) Loading /usr/lib/xorg/modules/libint10.so
[  1965.449] (II) Module int10: vendor="X.Org Foundation"
[  1965.449] 	compiled for 1.18.4, module version = 1.0.0
[  1965.449] 	ABI class: X.Org Video Driver, version 20.0
[  1965.449] (II) MACH64(0): initializing int10
[  1965.452] (II) MACH64(0): Primary V_BIOS segment is: 0xc000
[  1965.453] (II) MACH64(0): VESA BIOS detected
[  1965.453] (II) MACH64(0): VESA VBE Version 2.0
[  1965.453] (II) MACH64(0): VESA VBE Total Mem: 4096 kB
[  1965.454] (II) MACH64(0): VESA VBE OEM: ATI MACH64
[  1965.454] (II) MACH64(0): VESA VBE OEM Software Rev: 1.0
[  1965.454] (II) MACH64(0): VESA VBE OEM Vendor: ATI Technologies Inc.
[  1965.454] (II) MACH64(0): VESA VBE OEM Product: MACH64RM
[  1965.454] (II) MACH64(0): VESA VBE OEM Product Rev: 01.00
[  1965.544] (II) MACH64(0): VESA VBE DDC supported
[  1965.544] (II) MACH64(0): VESA VBE DDC Level none
[  1965.544] (II) MACH64(0): VESA VBE DDC transfer in appr. 2 sec.
[  1965.602] (II) MACH64(0): VESA VBE DDC read failed
[  1965.604] (--) MACH64(0): Panel model NEC NL10276BC26-11A.
[  1965.604] (II) MACH64(0): BIOS Data:  BIOSSize=0xF000, ROMTable=0x0102.
[  1965.604] (II) MACH64(0): BIOS Data:  ClockTable=0x0A80, FrequencyTable=0x0000.
[  1965.604] (II) MACH64(0): BIOS Data:  LCDTable=0x0174.
[  1965.604] (II) MACH64(0): BIOS Data:  VideoTable=0x0000, HardwareTable=0x0152.
[  1965.604] (II) MACH64(0): BIOS Data:  I2CType=0x0F, Tuner=0x00, Decoder=0x00, Audio=0x0F.
[  1965.604] (--) MACH64(0): ATI 3D Rage Mobility graphics controller detected.
[  1965.604] (--) MACH64(0): Chip type 4C52 "LR", version 4, foundry TSMC, class 0, revision 0x01.
[  1965.604] (--) MACH64(0): PCI bus interface detected;  block I/O base is 0xE800.
[  1965.604] (--) MACH64(0): ATI Mach64 adapter detected.
[  1965.604] (!!) MACH64(0): For information on using the multimedia capabilities
	of this adapter, please see http://gatos.sf.net.
[  1965.604] (--) MACH64(0): Internal RAMDAC (subtype 1) detected.
[  1965.604] (==) MACH64(0): RGB weight 888
[  1965.604] (==) MACH64(0): Default visual is TrueColor
[  1965.605] (==) MACH64(0): Using gamma correction (1.0, 1.0, 1.0)
[  1965.605] (II) MACH64(0): Using Mach64 accelerator CRTC.
[  1965.605] (--) MACH64(0): 1024x768 panel (ID 2) detected.
[  1965.605] (--) MACH64(0): Panel clock is 65.146 MHz.
[  1965.605] (II) MACH64(0): Using digital flat panel interface.
[  1965.605] (II) MACH64(0): Storing hardware cursor image at 0xFD3FFC00.
[  1965.605] (II) MACH64(0): Using 8 MB linear aperture at 0xFD000000.
[  1965.605] (!!) MACH64(0): Virtual resolutions will be limited to 4095 kB
 due to linear aperture size and/or placement of hardware cursor image area.
[  1965.605] (II) MACH64(0): Using Block 0 MMIO aperture at 0xFEBFF400.
[  1965.605] (II) MACH64(0): Using Block 1 MMIO aperture at 0xFEBFF000.
[  1965.606] (EE) MACH64(0): Unable to map linear aperture. Invalid argument (22)
[  1965.606] (II) UnloadModule: "mach64"
[  1965.606] (II) UnloadSubModule: "int10"
[  1965.606] (II) Unloading int10
[  1965.606] (II) UnloadSubModule: "vbe"
[  1965.606] (II) Unloading vbe
[  1965.606] (EE) Screen(s) found, but none have a usable configuration.
[  1965.607] (EE) 
Fatal server error:
[  1965.607] (EE) no screens found(EE) 
[  1965.607] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[  1965.607] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1965.607] (EE) 
[  1965.712] (EE) Server terminated with error (1). Closing log file.

xorg.conf in use, as generated by "Xorg :0 -configure":

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

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/misc/"
	FontPath     "/usr/share/fonts/TTF/"
	FontPath     "/usr/share/fonts/OTF/"
	FontPath     "/usr/share/fonts/Type1/"
	FontPath     "/usr/share/fonts/100dpi/"
	FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
	Load  "glx"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "NEC"
	ModelName    "NL10276BC26-11A"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "probe_sparse"       	# [<bool>]
        #Option     "accel"              	# [<bool>]
        #Option     "crt_display"        	# [<bool>]
        #Option     "composite_sync"     	# [<bool>]
        #Option     "hw_cursor"          	# [<bool>]
        #Option     "force_pci_mode"     	# [<bool>]
        #Option     "dma_mode"           	# <str>
        #Option     "agp_mode"           	# <i>
        #Option     "agp_size"           	# <i>
        #Option     "local_textures"     	# [<bool>]
        #Option     "buffer_size"        	# <i>
        #Option     "tv_out"             	# [<bool>]
        #Option     "tv_standard"        	# <str>
        #Option     "mmio_cache"	       	# [<bool>]
        #Option     "test_mmio_cache"    	# [<bool>]
        #Option     "panel_display"      	# [<bool>]
        #Option     "reference_clock"    	# <freq>
        #Option     "shadow_fb"          	# [<bool>]
        #Option     "sw_cursor"          	# [<bool>]
        #Option     "AccelMethod"        	# <str>
        #Option     "RenderAccel"        	# [<bool>]
	Identifier  "Card0"
	Driver      "mach64"
	BusID       "PCI:0:5:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Offline

#2 2016-09-03 08:36:10

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

Re: Old laptop with mach64 not working

Hmm, in my experience Linux 4x is a bit overkill for such good ol' chips. Did you try with an =<3.16 kernel (3.x at least)?

In case not the case already you could log in CLI and startx from there. In which case Xorg logs whould be in $XDG_DATA_HOME.

See Change default target to boot into

Last edited by kozaki (2016-09-03 08:36:53)


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#3 2016-09-03 09:07:15

nbvcxz
Member
From: Poland
Registered: 2007-12-29
Posts: 202

Re: Old laptop with mach64 not working

Please install xf86-video-vesa first for full compatibility.

jgaray wrote:

xorg.conf in use, as generated by "Xorg :0 -configure":

why? can you just remove it? According to Wiki there is no need to create extra xorg.conf - in most cases it should be autoconfigured and you should include any changes in /etc/X11/xorg.conf.d/
In fact thee skeleton of xorg.conf you created is supposed to be exactly the same as autoconfigured, but imho now much more clear is to use no xorg.conf + any changes in /etc/X11/xorg.conf.d/
And last thing give us some more info about your graphic adapter:

lspci -vvv | grep -e VGA -e 3D

or even better:

inxi -xxx -G

edit:

I remind I was setting up some of old Dell laptops (C510 as I remember) with graphic card like that, but it was working with xf86-video-ati or xf86-video-r128

Last edited by nbvcxz (2016-09-03 09:19:13)


Lenovo G50 | LXQT-git | compton | conky

Offline

#4 2016-09-03 14:54:25

jgaray
Member
From: Spain
Registered: 2007-04-03
Posts: 10

Re: Old laptop with mach64 not working

Thank you for your help, guys!

Ok, I have tried xf86-video-ati and xf86-video-r128, but that didn't work either.
By the way, I published the contents of xorg.conf in case anything you could see in the file might be relevant. I know it's supposed to work without it.

I also have tried to get and use older kernels from AUR (3.12, 3.10, 3.16), but I have been unable to do it: I always get trouble while running "makepkg -sri", usually failing at applying patches, apparently. I'm not really experienced with this, so it may take a while before I succeed ;-)

I have run both commands as suggested by nbvcxz. These are their results:

lspci -vvv | grep -e VGA -e 3D (J've removed everything looking redundant)

	BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
00:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Rage Mobility-M1 PCI (rev 64) (prog-if 00 [VGA controller])

inxi -xxx -G

Graphics:  Card: Advanced Micro Devices [AMD/ATI] Rage Mobility-M1 PCI bus-ID: 00:05.0 chip-ID: 1002:4c52
           Display Server: X.org 1.18.4 drivers: fbdev,ati (unloaded: mach64)
           tty size: 128x48 Advanced Data: N/A out of X

My system always starts to the console (that's the way I want it), and I (try to) run startx from there. And that's how I get the Xorg.0.log file (I'm not aware from X generating any other logs).

Thanks again,

Julio

Offline

#5 2016-09-03 20:13:02

nbvcxz
Member
From: Poland
Registered: 2007-12-29
Posts: 202

Re: Old laptop with mach64 not working

chip-ID: 1002:4c52

http://www.calel.org/pci-devices/xorg-d … t.html#ATI - seems we have bad luck sad no info about driver for this particular card

Last edited by nbvcxz (2016-09-04 06:54:26)


Lenovo G50 | LXQT-git | compton | conky

Offline

Board footer

Powered by FluxBB