Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 01 Sep 2014, 04:36
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Video
VIA Unichrome for Puppy 3?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [33 Posts]   Goto page: 1, 2, 3 Next
Author Message
Matt

Joined: 15 Oct 2007
Posts: 9

PostPosted: Tue 23 Oct 2007, 05:17    Post subject:  VIA Unichrome for Puppy 3?  

I can't get graphics acceleration to work on my eBox using Puppy 3.01. Does anyone have a solution to this?
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5245
Location: Australia

PostPosted: Tue 23 Oct 2007, 06:17    Post subject:  

I'm not sure if MU's 3D Control Centre supports Puppy 3
http://www.murga-linux.com/puppy/viewtopic.php?t=14463

but if not, you can set things up manually. First download and install xorg_OPENGL-7.2.pet from
http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-3/

Now open /etc/X11/xorg.conf in geany
In Section "Module" make sure these lines are included (and not commented out)
Code:
Load "dri"
Load "glx"


In Section "Device" check the the Driver value is "via"
Code:
Driver "via"


In Section "Screen" check that DefaultDepth is 16, because sometimes 3D fails at higher bit depths.
Now reboot, or just restart X. Run "lsmod" and check that these 2 modules are loaded -
via
via_agp
Back to top
View user's profile Send private message 
Matt

Joined: 15 Oct 2007
Posts: 9

PostPosted: Tue 23 Oct 2007, 07:22    Post subject:  

I'm pretty sure 3DCC doesn't support Puppy 3, but I use it to try the 3D-demo. X use to crash when trying that, but after installing xorg_OPENGL-7.2.pet at least it doesn't crash. This time the monitor is flickering and I can make out a window there where I guess the 3D demo should be visible. Getting close, but not there yet.

I already had "dri" and "glx" in the module-section. "via" in the device section too.

But like I said: Still not there.
Back to top
View user's profile Send private message 
Matt

Joined: 15 Oct 2007
Posts: 9

PostPosted: Tue 23 Oct 2007, 07:28    Post subject:  

Oh... forgot to mention I got both those modules listed in lsmod.
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5245
Location: Australia

PostPosted: Tue 23 Oct 2007, 07:38    Post subject:  

MU's 3D demo is very complex, and might not work with onboard graphics devices.

I suggest you install glxgears-pup1x.pup as I mentioned in this other thread
http://www.murga-linux.com/puppy/viewtopic.php?p=145008#145008

then run "glxinfo". If it reports "direct rendering: Yes" then that means success.
Also run "glxgears". When you exit this test (with Esc key, I think) it will report frame rate.
Back to top
View user's profile Send private message 
Matt

Joined: 15 Oct 2007
Posts: 9

PostPosted: Tue 23 Oct 2007, 10:08    Post subject:  

tempestuous wrote:
MU's 3D demo is very complex, and might not work with onboard graphics devices.

I suggest you install glxgears-pup1x.pup as I mentioned in this other thread
http://www.murga-linux.com/puppy/viewtopic.php?p=145008#145008

then run "glxinfo". If it reports "direct rendering: Yes" then that means success.
Also run "glxgears". When you exit this test (with Esc key, I think) it will report frame rate.


I got direct rendering according to glxinfo, but glxgears fails with this:

Code:
__driCreateNewScreen_20050727 - succeeded
glxgears: Error: Requested window size (300/300) larger than maximum supported by GL engine (0/0).

[/code]
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5245
Location: Australia

PostPosted: Tue 23 Oct 2007, 11:00    Post subject:  

I seem to remember that I compiled glxgears as part of Mesa (OpenGL) under Xorg 6.8.1, so there might be some incompatibilities with OpenGL under Xorg 7.2.

One thing I forgot to mention, certain 3D functions (such as XvMC acceleration) require a certain amount of RAM to be available to the onboard graphics device, and this is set in bios.
Get into bios and allocate at least 32MB to graphics. If you don't know how to get into bios, send pakt a PM, he knows how to do this with an eBox.
It may also be necessary to specify the RAM value in xorg.conf, under Section "Device"
Code:
VideoRam 32768


After restarting X, there may be some critical information contained /var/log/Xorg.0.log
You may see reference to libdrm, which I seem to remember is very important.

Ultimately, your aim is not to run glxgears. See how your system works with everyday tasks.
One of the first things I noticed with accelerated graphics was that text in Geany scrolled really fast when I used the search funtion.
Back to top
View user's profile Send private message 
Matt

Joined: 15 Oct 2007
Posts: 9

PostPosted: Tue 23 Oct 2007, 11:57    Post subject:  

Thanks tempestuous Smile VideoRam 32768 fixed it, but I can only reach close to 18 fps which I take it is maximum for the eBox 3851 I'm using.

And btw... gxine fails to run on my eBox (Details: serial 369 error_code 11 request_code 139 minor_code 19) Don't know if that's related, but probably is.

Thanks again
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5245
Location: Australia

PostPosted: Tue 23 Oct 2007, 13:01    Post subject:  

Matt wrote:
I can only reach close to 18 fps which I take it is maximum for the eBox 3851 I'm using.

Actually, that sounds terrible.
With an older version of Puppy on a VIA Epia ML8000A with almost identical specs to your eBox-3851 (800Mhz, CLE266) I got 90fps without DRI, and 500fps with DRI enabled.

Your results are so bad I suspect glxgears is at fault. It's part of the Mesa library, so I suspect there is an incompatibility with my glxgears version and Xorg 7.2.

If someone with Slackware 12 could provide glxgears as a dotpet, that would be useful.
... plus glxinfo and xdriinfo, please.
Back to top
View user's profile Send private message 
Matt

Joined: 15 Oct 2007
Posts: 9

PostPosted: Wed 24 Oct 2007, 11:49    Post subject:  

tempestuous wrote:
Your results are so bad I suspect glxgears is at fault. It's part of the Mesa library, so I suspect there is an incompatibility with my glxgears version and Xorg 7.2.

If someone with Slackware 12 could provide glxgears as a dotpet, that would be useful.
... plus glxinfo and xdriinfo, please.


Yes, please! I'm sort of stuck at 18 fps since I don't have a full development environment myself.
Back to top
View user's profile Send private message 
tony

Joined: 14 Jan 2006
Posts: 316
Location: Montreal.ca

PostPosted: Thu 06 Dec 2007, 11:56    Post subject: Unichrome Plus Flightgear  

Hi tempestuous,

Thanks for all the tips on the Unichrome. I followed them and finally typed Load "dri" into /etc/X11/xorg.conf. Restarted xwindows and glxinfo came back with direct rendering :yes.

However typing into xorg.conf is only a temporary solution as it is overwritten by xwin if you change the screen configuration.

I can actually use Flightgear now with the video breaking up at the edges.

I will have to find out how to increase on board video memory for my Assus A7V/400 computer.

Regards Tony
Back to top
View user's profile Send private message 
giac_fab

Joined: 25 Jan 2007
Posts: 114

PostPosted: Sat 15 Dec 2007, 08:05    Post subject:  

It works also for me but everytime i use my video-card a little bit ( also with a light mame-game) processor works at 100% .... my fps is about 170
_________________
Embarassed I know, my english is very bad Embarassed
Give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime.
Back to top
View user's profile Send private message 
nosignal

Joined: 07 Apr 2008
Posts: 8

PostPosted: Mon 07 Apr 2008, 10:27    Post subject: VIA Unichrome II in Puppy3 -no acceleration after trying all  

The short of it is that I have not had any luck. I think I have tried everything available on the forums, and a bit extra. I hope my log of what I did will make sense.

I would dearly love to get this Norhtec Microclient SR box with VIA CX700 / Unichrome II working propoerly. Fingers crossed:

Code:
Installed:
  - xorg_DRI_MODULES-7.2.pet                      26-Sep-2007 10:20   11M 
    - Actually in a puppy 3 folder, and forums talking of use with puppy 3
  - xorg_OPENGL-7.2.pet                           26-Sep-2007 10:20  972K 
    - the one needed for OpenGL. But only gives Mesa on its own.


Added:
VideoRam 65536
to
/etc/X11/xorg.conf
/etc/X11/xorg.conf.VIA_CX700

Installed geany
- text seems to scroll very fast.
- terminal - geany

Puppy-Software-Installer.pup installed. visible in
/usr/local/Puppy-Software-Installer
Installed it.
Start->Settings->PSI

MPlayer-1.0rc2-unichrome.pet     5244617      15.03.08, 11:13
http://dotpups.de/puppy3/dotpups/Multimedia/
I installed with error:
mplayer has missing these library files:
libfribidi.so.0
PETget does not know what package has these libraries.
Start->Multimedia->MPlayer
>>Doesn't work

Installed 3dcc:
getdir.pup
Gtklist04MU.pup
3DCC-Puppy-2.12-and-2.13.pup
to /usr/local/3DCC
Start->Settings->3DCC
>> 3D Demo: DRI not active - should run <10fps

Unzipped glxtools
Ran glxgears:
- Xlib:  extension "GLX" missing on display ":0.0".

As per http://www.murga-linux.com/puppy/viewtopic.php?search_id=391200353&t=22933
(VIA Unichrome for puppy 3)
Installed xorg_OPENGL-7.2.pet
Added
# This loads DRI - added by Eric
    Load       "dri"
...
   ### Eric added this:
   Driver      "via"
   ### Eric removed this BUT xwin then fails:
   Driver      "vesa" #card0driver
to
/etc/X11/xorg.conf
/etc/X11/xorg.conf.VIA_CX700
>> xwin would not load
- VideoRam not the problem
- Load "dri" not the problem
- Driver "via" - IS a problem if:
  - after existing Driver line
  - if existing Driver line is commented out
>>>> SO, probably can only have one 'Driver' at once, and "via" fails.
>>'lsmod |grep via' produces:
i2c_viapro              9236  0
i2c_core               22032  1 i2c_viapro
via_agp                10240  0
agpgart                34128  1 via_agp
NOT
via
via_agp (it has got this)
as expected
>> /var/log/Xorg.0.log  contains:
libdrm - no reference
XvMC - no reference
drm - no reference
dri:
(near start)
 (II) LoadModule: "dri"
 (II) Loading /usr/lib/xorg/modules/extensions//libdri.so
 (II) Module dri: vendor="X.Org Foundation"
   compiled for 1.3.0, module version = 1.0.0
   ABI class: X.Org Server Extension, version 0.3
 (II) Loading extension XFree86-DRI
... (near end)
 (II) Setting vga for screen 0.
 ...
 (II) Initializing built-in extension XEVIE
 (EE) AIGLX: Screen 0 is not DRI capable
via:
 (II) VESA(0): VESA VBE OEM: VIA CX700
 (II) VESA(0): VESA VBE OEM: VIA CX700
glx:
 (II) LoadModule: "glx"
 (II) Loading /usr/lib/xorg/modules/extensions//libglx.so
 (II) Module glx: vendor="X.Org Foundation"
   compiled for 1.3.0, module version = 1.0.0
   ABI class: X.Org Server Extension, version 0.3
 (==) AIGLX enabled
 (II) Loading extension GLX
...
 (EE) AIGLX: Screen 0 is not DRI capable
 (II) Loading local sub module "GLcore"
 (II) LoadModule: "GLcore"
 (II) Loading /usr/lib/xorg/modules/extensions//libGLcore.so
 (II) Module GLcore: vendor="X.Org Foundation"
   compiled for 1.3.0, module version = 1.0.0
   ABI class: X.Org Server Extension, version 0.3
 (II) GLX: Initialized MESA-PROXY GL provider for screen 0
>>>> So DRI not loading? and Mesa loading?
>>>> So no XvMC? and software OpenGL?

glxgears = 60-70fps
glxinfo has numerous mentions of MESA
>>>> Confirms Software OpenGL

3DCC - 3D Demo:
- DRI not active - should run <10fps
- runs under 4fps
>>>> confirms DRI has failed.

Uninstalled xorg_OPENGL-7.2.pet
- to do it in 'right' order.
Installed xorg_DRI_MODULES-7.2.pet
Installed xorg_OPENGL-7.2.pet
Installed sdl-1.2.11.pet
- 5 SDL files has a missing library: libvga.so.l
Restarted

Did it work? Do I have via, DRM and OpenGL?

>>'lsmod |grep via' produces:
i2c_viapro              9236  0
i2c_core               22032  1 i2c_viapro
via_agp                10240  0
agpgart                34128  1 via_agp
NOT
via
via_agp (it has got this)
as expected
>>>> No via (though the xorg.conf is not ideal).

glxgears still about 60fps.
>>>> No 3D.

how do find out if opengl its already activated?
You could look and see if these files exist:
/usr/X11R7/lib/xorg/modules/extensions/libGLcore.so
/usr/X11R7/lib/xorg/modules/extensions/libglx.so
If not, you probably don't have OpenGL installed yet.
>> I have both of these.

setup 3D accel in puppy 3.01:
install wNOP, it has it all done already
- its a whole separate iso install

setup 3D accel in puppy 3.01:
in /etc/X11/xorg.conf
Find the values:
# Option "DRI" # [<bool>]
# Option "NoAccel" # [<bool>]
Change These to (or add):
Option "DRI" "True"
Option "NoAccel" "False"
It should go inside the "Modules" section.
While you're in there, you might need to enabled GLX if you installed OpenGL.

Manual install of compiz - and getting 3D accelleration.
http://www.murga-linux.com/puppy/viewtopic.php?p=151018
- a very good, detailed instructions.
T test if DRI is working:
After installing glxinfo and typing - Code:
glxinfo | grep dri
at the command line will tell you whether DRI is active and
if it is not, typing - Code:
cat /var/log/Xorg.0.log | grep dri
may give you some idea as to why.
>> no mention of dri in glxinfo
>> Xorg.0.log mentions dri module loaded, but vesa driver - yuck?
To Install DRI and 3D properly:
Install
- xorg_DRI_MODULES-7.2.pet
- xorg_OPENGL-7.2.pet
>> done
Fix glich in /usr/sbin/findhostbridge and find line 97 - replace
shell("ls /lib/modules/2.6/char/agp/*.ko>/tmp/findhostbridge.tmp")
with
shell("ls /lib/modules/2.6/kernel/drivers/char/agp/*.ko>/tmp/findhostbridge.tmp")
>> done
add this line to /etc/rc.d/rc.local: - Code:
modprobe sis_agp
>> my 'via_agp' loads, but 'via' doesn't. So I've tried loading
modprobe via
>> done
For these fixes to take effect a FULL REBOOT is needed!
>> done
In order to activate 3D accelaration, add to /etc/X11/xorg.conf - Code:
Load "glx"
Load "dri"
within the section indicated by: - Code:
Section "Module"
...
EndSection
>> done
>> no better 3D results.
essential for Compiz are: the addition of: - Code:
Option "AIGLX" "true"
within: - Code:
Section "Server Layout"
...
EndSection
>> done
the addition of this code at the end of xorg.conf: - Code:
Section "Extensions"
    Option "Composite" "Enable"
EndSection

Still 60fps in glxgears, and glxinfo crashes xwin - dumps me in terminal
Back to top
View user's profile Send private message 
nosignal

Joined: 07 Apr 2008
Posts: 8

PostPosted: Mon 07 Apr 2008, 22:59    Post subject: My previous post explained  

Apologies about my last post - it was 3am after about 20hours of frustration, so I wasn't thinking the straightest. I think I left out a couple of important sentences.

I got a Norhtec Microclient SR box with VIA CX700 / Unichrome II which was very exciting. I got NOP Puppy 3.01r5 working ok, but without 3D or video acceleration, which I need for the project I am doing (video acceleration is more important).

I have read countless forums about this, and tried a number of things. But the essence of it is I have installed xorg_DRI_MODULES-7.2.pet and xorg_OPENGL-7.2.pet, resulting in no 3D or video acceleration. I tried a few tweaks here and there, as documented above, which made little difference. So I am pretty stuck, and would appreciate some help on this.

I think my main problem is that when I include 'Driver "via"' in xorg.conf, xwin fails to start, and I have to remove that line from the terminal. This could be linked to 'lsmod | grep via' not showing a line just called 'via' (it has other lines with via in them), although I have added 'modprobe via' to rc.local, which has made 'via' appear in lsmod, but has not helped any accelleration.

My other, smaller challenge is knowing when acceleration is enabled. With a combination of 3DCC's 3D demo, glxinfo, glxgears, lsmod and looking at 'Xorg.0.log' I get a rough idea, but its not black and white (especially with XvMC video acceleration).

Any ideas yould be greatly appreciated.
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5245
Location: Australia

PostPosted: Tue 08 Apr 2008, 08:57    Post subject: Re: My previous post explained  

nosignal wrote:
I think my main problem is that when I include 'Driver "via"' in xorg.conf, xwin fails to start

Yes, that's the core of your problem. There's no point adding 3D drivers until the "via" Xorg driver is working.
"vesa" is a generic Xorg driver, and is not capable of 3D acceleration.

VIA seems to constantly update their Unichrome graphics chips, and the Xorg/Openchrome developers are always playing catch-up. I suggest you move up to Puppy4, which will take you from Xorg7.2 to Xorg7.3.
Generally, though, your installation process is correct. The steps are -
- get Xorg running with Driver "via"
- install xorg_DRI_MODULES and xorg_OPENGL. For Puppy4 this means Xorg7.3. It would be worth doing a forum search on this, because at one stage kirk contributed updated Xorg and OpenGL libraries for Puppy4.
- modify /etc/X11/xorg.conf to enable 3D
- install 3dcc
Restart X or reboot, then run "glxinfo". Hope that you see "direct rendering: Yes"
- install MPlayer1.0rc2-unichrome, and launch it from the commandline with the correct xvmc parameters. If the video plays, all is well. If it fails, you will see various error messages on the commandline.

If you are hell-bent on sticking with Puppy3, then you are faced with the arduous task of compiling the very latest via Xorg driver from the OpenChrome Project - www.openchrome.org
This is a serious undertaking. It would require
- install Puppy3 developer tools
- install Puppy3 kernel source
- install Xorg7.2 sources
- compile OpenChrome via driver, plus via drm module, plus libdrm, plus OpenGL
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [33 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Video
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1226s ][ Queries: 12 (0.0166s) ][ GZIP on ]