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 Thu 02 Oct 2014, 00:49
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Video
Universal ATI/NVIDIA drivers
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
_gg


Joined: 21 Jan 2009
Posts: 4

PostPosted: Wed 21 Jan 2009, 10:41    Post_subject:  Universal ATI/NVIDIA drivers
Sub_title: Bundled a package of most popular video drivers for users who boots Puppy from flash
 

Hi mates!

I started using Puppy Linux a couple of weeks ago.
I think, I have finally found the thing. (tnx 2 Barry and all Puppy Linux team =)
After installing to USB Flash drive I had an opportunity to boot almost any computer I met on my way... the same Xorg with old but reliable Vesa and specific JWM presented nice desktops and funcs everywhere...

Once I got an idea to advance my Flash installation to make it support DRI of the most popular ATI and NVIDIA GPUs.
After analyzing three driver packages I dealed with: (EDITED)
- NVIDIA 71.86.06 legacy drivers - nvidia_old configuration
- NVIDIA 177.82 proprietary drivers - nvidia_new configuration
- ATI 8-12 proprietary drivers - fglrx_new configuration
- ATI 8.18 legacy drivers - fglrx_old configuration
(EDITED) ... I created the common installer for them and the scripts (fglrx_new, fglrx_old, nvidia_new, nvidia_old, opengl - they can be found in /usr/etc/X11) which do all necessary to switch between the drivers and introduced the way of their execution in xorg.conf. opengl is the default configuration and is applied if no #ggconf entries found in xorg.conf
For example:
#ggconf fglrx_new -- somewhere in xorg.conf means that fglrx_new configuration is applied before xinit gets started.

This method assumes xorg.conf of each hardware profile have #ggconf string, telling ggconf configurator which driver to use.
This means that after the xorgwizard and aticonfig/nvidia-xconfig configurations on each new profile, the user must edit xorg.conf and place #ggconf of the driver version needed.

Before finally modifying xorg.conf, you can probe for configuration:

Example probe commands: (EDITED)
nvidia-xconfig; echo "#ggconf nvidia_old" > /etc/X11/xorg.conf; xwin
nvidia-xconfig; echo "#ggconf nvidia_new" > /etc/X11/xorg.conf; xwin
aticonfig --initial; echo "#ggconf fglrx_old" > /etc/X11/xorg.conf; xwin
aticonfig --initial; echo "#ggconf fglrx_new" > /etc/X11/xorg.conf; xwin
etc.

The problem was to apply the configuration just before xinit starts. The only solution I made was to rename xinit to xinit.original.ggconf and instead of this create symbolic link to xinit.ext.ggconf, which applies the configuration and then runs original xinit. I know that looks weird. So I ask more experienced Puppy users for an advice on this problem.

Here is the package (Only for installation, not for uninstallation):
h t t p : //s3.mixal.org.ua/puppy/ggvideo-4.1.2.pet
EDIT: Sorry, initial package was buggy ang no longer available.

Here is a version, tested with nvidia_old, nvidia_new and fglrx_new configurations (going to test in fglrx_old asa I get onto old ATI machine):
http://s3.mixal.org.ua/puppy/ggvideo-fglrx-nvidia-puppy412.pet

Please feel free to post your test results/bugs here...
Sorry again for previous buggy package.


I plan to advance the package with more video drivers.

Happy using,
Taras
Back to top
View user's profile Send_private_message 
_gg


Joined: 21 Jan 2009
Posts: 4

PostPosted: Fri 23 Jan 2009, 08:08    Post_subject:  

Edited previous post.
Back to top
View user's profile Send_private_message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 23 Jan 2009, 09:26    Post_subject:  

very interesting.
I try to buld something similar for ultrapup, but it uses xorg 7.4, and so (very) the old nvidia drivers 77 do not work.
I did not yet integrate the 9.x driver, just forgot them...

With the old Ati driver 8.18 you will encounter the problem, that new versions of xorg are not supported.
See:
http://www.murga-linux.com/puppy/viewtopic.php?t=36567

I think you mean the fglrx driver from 2006 or so?
The naming convention by Ati is very confusing, now that the catalyst drivers use names like 8.12.
Mark

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
_gg


Joined: 21 Jan 2009
Posts: 4

PostPosted: Fri 23 Jan 2009, 10:48    Post_subject:  

Quote:

I think you mean the fglrx driver from 2006 or so?
The naming convention by Ati is very confusing, now that the catalyst drivers use names like 8.12.


Yes, this is old driver, named ati-driver-installer-8.28.8.run (2006 year) is the last one, I needed to get DRI on Radeon 9200. Had lots of troubles compiling it under 2.6 kernel as ATI didn't patch firegl_public.c for k2.6. So this is done by I still need to test all the fglrx_old config getting right.

The naming is really queer: 8.28.8 (old) vs. 8-12-x86 (new). The main difference is that new versions got separated by hyphens instead of dots.

Taras
Back to top
View user's profile Send_private_message 
glassparrot


Joined: 01 Jun 2008
Posts: 285
Location: Durango, Colorado - USA

PostPosted: Sat 24 Jan 2009, 00:40    Post_subject:  

Hi Taras... thanks for your work.

I've been embarking on the same sort of project... Mark (Mu) here has agreed to help me create a puplet which has both the ati and nvidia drivers, along with the smp kernel. I ordered a cheap ati video card in order to use it for testing this project. The card I have installed currently has the chipset: "radeon HD 3450"... and neither of your fglrx scripts worked for me. Both returned an error:

Code:
ERROR: Module fglrx does not exist in /proc/modules



UPDATE:
I take it back. The error does not show up if I reboot the computer before running that install script.
Back to top
View user's profile Send_private_message Visit_website YIM MSNM 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sat 24 Jan 2009, 15:39    Post_subject:  

glassparrot wrote:
Hi Taras... thanks for your work.

I've been embarking on the same sort of project... Mark (Mu) here has agreed to help me create a puplet which has both the ati and nvidia drivers, along with the smp kernel. I ordered a cheap ati video card in order to use it for testing this project. The card I have installed currently has the chipset: "radeon HD 3450"... and neither of your fglrx scripts worked for me. Both returned an error:

Code:
ERROR: Module fglrx does not exist in /proc/modules



UPDATE:
I take it back. The error does not show up if I reboot the computer before running that install script.


you might have to type:
depmod -a
after you installed a kernelmodule.
It adds it to /lib/modules/2.6.*/modules.dep.
Just then it can be loaded.
Maybe depmod is run at startup, so the reboot solves this.

Also if you want to load fglrx.ko, first radeon.ko (the free driver) must be unloaded
rmmod drm
rmmod radeon
This must be done, if X does not run, as you just can unload, when it is not in use.
So often a reboot also solves this.

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
glassparrot


Joined: 01 Jun 2008
Posts: 285
Location: Durango, Colorado - USA

PostPosted: Sat 24 Jan 2009, 18:52    Post_subject:  

Thanks for your help, Mark. Smile I'll try what you suggest. The other project I'm working on, of course, is trying to manually install the ati drivers which amd/ati distribute. the latest one appears to be version 8.12. However, I'm having some difficulty finding the sfs file for the 2.6.25.16 kernel. Ibiblio only has 2.6.25.15 and the puptrix site which Barry pointed us to here is down, currently. Do you know where I could get a copy of that sfs file for puppy 4.12? Question And do you know if I would need to use a different sfs file when compiling the ati driver for my smp 4.12 puppy installations?
Back to top
View user's profile Send_private_message Visit_website YIM MSNM 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sat 24 Jan 2009, 19:02    Post_subject:  

puptrix-sources-mirror:
http://www.murga-linux.com/puppy/viewtopic.php?t=34183


yes, the smp needs a different source.
http://www.murga-linux.com/puppy/viewtopic.php?t=34186&start=45
last message.
Mark

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
glassparrot


Joined: 01 Jun 2008
Posts: 285
Location: Durango, Colorado - USA

PostPosted: Sat 24 Jan 2009, 19:43    Post_subject:  

OK... Mark. Thanks again. Let me be sure I understand this, correctly.

I found an sfs file here, at your website: http://puppyisos.org/files/sfs/Puppy-4.1-smp/
which is named
  • 2.6.25.16_410.sfs
This is the sfs file for the 2.6.25.16 smp kernel, and is usable for puppy 4.12, right?



Now, over at those mirror websites you showed me I did not find a source .sfs file, but instead, here: http://puppylinux.ca/puppyfiles/sources/kernel-2.6.25.16/
I found a file named:
  • linux-2.6.25.16-src-patched_squashfs_unionfs_aufs_lzma_mt.tar.gz
In order to create the appropriate sfs file for the nosmp 2.6.25.16 kernel, I would have to put the proper .config file in there, run "configure," and then "make," and then sort a few things out, is that correct? Or if I installed that whole pile of files at /usr/src/linux-2.6.25.16, would the ati driver installation program work fine, immediately?
Back to top
View user's profile Send_private_message Visit_website YIM MSNM 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sat 24 Jan 2009, 21:06    Post_subject:  

glassparrot wrote:
I found an sfs file here, at your website: http://puppyisos.org/files/sfs/Puppy-4.1-smp/
which is named
  • 2.6.25.16_410.sfs
This is the sfs file for the 2.6.25.16 smp kernel, and is usable for puppy 4.12, right?


yes.

For the normal Puppy 4.12 (without SMP), you can use the same sfs.
But replace /usr/src/linux-2.6.25.16/.config with this one:
http://puppylinux.asia/sources/BarryKauler/kernel-2.6.25.16/DOTconfig-K2.6.25.16-26AUG08-STANDARD

Then type:
cd /usr/src/linux-2.6.25.16/
make oldconfig
make modules_prepare


I think this should be sufficient to compile the graficscarddrivers correctly.
If not, run:
cd /usr/src/linux-2.6.25.16/
make oldconfig
make
make modules_install


Mark

(note for me: I looked up here:
http://www.murga-linux.com/puppy/viewtopic.php?p=239056#239056
http://www.murga-linux.com/puppy/viewtopic.php?t=34186 )

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
glassparrot


Joined: 01 Jun 2008
Posts: 285
Location: Durango, Colorado - USA

PostPosted: Sun 25 Jan 2009, 03:55    Post_subject:  

Thanks Mark. I seem to have gotten the drivers themselves working. Following your suggestions, I unwrapped the sfs file with

Code:
cp -a --remove-destination ./* /path/to/unwrapped/folder


...then ran the commands you told me about, after putting the proper .config file into place.
Code:
make oldconfig
make modules_prepare


then I wrapped the sfs back up like this:
Code:
mksquashfs /path/to/unwrapped/folder myname.sfs
And put it into /mnt/home where puppy will find it and use it.

Then I installed the official ati 8.12 driver using the gui installation program.

And after also installing the xorg_xorg_full_dri-7.3.pet, it worked great. You might double check that sfs file you posted. I didn't run more than one test or two... but it seems to me that there may have been a mix up and it might be actually for the original kernel. I had to build the modules for the smp sfs file using a dot config file you gave me a while back.

I checked the log at /usr/share/ati/fglrx-install.log

and ran the tests which are listed at:
http://wiki.cchtml.com/index.php/Verifying

For anyone who is reading this, and trying out the process: if you run into trouble, you can do two things to recover when X won't start: manually restore a working /etc/X11/xorg.conf file, or run the script at /usr/share/ati/fglrx-uninstall.sh to completely uninstall the driver.

My next question, Mark, is where you found the catalyst control panel, the ant simulation and the temperature thing for the ati drivers which are included in the Ati-Catalyst-8.12-xorg7.4-k2.6.27.5.pet package you talk about here. These don't seem to be included by ati in that 8.12 driver package.

And the next task I'll have to puzzle over, is seeing about getting compiz working on xfce using these drivers. There must be a special trick to it.

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website YIM MSNM 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 25 Jan 2009, 04:20    Post_subject:  

ah, that is possible, that it is the sfs I made for the original Puppy, so that you explicitly must modify .config to use SMP.
This is a while back and we lost a server, so I'm not so up to date any more with that.

I attach a pet of all things mentioned here in the next message.

control panel is
amdcccle

Create a file amdcccle.desktop in /usr/share/applications:
Code:
[Desktop Entry]
Encoding=UTF-8
Name=ATI Catalyst Control Center
Comment=ATI graphics adapter settings
Name[de]=ATI Catalyst Control Center
Comment[de]=ATI grafics adapter settings
Categories=X-Desktop
Icon=ccc_large.xpm
MiniIcon=ccc_small.xpm
MimeType=
Exec=rxvt -e amdcccle
Type=Application

then type "fixmenus" to rebuild the menu.
I run it using rxvt, as running it directly often crashed it.

Antinspect is an old module from xscreensaver, extract to /usr/X11R7/bin, then run:
antinspect -fps

menu:
create /usr/share/applications/antinspect.desktop
Code:
[Desktop Entry]
Encoding=UTF-8
Name=antinspect
Comment=antinspect
Exec=rxvt -e bash -c "antinspect -fps;echo '-hit a key to exit-';read a"
Icon=/usr/share/icons/ccc_large.xpm
Categories=X-Desktop
MimeType=
Type=Application



The temperature is a small script I wrote:
/usr/bin/ati-get-temperature-MU

Code:
#!/bin/bash

while [ 1 ];do aticonfig --pplib-cmd "get temperature 0";sleep 1;done


To run it from the menu, create /usr/share/applications/ati-get-temperature-MU.desktop
Code:
[Desktop Entry]
Encoding=UTF-8
Name=ati-graficscard temperature
Comment=ati-graficscard temperature
Exec=rxvt -e /usr/bin/ati-get-temperature-MU
Icon=/usr/share/icons/ccc_large.xpm
Categories=X-Desktop
MimeType=
Type=Application


Mark

_________________
my recommended links

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 25 Jan 2009, 04:31    Post_subject:  

here is a pet with all the mentioned files Smile
ati-stuff.pet
Description 
pet

 Download 
Filename  ati-stuff.pet 
Filesize  28.52 KB 
Downloaded  536 Time(s) 

_________________
my recommended links

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
glassparrot


Joined: 01 Jun 2008
Posts: 285
Location: Durango, Colorado - USA

PostPosted: Sun 25 Jan 2009, 18:08    Post_subject:  

Hmmm... I've met a hurdle when trying to run amdcccle. I get this response:

Code:
sh: users: command not found
sh: users: command not found
Segmentation fault


Do I need to install a dependency or two or three?

This is the list of needed packages which AMD/ATI mentions in their installation documentation:

fontconfig
gcc
xfree86-libs
libgcc
xfree86mesa-libgl
zlib
freetype
libstdc++

I see that the last three have been included in the standard version of puppy linux . Should I install the others?
Back to top
View user's profile Send_private_message Visit_website YIM MSNM 
_gg


Joined: 21 Jan 2009
Posts: 4

PostPosted: Mon 26 Jan 2009, 07:32    Post_subject:  

glassparrot wrote:

I've been embarking on the same sort of project... Mark (Mu) here has agreed to help me create a puplet which has both the ati and nvidia drivers, along with the smp kernel. I ordered a cheap ati video card in order to use it for testing this project.


Yep, powerful thing. Did you bundled proprietary or unofficial drivers there?
As for legacy proprietary ATI drivers, here are the sources of old fglrx.ko, patched for k2.6.*, but not yet tested on any old ATI card:
http://s3.mixal.org.ua/puppy/fglrx_ko-8_18-old.tar.gz

Actually, that's 8.28.8 version, but here it's codenamed as 8_18.
The patch is included in archive. Unfortunately, it did not match correctly in specs, so I had to patch manually.

MU wrote:

I try to buld something similar for ultrapup, but it uses xorg 7.4, and so (very) the old nvidia drivers 77 do not work.
I did not yet integrate the 9.x driver, just forgot them...

Mark, ati 8.28.* also fails fitting on xorg 7.4. So we get a deadlock with old drivers at Xorg 7.4. Maybe someday the vendors recompile their legacy Xorg modules. IMHO As for now it's better keeping xorg 7.3 for staying universal.
I think it's possible to branch at some common medium libs to downgraded module interface... Or maybe not - that's too freaky. But it's interesting to play with this.

Taras
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Hardware » Video
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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