Typosu: I'm having a slight issue with tearing on my HD3200 (integrated 780G), I've been looking for a solution, but as of yet I haven't seen one
marvin24: Typosu: you can try kms with irqs (needs 2.6.32) and radeon driver
Typosu: does that also support 3d?
Typosu: I'm setting up a box to run xbmc, which uses a fair amount of hw accel afaics. it works, but the tearing is annoying.
marvin24: 3d depends on mesa (which is not changed)
Typosu: ah, then I might have to try the radeon driver.
Typosu: I do have 2.6.32 installed
marvin24: you need kms
marvin24: (I guess)
marvin24: remove the radeon.modeset=0 from your kernel cmd line
Typosu: I shouldnt have had one
amarsh04: what kernel configuration/xorg options are needed for radeon/kms (I have a 3200hd on an amd64) and am happy to reconfigure kernel source and rebuild
marvin24: amarsh04: I think you must still activate staging drivers
amarsh04: ah ok thanks marvin24
marvin24: be carefull - radeonhd does not support kms, so switch to radeon before rebooting ...
Typosu: now that I switched to radeon, and added radeon.modeset=1, and rebooted, xbmc is horribly slow
amarsh04: thanks
Typosu: glxinfo showed hw rendering with radeonhd, but doesn't with radeon :(
Typosu: oy: "radeon kernel module version is 2.0.0 but version 1.17.0 or newer is needed." I guess my xorg radeon driver is too old
Typosu: if only debian had a newer one.
marvin24: Typosu: it's simple to compile a new one
marvin24: but you may also need a newer libdrm ...
Typosu: if it works with the latest radeonhd (from like dec) is that new enough?
marvin24: you mean the libdrm (what's your version?)
Typosu: apt shows: 2.4.15-1
marvin24: the debian packages don't build the libdrm with --enable-radeon-experimental-api
marvin24: that's the main problem
Typosu: ah
Typosu: are there any complete instructions on which exact git repos to get and what to configure it all with?
marvin24: Typosu: http://wiki.x.org/wiki/radeonBuildHowTo
marvin24: has links to the git branches
Typosu: it has a link to the web interface afaics
Typosu: ah, the urls to use are at the very bottom of the git page
marvin24: Typosu: I use http://pastebin.com/m4cd2482b to compile libdrm
Typosu: so I dont need the libkms bit?
marvin24: Typosu: no - it is for vmware only
Typosu: ah
Typosu: hmm, what am I missing:
Typosu: [dri] This chipset requires a kernel module version of 1.17.0,
Typosu: [dri] but the kernel reports a version of 2.0.0.[dri] If using legacy modesetting, upgrade your kernel.
marvin24: forget the stupid err msgs
Typosu: it says dri is disabled, I assume that means no 3d
marvin24: you also need to update the radeon driver
Typosu: I did
Typosu: afaik
Typosu: maybe it didnt install properly.
marvin24: can you post your Xorg.0.log somewhere?
marvin24: and also you dmesg
marvin24: *your
Typosu: dmesg: http://pastebin.ca/1754573 xorg.log: http://pastebin.ca/1754574
marvin24: (II) [KMS] drm report modesetting isn't supported.
marvin24: but kernel activates it
Typosu: just saw that, but It is activated :o
marvin24: is libdrm_* installed correctly?
Typosu: I just grepped my kernel config, would this do anything: # CONFIG_DRM_RADEON_KMS is not set
Typosu: libdrm_radeon seems to be in place
Typosu: I dont know if anything more is needed
marvin24: of course it is needed
marvin24: but your kernel reports kms enabled
Typosu: which confuses me slightly
marvin24: does the config fit to your kernel?
Typosu: it aught to, it came with the kernel
marvin24: best is to compile a new kernel with CONFIG_DRM_RADEON_KMS enabled
udovdh: marvin24, why is that?
marvin24: udovdh: why what?
Griffon26: Typosu: if /proc/config.gz exists, use that to check the actual kernel config
udovdh: `best is to compile a new kernel with CONFIG_DRM_RADEON_KMS enabled`
Typosu: Griffon26: yeah, I tried looking for that already, seems debian likes leaving things out
marvin24: KMS is still experimental
marvin24: that's why it is in staging and requires a manual config/build
Typosu: experimental is better than tearing ;)
marvin24: I have it runnung for month here, without problems
marvin24: hw is also rs780
Typosu: that error I pasted earlier seems relevant, Im just not sure how to fix it
Typosu: is the "trunk" of radeon not the right branch?
marvin24: it is, but you also need proper KMS support inside the kernel
marvin24: so you need "trunk" of the kernel
Typosu: oh, doh. I think I need to rebuild mesa
Typosu: thats what the wiki seems to say, has the same error too
marvin24: Typosu: normaly not
Typosu: "This also means that you have to rebuild mesa against same new libdrm because mesa doesn't have KMS support without libdrm_radeon either."
marvin24: mmh - ok, I always build everything ...
Typosu: all of X as well?
marvin24: mesa build script: http://pastebin.ca/1754588
marvin24: no X
marvin24: (for sure!)
marvin24: goes for lunch, back in an hour
Typosu: marvin24: thanks for the help
Typosu: do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Typosu: hmm
udovdh: 3D works still better without KMS in DRI1 mode.
udovdh: http://wiki.x.org/wiki/radeonBuildHowTo
Typosu: does it also work without tearing?
Typosu: things seem to be working, but I'm stuck with this now: do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Typosu: and theres still a lot of tearing
marvin24: Typosu: you also need some firmware files
marvin24: can you post the dmesg of your new kernel?
Typosu: I havent installed a new one, it is loading firmware though
marvin24: newer kernels also require http://people.freedesktop.org/~agd5f/radeon_ucode/
Typosu: I grabbed that earlier, but theres no messages about it loading that.
marvin24: three files in all
marvin24: it is only loaded by newer kernel for irq support
Typosu: does 2.6.32 count as "newer"?
udovdh: 2.6.33?
marvin24: no ;-)
Typosu: ah.
marvin24: rc-something
Typosu: then I guess I get to update later :)
marvin24: as far as I know, irq'S are required for tearing problems
marvin24: and irq support went into 2.6.33
Typosu: cool.
Typosu: thanks for the help :) getting late (6am late?). I'll install a newer kernel tomorrow
marvin24: Typosu: gn and gl
masa-: i wonder if that tearing is the same as i'm experiencing in teeworlds? dunno how much of anything 3D it even uses but still..
masa-: although the FPS is something like 60-80 it still tears or lags every 0.5 seconds or so when mooving around in the map
Typosu: yay. no more tearing. but lirc isn't compatible with newer kernels :(
zonyl: HI All. I have an a karmic XBMC system with a Radeon 2600 installed (hdmi 1080). Back when I tried radeonhd 1080 video was too slow (4 months ago) and was wondering if that is typical for radeonhd or I should have another go at it?
jvd: decoding is handled by the cpu, so maybe your cpu is too slow?
jvd: i have an htpc using the radeon driver and 1080p works great
zonyl: jvd: It is possible as I know high bit rates will peg my Intel C2D, however, the FGLRX drivers dont struggle though. I wouldnt touch it outside of the fact that 1 of 3 times I boot the machine, I dont get video with fglrx
jvd: ah
jvd: then you should maybe give it another try
jvd: which card is it?
zonyl: RV 630 HD2600XT
jvd: mine is a radeon hd 3200
zonyl: some knockoff brand that I dont remember the name
jvd: which is also a 6xxx
zonyl: I never use 3D on the PC so would I be better off with the radeon drivers? Im unsure of how the two FOSS drivers overlap nowadays
jvd: as far as i could tell
jvd: stuff including 3d works well with radeon on 2.6.33 (which isn't released yet, but you can get some -rc)
jvd: and it uses KMS, so you can get a 1080p console =)
jvd: radeonhd doesn't work with KMS
augustao: hi
zonyl: jvd: Thanks for the advice!
jvd: np
jvd: you can use radeon with the latest released kernel, but you'll get tearing
jvd: @ xv
augustao: jvd: Thanks!
zonyl: jvd: It has Vsync problems?
zonyl: karmic has 2.6.31 stock currently. Should I stay at that kernel or go with a newer one?
jvd: i think it should be fine with that one
jvd: and radeonhd
jvd: but i think it runs better now with 2.6.33 and radeon, though it might be a placebo effect :P