fglrx driver edgy-n (amd64)

Fórumok

Olvastam a yelp-et, hogy hogyan kell beállítani a 3D gyorsítást.

1. xorg-driver-fglrx installálni
2. sudo dpkg-reconfigure xserver-xorg
- itt fglrx driver kiválasztani
3. újraindítani a gépet

Ezeket megcsináltam és fönn van a linux-restricted-modules (itt van az fglrx kernel modul) is.
A 3D gyorsítás láthatóan nem megy, például PlanetPenguin Racer lassú, továbbá:
# glxinfo | grep rendering
Xlib: extension "XFree86-DRI" missing on display ":0.0".
direct rendering: No

Egyéb körülmények:
$ uname -a
Linux ubuntu 2.6.17-10-generic #2 SMP Tue Dec 5 21:16:35 UTC 2006 x86_64 GNU/Linux

$ lspci
00:00.0 Host bridge: ATI Technologies Inc RS480 Host Bridge (rev 10)
00:01.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
00:14.0 CardBus bridge: Texas Instruments PCI4510 PC card Cardbus Controller (rev 03)
00:14.1 FireWire (IEEE 1394): Texas Instruments PCI4510 IEEE-1394 Controller (rev 01)
00:15.0 Ethernet controller: Winbond Electronics Corp Unknown device 0033
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
00:19.0 PCI bridge: ALi Corporation M5249 HTT to PCI Bridge
00:1b.0 Ethernet controller: ALi Corporation M5263 Ethernet Controller (rev 50)
00:1c.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:1c.1 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:1c.3 USB Controller: ALi Corporation USB 2.0 Controller (rev 01)
00:1d.0 Multimedia audio controller: ALi Corporation M5455 PCI AC-Link Controller Audio Device (rev 20)
00:1d.1 Modem: ALi Corporation M5457 AC'97 Modem Controller (rev 20)
00:1e.0 ISA bridge: ALi Corporation PCI to LPC Controller (rev 31)
00:1e.1 Bridge: ALi Corporation M7101 Power Management Controller [PMU]
00:1f.0 IDE interface: ALi Corporation M5229 IDE (rev c7)
01:05.0 VGA compatible controller: ATI Technologies Inc ATI Radeon XPRESS 200M 5955 (PCIE)

$ cat /etc/X11/xorg.conf | grep -v '#'
Section "Files"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Type" "stylus"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Type" "eraser"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Type" "cursor"
EndSection

Section "Device"
Identifier "ATI Technologies, Inc. Radeon Xpress 200M (RS480)"
Driver "fglrx"
BusID "PCI:1:5:0"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies, Inc. Radeon Xpress 200M (RS480)"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x768"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x768"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x768"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x768"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
EndSection

Section "DRI"
Mode 0666
EndSection

$ lsmod
Module Size Used by
nls_cp437 8704 0
isofs 43236 0
udf 97288 0
binfmt_misc 16012 1
autofs4 29448 1
fglrx 481012 0
powernow_k8 16576 0
cpufreq_userspace 6560 0
cpufreq_stats 9312 0
freq_table 7104 2 powernow_k8,cpufreq_stats
cpufreq_powersave 3456 0
cpufreq_ondemand 10928 1
cpufreq_conservative 11272 0
video 22920 0
tc1100_wmi 10632 0
sony_acpi 7704 0
sbs 20928 0
pcc_acpi 19968 0
i2c_ec 7808 1 sbs
hotkey 14536 0
dev_acpi 17540 0
container 6656 0
button 9888 0
battery 14088 0
asus_acpi 21924 0
ac 8328 0
ipv6 334432 14
ext2 83728 1
af_packet 29452 2
fuse 55056 4
sbp2 29448 0
scsi_mod 181424 1 sbp2
parport_pc 43560 0
lp 16584 0
parport 49932 2 parport_pc,lp
ati_remote 14732 0
joydev 14208 0
tsdev 11136 0
pcmcia 49048 0
snd_intel8x0 42024 1
snd_ac97_codec 127064 1 snd_intel8x0
snd_ac97_bus 4352 1 snd_ac97_codec
psmouse 51088 0
snd_pcm_oss 57344 0
snd_mixer_oss 22784 1 snd_pcm_oss
evdev 14592 2
serio_raw 10244 0
i2c_ali1535 9604 0
i2c_ali15x3 10500 0
uli526x 22036 0
shpchp 49068 0
pci_hotplug 38912 1 shpchp
snd_pcm 108168 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer 31112 1 snd_pcm
i2c_core 29312 3 i2c_ec,i2c_ali1535,i2c_ali15x3
pcspkr 5248 0
yenta_socket 33420 1
rsrc_nonstatic 16896 1 yenta_socket
pcmcia_core 52772 3 pcmcia,yenta_socket,rsrc_nonstatic
snd 79016 8 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore 14112 1 snd
snd_page_alloc 13200 2 snd_intel8x0,snd_pcm
xfs 648904 4
ehci_hcd 40456 0
ohci_hcd 25988 0
usbcore 167840 4 ati_remote,ehci_hcd,ohci_hcd
ohci1394 40776 0
ieee1394 387704 2 sbp2,ohci1394
ide_generic 2944 0
ide_cd 39584 0
cdrom 43816 1 ide_cd
ide_disk 21248 9
generic 7940 0
alim15x3 15128 0 [permanent]
thermal 19472 0
processor 38280 2 powernow_k8,thermal
fan 7432 0
vesafb 11048 0
capability 7304 0
commoncap 10752 1 capability
vga16fb 16656 1
cfbcopyarea 5376 2 vesafb,vga16fb
vgastate 10368 1 vga16fb
cfbimgblt 4352 2 vesafb,vga16fb
cfbfillrect 6272 2 vesafb,vga16fb
fbcon 45824 72
tileblit 4736 1 fbcon
font 10240 1 fbcon
bitblit 8064 1 fbcon
softcursor 3968 1 bitblit

Van valakinek ötlete mit kellene csinálni hogy menjen?
Hogy lehet lekérdezni, hogy melyik driverral fut az X?

Hozzászólások

ami megmondja a lenyeget az a
prompt> glxinfo | grep OpenGl

asszem hasznalhato az a parancs hogy "aticonfig"
ha van ilyen parancsod akkor hasznald

$ glxinfo
name of display: :0.0
Xlib: extension "XFree86-DRI" missing on display ":0.0".
display: :0 screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method,
GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe,
GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig, GLX_MESA_copy_sub_buffer
client glx vendor string: ATI
client glx version string: 1.3
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
GLX_ARB_get_proc_address, GLX_SGI_video_sync, GLX_ARB_multisample,
GLX_ATI_pixel_format_float, GLX_ATI_render_texture
GLX version: 1.2
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
GLX_ARB_multisample
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.5.1)
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_lod_bias
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x23 24 tc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 1 0 None
0x24 24 tc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 1 0 None
0x25 24 tc 0 32 0 r y . 8 8 8 8 0 16 8 16 16 16 16 1 0 None
0x26 24 tc 0 32 0 r . . 8 8 8 8 0 16 8 16 16 16 16 1 0 None
0x27 24 dc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 1 0 None
0x28 24 dc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 1 0 None
0x29 24 dc 0 32 0 r y . 8 8 8 8 0 16 8 16 16 16 16 1 0 None
0x2a 24 dc 0 32 0 r . . 8 8 8 8 0 16 8 16 16 16 16 1 0 None
0x3c 32 tc 1 0 0 c . . 0 0 0 0 0 0 0 0 0 0 0 0 0 None

# aticonfig --initial
Found fglrx primary device section
Nothing to do, terminating.

Úristen mennyi modul van betöltve..
De én így is hiányolok valmi olyasmit, hogy agpgart és (pl. nálam) intel_agp.

Ezenkívül nézd meg a /var/log/xorg.0.log -t, abba bele szokta írni, hogy miért nem tudja a 3D gyorsítást aktivizálni (pl. hogy hiányzik neki egy modul, vagy mert xinerama xtension be van kapcsolva stb.)

Úristen mennyi modul van betöltve..
Gyári kernelem van.

De én így is hiányolok valmi olyasmit, hogy agpgart és (pl. nálam) intel_agp.
Az lspci kimenetéből (lásd fenn) úgy tűnik, hogy a kártya nem AGP-s, hanem PCIE-s.

Érdekesebb hibák és figyelmeztetések a /var/log/Xorg.0.log-ból:
...
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Reloading /usr/lib/xorg/modules/linux/libdrm.so
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device or address)
drmOpenDevice: open result is -1, (No such device or address)
drmOpenDevice: Open failed
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmGetBusid returned ''
...
(II) fglrx(0): Composite extension enabled, disabling direct rendering
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed! *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO) *
(WW) fglrx(0): * no 3D acceleration available *
(WW) fglrx(0): ********************************************* *

...
(==) fglrx(0): Write-combining range (0x97fc0000,0x20000)
(==) fglrx(0): Write-combining range (0x97f80000,0x60000)
(==) fglrx(0): Write-combining range (0x97f00000,0xe0000)
(==) fglrx(0): Write-combining range (0x97e00000,0x1e0000)
(==) fglrx(0): Write-combining range (0x97c00000,0x3e0000)
(WW) fglrx(0): Failed to set up write-combining range (0x97800000,0x7e0000)
(WW) fglrx(0): Failed to set up write-combining range (0x97000000,0xfe0000)
(WW) fglrx(0): Failed to set up write-combining range (0x96000000,0x1fe0000)
(WW) fglrx(0): Failed to set up write-combining range (0x94000000,0x3fe0000)
(WW) fglrx(0): Failed to set up write-combining range (0x90000000,0x7fe0000)
...
(EE) AIGLX: Screen 0 is not DRI capable
...
(II) GLX: Initialized MESA-PROXY GL provider for screen 0
error opening security policy file /usr/lib/xserver/SecurityPolicy
...

Sziasztok! En is hasonlo gondban vagyok egy nx6325-os laptoppal. Csinaltam egy custom kernelt a 2.19.1-es kernel verziobol, rendesen make-kpkg --initrd kernel-image kernel headers cuccossal. Az agpgartot modulba tettem be, valamint mivel ez ATI chipsetes az ati-nak a gart driveret is modulba raktam. A character device-ban, hogy legyen framebufferem az radeon drivert beleforgattam a kernelbe. Az Xfree DRI drivereket nem raktam bele, hiszen mar regesregote mondjak, h az regi es sz.r :). Na a lenyeg, hogy meglett a kernel bebootolok, persze ekkor meg nem volt fenn a driver, de mukodott az X. Felraktam az ati drivert, letoltottem a nemtudommilyen legujabb ati driver asszem a 8.32.5-t (erdekes, hogy 64 volt a vegen, pedig 32 bitet jeloltem ki (hiszen 32 bites ubuntut raktam fel)). chmod +x ati..... Ezekutan /bin/bash -t symlinkeltem a /bin/sh-ra miutan azt atneveztem. de a ./ati.....run --buildpkg Ubuntu/edgy nem akart vegigmaszni :(., szoval bash ati.....run paranccsal megcsinaltam a deb csomagokat. 4 csomagot hozott letre. mindegyiket feltettem majd. module-assistant update, prepare (ha jol emlekszem), module-assitant build,install fglrx, a lenyeg, hogy megcsinalta az fglrx modult is. Na mondom juhe. a restriced modules-common nemtom milyen fileba (gentoorol jottem, nem nagyon ismerem meg az ubuntut bevallom :) ) beleirtam a disabled_modules="fglrx" cumot. Ujrainditottam. X bejon, nincs dri gyorsitas, ugyanaz a hiba mint amit felettem irt a kedves forumozo. A modulok kozt megtalaltam az agpgartot, amelyet hasznalt az fglrx modul, valamint egy masik. az ati_agp nevezetu modult nem hasznalta semmi se. az fglrx modult 9 vmi hasznalta, szoval elmeletileg kellene mennie. xorg.conf-ban benne van a load "dri", load "glx" sorok. Szerintetek hol ronthattam el?

Ill a kedves forumozonak adnek egy tippet:

Section "Device"
Identifier "ATI Technologies, Inc. Radeon Xpress 200M (RS480)"
Driver "fglrx"
BusID "PCI:1:5:0"
EndSection

Ezt erre cserelje, hatha :) :

Section "Device"
Identifier "ATI Technologies, Inc. Radeon Xpress 200M (RS480)"
Driver "fglrx"
Option "UseInternalAGPGART" "no"
BusID "PCI:1:5:0"
EndSection

Alassan bevallom igen. Ki is probaltam, de nem sok sikerrel :(. Ma megcsekkolom ejszaka ha hazaertem, de sajnos ugy emlekszem, hogy beirtam, es azon kivul, hogy ezutan 640*480-ba rakta at a desktopom mas haszna nem volt :(. Egyebkent ha nincs benne ez a composite "0" nem fekete kepernyonek kellene lennie?