Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] SDDM/KDE5 no shutdown/reboot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
cfgauss
Guru
Guru


Joined: 18 May 2005
Posts: 531
Location: USA

PostPosted: Tue Mar 07, 2017 4:35 pm    Post subject: [SOLVED] SDDM/KDE5 no shutdown/reboot Reply with quote

I'm using SDDM under KDE5/OpenRC and the Application Launcher Leave option doesn't provide Shutdown or Reboot options, only Logout. When I Logout I'm faced with an sddm-greeter screen with no options to shutdown or logout either. I end up using /sbin/shutdown from /dev/tty1.

I suspect that my problem is related to this post as suggested by the Gentoo SDDM Wiki. Here's my ck-list-sessions and upower -d.

Code:
$ ck-list-sessions
Session1:
   unix-user = '4038'
   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 = '2017-03-07T16:12:32.313669Z'
   login-session-id = ''
Session2:
   unix-user = '4038'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = FALSE
   x11-display = ':0.0'
   x11-display-device = '/dev/tty7'
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2017-03-07T16:12:38.283398Z'
   login-session-id = '3'

$ upower -d
Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         no
  updated:              Tue 07 Mar 2017 10:28:01 AM CST (0 seconds ago)
  has history:          no
  has statistics:       no
  unknown
    warning-level:       none
    icon-name:          ''

Daemon:
  daemon-version:  0.99.4
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  no
  critical-action: (null)

I even removed nox11 from /etc/pam.d/system-login as suggested by the post to no avail.

Any hints for fixing this would be gratefully received.

[SOLVED] As suggested by this post, including nox11 on the line session optional pam_ck_connector.so nox11 in both /etc/pamd./system-local-login and /etc/pam.d/system-login worked for me. This seems to be what works with SDDM. [/SOLVED]


Last edited by cfgauss on Wed May 17, 2017 4:34 am; edited 1 time in total
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 515
Location: Italia

PostPosted: Tue Mar 07, 2017 4:41 pm    Post subject: Reply with quote

Try to start dbus demon
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Tue Mar 07, 2017 4:41 pm    Post subject: Reply with quote

powerdevil is installed?
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
cfgauss
Guru
Guru


Joined: 18 May 2005
Posts: 531
Location: USA

PostPosted: Tue Mar 07, 2017 4:43 pm    Post subject: Reply with quote

Maxxx wrote:
Try to start dbus demon

Code:
# service dbus status
 * status: started
Back to top
View user's profile Send private message
cfgauss
Guru
Guru


Joined: 18 May 2005
Posts: 531
Location: USA

PostPosted: Tue Mar 07, 2017 4:44 pm    Post subject: Reply with quote

asturm wrote:
powerdevil is installed?

Code:
# eix powerdevil
[?] kde-plasma/powerdevil
     Available versions: 
     (4)    [M]4.11.22(4/4.11)
     (5)    5.8.3 (~)5.8.5
       {aqua debug +handbook +pm-utils systemd +wireless}
     Installed versions:  5.9.1(5)(10:36:09 PM 02/14/2017)(handbook wireless -debug -elogind -systemd)
     Homepage:            https://projects.kde.org/projects/kde/workspace/powerdevil
     Description:         Power management for KDE Plasma Shell
Back to top
View user's profile Send private message
fken
n00b
n00b


Joined: 12 Mar 2017
Posts: 2

PostPosted: Sun Mar 12, 2017 2:35 pm    Post subject: Reply with quote

Hello


Looks like adding consolekit to default runlevel solve the issue for some people. Not for me, unfortunately

I just tried

# /usr/bin/systemctl reboot
Failed to get D-Bus connection: Opération non permise

Looks like systemd is not allowed to connect itself to dbus in order to reboot the system. I think it's something to check

In fact I think openrc and systemd are installed on my computer. I didnt installed openrc but anyway. I think i'll stop using systemd for now


Last edited by fken on Sun Mar 12, 2017 2:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Sun Mar 12, 2017 2:43 pm    Post subject: Reply with quote

If you are using systemd, then consolekit ultimately has no place on your system.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
fken
n00b
n00b


Joined: 12 Mar 2017
Posts: 2

PostPosted: Sun Mar 12, 2017 2:56 pm    Post subject: Reply with quote

asturm wrote:
If you are using systemd, then consolekit ultimately has no place on your system.


Awww... I had something in my mind saying i choose systemd. I checked several things, especially because i don't remember having emerging systemd directly... in fact i've done nothing except choosing wrong eselect profiles...

But anyway openrc is installed and used by default. I think i made a big wonderful stuff choosing that profile :-)


And my answer was true : he is using openRC, he said
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum