LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2006, 04:04 AM   #1
frankie_DJ
Member
 
Registered: Sep 2004
Location: NorCal
Distribution: slackware 10.1 comfy, Solaris10 learning
Posts: 232

Rep: Reputation: 32
how should I go about installing a driver for a video card


My question is quite general: I have a video card. It doesn't have a driver in the regular X installation, so I downloaded it and installed it. I know I did b/c I can see it in /usr/X11R6/lib/modules/drivers. Now how I go about using it? I mean how do I reconfigure xorg? Using xorgconfig doesn't help b/c the driver doesn't show up in the list when I use xorgconfig.

Specificaly this is a via_drv.so driver for the VIA/S3G Unichrome video card. I downloaded driver of the sourceforge (unichrome.sourceforge.net). Their instructions beyond installation (as for how to actually use the driver) don't exist. So I guess I am supposed to know this, but I don't.

Any help would be appreciated. Thanks
 
Old 09-15-2006, 07:54 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
The basic procedure is usually to edit your init files to load the driver on boot and edit /etc/X11/xorg.conf to use the driver.

Before doing anything, backup your current xorg.conf to your home directory:

$ cp /etc/X11/xorg.conf ~/xorg.conf

Test to see if the driver will load manually:

$ su
<enter root password>
# modprobe via_drv

If it doesn't return and error, check and make sure via_drv loaded:

# lsmod

Tha will list all loaded modules. If you get an error message on attempting to load the driver with modprobe, there's something wrong with your installation or you have the driver name wrong. This must be corrected before editing xorg.conf.

If you got the driver loaded OK, edit /etc/X11/xorg.conf by going down to the part headed:

Section "Device"

and go down to this line and edit it so:

Driver "via_drv"

Save the changes(note, you must be root to edit this file). Now test your configuration by logging out; that stops and restarts the X server with the new configuration from xorg.conf. If you get a graphical login screen, your new driver is working. If you get a command line login prompt, it's not. In the latter case, login as your ordinary user and run:

$ su
<enter root password>
# cp xorg.conf /etc/X11/xorg.conf

This will restore your prior xorg.conf; answer yes when prompted about the overwrite. Then run:

# init 4

which should bring you back to a graphical desktop.

If the driver worked, all you have to do is edit your init files to load your via_drv on boot. That's easily done in slackware by editing /etc/rc.d/rc.local by adding this line to it at the end:

modprobe via_drv

Save the changes to rc.local and you should be good - your via_drv will load on every boot and xorg.conf is configured to use it.

Last edited by kilgoretrout; 09-15-2006 at 07:56 AM.
 
Old 09-15-2006, 12:51 PM   #3
frankie_DJ
Member
 
Registered: Sep 2004
Location: NorCal
Distribution: slackware 10.1 comfy, Solaris10 learning
Posts: 232

Original Poster
Rep: Reputation: 32
Hi Kilgoretrout,

It looks like you are in the right direction, but I wasn't able to do anything.

As you said, modprobe returns error when I try to load via_drv. But it returns the error for any of the video card drivers in /usr/X11R6/lib/modules/drivers. I can't modprobe any of those guys. Moreover, I am currently using a generic vesa driver to get X. When I do lsmod, that driver is not among the loaded ones.

Can you explain this a little bit? Thanks

Last edited by frankie_DJ; 09-15-2006 at 12:53 PM.
 
Old 09-15-2006, 05:12 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
The files in that directory aren't the actual kernel modules AFAIK. I think most of them are libraries for the open source drivers that come with X from xorg. The third party graphics drivers are kernel modules and you usually find them, after a successful install, in /lib/modules/<kernel name>/kernel/drivers/video. At least that's where I find my nvida driver. They usually are listed there or in a vendor specific subdirectory and the actual module is listed as <module name>.ko or <module name>.ko.gz. When you modprobe, you drop the ".ko" or ".ko.gz" . You must get the module name exact or you will get an error.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Driver problem with my Video Card.. VeryProudOfYaLP MEPIS 14 12-19-2005 10:01 PM
Network driver and Video card driver sniperbooger Linux - Software 2 11-10-2005 09:39 PM
Video card driver lenucks Debian 1 08-14-2004 07:17 AM
Need driver for obscure video card Pluto101 Linux - Hardware 3 01-13-2003 08:31 PM
installing a video card driver linux_dragon Linux - Newbie 2 08-18-2001 04:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration