Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255841 - udev-135 seems to break direct rendering
Summary: udev-135 seems to break direct rendering
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 254616
  Show dependency tree
 
Reported: 2009-01-21 23:23 UTC by Donnie Berkholz (RETIRED)
Modified: 2013-03-13 22:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,18.09 KB, text/plain)
2009-01-22 19:21 UTC, Donnie Berkholz (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Donnie Berkholz (RETIRED) gentoo-dev 2009-01-21 23:23:30 UTC
In older udev versions, being in the video group would get you direct rendering. Here's what changed:

comet $ grep -r 'card\[' udev-13*
udev-133/rules/rules.d/50-udev-default.rules:KERNEL=="card[0-9]*",		NAME="dri/%k", MODE="0666"
udev-135/rules/rules.d/50-udev-default.rules:KERNEL=="card[0-9]*",		NAME="dri/%k", MODE="0666"
comet $ grep -r 'card\*' udev-13*
udev-133/rules/gentoo/40-video.rules:KERNEL=="card*",	GROUP="video"

I see that the new one claims to go for a 666 mode, but /dev/dri/card0 is actually 660 root:root here so I can't get direct rendering.
Comment 1 Matthias Schwarzott gentoo-dev 2009-01-22 16:44:35 UTC
So what were the permissions of /dev/dri/card* before and after the update. ls -l output should be fine.
What exact udev versions did you test?
And please attach emerge --info
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2009-01-22 19:20:33 UTC
udev-135-r3
--------------

comet $ ls -l /dev/dri/card0 
crw-rw---- 1 root root 226, 0 2009-01-21 15:01 /dev/dri/card0


udev-133
--------------

comet $ ls -l /dev/dri/card0 
crw-rw-rw- 1 root video 226, 0 2009-01-21 15:01 /dev/dri/card0
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2009-01-22 19:21:13 UTC
Created attachment 179368 [details]
emerge --info
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2009-01-22 19:25:19 UTC
It looks like X munges permissions from 666 to 660 on restart, so the video group is really the key.
Comment 5 Matthias Schwarzott gentoo-dev 2009-01-23 09:50:57 UTC
So we should be fine after adding this line to 65-permissions.rules, correct?

# /dev/dri/card*
KERNEL=="card*",   GROUP="video"
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2009-01-23 22:41:56 UTC
(In reply to comment #5)
> So we should be fine after adding this line to 65-permissions.rules, correct?
> 
> # /dev/dri/card*
> KERNEL=="card*",   GROUP="video"

I tested this and it worked great, so yes.
Comment 7 Matthias Schwarzott gentoo-dev 2009-01-24 20:59:22 UTC
Upstream added this rule:
SUBSYSTEM=="drm",		GROUP="video"

https://bugs.launchpad.net/bugs/317430

This will be added to udev-135-r4 then.
Comment 8 Matthias Schwarzott gentoo-dev 2009-01-24 21:14:49 UTC
Fixed in udev-135-r4.
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2009-01-27 06:26:28 UTC
Works for me