LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Configuration troubles on XFree86 4.5.0 with i915GM (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/configuration-troubles-on-xfree86-4-5-0-with-i915gm-357207/)

michalceri 08-26-2005 08:52 AM

Configuration troubles on XFree86 4.5.0 with i915GM
 
Greetings!

My system is Debian Sarge with kernel 2.4.27 on HP Compaq nx6110 laptop.

On installation CD there was XFree86 4.3 which has not support for Intel 915GM gr. accelerator. After few months using VESA mode I had finally decided to upgrade to XFree86 4.5.0. from XFree86.org According to its documentation there is i915 support implemented.

Firstly I downloaded XInstall.sh to check glibc version ( result was glibc_23).
Then I downloaded all binaries from corresponding directory, made X backup by copying X11, X11R6 directories and ran Xinstall.sh as root outside X environment.

Last step of installation was to make DRM modules. I choosed yes, but compilation was breaked with message $CONFIG_X86_CMPXCHG not enabled or something like that.

:confused: I'm the real newbie...how can I enable that variable??

I went through this trouble by modifying Makefile in /usr/X11R6/src/..., so the variable was not checked. Then I ran 'make' and 'make install' and new modules were exported to '/lib/modules/2.4.27-2-386/kernel/drivers/char/drm: gamma.o, i810.o, i830.o, mga.o, r128.o, radeon.o, sis.o, tdfx.o.

I really don't know whether modifying Makefile this way was right. :scratch:

After installation I ran 'export PATH=$PATH:/usr/X11R6/bin' and then 'XFree86 -configure'. There was an error, which I repaired by making a link to libglide2x.so. Next run of 'XFree -configure' passed and I just had to change touchpad to '/dev/psaux' in config file.
I tested configuration with 'XFree -xf86config /etc/X11/XF86Config' and X started.

BUT: After reboot, the X environment couldn't start due to Xserver error.
I didn't know...what's wrong...

I tried to reinstall XFree one more time. I removed all existing X directiories and installed again without any previous installation...
After reboot I let XFree automatically detect configuration 'on fly'.
GUI started!!
BUT: After login, my or root's Gnome or KDE session can't be accessed and I get just "nice" X terminal. I think that this is due nonexisting XSession files. However, rescue Gnome session works (but windows have no frames!!)

:confused: Does anybody know how to repair and access my sessions and settings without crashing X server again? Which files should I restore from backup?

Next trouble is that DRI mode has been stopped because there was not enough memory. Performance is too slow!
XFree Log file also tells me these errors/warnings :study: :
--------------------------

Current Operating System: Linux debian 2.4.27-2-386

(EE) open /dev/fb0: No such device
(EE) GARTInit: Unable to open /dev/agpgart (No such device)
(WW) I810(0): /dev/agpgart is either not available, or no memory is available
for allocation. Using pre-allocated memory only.
...
(--) I810(0): Pre-allocated VideoRAM: 7932 kByte
(--) I810(0): VideoRAM: 7932 kByte
...
(II) I810(0): 2212 kBytes additional video memory is required to
enable tiling mode for DRI.
(II) I810(0): 4 kBytes additional video memory is required to enable DRI.
(II) I810(0): Disabling DRI.
...
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
GetModeLine - scrn: 0 clock: 63345
GetModeLine - hdsp: 1024 hbeg: 1072 hend: 1176 httl: 1328
vdsp: 768 vbeg: 769 vend: 772 vttl: 795 flags: 0

*** If unresolved symbols were reported above, they might not
*** be the reason for the server aborting.

Fatal server error:
Caught signal 11. Server aborting

---------------------------

/dev/fb0 sounds like 'framebuffer'...
/dev/agpgart...
:confused: Can anybody help me how to setup these devices and start DRI?
Are there steps I forgot to do?



I'll add whole XFree86.0.log if somebody needs it... :study:

Thanks for help!

thedeadhead 08-27-2005 11:30 AM

I think you may need to edit/create a ./xinitrc file, because your X may not know what Window Manager to use, so create a file in your /home/yourusername/ directory called .xinitrc.

In that file write:
gnome
kde

And highlight the one you dont want to use, so if you want to use gnome highlight kde out
gnome
#kde

and so on,


thedeadhead

michalceri 09-16-2005 02:36 AM

Finally, i915 works with Xorg.

I returned to XFree 4.3 and installed xorg modules over it.

I also upgraded the kernel to 2.6.11 with i915 support, so even DRI works fine ( just DirectDraw through WINEHQ works strange, but it is another chapter, I think ).


All times are GMT -5. The time now is 11:21 PM.