Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144592 - media-video/nvclock doesn't work before started X without rc_device_tarball
Summary: media-video/nvclock doesn't work before started X without rc_device_tarball
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-21 00:00 UTC by lefti
Modified: 2009-07-09 21:48 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lefti 2006-08-21 00:00:11 UTC
I set RC_DEVICE_TARBALL="no" in /etc/conf.d/rc and then 'modprobe nvidia' doesn't create device /dev/nvidia0 (this device is created after xorg startup) , so it would be nice, if you little modify nvclock init script. I added this to start():

create_some_shit() {
        modprobe nvidia
        if [ ! -c /dev/nvidia0 ]; then
                mknod /dev/nvidia0 c 195 0
        fi
        if [ ! -c /dev/nvidiactl ]; then
                mknod /dev/nvidiactl c 195 255
        fi
}
Comment 1 Stefano Priore 2007-03-16 19:08:29 UTC
The best solution is to change "before xdm" to "need xdm" into /etc/init.d/nvclock
Comment 2 David Carlos Manuelda 2007-05-26 02:03:34 UTC
Yes, I confirm this. I always needed to restart nvclock script when X starts in order to have it working. I'll test the change suggested by Stefano. Could this script change be commited if it works?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-06-10 11:24:21 UTC
Re-assign wrt Bug 171232
Comment 4 David Carlos Manuelda 2007-07-01 23:10:18 UTC
(In reply to comment #1)
> The best solution is to change "before xdm" to "need xdm" into
> /etc/init.d/nvclock
> 

No effect. I changed before xdm, for need xdm and I have still same bug because I have parallel startup enabled. Maybe xdm appears as started for nvclock script where X is not fully started and causes this bug.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-02 06:08:41 UTC
(In reply to comment #4)
> (In reply to comment #1)
> > The best solution is to change "before xdm" to "need xdm" into
> > /etc/init.d/nvclock
> > 
> 
> No effect. I changed before xdm, for need xdm and I have still same bug because
> I have parallel startup enabled. Maybe xdm appears as started for nvclock
> script where X is not fully started and causes this bug.

So maybe the nvclock script needs to sleep a while before it does its thing?
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2009-07-09 21:48:10 UTC
As stated in the Handbook[1], when a service is required (even if it's only needed to load nvidia.ko), then we use `need', not `before' (which only states that /if/ the other service is present, we load the current one first).

I made the change suggested in comment #1 and that should fix the issue, even if comment #4 suggests it does not (which would make it a bug in sys-apps/baselayout, not in media-video/nvclock).

[1] http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4#doc_chap4