LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Tearing in framebuffer (https://www.linuxquestions.org/questions/linux-desktop-74/tearing-in-framebuffer-4175478230/)

bucovaina78 09-23-2013 12:56 PM

Tearing in framebuffer
 
I've had problems with tearing since ... forever. The only time I've had it right was with a Knoppix live CD but I'm using Debian so that's not very much of use.

Now I've put my hopes in trying to get tearing away in the framebuffer. Main reason, I want to wach (tear-free) movies in fb.

Now, how do I do that? :study:

Thanks

> hardware is a ASUS E35M1-I deluxe with an HD6310 as a video card. I'm running Debian 7

gradinaruvasile 09-23-2013 05:36 PM

Why do you want to watch movies via fb? xv is way better.
If you use fglrx, you will get tearing unless you use either tear free opption in the aticcc control panel (lowers performance in games) or use the xbmc media player for playback.

Also you can try the opensource driver with kernel 3.11 or later (with radeon.dpm=1), mesa 9.2 or higher, radeon ddx driver 7.2 and drm 2.4.46.
This new opensource driver has tear free playback with any interface and it has vdpau hw decoding (works with mplayer/smplayer/gnome-mplayer, even with flash but only on youtube). It also implements proper power management and clock switching, using roughly the same power as fglrx (maybe a bit more, but on my desktop A8-5500 i see exactly the same temperatures).

bucovaina78 09-24-2013 01:55 AM

Quote:

Originally Posted by gradinaruvasile (Post 5033431)
Why do you want to watch movies via fb?

I'm aware of the fact that my approach isn't very usual. That's because I'm hoping it's going to be easier to remove tearing in fb. I've been struggling with this problem in X for so long now and with different setups I always had the same problems. Aside of that, I like the console a lot and I'd prefere it, if I could move the "watching movies" part of what I do to the console as well. Provided I haven't got tearing, that is.

Quote:

Originally Posted by gradinaruvasile (Post 5033431)
xv is way better.

Very likely you're right and I wouldn' expect you to not give me this advice.

Quote:

Originally Posted by gradinaruvasile (Post 5033431)
If you use fglrx, you will get tearing unless you use either tear free opption in the aticcc control panel (lowers performance in games) or use the xbmc media player for playback.

Well, at a clean install, Debian doens't give me image when i'm on console (F1-F6), they're there, I can blindely login as root and reboot but no image. If I install firmware-linux-nonfree, that problem is solved. Lateron I tried the fglrx drivers and I lost the consoles again and had to reinstall. Since I use the console a lot, I'm a bit reluctant on installing these drivers that make me lose the console.

Quote:

Originally Posted by gradinaruvasile (Post 5033431)
Also you can try the opensource driver with kernel 3.11 or later (with radeon.dpm=1), mesa 9.2 or higher, radeon ddx driver 7.2 and drm 2.4.46.
This new opensource driver has tear free playback with any interface and it has vdpau hw decoding (works with mplayer/smplayer/gnome-mplayer, even with flash but only on youtube). It also implements proper power management and clock switching, using roughly the same power as fglrx (maybe a bit more, but on my desktop A8-5500 i see exactly the same temperatures).

Thanks for the advice, I will give it a shot if all else fails.

But still the question remains open. How do I remove tearing in fb?

gradinaruvasile 09-25-2013 05:07 AM

I had the blank virtual terminals issue when i used fglrx with some newer kernel (3.8 or 3.9).
Solution: set the console resolution to that of the native screen resolution. This will work with or without fglrx.
You do this by adding something like (this is my setup, i have a 1280x1024 monitor):

Code:

GRUB_GFXPAYLOAD_LINUX=1280x1024x24,1280x1024
GRUB_GFXMODE=1280x1024x24

to /etc/default/grub then running "update-grub".
If the entries already exists, modify and uncomment them.

bucovaina78 09-25-2013 10:03 PM

My /boot/grub/grub.cfg (at least the relevant part) currently looks like this. I think that's what you're saying?

Code:

if loadfont /share/grub/unicode.pf2 ; then
  set gfxmode=1920x1080
  load_video
  insmod gfxterm
  set gfxpayload=keep
  insmod part_msdos
  insmod ext2
  set root='(hd1,msdos1)'
  search --no-floppy --fs-uuid --set=root 8180cff5-e237-47e4-b95c-5e9eed08d223
  set locale_dir=($root)/grub/locale
  set lang=nl_BE
  insmod gettext
fi


gradinaruvasile 09-26-2013 01:57 AM

Basically yes. Does it work for you?
I had to specify explicitly in both entries, because the "GRUB_GFXMODE=keep" wouldnt work. Other simple method is using the vga=792 (or other number, depending on your resolution) in the kernel command line - this was simplest but the kernel kept complaining about it being a deprecated and soon-to-be-removed option.

bucovaina78 09-27-2013 05:53 AM

I added both lines and it didn't change much. I already had the other tty's available since I installed firmware-linux-nonfree. The main problem is tearing. It's till there even after I added the lines suggested


All times are GMT -5. The time now is 09:19 AM.