Forums

Skip to content

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

[solved] Plasma: no shutdown/reboot

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
23 posts • Page 1 of 1
Author
Message
Lokesh
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Sun Apr 01, 2012 4:09 pm

[solved] Plasma: no shutdown/reboot

  • Quote

Post by Lokesh » Wed Aug 02, 2017 6:08 am

On a fresh system install I added plasma by selecting the corresponding profile. I expected that this would automatically install the plasma-meta package but I need to do it on top of that. It looked like

Code: Select all

emerge -av plasma-meta
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild   R    ] kde-plasma/plasma-meta-5.9.5:5::gentoo  USE="display-manager handbook pam sddm wallpapers -bluetooth -grub -gtk -networkmanager -plymouth -pulseaudio -sdk" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Would you like to merge these packages? [Yes/No]n
No kde-apps, very clean actually. But then I noticed the missing buttons for shutdown/reboot in the kde menu, same with the plasmoid in the task bar. I have to pull the plug to shutdown.

I have searched the internet and found many old complaints about this behaviour of KDE, but most of them date before 2012 and the solutions do not apply to me since they were based on bugs that are meanwhile eliminated. So where did I do something wrong?

BTW, no idea what to present (consolekit etc all installed).

Lokesh
Last edited by Lokesh on Wed Aug 02, 2017 4:38 pm, edited 1 time in total.
Sometimes frustrated Linux User
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Wed Aug 02, 2017 6:13 am

Can help this?
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Wed Aug 02, 2017 6:17 am

Profiles don't add packages to world file.

You do know the wiki, did you properly look at the 'Prerequisites' section and configure services?
Top
Lokesh
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Sun Apr 01, 2012 4:09 pm

  • Quote

Post by Lokesh » Wed Aug 02, 2017 7:07 am

fedeliallalinea wrote:Can help this?
I have checked this page earlier.

Code: Select all

grep pam_ck_connector /etc/pam.d/system-login
session         optional        pam_ck_connector.so nox11
Looks perfect, still does not work. Did not test the other option because I understand one should have only one of the two options configured.
Sometimes frustrated Linux User
Top
Lokesh
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Sun Apr 01, 2012 4:09 pm

  • Quote

Post by Lokesh » Wed Aug 02, 2017 7:46 am

asturm wrote:Profiles don't add packages to world file.

You do know the wiki, did you properly look at the 'Prerequisites' section and configure services?
Prerequisites I met:
1) plasma profile in use
2) dbus 1.10.18, polkit 0.113, virtual/udev 217, no sys-fs/udev installed but is sys-fs/eudev 3.1.5, udisk 2.1.8
3) eudev: rc-update add udev sysinit ..... * rc-update: udev already installed in runlevel `sysinit'; skipping it is active
4) console-kit 1.1.2: I could not activate the [*] Enable system-call auditing support in the kernel configuration file since it is not there as described in the ConsoleKit wiki.
5) not sure about the others. Never touched these before. When I e.g. do udisk --monitor I get an "unknown command".

That's complicated ...very complicated
Sometimes frustrated Linux User
Top
Yamakuzure
Advocate
Advocate
User avatar
Posts: 2323
Joined: Wed Jun 21, 2006 11:06 am
Location: Adendorf, Germany
Contact:
Contact Yamakuzure
Website

  • Quote

Post by Yamakuzure » Wed Aug 02, 2017 7:54 am

Lokesh wrote:
asturm wrote:Profiles don't add packages to world file.

You do know the wiki, did you properly look at the 'Prerequisites' section and configure services?
Prerequisites I met:
1) plasma profile in use
2) dbus 1.10.18, polkit 0.113, virtual/udev 217, no sys-fs/udev installed but is sys-fs/eudev 3.1.5, udisk 2.1.8
3) eudev: rc-update add udev sysinit ..... * rc-update: udev already installed in runlevel `sysinit'; skipping it is active
4) console-kit 1.1.2: I could not activate the [*] Enable system-call auditing support in the kernel configuration file since it is not there as described in the ConsoleKit wiki.
5) not sure about the others. Never touched these before. When I e.g. do udisk --monitor I get an "unknown command".

That's complicated ...very complicated
Not really.

Does this work?

Code: Select all

 ~ $ udisksctl monitor
Monitoring the udisks daemon. Press Ctrl+C to exit.
09:51:05.518: The udisks-daemon is running (name-owner :1.37).
Then:
  • How is plasma started?
  • Do you have the consolekit USE flag enabled?
  • Is dbus running?
  • Is powerdevil installed?
  • Is upower installed?
  • Did you try to use elogind instead of consolekit already?
Edited 220,176 times by Yamakuzure
Top
Lokesh
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Sun Apr 01, 2012 4:09 pm

  • Quote

Post by Lokesh » Wed Aug 02, 2017 8:25 am

Yamakuzure wrote:Not really.
I assume this is just humor. Your list ist not uncomplicated for the ordinary human being (like me)
Yamakuzure wrote:Does this work?

Code: Select all

 ~ $ udisksctl monitor
Monitoring the udisks daemon. Press Ctrl+C to exit.
09:51:05.518: The udisks-daemon is running (name-owner :1.37).
No. "Error connecting to the udisks daemon: connection failed: file or directory not found"
  • How is plasma started? --> sddm
  • Do you have the consolekit USE flag enabled? -->Yep, by means of selecting the plasma profile, i.e. it is not again in the make.conf
  • Is dbus running? -->I believe no. rc-update did not show it, rc-update show -v does. Never touched that before.
  • Is powerdevil installed? -->yes, version 5.9.5
  • Is upower installed? -->yes, version 0.99.4
  • Did you try to use elogind instead of consolekit already? -->???Why, How? I don't understand what they do and what would trigger preference of one to the other
Sometimes frustrated Linux User
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Wed Aug 02, 2017 8:30 am

This is all described in the wiki. https://wiki.gentoo.org/wiki/KDE#Services Please note that having them installed is not enough, the links to each service describe how to enable them...
Top
Yamakuzure
Advocate
Advocate
User avatar
Posts: 2323
Joined: Wed Jun 21, 2006 11:06 am
Location: Adendorf, Germany
Contact:
Contact Yamakuzure
Website

  • Quote

Post by Yamakuzure » Wed Aug 02, 2017 9:48 am

This:
Lokesh wrote:
Yamakuzure wrote:Does this work?

Code: Select all

 ~ $ udisksctl monitor
Monitoring the udisks daemon. Press Ctrl+C to exit.
09:51:05.518: The udisks-daemon is running (name-owner :1.37).
No. "Error connecting to the udisks daemon: connection failed: file or directory not found"
And This:
Lokesh wrote:
  • Is dbus running? -->I believe no. rc-update did not show it, rc-update show -v does. Never touched that before.
leads to the following test:

What does "/etc/init.d/dbus status" show? If it shows that dbus is stopped, then please add it to the boot runlevel with:

Code: Select all

rc-update add dbus boot
You do not have to reboot, just issue the command: "openrc" which should start all pending services.
Edited 220,176 times by Yamakuzure
Top
Lokesh
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Sun Apr 01, 2012 4:09 pm

  • Quote

Post by Lokesh » Wed Aug 02, 2017 10:46 am

So it seems that these services were not started. What I did:

1)dbus---started, added to default, visisble by rc-update --show
2) consolekit ---unclear:

Code: Select all

sudo /etc/init.d/consolekit start
 * Starting consolekit ...
 * start-stop-daemon: /usr/sbin/console-kit-daemon is already running
 * Failed to start consolekit                                                                                                 [ !! ]
 * ERROR: consolekit failed to start
but

Code: Select all

sudo ck-list-sessions
Session4:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = 'unspecified'
        session-class = 'user'
        session-state = 'active'
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2017-08-02T12:13:05.157608Z'
        login-session-id = '4'
        XDG_RUNTIME_DIR = '/var/run/user/1000'
        VTNr = '7'
and

Code: Select all

sudo /etc/init.d/consolekit stop
 * WARNING: consolekit is already stopped
I entered the commands exactly in this sequence.
Regarding the required kernel modules I do neither of the two required (Auditing Support & Enable system call Auditing Support) in my config file, therefore cannot enable them.

3) udisk seems to work now, although again my kernel config doe not contain one of the required module: USB runtime power management. Since it is USB, I don't expect it to be an issue.

Code: Select all

udisksctl monitor 
Monitoring the udisks daemon. Press Ctrl+C to exit.
14:39:13.050: The udisks-daemon is running (name-owner :1.5).
14:40:21.501: /org/freedesktop/UDisks2/drives/Samsung_SSD_860_EVO_260GB_S4G7KLMF244466K: org.freedesktop.UDisks2.Drive.Ata: Properties Changed
There is a difference in the Plasma menu in that now two more options are listet: change user and standby.

EDIT: seems that consolekit is the cause for some problems.

Code: Select all

sudo pkcheck --list-temp
Passwort: 
Error getting session: GDBus.Error:org.freedesktop.ConsoleKit.Manager.Error.General: Unable to lookup session information for process '4607'
Sometimes frustrated Linux User
Top
Lokesh
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Sun Apr 01, 2012 4:09 pm

  • Quote

Post by Lokesh » Wed Aug 02, 2017 11:11 am

asturm wrote:This is all described in the wiki. https://wiki.gentoo.org/wiki/KDE#Services Please note that having them installed is not enough, the links to each service describe how to enable them...
Hello asturm, correct me if I am wrong: my understanding is, that these services are automatically activated during installation, no need to manually start them.

The only explanation I can see is that I was messing up my kernel configuration and unchecked something essential for these services. If this is the case, is there a way to identify it (log?) or is re-installation of the kernel the better way?
Sometimes frustrated Linux User
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Wed Aug 02, 2017 11:40 am

Lokesh wrote:
asturm wrote:This is all described in the wiki. https://wiki.gentoo.org/wiki/KDE#Services Please note that having them installed is not enough, the links to each service describe how to enable them...
Hello asturm, correct me if I am wrong: my understanding is, that these services are automatically activated during installation, no need to manually start them.
That understanding is wrong, as you can read in the quote of mine you selected.
Top
mir3x
Guru
Guru
User avatar
Posts: 455
Joined: Sat Jun 02, 2012 3:22 pm

  • Quote

Post by mir3x » Wed Aug 02, 2017 1:02 pm

Isn't that resolved just by unmerging upower
and emerging upower-pm-utils ??
( no need to mess with any file)
Sent from Windows
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Wed Aug 02, 2017 1:18 pm

mir3x wrote:Isn't that resolved just by unmerging upower
and emerging upower-pm-utils ??
This solves nothing, in fact it pushes you back to unmaintained, unsupported and conflicting upower-pm-utils. Don't do it.
Top
Lokesh
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Sun Apr 01, 2012 4:09 pm

  • Quote

Post by Lokesh » Wed Aug 02, 2017 1:25 pm

All services working :P

Problem not solved :cry:

I umerged, then installed again, consolekit.
All services are running: dbus, polkit, udisk, eudev, consolekit

No shutdown/reboot button.
Sometimes frustrated Linux User
Top
Lokesh
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Sun Apr 01, 2012 4:09 pm

  • Quote

Post by Lokesh » Wed Aug 02, 2017 3:52 pm

Now the experts are at a loss for words.... :(
Sometimes frustrated Linux User
Top
mir3x
Guru
Guru
User avatar
Posts: 455
Joined: Sat Jun 02, 2012 3:22 pm

  • Quote

Post by mir3x » Wed Aug 02, 2017 3:59 pm

"I have to pull the plug to shutdown. "

Dont u have shutdown command ?
Sent from Windows
Top
sebB
l33t
l33t
Posts: 806
Joined: Wed Mar 02, 2011 5:16 pm
Location: S.O. France

  • Quote

Post by sebB » Wed Aug 02, 2017 4:17 pm

Have you the same problem running startx?
.xinitrc wrote:exec ck-launch-session dbus-launch --sh-syntax --exit-with-session startkde
Top
Lokesh
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Sun Apr 01, 2012 4:09 pm

  • Quote

Post by Lokesh » Wed Aug 02, 2017 4:36 pm

mir3x wrote:Dont u have shutdown command ?
I wanted to quote the shutdown command in the system settings in reply to you. But...the menu has changed and it is all there now.

I assume this has to do with that I usually did indeed kept the power button pressed until the computer shutdown. This did not result in any improvement.

Now for the very first time I had shut down from the terminal. And tata, it is there. It seems that the session is saved when the shutdown is done by pressing the power button (it is not a power switch).

Summary: get all services, particularly consolekit, up and running, then shut down from the terminal.

Just a theory.

Cheers
Lokesh
Last edited by Lokesh on Wed Aug 02, 2017 4:40 pm, edited 1 time in total.
Sometimes frustrated Linux User
Top
Lokesh
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Sun Apr 01, 2012 4:09 pm

  • Quote

Post by Lokesh » Wed Aug 02, 2017 4:38 pm

sebB wrote:Have you the same problem running startx?
.xinitrc wrote:exec ck-launch-session dbus-launch --sh-syntax --exit-with-session startkde
I am not using a user specific .xinitrc. But anyway, problem is solved :lol:
Sometimes frustrated Linux User
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Wed Aug 02, 2017 5:13 pm

Lokesh wrote:Summary: ... then shut down from the terminal.
Rather, "Never pull the plug when you have access to a terminal"
Top
Yamakuzure
Advocate
Advocate
User avatar
Posts: 2323
Joined: Wed Jun 21, 2006 11:06 am
Location: Adendorf, Germany
Contact:
Contact Yamakuzure
Website

  • Quote

Post by Yamakuzure » Thu Aug 03, 2017 10:43 am

Lokesh wrote:I assume this has to do with that I usually did indeed kept the power button pressed until the computer shutdown.
Just for future reference:

Do this only if, and I mean really really ONLY if, you have no possibility to shut down through any console (If in a DE, use ALT+F1 to switch, if you can not even start an xterm), and are not able to bring down the machine through Magic SysRQ.

Since I first installed Gentoo in 2003, and I have powered about two dozen machines with Gentoo since then, I have only one machine where such a crude "Pull-The-Plug"-Method is needed: My Laptop, that has a BIOS bug, causing it to sometimes (1 in 50 or so cases) not to wake up from suspension, and to freeze instead.

Please remember: "Pulling the plug" is the worst thing you can do!
Edited 220,176 times by Yamakuzure
Top
Hu
Administrator
Administrator
Posts: 24401
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Aug 04, 2017 1:00 am

I concur with Yamakuzure's advice. I have one minor nit on the implementation. When in X, Alt+Fn is handled by the X server, which does not treat it specially. It will typically be passed to the foreground application or to the window manager if a binding exists. In either case, it is unlikely to perform a vt-switch even when the system is in good order. To perform an orderly vt-switch from within X, use Ctrl+Alt+Fn.
Top
Post Reply

23 posts • Page 1 of 1

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