PDA

View Full Version : Option to shut down computer missing



blairm
Dec 9th 2009, 05:53 AM
Hi,

Have upgraded my parents' computer to 9.10 and all seems to be going well, with the exception of the shutdown window: the only option it gives me is log out ie the restart and shut down options are missing.

Has anyone else experienced this issue, and if so how can it be fixed?

Cheers,

Blair

Ole Juul
Dec 9th 2009, 07:00 AM
I thought I saw someone else here mention the same problem. Do a search. In the meanwhile you can type:
shutdown -r now for reboot, or
shutdown -h now for halt

Rog131
Dec 9th 2009, 08:45 AM
Do you have ?

System Settings > (Advanced) > Session Manager > General - Offer shutdown options


A workaround / external application:

> Package: kshutdown (http://packages.ubuntu.com/karmic/kshutdown)


an advanced shut down utility for KDE

It has 4 main commands:

- Shut Down (logout and halt the system),
- Reboot (logout and reboot the system),
- Lock Screen (lock the screen using a screen saver),
- Logout (end the session and logout the user).

It features time and delay options, command line support, wizard, and sounds.


http://img192.imageshack.us/img192/2613/kshutdown.th.png (http://img192.imageshack.us/i/kshutdown.png/)

josefko
Dec 9th 2009, 09:22 AM
You should try (at least as a workaround) a little plasmoid for shutdown and lock

dibl
Dec 9th 2009, 10:10 AM
the only option it gives me is log out ie the restart and shut down options are missing.

Has anyone else experienced this issue, and if so how can it be fixed?



That is the normal option when you have started the X server from a console login.

Open a Konsole window and use the command Ole Juul gave you to restart the system. Upon rebooting, it should take you to a KDE login, and then into the GUI. Then click your K and see what your options are.

wizard10000
Dec 9th 2009, 10:15 AM
Does the user account actually have permission to shut down the machine?

Never mind. See above ;)

bossa
Dec 9th 2009, 10:55 AM
Hey guys
I am having a problem shutting down . When I try to shutdown/logout the option dialogue strats bu when clicked nothing happens . Tried adding Kshutdow and the shutdown plasma but they do nothing . The dialogue only shows up after clicking the first time.
Any ideas ? Before I do a clean install ;)

dibl
Dec 9th 2009, 12:04 PM
See Ole Juul's commands above. Open a Konsole, and issue either one. Post any error output back here.

bossa
Dec 9th 2009, 12:40 PM
Hi dibl

this is what I get ..no shut down. sudo halt shuts down immediately


steve@teddy:~$ shutdown -r
shutdown: time expected
Try `shutdown --help' for more information.
steve@teddy:~$ sudo shutdown -r
[sudo] password for steve:
shutdown: time expected
Try `shutdown --help' for more information.
steve@teddy:~$ shutdown -h
shutdown: time expected
Try `shutdown --help' for more information.
steve@teddy:~$ sudo shutdown -h
shutdown: time expected
Try `shutdown --help' for more information.

dibl
Dec 9th 2009, 01:47 PM
Hi dibl

this is what I get ..no shut down. sudo halt shuts down immediately


steve@teddy:~$ shutdown -r
shutdown: time expected
Try `shutdown --help' for more information.
steve@teddy:~$ sudo shutdown -r
[sudo] password for steve:
shutdown: time expected
Try `shutdown --help' for more information.
steve@teddy:~$ shutdown -h
shutdown: time expected
Try `shutdown --help' for more information.
steve@teddy:~$ sudo shutdown -h
shutdown: time expected
Try `shutdown --help' for more information.



You need to "sudo" the shutdown command.


sudo shutdown -r now

:)

bossa
Dec 9th 2009, 04:15 PM
Hi dibl

Yeah I did ( 4th line)and got :


steve@teddy:~$ sudo shutdown -r
[sudo] password for steve:
shutdown: time expected
Try `shutdown --help' for more information.



did sudo -r again and reboots immediately well I say reboots but reboot has never worked on this board with any distro for some reason.
steve@teddy:~$ sudo shutdown -h
shutdown: time expected
Try `shutdown --help' for more information.

I dont quite know where to look for error messages . Looked in Ksystemlog but the only thing I can see is that the when I do

shut down -r there is : Resume from disk failed.
and : kdm_greet[1754] Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No such file or directory

2009-12-09 16:48:09 teddy console-kit-daemon[894] WARNING: Couldn't read /proc/889/environ: Failed to open file '/proc/889/environ': No such file or directory

blairm
Dec 9th 2009, 09:10 PM
Hi,

Many thanks for the advice offered above... unfortunately, I've still got the same problem.

The shutdown -r now command worked fine, but nothing had changed when I logged in again. The options under the K menu remained as logout, lock, switch user, suspend to ram and suspend to disk and the only option when I right-click on the desktop is logout.

Installed kshutdown and it isn't working: when I select shut down and click OK nothing happens.

Put a shutdown/lock applet on the panel and again, the only option offered when I hit the shutdown icon is logout.

Any other suggestions?

Cheers,

Blair

PS: Perhaps I should have mentioned it in the original post: yes, I did do a google search on this, and couldn't find a way to fix it: instead, many people seemed to suggest using the shutdown command in the konsole as a workaround.



Blair

dibl
Dec 9th 2009, 09:21 PM
steve@teddy:~$ sudo shutdown -r




That is NOT the command I provided. It is only 3/4 of the command I gave you. ;)

dibl
Dec 9th 2009, 09:26 PM
Any other suggestions?



Well, that's an unusual little situation -- something isn't quite right with the KDE default interface. With no guarantees, here are the things I might try:

- rename the .kde hidden folder (with all your desktop settings in it ...) and then restart the system. You will lose your desktop settings, but you may gain a normal shutdown option in the process.

- if that doesn't do it, and you can't stand to open a Konsole and do the CLI shutdown, then I guess maybe I've have to contemplate reinstalling the kubuntu-desktop metapackage. But it's hard to believe you need to do something that extreme, just to get back to the default shutdown options from the GUI ..... :-\

blairm
Dec 9th 2009, 09:48 PM
Dibl: Regarding the incomplete command - assume you mean the lack of sudo? I did include that when I typed it in the konsole, it just a matter of poor copy and paste skills when I made the post.

Renamed the .kde folder to .kde2 which reset everything, but there was still no shutdown option: also removed kubuntu desktop using synaptic, choose the complete removal including configuration files option, and reinstalled: no difference after that either.

Starting to think I'll just have to get my parents used to a two-step process to shut down the computer.

Personally, I could deal with using the command line the shutdown every time (although it would be a little annoying) but it's not really practical for my parents.

Thanks again for all the suggestions,

Blair

Ole Juul
Dec 9th 2009, 10:12 PM
Type the whole command as given! From beginning to end.

I dont quite know where to look for error messages
"shutdown: time expected" is an error message.

Use

now
as the time.

Snowhog
Dec 10th 2009, 04:42 AM
Meaning, type:

sudo shutdown -r now
(the whole enchilada as shown above) ;)

bossa
Dec 10th 2009, 07:38 AM
Meaning, type:


sudo shutdown -r now
(the whole enchilada as shown above) ;)


Oops ! :-[ oh yeah sorry about that ...alot on my mind right now.

Yeah doing
sudo shutdown -r now gives a blank screen but the machine does not power down

bossa
Dec 10th 2009, 08:27 AM
OK seems to be fixed now .
Reinstalled the following packages:
kubuntu-desktop (1.154) . Noting something dibl said earlier in this thread
I guess maybe I've have to contemplate reinstalling the kubuntu-desktop . I must have broken something along the way . I also reset everything in login manager to default I had already done this earlier but did it again for good measure.

blairm
Dec 10th 2009, 07:02 PM
Hi,

Found a way to fix the issue on the Ubuntu forums: the post from a couple of weeks ago can be found at http://ubuntuforums.org/showthread.php?t=1307800&highlight=no+shutdown+option

In short, switching to kdm seems to fix things: someone on the forum has apparently reported it as a bug.

Cheers,

Blair

jglen490
Dec 13th 2009, 04:12 AM
Dibl asked you to input sudo shutdown -r now

The "now" is part of the command - it specifies the time parameter that -r expects. Do the same for sudo shutdown -h now

Make sure you include "now" (without quotes) as part of the command entry as a parameter.