View previous topic :: View next topic |
Author |
Message |
jeffk l33t

Joined: 13 Sep 2003 Posts: 671
|
Posted: Mon Oct 08, 2007 5:56 pm Post subject: [solved] compiz-settings: dbus failed to load |
|
|
OK, I have a machine with a nice Nvidia setup now, I'm ready to get me some Compviz effects with my Lila themed desktop.
I see all these cool videos of Ubuntu 7.10 Gutsy users with Compviz(-fusion) installed, wasting tons of time on eye-candy desktop effects.
I want to waste time too. What and where should I start looking at to get this on Gentoo? A layman overlay?
Code: | emerge -s 'compvi'
Searching... ..... ..... .....
[ Results for search key : compvi ]
[ Applications found : 0 ]
|
update: The thread continues with a question of why dbus failed to load for the desktop user myuser.
update 2: The tread continues with attempts to make compiz-fusion work. solved.
Last edited by jeffk on Tue Oct 09, 2007 4:28 pm; edited 2 times in total |
|
Back to top |
|
 |
jho Apprentice


Joined: 24 May 2007 Posts: 153 Location: Jyväskylä, Finland
|
Posted: Mon Oct 08, 2007 6:04 pm Post subject: |
|
|
It`s Compiz, not Compviz.
Compiz is available from Portage without any overlays IIRC. |
|
Back to top |
|
 |
jeffk l33t

Joined: 13 Sep 2003 Posts: 671
|
Posted: Mon Oct 08, 2007 6:23 pm Post subject: |
|
|
schene wrote: | It`s Compiz, not Compviz. |
Thanks, I figured it out after a google search. Compiz is now installed, but for some reason, when I open compiz-settings, it gives "dbus failed to load". /etc/init.d/dbus is running on runlevel default.
Since I'm having a similar problem with automounting usb drives, I just now scattershot added my single user to various dbus and hal groups:
Code: | # cat group
root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin,adm
adm::4:root,adm,daemon
tty::5:
disk::6:root,adm,haldaemon
lp::7:lp,myuser
mem::8:
kmem::9:
wheel::10:root,myuser
floppy::11:root,haldaemon
mail::12:mail
news::13:news
uucp::14:uucp
man::15:man
console::17:
audio::18:myuser
cdrom::19:haldaemon,myuser
dialout::20:root
tape::26:root
video::27:root:myuser
cdrw::80:haldaemon:myuser
usb::85:haldaemon:myuser
users::100:games
nofiles:x:200:
smmsp:x:209:smmsp
portage::250:portage,myuser
utmp:x:406:
nogroup::65533:
nobody::65534:
ldap:x:439:
sshd:x:22:
cron:x:16:myuser
crontab:x:440:
messagebus:x:441:myuser
lpadmin:x:106:
haldaemon:x:442:haldaemon:myuser
plugdev:x:443:haldaemon:myuser
mysql:x:60:
stb-admin:x:444:
netdev:x:445:
avahi:x:446:
sabayon-admin:x:447:
beagleindex:x:448:
gdm:x:449:
games:!:35:myuser
postgres:x:70:
nginx:x:450:
apache:x:81:
myuser:x:451:myuser
scanner:x:452:myuser |
Knowledgeable users may commence flogging for adding myuser to these groups, but I'd be appreciative of guidance for the proper groups that myuser should be a member of.
Any ideas what causes the dbus failed to load issue with compiz-settings? |
|
Back to top |
|
 |
gimpel Advocate


Joined: 15 Oct 2004 Posts: 2720 Location: Munich, Bavaria
|
Posted: Mon Oct 08, 2007 7:31 pm Post subject: |
|
|
How do you login to your WM?
Use Gentoo's xinit, a DM of your chioce or add "eval `dbus-launch --sh-syntax --exit-with-session`" to your .xinit or other startup script.
For automounting you have to be in plugdev group.
HTH _________________ http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
|
|
Back to top |
|
 |
jeffk l33t

Joined: 13 Sep 2003 Posts: 671
|
Posted: Mon Oct 08, 2007 7:45 pm Post subject: |
|
|
gimpel wrote: | How do you login to your WM?
Use Gentoo's xinit, a DM of your chioce or add "eval `dbus-launch --sh-syntax --exit-with-session`" to your .xinit or other startup script.
For automounting you have to be in plugdev group.
|
I've always used the simple startx, I boot to the console, since I've often had X startup and config issues with previous laptops.
I'll restart X/GNOME and try thes now. Thanks. |
|
Back to top |
|
 |
jeffk l33t

Joined: 13 Sep 2003 Posts: 671
|
Posted: Mon Oct 08, 2007 7:58 pm Post subject: |
|
|
No luck with my Gentoo's default configuration:
only starts a borderless xterm (not GNOME)
adding an ~/.xinit file with the contents:
Code: | eval `dbus-launch --sh-syntax --exit-with-session` |
and launching via $ startx does not start dbus.
The file xinitrc has the following default contents:
Code: | # cat /etc/X11/xinit/xinitrc
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
xinitdir=/etc/X11
sysresources=$xinitdir/Xresources
sysmodmap=$xinitdir/Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# First try ~/.xinitrc
if [ -f "$HOME/.xinitrc" ]; then
XINITRC="$HOME/.xinitrc"
if [ -x $XINITRC ]; then
# if the x bit is set on .xinitrc
# it means the xinitrc is not a
# shell script but something else
exec $XINITRC
else
exec /bin/sh "$HOME/.xinitrc"
fi
# If not present, try the system default
elif [ -n "`/etc/X11/chooser.sh`" ]; then
exec "`/etc/X11/chooser.sh`"
# Failsafe
else
# start some nice programs
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
fi |
There is one file in xinitrc.d:
Code: | # cat /etc/X11/xinit/xinitrc.d/30-dbus
#!/bin/bash
# launches a session dbus instance
dbuslaunch="`which dbus-launch 2>/dev/null`"
if [ -n "$dbuslaunch" ] && [ -x "$dbuslaunch" ] && [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
eval `$dbuslaunch --sh-syntax --exit-with-session`
fi |
I don't know how to use /etc/X11/chooser.sh and /etc/X11/startDM.sh.
The only thing I am accustomed to changing after install to enable GNOME is the last line of /etc/rc.conf:
Code: | # cat /etc/rc.conf
# /etc/rc.conf: Global startup script configuration settings
# UNICODE specifies whether you want to have UNICODE support in the console.
# If you set to yes, please make sure to set a UNICODE aware CONSOLEFONT and
# KEYMAP in the /etc/conf.d/consolefont and /etc/conf.d/keymaps config files.
UNICODE="yes"
# Set EDITOR to your preferred editor.
# You may use something other than what is listed here.
EDITOR="/bin/nano"
#EDITOR="/usr/bin/vim"
#EDITOR="/usr/bin/emacs"
# DISPLAYMANAGER has moved to /etc/conf.d/xdm
# XSESSION is a new variable to control what window manager to start
# default with X if run with xdm, startx or xinit. The default behavior
# is to look in /etc/X11/Sessions/ and run the script in matching the
# value that XSESSION is set to. The support scripts are smart enough to
# look in all bin directories if it cant find a match in /etc/X11/Sessions/,
# so setting it to "enlightenment" can also work. This is basically used
# as a way for the system admin to configure a default system wide WM,
# allthough it will work if the user export XSESSION in his .bash_profile, etc.
#
# NOTE: 1) this behaviour is overridden when a ~/.xinitrc exists, and startx
# is called.
# 2) even if ~/.xsession exists, if XSESSION can be resolved, it will
# be executed rather than ~/.xsession, else KDM breaks ...
#
# Defaults depending on what you install currently include:
#
# Gnome - will start gnome-session
# kde-<version> - will start startkde (look in /etc/X11/Sessions/)
# Xfce4 - will start a XFCE4 session
# Xsession - will start a terminal and a few other nice apps
XSESSION="Gnome" |
Thanks for the help, apparently there are lots of changes with X that I haven't kept pace with. |
|
Back to top |
|
 |
gimpel Advocate


Joined: 15 Oct 2004 Posts: 2720 Location: Munich, Bavaria
|
Posted: Mon Oct 08, 2007 8:09 pm Post subject: |
|
|
With "Gentoo's xinit" I meant exactly startx without a custom ~/.xintrc - just setting XESSION in /etc/rc.conf - so your doing it absolutely correct.
xinitrc.d should take care of starting a user dbus session bus. So after logging in you should get some output from
Code: | echo $DBUS_SESSION_BUS_ADDRESS |
_________________ http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
|
|
Back to top |
|
 |
jeffk l33t

Joined: 13 Sep 2003 Posts: 671
|
Posted: Mon Oct 08, 2007 8:15 pm Post subject: |
|
|
Removing the oneliner ~/.xinitrc, restarting X via startx with stock settings except for the last line of /etc/rc.conf. I do get a dbus address in X.
Code: | $ echo $DBUS_SESSION_BUS_ADDRESS
unix:abstract=/tmp/dbus-7cB7wUGMku,guid=80fa83f488284631727e8600470a8f4e |
Still no luck with compiz-settings, though. I still get the dbus not loaded errror. |
|
Back to top |
|
 |
jeffk l33t

Joined: 13 Sep 2003 Posts: 671
|
Posted: Mon Oct 08, 2007 8:20 pm Post subject: |
|
|
Oh, I see, the actual compiz-setting error dialog box says:
Dbus Failed To Load. Compiz is not running. The dbus plugin cannot be activated unless compiz is running.
What does that imply that I need to do? I guess compiz-start is a replacement for startx?
Code: | # equery files compiz
[ Searching for packages matching compiz... ]
* Contents of x11-wm/compiz-0.5.2:
(...)
/usr/bin/compiz
/usr/bin/compiz-start
/usr/bin/gtk-window-decorator
(...) |
I'm reading http://gentoo-wiki.com/Compiz now... |
|
Back to top |
|
 |
jeffk l33t

Joined: 13 Sep 2003 Posts: 671
|
Posted: Mon Oct 08, 2007 8:45 pm Post subject: |
|
|
BTW, compiz-extras failed to emerge (compile failure) (which the wiki says might happen), but here's the error starting X with compiz-start:
Code: | Error: unable to open display
Error: unable to open display
Error: unable to open display
(gtk-window-decorator:9611): Gtk-WARNING **: cannot open display
compiz (core) - Fatal: Couldn't open display |
I think I'm just going to bite the bleeding-edge bullet and use compiz-fusion from the xeffects overlay. That's what Ubuntu is heading for anyway. Presumably, I can just come back to 2D metacity on days when compiz-fusion isn't working.
I'll continue the thread trying to get compiz-fusion to work. Compiling now. |
|
Back to top |
|
 |
gimpel Advocate


Joined: 15 Oct 2004 Posts: 2720 Location: Munich, Bavaria
|
Posted: Mon Oct 08, 2007 8:49 pm Post subject: |
|
|
I think you will have to run compiz-start from within a running X session. _________________ http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
|
|
Back to top |
|
 |
jeffk l33t

Joined: 13 Sep 2003 Posts: 671
|
Posted: Mon Oct 08, 2007 9:46 pm Post subject: |
|
|
gimpel wrote: | I think you will have to run compiz-start from within a running X session. |
That's what I tried the first time (with compiz-start from a Gnome terminal as myuser. It altered the window of the terminal, and went modal. I later found that compiz-start wasn't fully functional on this machine, so it probably wasn't going to work in any case. Will try that now that compiz-fusion is installed. It has a different version of compiz from the xeffects overlay.
Code: | $ compiz-start
NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
NVIDIA: Direct rendering failed; attempting indirect rendering.
NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
NVIDIA: Direct rendering failed; attempting indirect rendering.
NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
NVIDIA: Direct rendering failed; attempting indirect rendering.
NVIDA detected
Using GTK decorator
/usr/share/themes/SimpLila/gtk-2.0/iconrc:66: Unable to locate image file in pixmap_path: "scalable/stock/gtk-go-back.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:68: Unable to locate image file in pixmap_path: "scalable/stock/gtk-go-forward.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:70: Unable to locate image file in pixmap_path: "scalable/stock/gtk-goto-first.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:71: Unable to locate image file in pixmap_path: "scalable/stock/gtk-goto-last.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:80: Unable to locate image file in pixmap_path: "scalable/stock/gtk-jump-to.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:97: Unable to locate image file in pixmap_path: "scalable/stock/gtk-redo.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:100: Unable to locate image file in pixmap_path: "scalable/stock/gtk-revert-to-saved.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:110: Unable to locate image file in pixmap_path: "scalable/stock/gtk-undelete.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:112: Unable to locate image file in pixmap_path: "scalable/stock/gtk-undo.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:302: Unable to locate image file in pixmap_path: "scalable/stock/gtk-media-next.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:304: Unable to locate image file in pixmap_path: "scalable/stock/gtk-media-play.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:305: Unable to locate image file in pixmap_path: "scalable/stock/gtk-media-previous.svg"
NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
NVIDIA: Direct rendering failed; attempting indirect rendering. |
Run from Gnome Terminal. Same result. What group is required for /dev/nvidiactl permission? |
|
Back to top |
|
 |
gimpel Advocate


Joined: 15 Oct 2004 Posts: 2720 Location: Munich, Bavaria
|
Posted: Tue Oct 09, 2007 8:51 am Post subject: |
|
|
jeffk wrote: | What group is required for /dev/nvidiactl permission? |
video
Code: | ls -l /dev/nvidiactl |
would have told you that  _________________ http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
|
|
Back to top |
|
 |
jeffk l33t

Joined: 13 Sep 2003 Posts: 671
|
Posted: Tue Oct 09, 2007 1:58 pm Post subject: |
|
|
gimpel wrote: | jeffk wrote: | What group is required for /dev/nvidiactl permission? |
video
Code: | ls -l /dev/nvidiactl |
would have told you that  |
(knuckles forehead). OK, but myuser is apparently a member of group video:
Code: | # ls -l /dev/nvidiactl
crw-rw---- 1 root video 195, 255 Oct 9 09:43 /dev/nvidiactl
# grep video /etc/group
video::27:root,myuser
# groups myuser
lp wheel audio cdrom video cdrw usb portage cron messagebus haldaemon plugdev games myuser scanner users
|
/dev/nvidiactl: Permission denied for teh w1n! er, loss
Code: | $ compiz-start
NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
NVIDIA: Direct rendering failed; attempting indirect rendering.
NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
NVIDIA: Direct rendering failed; attempting indirect rendering.
NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
NVIDIA: Direct rendering failed; attempting indirect rendering.
NVIDA detected
Using GTK decorator
/usr/share/themes/SimpLila/gtk-2.0/iconrc:66: Unable to locate image file in pixmap_path: "scalable/stock/gtk-go-back.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:68: Unable to locate image file in pixmap_path: "scalable/stock/gtk-go-forward.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:70: Unable to locate image file in pixmap_path: "scalable/stock/gtk-goto-first.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:71: Unable to locate image file in pixmap_path: "scalable/stock/gtk-goto-last.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:80: Unable to locate image file in pixmap_path: "scalable/stock/gtk-jump-to.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:97: Unable to locate image file in pixmap_path: "scalable/stock/gtk-redo.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:100: Unable to locate image file in pixmap_path: "scalable/stock/gtk-revert-to-saved.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:110: Unable to locate image file in pixmap_path: "scalable/stock/gtk-undelete.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:112: Unable to locate image file in pixmap_path: "scalable/stock/gtk-undo.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:302: Unable to locate image file in pixmap_path: "scalable/stock/gtk-media-next.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:304: Unable to locate image file in pixmap_path: "scalable/stock/gtk-media-play.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:305: Unable to locate image file in pixmap_path: "scalable/stock/gtk-media-previous.svg"
NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
NVIDIA: Direct rendering failed; attempting indirect rendering. |
Is this a FUSE problem (compiz-fusion) has a USE fuse, do I need to be in a fuse group to open (not just ls) this /dev/nvidiactl? Thanks I know nothing about FUSE at this point, except that it's neato and might allow me to use ZFS someday.
Thanks. |
|
Back to top |
|
 |
gimpel Advocate


Joined: 15 Oct 2004 Posts: 2720 Location: Munich, Bavaria
|
Posted: Tue Oct 09, 2007 3:46 pm Post subject: |
|
|
check the current shell if you really are in video group:
If you aren't:
Then start compiz yourself:
Code: | compiz --replace --sm-disable ccp & |
Start a decorator:
Code: | emerald --replace & |
(or gtk-window-decorator, whatever)
This way it works just nice here, no idea what compiz-start is doing actually, never looked at or ever used it... _________________ http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
|
|
Back to top |
|
 |
jeffk l33t

Joined: 13 Sep 2003 Posts: 671
|
Posted: Tue Oct 09, 2007 3:54 pm Post subject: |
|
|
Awesome!
Code: | $ id
uid=1000(myuser) gid=100(users) groups=7(lp),10(wheel),16(cron),18(audio),19(cdrom),35(games),100(users),250(portage),441(messagebus),451(myuser),452(scanner)
$ newgrp video
$ id
uid=1000(myuser) gid=27(video) groups=7(lp),10(wheel),16(cron),18(audio),19(cdrom),27(video),35(games),100(users),250(portage),441(messagebus),451(myuser),452(scanner)
$ compiz --replace --sm-disable ccp &
[1] 15463
$ emerald --replace &
[2] 15496
$ /usr/share/themes/SimpLila/gtk-2.0/iconrc:66: Unable to locate image file in pixmap_path: "scalable/stock/gtk-go-back.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:68: Unable to locate image file in pixmap_path: "scalable/stock/gtk-go-forward.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:70: Unable to locate image file in pixmap_path: "scalable/stock/gtk-goto-first.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:71: Unable to locate image file in pixmap_path: "scalable/stock/gtk-goto-last.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:80: Unable to locate image file in pixmap_path: "scalable/stock/gtk-jump-to.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:97: Unable to locate image file in pixmap_path: "scalable/stock/gtk-redo.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:100: Unable to locate image file in pixmap_path: "scalable/stock/gtk-revert-to-saved.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:110: Unable to locate image file in pixmap_path: "scalable/stock/gtk-undelete.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:112: Unable to locate image file in pixmap_path: "scalable/stock/gtk-undo.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:302: Unable to locate image file in pixmap_path: "scalable/stock/gtk-media-next.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:304: Unable to locate image file in pixmap_path: "scalable/stock/gtk-media-play.svg"
/usr/share/themes/SimpLila/gtk-2.0/iconrc:305: Unable to locate image file in pixmap_path: "scalable/stock/gtk-media-previous.svg"
$ |
Works now. My productivity thanks you for giving it the rest of the day off  |
|
Back to top |
|
 |
gimpel Advocate


Joined: 15 Oct 2004 Posts: 2720 Location: Munich, Bavaria
|
Posted: Tue Oct 09, 2007 4:15 pm Post subject: |
|
|
You're welcome!
+ [solved] @ topic then. please. _________________ http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
|
|
Back to top |
|
 |
|