Visualizzazione post con etichetta fglrx. Mostra tutti i post
Visualizzazione post con etichetta fglrx. Mostra tutti i post

mercoledì 2 febbraio 2011

bttv and fglrx

After installed the Linux display driver for an ATI Radeon HD 3450 on Ubuntu Lucid Lynx, bttv stopped to work properly. As said in a previous post, unloading and reloading bttv is a temporary fix that works. It makes me think that something wrong happens when modules are loaded. So I decided to blacklist bttv and load it at the end of each multiuser runlevel through rc.local. Using rc.local requires us to place the right command before the exit status.  I used this command:

/sbin/modprobe bttv card=1 tuner=0 radio=0 pll=0  gbuffers=4 gpiomask=0x23000f audiomux=0x230002,0x230002,0x230000,0x230000

at the top of the file. After that, bttv works fine but it's not a permanent solution.
As a matter of fact, an older kern.log lists this error (boot time):

(bttv0) irq 17: nobody cared (try booting with the "irqpoll" option)
...
(bttv_irq+0x0/0x4a0 [bttv])
 Disabling IRQ #17

Loading bttv at the end of each multiuser runlevel doesn't fix the problem forever but just hides it from me.

 stefano@ARAGORN:~$ dmesg | grep bttv
[      27.447360] bttv: driver version 0.9.18 loaded
...
[     27.448437] IRQ 17/bttv0: IRQF_DISABLED is not guaranteed on shared IRQs

I suspect that a different pci slot for my tv card would solve the problem. We'll see...

Best regards

venerdì 28 gennaio 2011

ATI Radeon HD 3450 & Ubuntu Lucid Lynx 10.04

Driver radeon: I'm experiencing a lot of problems with this cheap card

VGA compatible controller: ATI Technologies Inc RV620 LE AGP [Radeon HD 3450]

using the driver radeon on Ubuntu 10.04: inability to use Compiz, slow flash videos, ridicolous performances in general. 
The main cause: KMS.
"Kernel mode-setting (KMS) shifts responsibility for selecting and setting up the graphics mode from X.org to the kernel. When X.org is started, it then detects and uses the mode without any further mode changes. This promises to make booting faster, more graphical, and less flickery."

Solution (for me):
  1. Open /etc/default/grub in a text editor
  2. Replace

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

    with

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.modeset=1"

  3. Update grub2: sudo update-grub
  4. Reboot
Note 1: Pay attention to grub2: in my humble opinion it's the worst software I have ever seen on Ubuntu.

Note 2: Not tested yet but the following fix should work fine:

echo options radeon modeset=1 > /etc/modprobe.d/radeon-kms.conf

If so,  don't modify /etc/default/grub.

Driver fglrx:  this fantastic installation guide explains all we need to know about the driver fglrx. I recommend to install the driver manually.

Note: if we installed the driver and, after the reboot, Xserver returns an error like this:

(EE) Can't load FireGL DRM library (libfglrxdrm.so)
(EE) fglrx: Failed to load module "fglrxdrm" 
(module does not exist, 0)
(EE) fglrx(0): Failed to load DRM library
(EE) fglrx(0): Preint failed
(EE) Screen(s) found, but none have a usable configuration.

probably update-alternatives has not created symbolic links to the files in the fglrx directory because the very related gl_conf entry has been set to manual. we have to remove the driver, and change the gl_conf into automatic mode before a new installation with this command:

sudo update-alternatives --auto gl_conf

another lecture of interest about this argument here.

AFAIK, the unique issue for me with this driver regards the bttv driver: if I run tvtime, bttv returns a bunch of these messages:

bttv0: timeout: drop=29 irq=46/104431, risc=3261a4d4,
bits: VSYNC HSYNC OFLOW RISCI

Unloading and reloading bttv is a temporary fix that works for now.

Best regards.