[Grml] Re: Re: Normal user not permitted for pci scan

T mlist4suntong at yahoo.com
Thu Oct 12 22:59:02 CEST 2006


On Sun, 08 Oct 2006 23:15:48 +0200, Michael Prokop wrote:

>> >> when I tried to use the xvidix driver for mplayer, I get
>> >> "Error occurred during pci scan: Operation not permitted" error for 
>> >> normal user, but root is ok....

You proposed solution didn't work, but thank you mika to help me track
down this problem. I brought up the issue in mplayer mlist and this is
the feedback that I got:

 Nico Sabbi <nsabbi at ...it> said:

you need dhahelper (it's a kernel module in vidix)

I looked up the trace log, right before the iopl call, mplayer tried to
open /dev/dhahelper. I tried to install the dhahelper kernel module myself
but failed:

 10541 open("/dev/dhahelper", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory)
 10541 iopl(0x3)                         = -1 EPERM (Operation not permitted)

% insmod dhahelper
insmod: can't read 'dhahelper': No such file or directory

Do you know about the dhahelper kernel module? Do you think that might be
the reason? Ok, I guess so:

From
http://72.14.203.104/linux?q=cache:YIP5lKF3HjsJ:sourceforge.net/mailarchive/forum.php%3Fforum_id%3D3438%26max_rows%3D25%26style%3Dnested%26viewmonth%3D200304+dhahelper+kernel+module&hl=en&ct=clnk&cd=1

,-----
|  > video_out_vidix: Couldn"t find working VIDIX driver
|  > load_plugins: failed to load video output plugin <vidix>
|  > main: video driver <vidix> failed
|  > 
|  > Xine didn"t particularly like it, and failed to load.  I can only seem
|  > to get xine to load with the xv drivers.  Does anyone know what I might
|  > do to get vidix working?
|  
|  There are two ways of overcoming this:
|  1) run xine suid root
|  2) install the dhahelper kernel module (add the options --enable-dha-kmod
|  --with-linux-path=/path/to/kernel/source to configure)
`-----

Could you compile a kernel that have the dhahelper module, since the issue
affect both mplayer and xine, please?

> So try to deactivate the pci scan via specifying the driver manually
> (IIRC it's radeon on your box): "mplayer -vo xvidix:radeon ..."
> If that does not work too it seems you have to install mplayer with
> suid set or run mplayer as root when using the xvidix stuff.

FYI, here is what I tried:

I tred to deactivate the pci scan via specifying the
driver manually, but that failed too:

 $ mplayer -v -v -v -v -dr -vo xvidix:radeon_vid.so -fixed-vo ...
 vosub_vidix: vidix_preinit(radeon_vid.so) was called
 [radeon] Error occurred during pci scan: Operation not permitted
 [VO_SUB_VIDIX] Couldn't find working VIDIX driver.
 Error opening/initializing the selected video_out (-vo) device.

Failing this, I tried to chmod mplayer with suid set, but that won't work
either:

 $ ls -l /usr/bin/mplayer
 -rwsr-x--- 1 root video 3943448 08-02 11:44 /usr/bin/mplayer

 $ strace -f -eopen,iopl -o /tmp/mplayer mplayer -dr -vo xvidix test.mpg
 $ grep iopl /tmp/mplayer
 3929  iopl(0x3)                         = -1 EPERM (Operation not permitted)
 3929  iopl(0x3)                         = -1 EPERM (Operation not permitted)
 3929  iopl(0x3)                         = -1 EPERM (Operation not permitted)
 3929  iopl(0x3)                         = -1 EPERM (Operation not permitted)
 3929  iopl(0x3)                         = -1 EPERM (Operation not permitted)
 3929  iopl(0x3)                         = -1 EPERM (Operation not permitted)
 3929  iopl(0x3)                         = -1 EPERM (Operation not permitted)
 3929  iopl(0x3)                         = -1 EPERM (Operation not permitted)
 3929  iopl(0x3)                         = -1 EPERM (Operation not permitted)
 3929  iopl(0x3)                         = -1 EPERM (Operation not permitted)
 3929  iopl(0x3)                         = -1 EPERM (Operation not permitted)


-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/





More information about the Grml mailing list