Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Tips and tricks for ConsoleKit, PolicyKit, and udev helpers

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
383 posts
  • Page 5 of 16
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 16
  • Next
Author
Message
Odysseus
Apprentice
Apprentice
User avatar
Posts: 250
Joined: Wed Jun 23, 2004 3:46 am
Location: Miami, FL. I miss San Francisco!!!

  • Quote

Post by Odysseus » Mon Jan 31, 2011 10:26 am

Well things aren't working for me as well as I thought they were a couple of days ago on my KDE-4.6.0 ~X86 laptop. DVDs and CDs are recognized by the Device Notifier and are being automounted like they should.

However, my usb memory keys, usb external drives, and SD card reader are not automounting and sleep and hibernate have ceased working since the update.

I followed the first post exactly and have tried every trick mentioned in this thread. After wrestling with this for ten hours I'm going to bed. Hopefully someone can help.

output of rc-update show:

Code: Select all

               net.lo |                            boot               
            savecache |           shutdown                            
           fbcondecor |                            boot               
              keymaps |                            boot               
            alsasound |                            boot               
               procfs |                            boot               
             netmount |                                 default       
             bootmisc |                            boot               
             mount-ro |           shutdown                            
           localmount |                            boot               
                 mtab |                            boot               
              modules |                            boot               
        device-mapper |                            boot               
                dmesg |                    sysinit                    
          consolefont |                            boot               
        microcode_ctl |                            boot               
       udev-postmount |                                 default       
                 root |                            boot               
                devfs |                    sysinit                    
                 wicd |                                 default       
           vixie-cron |                                 default       
            killprocs |           shutdown                            
               hdparm |                                 default       
                  xdm |                                 default       
              urandom |                            boot               
            syslog-ng |                                 default       
                acpid |                                 default       
                 swap |                            boot               
                 udev |                    sysinit                    
                local | nonetwork                       default       
                 dbus |                                 default       
           consolekit |                                 default       
             hostname |                            boot               
              hwclock |                            boot               
                 fsck |                            boot               
         termencoding |                            boot               
               sysctl |                            boot               
            bluetooth |                                 default 
output from ck-list-sessions (run from a Konsole terminal):

Code: Select all

Session1:
        unix-user = '500'
        realname = 'null'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2011-01-31T07:33:06.742014Z'
        login-session-id = ''
If I run ck-list-sessions from tty1 I get this:

Code: Select all

Session1:
        unix-user = '500'
        realname = 'null'
        seat = 'Seat1'
        session-type = ''
        active = FALSE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2011-01-31T07:33:06.742014Z'
        login-session-id = ''

Session2:
        unix-user = '500'
        realname = 'null'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ''
        x11-display-device = '/dev/tty1'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2011-01-31T09:58:13.365949Z'
        login-session-id = '1'
If I grep -r plugdev /etc/dbus-1/*

Code: Select all

/etc/dbus-1/system.d/NetworkManager.conf:        <policy group="plugdev">
I can mount usb devices manually either in a konsole terminal or logged in to TTY1 by evoking:

Code: Select all

udisks --mount /dev/uba1
Mounted /org/freedesktop/UDisks/devices/uba1 at /media/0C21-CC73
I can also manually mount my SD reader manually using udisks.
Once the devices are mounted I can read and write to them with no problems.

I can't figure out how to troubleshoot suspend and hibernate, but I'm sure all of these issues are permission related.

Do I need to add polkit to a run level to make it work?

I don't understand how to use the new KDE control modules for polkit to make them work. Any ideas would be greatly appreciated. TIA.

Ciao
Last edited by Odysseus on Mon Jan 31, 2011 10:35 pm, edited 1 time in total.
Top
SamuliSuominen
Retired Dev
Retired Dev
Posts: 2133
Joined: Fri Sep 30, 2005 8:38 am
Location: Finland

  • Quote

Post by SamuliSuominen » Mon Jan 31, 2011 3:24 pm

xsilentmurmurx wrote: Also I have another issue, when I boot into the system and DBUS is booting up, I get this message that says "unknown group plugdev mentioned in message bus configuration" something of that nature. How do i go about resolving that?

Here is my output for grep -r plugdev /etc/dbus-1/*

Code: Select all

# grep -r plugdev /etc/dbus-1/*
/etc/dbus-1/system.d/NetworkManager.conf:        <policy group="plugdev">
what Should i do to resolve the issue?
Fixed in Portage (you need to emerge --sync in about hour and re-emerge networkmanager to get that group):

http://sources.gentoo.org/viewvc.cgi/ge ... 1.1&r2=1.2
Top
SamuliSuominen
Retired Dev
Retired Dev
Posts: 2133
Joined: Fri Sep 30, 2005 8:38 am
Location: Finland

  • Quote

Post by SamuliSuominen » Mon Jan 31, 2011 3:27 pm

Odysseus wrote:Well things aren't working for me as well as I thought they were a couple of days ago on my KDE-4.6.0 ~X86 laptop. DVDs and CDs are recognized by the Device Notifier and are being automounted like they should.

However, my usb meomory keys, usb external drives, and SD card reader are not automounting and sleep and hibernate have ceased working since the update.

[ .. ]

I can mount usb devices manually either in a konsole terminal or logged in to TTY1 by evoking:

Code: Select all

udisks --mount /dev/uba1
Mounted /org/freedesktop/UDisks/devices/uba1 at /media/0C21-CC73
I can also manually mount my SD reader manually using udisks.
Once the devices are mounted I can read and write to them with no problems.

I can't figure out how to troubleshoot suspend and hibernate, but I'm sure all of these issues are permission related.

Do I need to add polkit to a run level to make it work?

I don't understand how to use the new KDE control modules for polkit to make them work. Any ideas would be greatly appreciated. TIA.

Ciao
It's not permission related if udisks --mount works from commandline. And also your ck-list-sessions output looks proper. I think your problem is somehow KDE 4.6.0 specific, and it should get it's own thread.

And no, PolicyKit is not something you add to runlevel.
Top
SamuliSuominen
Retired Dev
Retired Dev
Posts: 2133
Joined: Fri Sep 30, 2005 8:38 am
Location: Finland

  • Quote

Post by SamuliSuominen » Mon Jan 31, 2011 3:31 pm

xsilentmurmurx wrote:also is it ok that my output for ck-list-sessions includes both the output for session 1 and session 2? I thought if i only had ck-launch-session in one file, that it would display only the output for 1 session and not session 1 and 2? Why is it displaying both of those sessions output?
Yes, it's normal for it to list 2 sessions if pam_ck_connector.so is being used, as in, if you use startx/xdm/slim/or other display manager without built-in ConsoleKit support.
But only one of them should be 'active = TRUE' at a time, not both.
Top
Fenril
Apprentice
Apprentice
Posts: 209
Joined: Sat May 16, 2009 8:04 am

  • Quote

Post by Fenril » Mon Jan 31, 2011 11:48 pm

Up my problem :
Fenril wrote:I have tried all tips and still cannot mount/umount usb correctly as user. But i have maybe a clue :

As i said, when i put an usb drive, Xfce/Thunar detects well media as it shows an icon for my key, but when i try to browse or mount the key it doesn't work and doesn't show any error. However, after doing these stuffs, the gvfs-gdu-volume-monitor process as it's shown by xfce4-taskmanager uses ~10% CPU time. Then, when i kill this process, a dialog is shown saying :
Failed on mounting volume.
DBus error org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus).
I rectify it : it seems i can mount as user with udisks --mount and i can unmount with udisks --unmount but it asks me password. So it seems to be a problem on thunar/xfce if i can't mount/unmount/browse correctly. Is that a bug ? Should i report it ?
Top
xsilentmurmurx
Apprentice
Apprentice
Posts: 233
Joined: Fri Oct 23, 2009 5:05 pm

  • Quote

Post by xsilentmurmurx » Tue Feb 01, 2011 9:10 am

ssuominen wrote:
xsilentmurmurx wrote: Also I have another issue, when I boot into the system and DBUS is booting up, I get this message that says "unknown group plugdev mentioned in message bus configuration" something of that nature. How do i go about resolving that?

Here is my output for grep -r plugdev /etc/dbus-1/*

Code: Select all

# grep -r plugdev /etc/dbus-1/*
/etc/dbus-1/system.d/NetworkManager.conf:        <policy group="plugdev">
what Should i do to resolve the issue?
Fixed in Portage (you need to emerge --sync in about hour and re-emerge networkmanager to get that group):

http://sources.gentoo.org/viewvc.cgi/ge ... 1.1&r2=1.2
Hey thanks that worked!!! Ok now here is another issue. I am able to successfully mount a USB flash drive or a CD rom using the method you outlined in the first post. But when I try to right click on the USB Icon or the CDROM to eject it, I get the following error:

Code: Select all

Error starting job: Failed to execute child process "eject" (No such file or directory)
and a second window pop ups with this error message: "The device is being ejected, this might take a while" something of that nature. How do I go about fixing this problem so I do not get any error messages? Please keep in mind that I do not have xfce4-mount-plugin nor thunar-volman installed.
Top
Galumph
Tux's lil' helper
Tux's lil' helper
Posts: 122
Joined: Thu Jul 15, 2010 10:11 pm
Location: Israel

  • Quote

Post by Galumph » Tue Feb 01, 2011 4:09 pm

I'm back with my dependency hell.
I've followed this guide all the way through, and it's working fine except for one thing: gnome-session wants me to downgrade upower and polkit, and it won't work with them upgraded.

Code: Select all

# emerge -uDp world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     UD] sys-auth/polkit-0.96-r2 [0.99-r1]
[ebuild     UD] gnome-extra/polkit-gnome-0.96-r1 [0.99] USE="-debug%" 
[ebuild     UD] sys-fs/udisks-1.0.1-r1 [1.0.2]
[ebuild     UD] sys-power/upower-0.9.5 [0.9.8]

!!! One or more updates have been skipped due to a dependency conflict:

sys-auth/polkit:0

  (sys-auth/polkit-0.99-r1, ebuild scheduled for merge) conflicts with
    <sys-auth/polkit-0.97 required by (sys-power/upower-0.9.5, ebuild scheduled for merge)

sys-power/upower:0

  (sys-power/upower-0.9.8, ebuild scheduled for merge) conflicts with
    <sys-power/upower-0.9.6 required by (gnome-base/gnome-session-2.30.2, installed)


!!! The following update(s) have been skipped due to unsatisfied dependencies
!!! triggered by backtracking:

gnome-extra/polkit-gnome:0
sys-fs/udisks:0
Downgrading the two downgrades everything else as well. I'm left with only one option, and that's to keyword and upgrade gnome-session, which causes even more problems.

Code: Select all

# ACCEPT_KEYWORDS=~x86 emerge -p gnome-session

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] x11-libs/gdk-pixbuf-2.22.1  USE="X jpeg tiff -debug -doc (-introspection) -jpeg2k -test" 
[ebuild     U ] x11-libs/gtk+-2.22.1-r1 [2.20.1-r1] USE="-examples%" 
[blocks b     ] <x11-libs/gtk+-2.21.3:2 ("<x11-libs/gtk+-2.21.3:2" is blocking x11-libs/gdk-pixbuf-2.22.1)
[ebuild     U ] gnome-base/gnome-session-2.32.1 [2.30.2]
[blocks B     ] <gnome-base/librsvg-2.31.0 ("<gnome-base/librsvg-2.31.0" is blocking x11-libs/gdk-pixbuf-2.22.1)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (gnome-base/librsvg-2.26.3, installed) pulled in by
    >=gnome-base/librsvg-2.26.3 required by (gnome-base/gnome-2.30.2-r1, installed)
    >=gnome-base/librsvg-2.9.0 required by (media-video/vlc-1.1.6, installed)
    >=gnome-base/librsvg-2.0 required by (app-editors/emacs-23.2-r2, installed)
    (and 10 more)

  (x11-libs/gdk-pixbuf-2.22.1, ebuild scheduled for merge) pulled in by
    x11-libs/gdk-pixbuf:2[X,jpeg,tiff] required by (x11-libs/gtk+-2.22.1-r1, ebuild scheduled for merge)
    x11-libs/gdk-pixbuf:2 required by (media-libs/libgpod-0.8.0, installed)


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
Help?
Top
SamuliSuominen
Retired Dev
Retired Dev
Posts: 2133
Joined: Fri Sep 30, 2005 8:38 am
Location: Finland

  • Quote

Post by SamuliSuominen » Tue Feb 01, 2011 4:14 pm

xsilentmurmurx wrote:Ok now here is another issue. I am able to successfully mount a USB flash drive or a CD rom using the method you outlined in the first post. But when I try to right click on the USB Icon or the CDROM to eject it, I get the following error:

Code: Select all

Error starting job: Failed to execute child process "eject" (No such file or directory)
and a second window pop ups with this error message: "The device is being ejected, this might take a while" something of that nature. How do I go about fixing this problem so I do not get any error messages? Please keep in mind that I do not have xfce4-mount-plugin nor thunar-volman installed.
That "eject" problem was already fixed in udisks-1.0.2, but I've fixed it now in old version too:

http://sources.gentoo.org/viewvc.cgi/ge ... 11&r2=1.12

You can solve it immediately by:

# emerge -1 virtual/eject
Top
cornelius
n00b
n00b
Posts: 6
Joined: Thu Mar 05, 2009 4:38 pm
Location: Germany

  • Quote

Post by cornelius » Tue Feb 01, 2011 4:31 pm

Hi, I followed the steps in the 1st post to regain shutdown and suspend buttons after updating to XFCE 4.8, but I couldn't get the proper output for "ck-list-sessions" with SLIM. When I login through SLIM and then run "ck-list-sessions" I get the following:

Code: Select all

Session1:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat2'
        session-type = ''
        active = FALSE
        x11-display = ':0.0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = FALSE
        on-since = '2011-02-01T15:45:03.824084Z'
        login-session-id = ''
Also, I don't have the shutdown and suspend buttons, only the logout button. After I logout from Xfce, login on tty1, stop slim with "/etc/init.d/xdm stop" I can use "startx" to successfully start Xfce with the following ck-list-sessions output:

Code: Select all

Session3:
	unix-user = '1000'
	realname = '(null)'
	seat = 'Seat1'
	session-type = ''
	active = FALSE
	x11-display = ''
	x11-display-device = ''
	display-device = '/dev/tty1'
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-02-01T15:47:20.055224Z'
	login-session-id = '2'
Session4:
	unix-user = '1000'
	realname = '(null)'
	seat = 'Seat1'
	session-type = ''
	active = TRUE
	x11-display = ':0'
	x11-display-device = '/dev/tty7'
	display-device = '/dev/tty1'
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-02-01T15:47:50.331264Z'
	login-session-id = '2'
This looks correct as far as I understood and I also get suspend and shutdown buttons.

So the big question is why it fails with SLIM. I try to give you all the info which is needed:

Code: Select all

corn@gyoza ~ $ cat /etc/slim.conf 
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        /bin:/usr/bin:/usr/local/bin
default_xserver     /usr/bin/X
xserver_arguments   -nolisten tcp -br -deferglyphs 16

# Commands for halt, login, etc.
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /usr/bin/xauth 

# Xauth file for server
authfile           /var/run/slim.auth


# Activate numlock when slim starts. Valid values: on|off
numlock             on

# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor          false

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd           exec /bin/sh - ~/.xinitrc %session
login_cmd           exec /bin/bash -login ~/.xinitrc %session
# login_cmd           exec /bin/bash -login /usr/share/slim/Xsession %session

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd	some command
# sessionstop_cmd	some command
sessionstart_cmd	/usr/bin/sessreg -a -l :0.0 %user
sessionstop_cmd     /usr/bin/sessreg -d -l :0.0 %user

# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
daemon	yes

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
#sessions            xfce4,icewm,wmaker,blackbox
# Alternatively, read available sessions from a directory:
sessiondir           /etc/X11/Sessions

# Executed when pressing F11 (requires media-gfx/imagemagick for import)
# Alternative is media-gfx/scrot. See Gentoo bug 252241 for more info.
screenshot_cmd      import -window root /slim.png
#screenshot_cmd      scrot /root/slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         Welcome to %host

# Session message. Prepended to the session name when pressing F1
# session_msg         Session: 

# shutdown / reboot messages
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...

# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user        simone

# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password      no

# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
#auto_login          no


# current theme, use comma separated list to specify a set to 
# randomly choose from
current_theme       slim-gentoo-simple,default,fingerprint,flat,flower2,gentoo,gentoo_10_blue,gentoo_10_dark,gentoo_10_purple,isolated,lake,lotus-midnight,lotus-sage,mindlock,parallel-dimensions,rainbow,rear-window,scotland-road,subway,wave,xfce-g-box

# Lock file, /etc/init.d/xdm expects slim.pid
lockfile            /var/run/slim.pid

# Log file
logfile             /var/log/slim.log

Code: Select all

corn@gyoza ~ $ cat ~/.xinitrc 
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim
/home/corn/.pack_ffox.sh &
exec ck-launch-session startxfce4

Code: Select all

corn@gyoza ~ $ cat /etc/pam.d/system-login 
auth		required	pam_tally2.so onerr=succeed
auth		required	pam_shells.so 
auth		required	pam_nologin.so 
auth		include		system-auth
 				
account		required	pam_access.so 
account		required	pam_nologin.so 
account		include		system-auth
account		required	pam_tally2.so onerr=succeed 
 
password	include		system-auth
 
session         optional        pam_loginuid.so
session		required	pam_env.so 
session		optional	pam_lastlog.so 
session		include		system-auth
session		optional	pam_ck_connector.so
session		optional	pam_motd.so motd=/etc/motd
session		optional	pam_mail.so
I also unmasked dev-libs/glib, dev-libs/dbus-glib, sys-fs/udisks, sys-power/upower, sys-auth/polkit and gnome-extra/polkit-gnome because I read some minimum versions somewhere in this thread which are not stable yet. If you need more info, just let me know.

Thanks so far for the effort to solve everyone's problems!

Edit: After closely inspecting again all my config files I found a -pam USE flag for slim in my use.conf. Removing this and reinstalling slim fixed the problems and I now have the suspend and shutdown buttons back. Thanks and sorry for my stupidity!
Top
SamuliSuominen
Retired Dev
Retired Dev
Posts: 2133
Joined: Fri Sep 30, 2005 8:38 am
Location: Finland

  • Quote

Post by SamuliSuominen » Tue Feb 01, 2011 6:08 pm

Galumph, if you don't want GNOME 2.32, I'm afraid you are stuck with old udisks, old upower, old polkit, old polkit-gnome and others. GNOME is the reason why the new versions haven't marked stable yet. We are all waiting for GNOME 2.32 to stabilize.
Last edited by SamuliSuominen on Wed Feb 02, 2011 5:21 am, edited 2 times in total.
Top
cornelius
n00b
n00b
Posts: 6
Joined: Thu Mar 05, 2009 4:38 pm
Location: Germany

  • Quote

Post by cornelius » Tue Feb 01, 2011 6:24 pm

Gnome is not installed here. If I have to unmask some packages for a working XFCE configuration (for the time being) that's okay with me. The question is, if one really needs to unmask dev-libs/glib for instance to get a working XFCE 4.8 configuration or if one can stick to the stable versions. I don't want to use ~ too much if I don't see the need for it.
Top
Odysseus
Apprentice
Apprentice
User avatar
Posts: 250
Joined: Wed Jun 23, 2004 3:46 am
Location: Miami, FL. I miss San Francisco!!!

  • Quote

Post by Odysseus » Tue Feb 01, 2011 9:54 pm

ssuominen wrote:
Odysseus wrote:Well things aren't working for me as well as I thought they were a couple of days ago on my KDE-4.6.0 ~X86 laptop. DVDs and CDs are recognized by the Device Notifier and are being automounted like they should.

However, my usb meomory keys, usb external drives, and SD card reader are not automounting and sleep and hibernate have ceased working since the update.

[ .. ]

I can mount usb devices manually either in a konsole terminal or logged in to TTY1 by evoking:

Code: Select all

udisks --mount /dev/uba1
Mounted /org/freedesktop/UDisks/devices/uba1 at /media/0C21-CC73
I can also manually mount my SD reader manually using udisks.
Once the devices are mounted I can read and write to them with no problems.

I can't figure out how to troubleshoot suspend and hibernate, but I'm sure all of these issues are permission related.

Do I need to add polkit to a run level to make it work?

I don't understand how to use the new KDE control modules for polkit to make them work. Any ideas would be greatly appreciated. TIA.

Ciao
It's not permission related if udisks --mount works from commandline. And also your ck-list-sessions output looks proper. I think your problem is somehow KDE 4.6.0 specific, and it should get it's own thread.

And no, PolicyKit is not something you add to runlevel.
It turns out you were correct. After struggling to resolve this issue for a few days and having no success, I went into #gentoo-kde and asked for help there. We sorted through my error logs and dmesg output and determined I needed rebuild glibc, run revdep-rebuild, then rebuilt my kernel against it. Rebooted then automounting has been working since.

As a side note: you need to edit your original post in this thread. Those users running pure KDE systems who aren't running one of the other desktop environments don't need to install gnome-base/gvfs. Automounting works fine without it.

Now all I need to resolve is my hibernate and suspend issues, which were working perfectly with hal, but have stopped working since its removal.

Thanks again for all of your efforts.
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

  • Quote

Post by Joseph_sys » Wed Feb 02, 2011 1:22 am

I was able to get it to work with one system running SLIM but my other system is running "xdm" login and I can not get it to work.
I've tried putting in .xinitrc:
exec ck-launch-session startxfce4

and in /etc/X11/Sessions/Xfce4
ck-launch-session startxfce4

All the kernel requirement are in place but ck-launch-session is not staring. If I start it manually I get active "FALSE"

Code: Select all

ck-list-sessions 
Session1:
	unix-user = '1001'
	realname = '(null)'
	seat = 'Seat2'
	session-type = ''
	active = FALSE
	x11-display = ':0.0'
	x11-display-device = '/dev/tty7'
	display-device = '/dev/pts/0'
	remote-host-name = ''
	is-local = FALSE
	on-since = '2011-02-02T01:23:07.103582Z'
	login-session-id = '4294967295'
my xsession-errors if it will help:

Code: Select all

Agent pid 6567
xfdesktop[6587]: starting up

(xfdesktop:6587): GLib-GObject-CRITICAL **: g_type_class_add_private: assertion `private_size > 0' failed

(xfdesktop:6587): GLib-GObject-WARNING **: g_type_instance_get_private() requires a prior call to g_type_class_add_private()

(xfdesktop:6587): GLib-GObject-WARNING **: g_type_instance_get_private() requires a prior call to g_type_class_add_private()

(xfdesktop:6587): GLib-GObject-WARNING **: g_type_instance_get_private() requires a prior call to g_type_class_add_private()

(xfdesktop:6587): GLib-GObject-WARNING **: g_type_instance_get_private() requires a prior call to g_type_class_add_private()
xfce4-settings-helper: Another instance is already running. Leaving...

(polkit-gnome-authentication-agent-1:6610): polkit-gnome-1-WARNING **: Unable to determine the session we are in: Remote Exception invoking org.freedesktop.ConsoleKit.Manager.GetSessionForUnixProcess() on /org/freedesktop/ConsoleKit/Manager at name org.freedesktop.ConsoleKit: org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '6610' org.freedesktop.ConsoleKit.Manager.GeneralError Unable%20to%20lookup%20session%20information%20for%20process%20%276610%27
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

  • Quote

Post by Joseph_sys » Wed Feb 02, 2011 2:41 am

It seems to me displaymanger "xdm" is not working with this setup.
I switch to DISPLAYMANAGER="slim" and it everything is working :-/

Sometime, I have an impression we are rushing these packages too fast, I wasted all day trying to make xdm to work and it turns out it doesn't.
Top
SamuliSuominen
Retired Dev
Retired Dev
Posts: 2133
Joined: Fri Sep 30, 2005 8:38 am
Location: Finland

  • Quote

Post by SamuliSuominen » Wed Feb 02, 2011 5:08 am

Joseph_sys wrote:It seems to me displaymanger "xdm" is not working with this setup.
I switch to DISPLAYMANAGER="slim" and it everything is working :-/

Sometime, I have an impression we are rushing these packages too fast, I wasted all day trying to make xdm to work and it turns out it doesn't.
What version of XDM are you using? You need at least x11-apps/xdm-1.1.10-r1 for pam_ck_connector.so to work because XDM had invalid pam.d file before.
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

  • Quote

Post by Joseph_sys » Wed Feb 02, 2011 5:32 am

ssuominen wrote:
Joseph_sys wrote:It seems to me displaymanager "xdm" is not working with this setup.
I switched to DISPLAYMANAGER="slim" and everything is working :-/

Sometimes, I have an impression we are rushing these packages too fast, I wasted all day trying to make xdm to work and it turned out it doesn't.
What version of XDM are you using? You need at least x11-apps/xdm-1.1.10-r1 for pam_ck_connector.so to work because XDM had invalid pam.d file before.
Yah, that could be the problem. I'm using stable one so it is xdm-1.1.8.
I just tried xdm-1.1.10-r1 and it doesn't work either.
Top
SamuliSuominen
Retired Dev
Retired Dev
Posts: 2133
Joined: Fri Sep 30, 2005 8:38 am
Location: Finland

  • Quote

Post by SamuliSuominen » Wed Feb 02, 2011 3:22 pm

Joseph_sys wrote:I just tried xdm-1.1.10-r1 and it doesn't work either.
Working fine here with:

/etc/X11/Sessions/Xfce4 containing "exec ck-launch-session startxfce4"

XSESSION set in /etc/env.d to "Xfce4"

Notice that XDM is using pam_ck_connector.so, and has no internal ConsoleKit support, so you need to use ck-launch-session somewhere ...
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

  • Quote

Post by Joseph_sys » Wed Feb 02, 2011 3:52 pm

ssuominen wrote:
Joseph_sys wrote:I just tried xdm-1.1.10-r1 and it doesn't work either.
Working fine here with:

/etc/X11/Sessions/Xfce4 containing "exec ck-launch-session startxfce4"

XSESSION set in /etc/env.d to "Xfce4"

Notice that XDM is using pam_ck_connector.so, and has no internal ConsoleKit support, so you need to use ck-launch-session somewhere ...
That is what I have:
cat /etc/X11/Sessions/Xfce4
exec ck-launch-session startxfce4

cat /etc/env.d/90xsession
XSESSION="Xfce4"

but the log-out buttons are still grayed out, when I switch in /etc/init.d/xdm to "slim" all buttons are showing up.
Top
hal2050
n00b
n00b
Posts: 47
Joined: Sat Jul 19, 2008 6:19 pm

  • Quote

Post by hal2050 » Wed Feb 02, 2011 4:37 pm

general question: could there be any interference with using USE="minimal"?

is USE="audit" relevant in any way?
Top
SamuliSuominen
Retired Dev
Retired Dev
Posts: 2133
Joined: Fri Sep 30, 2005 8:38 am
Location: Finland

  • Quote

Post by SamuliSuominen » Wed Feb 02, 2011 7:05 pm

hal2050 wrote:general question: could there be any interference with using USE="minimal"?

is USE="audit" relevant in any way?
USE="audit" might be related to the kernel option CONFIG_AUDIT and CONFIG_AUDITSYSCALL but not required for anything in this thread.

And no, USE="minimal" shouldn't break this. If it does, it's a bug.
Top
awanta
n00b
n00b
Posts: 1
Joined: Wed Feb 02, 2011 9:02 pm

keyboard setup without hal?

  • Quote

Post by awanta » Wed Feb 02, 2011 10:16 pm

Thanks for the info in this thread - everything working except for 1 thing.

I used hal to set up my keyboard - see below. As hal is now gone, this does not work anymore.
How can I get the same behaviour in a hal-free way?

Thanks for the help.

K.

/etc/hal/fdi/policy/10-x11-keyd.fdi:

<deviceinfo version="0.2">
<match key="info.capabilities" contains="input.keyboard">


<merge key="input.x11_driver" type="string">evdev</merge>
<merge key="input.x11_options.XkbLayout" type="string">us,us</merge>
<merge key="input.x11_options.XkbVariant" type="string">,intl</merge>
<merge key="input.x11_options.XkbOptions" type="string">grp:menu_toggle</merge>

</match>
</deviceinfo>
Top
b3cks
Veteran
Veteran
User avatar
Posts: 1481
Joined: Tue Mar 23, 2004 10:01 am
Location: Bremen (GER)

  • Quote

Post by b3cks » Thu Feb 03, 2011 8:22 am

@awanta: Have a look at this: http://www.gentoo.org/proj/en/desktop/x ... -guide.xml
I am /root and if you see me laughing you better have a backup.
Top
keba
Guru
Guru
User avatar
Posts: 328
Joined: Fri Jun 02, 2006 5:45 pm
Location: Switzerland

  • Quote

Post by keba » Thu Feb 03, 2011 9:10 am

@Odysseus: I've noticed the same problem on my laptop: Power management doesn't work at all in kde-4.6.0. That means no hibernation, no suspend, no background dimming, not CPU throttling etc. I wonder if it's related to some permissions... Actually KDE shows me a windows saying that it's dimming, but other than that nothing happens.
Prayer can change the world!
Top
BerryMcCaulkiner
n00b
n00b
Posts: 24
Joined: Mon Nov 16, 2009 4:02 pm

  • Quote

Post by BerryMcCaulkiner » Thu Feb 03, 2011 6:20 pm

Hey there


heres a question: gnome-base/gvfs with the gdu USE flag is required for thunar and XFCE. Well what if I want to use the LXDE desktop environment with PCMANFM? Do I still have to emerge gnome-base/gvfs to get udev/consolekit to work? or can I leave it out and still be able to get this to work?
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Thu Feb 03, 2011 6:43 pm

BerryMcCaulkiner wrote:Hey there


heres a question: gnome-base/gvfs with the gdu USE flag is required for thunar and XFCE. Well what if I want to use the LXDE desktop environment with PCMANFM? Do I still have to emerge gnome-base/gvfs to get udev/consolekit to work? or can I leave it out and still be able to get this to work?
If you use pcmanfm 0.9.8 you won't need gvfs with our without the flags
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
Post Reply

383 posts
  • Page 5 of 16
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 16
  • Next

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic