pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Anyone have firefox working on i386?
Greg Troxel <gdt%ir.bbn.com@localhost> writes:
> I am running firefox 8.0nb2 (from pkgsrc head) on NetBSD/i386 5.1_STABLE
> (head of netbsd-5), and have been running various firefox 4-8 versions
> along the way, with relatively little trouble.
I wonder what the difference is.
> I do get the 'failed to create drawable' message.
So that could be a red herring, then.
> I also find that
> depending on what kinds of web pages I look at firefox gets huge (1G)
> but with a smaller RSS, and then it gets very slow, so I kill and
> restart it.
>
> I use this on machines with X server from pkgsrc and from base, on
> boring intel 845 or 915 chipsets.
Sounds like my set-up:
Feb 11 11:22:32 <kern.notice>quill /netbsd: i915drm0 at vga1: Intel i945G
Feb 11 11:22:32 <kern.notice>quill /netbsd: i915drm0: AGP at 0xe0000000 256MB
Feb 11 11:22:32 <kern.notice>quill /netbsd: i915drm0: Initialized i915 1.6.0
20080730
Feb 11 11:23:12 <kern.notice>quill /netbsd: i915drm0: interrupting at ioapic0
pin 16
Section "Device"
Identifier "Card0"
Driver "intel"
VendorName "Intel Corporation"
BoardName "82945G/GZ Integrated Graphics Controller"
BusID "PCI:0:2:0"
Option "DRI" "true"
Option "AccelMethod" "XAA" # needed for 945GM GPUs
Option "XAANoOffscreenPixmaps" "true"
EndSection
Section "ServerFlags"
Option "AIGLX" "true"
EndSection
I tried to add "dri2" but I can't; it says it requires UXA, and that
acceleration seems to be unavailable for my card.
> So I wonder if there is some fancier X option in your card and firefox
> is trying to use it and failing, and if turning off things in your x
> config would help.
Perhaps. I admit that I don't know what counts as a "fancy" option;
I know fairly little about video cards. I append my /etc/xorg.conf
file, in case someone sees something odd about it. But firefox36
works fine, the GIMP works fine - I can't think of any problems
I've had with this set-up that I thought might be related to the
video card or driver, offhand.
Based on reading various documentation, I set:
setenv MESA_DEBUG
setenv LIBGL_DEBUG
sysctl -w hw.dri.debug=1 (as root)
and tried again to start firefox; now I get:
Failed to initialize GEM. Falling back to classic.
failed to create drawable
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
libGL error:
Can't open configuration file /etc/drirc: No such file or directory.
libGL error:
Can't open configuration file /home/a/anne/.drirc: No such file or directory.
[and some really verbose but innocuous-looking stuff in the kernlog]
I tried creating a file /etc/drirc based on work by a fellow who
describes how he improved graphics performance here:
http://blog.xupeng.me/2009/05/04/settings-improve-poor-intel-945gm-performance/
with this:
# cat /etc/drirc
<driconf>
<device screen="0" driver="i915">
<application name="all">
<option name="vblank_mode" value="0" />
</application>
</device>
</driconf>
"glxgears" now reports 300 to 500 FPS instead of about 60 FPS,
whatever that means (something good about performance I'm sure!),
and I no longer see "Can't open configuration file /etc/drirc",
but aside from that, no change. Firefox still doesn't start.
Well, it actually makes some X connections and creates a .mozilla
directory and contents if none exist, but doesn't open a window or
do anything else useful:
AUDIT: Sat Feb 11 19:20:50 [...] client 5 connected from local host [...]
AUDIT: Sat Feb 11 19:20:50 [...] client 15 connected from local host [...]
AUDIT: Sat Feb 11 19:20:50 [...] client 15 disconnected
AUDIT: Sat Feb 11 19:20:50 [...] client 15 connected from local host [...]
AUDIT: Sat Feb 11 19:20:50 [...] client 5 disconnected
AUDIT: Sat Feb 11 19:20:50 [...] client 15 disconnected
AUDIT: Sat Feb 11 19:20:50 [...] client 5 connected from local host [...]
AUDIT: Sat Feb 11 19:20:51 [...] client 15 connected from local host [...]
AUDIT: Sat Feb 11 19:20:51 [...] client 15 disconnected
AUDIT: Sat Feb 11 19:20:51 [...] client 15 connected from local host [...]
AUDIT: Sat Feb 11 19:20:51 [...] client 5 disconnected
AUDIT: Sat Feb 11 19:20:51 [...] client 5 connected from local host [...]
AUDIT: Sat Feb 11 19:20:51 [...] client 5 disconnected
AUDIT: Sat Feb 11 19:20:51 [...] client 15 disconnected
I tried running it under "ktruss -i", but I don't know what I'm
looking for in the output. Of course there are files not found,
but those look like red herrings too. This might be significant:
4675 1 xulrunner-bin write(0x5, 0xbfbfd270, 0x4c) = 76
"X error occurred in GLX probe, error_code=9, request_code=128, minor_"
and later this:
1663 1 xulrunner-bin sendto(0x17, 0xb971f69f, 0x13, 0x400, 0, 0) = 19
"NEGOTIATE_UNIX_FD\r\n"
1663 1 xulrunner-bin poll(0xbfbfd32c, 0x1, 0xffffffff) = 1
1663 1 xulrunner-bin recvfrom(0x17, 0xb8c35000, 0x1000, 0, 0, 0) = 25
"ERROR "Unknown command"\r\n"
but the conversation (sendto,recvfrom) continues so I don't think
that's it. I'm stumped and quite far out of my depth.
Anne.
-------------------------------
Section "ServerLayout"
Identifier "Quill"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/X11R7/lib/modules"
FontPath "/usr/X11R7/lib/X11/fonts/misc/"
FontPath "/usr/X11R7/lib/X11/fonts/TTF/"
FontPath "/usr/X11R7/lib/X11/fonts/Type1/"
FontPath "/usr/X11R7/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R7/lib/X11/fonts/100dpi/"
FontPath "/usr/pkg/lib/X11/fonts/TTF/"
FontPath "/usr/pkg/lib/X11/fonts/freefont/"
FontPath "/usr/pkg/lib/X11/fonts/misc/"
EndSection
Section "Module"
Load "GLcore"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "record"
Load "shadow"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "wsmouse"
Option "Device" "/dev/wsmouse"
Option "ZAxisMapping" "4 5 6 7" # enables scroll wheel
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Acer"
ModelName "AL2616W"
HorizSync 31-83 # kHz (DDC-probed)
VertRefresh 56-75 # Hz (DDC-probed)
# 1920x1200 @ 60.00 Hz (GTF) hsync: 74.52; pclk: 193.16 MHz
ModeLine "1920x1200" 193.16 1920 2048 2256 2592 1200 1201 1204 1242 -HSync
+HSync
EndSection
Section "Device"
Identifier "Card0"
Driver "intel"
VendorName "Intel Corporation"
BoardName "82945G/GZ Integrated Graphics Controller"
BusID "PCI:0:2:0"
Option "DRI" "true"
Option "AccelMethod" "XAA" # needed for 945GM GPUs
Option "XAANoOffscreenPixmaps" "true"
EndSection
Section "ServerFlags"
Option "AIGLX" "true"
EndSection
Section "DRI"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1920x1200"
EndSubSection
EndSection
-------------------------------
Home |
Main Index |
Thread Index |
Old Index