LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-25-2005, 06:07 PM   #1
xucaen
Member
 
Registered: Feb 2004
Location: Boston
Distribution: Kubuntu 22.04
Posts: 101

Rep: Reputation: 16
devfs and /dev/mga_vid


Hi all, I just installed a Matrox G450 card, and installed the debian packages mga-vid-common, mga-vid-source, and mgapdesk. I changed my XF86Config-4 file to load the new driver "mga" and X loads perfectly and everything seems to work.

After the install, Debconf sent me the following e-mail:

Quote:
Applications which use this driver will attempt to access it trough a
device node in /dev called mga_vid. This device is not created by this
post install script, you will have to do it manually.

Please refer to /usr/share/doc/mga-vid-common/README.Debian for
information on how to do this.

If you're using devfs, none of this applies to you, you can safely ignore
this message.
Here are the contents of /usr/share/doc/mga-vid-common/README.Debian:

Quote:
mga-vid-common for Debian
-------------------------

This package contains a test application for the mga_vid driver, called
mga_vid_test. It also contains a few configuration files which will make
the module load automatically if you're running a KMOD-enabled kernel,
and make sure the device node is writable by the group 'video'.

(If you're using devfs, you can stop reading at this point :-)

The device node /dev/mga_vid is NOT created during install of this
package, nor the mga-vid-source package, because device nodes created
by packages _must_ use MAKEDEV to do so. MAKEDEV doesn't know how to
create the device node, so I can't do it without violating policy.

The following commands will create the device node and give it sane
permissions:

# mknod /dev/mga_vid c 178 0
# chown root:video /dev/mga_vid
# chmod 0660 /dev/mga_vid

-- LENART Janos <ocsi@debian.org> Wed, 23 Mar 2005 11:08:06 +0100

Running mga_vid_test gives me the error: "Couldn't open driver"
So, either I do not have devfs and have to create /dev/mga_vid manually or I have misunderstood the functionality of the mga_vid driver.

Does anyone have experience with installing these driver packages? I just need to know what device the mga_vid driver is looking for and if I should create the /dev/mga_vid manually.

Thanks!

Jim
 
Old 12-27-2005, 06:00 PM   #2
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Rep: Reputation: 30
Quote:
Originally Posted by xucaen
Does anyone have experience with installing these driver packages? I just need to know what device the mga_vid driver is looking for and if I should create the /dev/mga_vid manually.
From what i've read, you have to run:
Code:
# mknod /dev/mga_vid c 178 0
# chown root:video /dev/mga_vid
# chmod 0660 /dev/mga_vid
but from your post i'm not sure you have. That should create /dev/mga_vid for you.
 
  


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
devfs and devfsd don't create /dev/dsp or /dev/sound/dsp ? behmjose Linux - Hardware 2 10-02-2006 12:27 PM
Udev static dev and devfs exvor Linux - Software 4 10-22-2005 02:01 PM
Videos - mga_vid for Matrox G200, MPlayer... sylvain_gnu Linux - Hardware 1 03-13-2004 11:45 AM
To devfs, or not devfs - advice please JamesM Linux - General 7 08-13-2003 05:59 AM
devfs and /dev/loop gglazer Linux - Software 0 06-13-2003 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:25 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