LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-20-2020, 01:33 PM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,972

Rep: Reputation: 271Reputation: 271Reputation: 271
user lacks permissions for /dev/dri/card0


Beginning today /dev/dri/card0 lacks permissions for users: user can't view an image. What sets the permissions of this file? What creates it? I can add setting them to rc.local, so the problem is easy to solve. I want to know why it's happening.
 
Old 05-20-2020, 03:46 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
Root should own it.
Code:
ls -l /dev/dri/card0
crw-rw----+ 1 root video 226, 0 May 13 16:29 /dev/dri/card0

file -s /dev/dri/card0
/dev/dri/card0: ERROR: cannot read `/dev/dri/card0' (Resource temporarily unavailable)
The 226, 0 tells that major number is 226 and the minor is 0. c for character device.

Look in /sys/dev
Code:
/sys/dev/char/226:0

readlink /sys/dev/char/226\:0/device/driver
../../../bus/pci/drivers/nouveau
Edit:
This too
Code:
udevadm info -a -n /dev/dri/card0

Last edited by teckk; 05-20-2020 at 03:49 PM.
 
Old 05-22-2020, 10:31 PM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,972

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
I view images with fbi. It stopped working, complaining that it couldn't access /dev/dri/card0. I changed that file's permissions to 666, now it works. I've been viewing images with fbi for years. Something changed to make it stop working. What?

I have the same problem with fbpdf; changing the permissions of /dev/fb0 to 666 made it work.

Something happened, perhaps in a kernel update (I build them, use latest.)
 
  


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
Slackware64 14.2 and Intel UHD 620 graphics. X: open /dev/dri/card0: No such file or directory j12i Slackware 9 04-14-2021 10:43 AM
bumblebee : /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied Ayaskull Slackware 19 08-15-2016 11:35 AM
ATI problem, udev not creating /dev/dri/card0 vdemuth Slackware 2 09-25-2006 03:57 PM
Fix for alsa loading devices like bt87x as card0. joeinspirit Slackware 2 07-10-2004 07:54 AM
NVIDIA driver error: "Card0" isn't valid for this driver" drenal Linux - Hardware 1 01-28-2004 09:02 PM

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

All times are GMT -5. The time now is 03:13 AM.

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