Author Topic: Problems with Intel driver in linux [solved]  (Read 5715 times)

wump

  • Guest
Problems with Intel driver in linux [solved]
« on: 3 February 2011, 20:18:24 »
Edit (tomreyn): Similar reports: one, two


I've just downloaded megaglest (3.4.0 for Linux) and it has a problem. I can select units successfully (with the left mouse button), but when I send them somewhere with the right mouse button, they always go south, no matter where I click.

The red 'destination' square always appears at a fixed point in the bottom middle of the screen. This makes the game unplayable. This is the first version of the game I play, so I'm not sure whether this problem existed in earlier versions.

I had to set the resolution in glest.ini manually to 800x600 to get it to run at all (1024x768 is unsupported mode). Could this cause the problem?

System:
Ubuntu: 10.04 Lucid Lynx (32 bit)
Intel(R) Atom(TM) CPU N450   @ 1.66GHz
OpenGL renderer string: Mesa DRI Intel(R) IGD GEM 20091221 2009Q4 x86/MMX/SSE2
OpenGL version string: 1.4 Mesa 7.7.1

Startup log:
Quote

gamedir [/home/orion/megaglest]
Looking for LDCONFIG []...
LDCONFIG environment variable is not set...
Found LDCONFIG using which [/sbin/ldconfig]...
default library [/home/orion/megaglest/lib/libopenal.so.0] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/libopenal.so.1] pointed to from [/home/orion/megaglest/lib/libopenal.so.0]
default library [/home/orion/megaglest/lib/libdirectfb-1.0.so.0] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/libdirectfb-1.2.so.0] pointed to from [/home/orion/megaglest/lib/libdirectfb-1.0.so.0]
default library [/home/orion/megaglest/lib/libfusion-1.0.so.0] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/libfusion-1.2.so.0] pointed to from [/home/orion/megaglest/lib/libfusion-1.0.so.0]
default library [/home/orion/megaglest/lib/libdirect-1.0.so.0] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/libdirect-1.2.so.0] pointed to from [/home/orion/megaglest/lib/libdirect-1.0.so.0]
default library [/home/orion/megaglest/lib/libjpeg.so.62] was found in [/usr/lib/libjpeg.so.62]
default library [/home/orion/megaglest/lib/libpng12.so.0] was found in [/lib/libpng12.so.0]
default library [/home/orion/megaglest/lib/libcurl-gnutls.so.4] was found in [/usr/lib/libcurl-gnutls.so.4]
default library [/home/orion/megaglest/lib/libxerces-c.so.28] is missing, attempting to find and link to a newer version if available...
v3.4.0-GNUC: 40204-Feb  1 2011 23:00:26, SVN: [Rev: 1688]


<update by titi: Subject of this topic changed  so it fits more to the problem now >
<update by wump: Issue solved >
« Last Edit: 22 February 2012, 14:09:11 by tomreyn »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Bug in 3.4.0: moving units
« Reply #1 on: 3 February 2011, 21:30:18 »
Please try to use the system mousepointer by setting the following switch in your glestuser.ini:

No2DMouseRendering=true
or press "\" key ingame which is the hotkey to do this.

( ... and by the way I am quite shure this is no bug in MG, because many of us use Ubuntu 10.04. More likely its a bug of your graphics driver. )

Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

wump

  • Guest
Re: Bug in 3.4.0: moving units
« Reply #2 on: 3 February 2011, 21:57:41 »
just tried that -- no change :(

Yes, it could be a gfx driver bug, although this is the default driver that comes with Ubuntu for this crappy intel chip (Intel Corporation N10 Family Integrated Graphics Controller), I don't think there are better ones.

Is the gfx driver used for picking the 3D location of a mouse click?
« Last Edit: 3 February 2011, 22:01:05 by wump »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Bug in 3.4.0: moving units
« Reply #3 on: 3 February 2011, 23:34:42 »
yes I think so
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Bug in 3.4.0: moving units
« Reply #4 on: 4 February 2011, 00:23:47 »
I've been running into the same problem some months ago when I was still on Ubuntu 10.04. I have an Intel GPU, too.

I think there are basically two solutions to it:
1. Use backported X drivers as explained in the FAQ (this worked for me then)
2. Upgrade to Ubuntu 10.10 (this also worked for me)

If you are going to try one of these approaches, please report your results.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

wump

  • Guest
Re: Moving Units Bug?
« Reply #5 on: 4 February 2011, 09:40:26 »
I've added the xorg-edgers backports PPA and upgraded, I now get the following version identification:
Quote
OpenGL renderer string: Mesa DRI Intel(R) IGD GEM 20100330 DEVELOPMENT x86/MMX/SSE2
OpenGL version string: 1.4 Mesa 7.11-devel
So the OpenGL driver is cutting edge now. Sadly, now glest doesn't start anymore at all:
Quote
v3.4.0-GNUC: 40204-Feb  1 2011 23:00:26, SVN: [Rev: 1688]
glest.bin: tnl/t_draw.c:471: _tnl_draw_prims: Assertion `prim.num_instances > 0' failed.
Seems that this is a known bug in the drivers and affects VTK too (http://lists.freedesktop.org/archives/mesa-dev/2011-January/004897.html), looks like I have to either wait or upgrade to 10.10...

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Problems with Intel driver in linux
« Reply #6 on: 5 February 2011, 02:26:32 »
It seems like you upgraded all of your X, not just the drivers (as the FAQ said, but I have clarified this even more now). Downgrade to what you used to have, then use only the driver updates at https://launchpad.net/~xorg-edgers/+archive/drivers-only

That's:
Code: [Select]
sudo apt-get update && sudo apt-get install ppa-purge && sudo ppa-purge xorg-edgers && sudo apt-add-repository ppa:xorg-edgers/drivers-onlyThis command line will break if any single command fails, so watch its output...
« Last Edit: 5 February 2011, 02:36:55 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

wump

  • Guest
Re: Problems with Intel driver in linux
« Reply #7 on: 5 February 2011, 11:40:12 »
Thanks -- but I see this too late. Due to having a half-broken 3D driver, I already removed the xorg-edgers PPA (using ppa-purge), and upgraded to Ubuntu Netbook 10.10.

This *did* completely solve the issue. FYI, the Intel driver string is now
Quote
OpenGL renderer string: Mesa DRI Intel(R) IGD GEM 20100330 DEVELOPMENT x86/MMX/SSE2
OpenGL version string: 1.4 Mesa 7.9-devel
« Last Edit: 5 February 2011, 12:28:06 by wump »