Hi,
problem 1
I am losing DRI when I 'Exit' and restart (startx) fluxbox. (Not the fluxbox 'restart' command)
I think I have figured out from lsmod that once X starts up, two modules [
drm and radeon ]are loaded, then remain so. Which seems to be the problem with DRI, because if I exit fluxbox and then rmmod the modules and re-startx I get DRI working again. Which is a bit of a pain.
I'd like to automate this module unloading. I see at least two logical places to do it but I'm not sure which is better or if there is a more appropriate way, i'm hoping for some advice on this:
#1) make a rmmod script and configure the fluxbox 'exit' menu option to rmmod before exiting.
- This could be potentially bad though if I ever get a console FB and DRI working. (-radeon would be a problem?)
- Also, I can't find the syntax for exiting fluxbox? my .fluxbox/menu has this entry:
I'm not sure how to send exit to the X11 server?
#2) have ~/.xinitrc rmmod right before starting up? Im not sure how/where to do that though.
something like:
rmmod -f radeon
rmmod -f drm
startfluxbox
<edit-later- i tried adding the above with /sbin/rmmod to ~/.xinitrc and it doesnt seem to work)
problem 1.b
For what I'd like a script to do from the I need root access from the script.
I can not seem to figure out sudo ?? I have visudo'd my sudoers file:
Code:
# User alias specification
User_Alias LOCAL = perry
# User privilege specification
root ALL=(ALL) ALL
LOCAL ALL=NOPASSWD:ALL
perry ALL=NOPASSWD:/usr/bin/chvt, /sbin/lspci
but never gotten any results from it, the perry line above was to be for a 'suspend to ram' script but I always get errors from sudo: 'must be setUID to root' or something like that.
please don't RTFM me - I have read the man sudo pages. I think am perhaps a 'special needs sudoer', 'cause I am not getting it.
thanks for any help.