Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
02-27-2007, 06:05 AM
|
#1
|
|
Member
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42
Rep:
|
How to get xv working for mplayer fullscreen
Hi,
I just installed latest mplayer from source but I cannot get the fullscreen view of the videos. I researched a bit and came to the conclusion that the video output driver (ie vo) should be xv but It looks like i dont have xv. When I run xvinfo i get :
X-Video Extension version 2.2
screen #0
no adaptors present
So I used vo x11 but it has the fullscreen problem. I know the quick solution to this is to use -zoom option *but* its *not* the same. You get fullscreen but its software zoom, by xv you get hardware zoom and its very easy to tell the difference.
What I want is a method to enable/install xv for my X window. Do I need a latest version of X (X11R7 or something) ?
I have Intel D945GCL chipset with pentium D (still I have to suffer with the bad video quality  )
Thanks
|
|
|
|
02-27-2007, 07:43 AM
|
#2
|
|
Senior Member
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Rep:
|
Have you got DRI working on your box?
|
|
|
|
02-27-2007, 07:45 AM
|
#3
|
|
Member
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42
Original Poster
Rep:
|
yeah, I have Load "dri" on my xorg.conf file.
|
|
|
|
02-27-2007, 10:36 AM
|
#4
|
|
Senior Member
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Rep:
|
but is it working ? wat do you get output on "#glxinfo | grep dri"
if so maybe you could enable hw accelertion in mplayer options( read mplayer manuel) and it might work.
|
|
|
|
02-27-2007, 11:13 AM
|
#5
|
|
Member
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42
Original Poster
Rep:
|
hi,
I think it isn't working. The first few lines of glxinfo :
name of display: :0.0
display: :0 screen: 0
direct rendering: No
But is it related to xv? How to enable dri, if thats gonna solve the problem?
Thanks.
|
|
|
|
02-27-2007, 11:36 AM
|
#6
|
|
Member
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Rep:
|
The sticky on 3d graphics might help. There's info on dri and the intel chipset.
|
|
|
|
02-27-2007, 01:42 PM
|
#7
|
|
Member
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42
Original Poster
Rep:
|
Its really a pain to get dri working. I tried and failed. First I installed the kernel module drm.ko (direct rendering manager reqd by dri), then I saw on dri.freedesktop.org ( http://dri.freedesktop.org/wiki/Building) that dri can be available with mesa3d, then I went to mesa and downloaded it, it said you need libdrm to compile . Then I installed libdrm. Back to mesa I tried 'make linux-dri-x86' and 'make install' It successfully compiled and installed mesa libs and dri modules in x11 directories.
After that , I made /sbin/modprobe drm entry in rc.modules. REBOOT
Everything works as it was before. NO EFFECT of all that jazz. glxinfo shows direct rendering: No
I dont know how all these thing are related
DRM DRI MESA XV GL X11
Plz direct me through this mess.
|
|
|
|
02-27-2007, 02:32 PM
|
#8
|
|
Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,706
|
Well, it would be great if you could get dri running, so you've tried this guide and it didn't work ?
http://www.linuxquestions.org/questi...d.php?t=402003
If so, what part failed. There have been issues in the past with that card and the framebuffer. Just in case, I would change the 'vga=' line in '/etc/lilo.conf' to 'vga=normal'.
Here is a decent explanation:
http://dri.sourceforge.net/doc/DRIintro.html
And what my take on this:
* Mesa is slow, indirect, software 3D rendering (if you're card doesn't support OpenGL very well (maybe because of drivers), this is what you gotta use)
* GL is fast, direct, hardware 3D rendering (if you are lucky and have a good card and drivers)
* DRI is "direct rendering infrastructure", which allows 3D direct rendering
Quote:
|
This driver essentially converts OpenGL command sequences into hardware commands. It then uses the kernel module to transmit the commands to the hardware. The 3D driver and kernel module basically implement the entire OpenGL rendering pipeline. The 3D driver implements as much of it as possible in user space while the kernel module does whatever is needed in kernel space.
|
* DRM is just the direct rendering (kernel) module
* XV is an X video extention that allows for 2D hardware direct rendering (not 3D)
Quote:
|
Under XFree86 4.0.2 or newer, you can use your card's hardware YUV routines using the XVideo extension. This is what the option -vo xv uses. Also, this driver supports adjusting brightness/contrast/hue/etc. (unless you use the old, slow DirectShow DivX codec, which supports it everywhere), see the man page.
|
http://www.mplayerhq.hu/DOCS/HTML-si...Player.html#xv
* X11
Quote:
|
Outputs to X11 (uses shared memory extension), with no hardware acceleration at all. Supports (MMX/3DNow/SSE accelerated, but still slow) software scaling
|
http://www.mplayerhq.hu/DOCS/HTML-si...layer.html#x11
Last edited by H_TeXMeX_H; 02-27-2007 at 02:34 PM.
|
|
|
|
02-27-2007, 02:57 PM
|
#9
|
|
Member
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42
Original Poster
Rep:
|
First of all, thanks for this interesting information. I really needed some picture of whats happening.
>Well, it would be great if you could get dri running, so you've tried this guide and >it didn't work ?
> http://www.linuxquestions.org/questi...d.php?t=402003
>If so, what part failed.
Well actually nothing failed. Here is a sequence of what I did
1. Install drm modules in kernel modules directory
2. added /sbin/modprobe drm to rc.modules
3. Installed libdrm (reqd by mesa3d)
4. Install mesa3d by make linux-dri-x86 and make install (this *will* enable dri in mesa as per their docs)
5. thats all .. i think
Everything worked. Still I dont understand how mesa3d is related to xv? And ofcourse glxinfo says direct rendering: No
May be I an not able to tell(?) X to use the new mesa libs.
Also I found out my graphics card Intel GMA950 has got problem using xv according to this guy.
What do you think?
Last edited by dark*; 02-27-2007 at 03:02 PM.
|
|
|
|
02-27-2007, 03:57 PM
|
#10
|
|
Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,706
|
Might wanna try the guide ... verbatim. I don't see anything in there about messing with mesa.
|
|
|
|
02-27-2007, 09:38 PM
|
#11
|
|
Senior Member
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Rep:
|
Try the sticky at the top on the Slackware forum ... "A guide enabling 3d acceleration..." by cwwilson .. it will surely get your 3d output working.
And please show us your xorg.conf.
|
|
|
|
02-28-2007, 05:03 AM
|
#12
|
|
Senior Member
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Rep:
|
by the way i also have an intel 915 GMA and i have dri enabled.In default settings mplayer works fine with me but when i append -vo x11 in the command i get the same problem as yours, that is it does not go into fullscreen mode.Just a note.
|
|
|
|
02-28-2007, 11:32 AM
|
#13
|
|
Member
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42
Original Poster
Rep:
|
here is my xorg.conf
Code:
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "record"
Load "extmod"
Load "dbe"
Load "dri"
Load "glx"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/mouse"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30.0 - 55.0
VertRefresh 50.0 - 120.0
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "ShadowFB" # [<bool>]
#Option "DefaultRefresh" # [<bool>]
Identifier "Card0"
Driver "vesa"
VendorName "Intel Corp."
BoardName "Unknown Board"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Also some parts of Xorg.0.log in which it shows loading dri and drm modules
Code:
(II) LoadModule: "dri"
(II) Loading /usr/X11R6/lib/modules/extensions/libdri.a
(II) Module dri: vendor="X.Org Foundation"
compiled for 6.8.2, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.2
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /usr/X11R6/lib/modules/linux/libdrm.a
(II) Module drm: vendor="X.Org Foundation"
compiled for 6.8.2, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.2
(II) Loading extension XFree86-DRI
(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.a
(II) Module glx: vendor="X.Org Foundation"
compiled for 6.8.2, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.2
(II) Loading sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /usr/X11R6/lib/modules/extensions/libGLcore.a
(II) Module GLcore: vendor="X.Org Foundation"
compiled for 6.8.2, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.2
(II) Loading extension GLX
(II) LoadModule: "xtrap"
(II) Loading /usr/X11R6/lib/modules/extensions/libxtrap.a
(II) Module xtrap: vendor="X.Org Foundation"
compiled for 6.8.2, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.2
|
|
|
|
02-28-2007, 03:30 PM
|
#15
|
|
Member
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42
Original Poster
Rep:
|
Are you referring to berxwedan; the guy who changed from vesa to i810 drivers and solved the xv problem?
here from > man i810
Supported Hardware
i810 supports the i810, i810-DC100, i810e, i815, 830M, 845G, 852GM,
855GM, 865G and 915G chipsets.
I have intel 945G which is *not* supported.
I tried it but it says device not detected.
I went to http://intellinuxgraphics.org/download.html for 945G drivers but they are pointing to mesa git repos which i already did.
Last edited by dark*; 02-28-2007 at 03:42 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:34 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|