SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-12-08 20:35:37

vrbst
New Member
From: Hungary
Registered: 2011-12-08
Posts: 8

[Solved] Statler r20111125 cannot shutdown

Hello!

I am using the r20111125 release of crunchbang, but i have an annoying problem with it. It cannot shutdown. When i send it to down, the gui disappear, and i see the dmesg lines from boot, and the "login:" line, but i can't write there, so the machine power off only when i press and hold the power button.

Can somebody help in this?

Thank you!

Last edited by vrbst (2011-12-16 18:50:41)


"turbos make torque and torque makes fun"

Offline

Be excellent to each other!

#2 2011-12-08 21:10:53

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,431

Re: [Solved] Statler r20111125 cannot shutdown

Welcome to #!

Hm, could be again a Slim issue.

We will see what others say to this. But I had this problem with Slim, the display manager.

Offline

#3 2011-12-08 21:29:15

vrbst
New Member
From: Hungary
Registered: 2011-12-08
Posts: 8

Re: [Solved] Statler r20111125 cannot shutdown

Thank you!

I use #! since the previous release, and i hadn't similar problem before i have started to use r20111125.

I look forward others reply.


"turbos make torque and torque makes fun"

Offline

#4 2011-12-08 23:33:53

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,431

Re: [Solved] Statler r20111125 cannot shutdown

As there was no reply till now. You could try to install LightDM and see if you can shut down normally.

Otherwise you maybe have to change something to be able to shut down with Slim or I am totally in the dark with my idea. I personally do not use Slim for various reasons and also have no further experience with it.

Offline

#5 2011-12-09 03:10:52

vrkalak
#! Die Hard
From: Las Vegas > US
Registered: 2009-09-14
Posts: 1,608

Re: [Solved] Statler r20111125 cannot shutdown

I had not used SLIM until this release . . . and I have the same problem.

When I 'shutdown' the new #!, it reverts back to the Log-in screen (with no options to actually shutdown or reboot the computer)

I don't reboot the OS very often, but I had to do a 'hard-stop' (manually turning off the computer)


Registered Linux User: #497030
my DeviantART page
-- #!Crunchbang- Sid "Animal"  (Fluxbox) -- LMDE Fluxbox Edition -- Manjaro-Fluxbox --

Offline

#6 2011-12-09 04:39:15

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,431

Re: [Solved] Statler r20111125 cannot shutdown

You could try also this.

Offline

#7 2011-12-09 05:07:58

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,825
Website

Re: [Solved] Statler r20111125 cannot shutdown

vrbst wrote:

Hello!

Thank you!

Jo napot,

does the computer turn off after the command

sudo shutdown -h now

What about the "Reboot" button in the menu, does the computer reboot normally?


Sweaty lads picking up the soap | I love the new "Ignore user" button

Offline

#8 2011-12-09 05:23:59

vrkalak
#! Die Hard
From: Las Vegas > US
Registered: 2009-09-14
Posts: 1,608

Re: [Solved] Statler r20111125 cannot shutdown

From the Arch/Wiki about SLIM

Shutdown, reboot, suspend, exit, launch terminal from SLiM

You may shutdown, reboot, suspend, exit or even launch a terminal from the SLiM login screen. To do so, use the values in the username field, and the root password in the password field:

    To launch a terminal, enter console as the username (defaults to xterm which must be installed separately... edit /etc/slim.conf to change terminal preference)
    For shutdown, enter halt as the username
    For reboot, enter reboot as the username
    To exit to bash, enter exit as the username
    For suspend, enter suspend as the username (suspend is disabled by default, edit /etc/slim.conf as root to uncomment the suspend_cmd line and, if necessary modify the suspend command itself (e.g. change /usr/sbin/suspend to sudo /usr/sbin/pm-suspend))

I guess, we just have to learn how SLIM works.  tongue

Last edited by vrkalak (2011-12-09 05:26:06)


Registered Linux User: #497030
my DeviantART page
-- #!Crunchbang- Sid "Animal"  (Fluxbox) -- LMDE Fluxbox Edition -- Manjaro-Fluxbox --

Offline

#9 2011-12-09 08:39:20

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,825
Website

Re: [Solved] Statler r20111125 cannot shutdown

^ They must be kidding... Damned, this is really ridiculous. Thanks for this post, vrkalak.


Sweaty lads picking up the soap | I love the new "Ignore user" button

Offline

#10 2011-12-11 10:11:27

vrbst
New Member
From: Hungary
Registered: 2011-12-08
Posts: 8

Re: [Solved] Statler r20111125 cannot shutdown

Jo napot,
does the computer turn off after the command

Jo napot! smile

No, the computer doesn't turn off after it, and when i push the "reboot" button, the result is the same.

Now i noticed: When the gui was gone, the tty1 shown, and on the tty7 seen the usually "halt" messages.


"turbos make torque and torque makes fun"

Offline

#11 2011-12-12 03:49:35

vrkalak
#! Die Hard
From: Las Vegas > US
Registered: 2009-09-14
Posts: 1,608

Re: [Solved] Statler r20111125 cannot shutdown

How to Restart Slim

In the event you need to restart slim, use the following commands;
sudo /etc/init.d/slim restart

If you restart Slim from within X (graphical environment), you will drop to a command line interface (console), and Slim does not restart.

Don't Panic, simply run the command a second time.

Once restarted, you will automatically be logged into the default session.

Re-posted from: http://zenix-os.net/live.html


Registered Linux User: #497030
my DeviantART page
-- #!Crunchbang- Sid "Animal"  (Fluxbox) -- LMDE Fluxbox Edition -- Manjaro-Fluxbox --

Offline

#12 2011-12-13 21:29:49

vrbst
New Member
From: Hungary
Registered: 2011-12-08
Posts: 8

Re: [Solved] Statler r20111125 cannot shutdown

I've installed gdm instead of slim, but the problem still remaining. Unfortunately nothing helps... sad


"turbos make torque and torque makes fun"

Offline

#13 2011-12-13 22:05:03

kowloonboy
#! Junkie
Registered: 2011-10-13
Posts: 443

Re: [Solved] Statler r20111125 cannot shutdown

I had the same problem before, so I made a direct fix, by putting this in my menu.xml

<separator/>
        <item label="Reboot">
            <action name="Execute">
                <execute>terminator --command=&quot;sudo shutdown -r now&quot;</execute>
            </action>
        </item>
        <item label="Exit">
            <action name="Execute">
                <execute>terminator --command=&quot;sudo shutdown -h now&quot;</execute>
            </action>
        </item>

"To me, the extraordinary aspect of martial arts lies in its simplicity. The easy way is also the right way, and martial arts is nothing at all special; the closer to the true way of martial arts, the less wastage of expression there is." - Bruce Lee

Offline

#14 2011-12-14 20:14:48

tmillic
#! CrunchBanger
From: Fayetteville - Tucson
Registered: 2011-04-25
Posts: 217

Re: [Solved] Statler r20111125 cannot shutdown

I had the same problem if I were at home where a network drive is mounted via fstab entries. Using the umount command before shutting down worked.

Offline

#15 2011-12-14 20:59:30

vrbst
New Member
From: Hungary
Registered: 2011-12-08
Posts: 8

Re: [Solved] Statler r20111125 cannot shutdown

I had the same problem if I were at home where a network drive is mounted via fstab entries. Using the umount command before shutting down worked.

Scored! smile I have a mounted network drive too. When i unmount it, the machine will power off without any problem! Thank you!

Edit:
My solution, avoid type root pass to shutdown or reboot:

I've modified the /usr/bin/cb-exit:

os.system("umount ~/server") #edit the path to your mounting point
os.system("dbus-send --print-reply --system --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Reboot")
.
.
.
os.system("umount ~/server") #edit the path to your mounting point
os.system("dbus-send --print-reply --system --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown")

Last edited by vrbst (2011-12-14 21:59:31)


"turbos make torque and torque makes fun"

Offline

#16 2011-12-14 23:19:02

tmillic
#! CrunchBanger
From: Fayetteville - Tucson
Registered: 2011-04-25
Posts: 217

Re: [Solved] Statler r20111125 cannot shutdown

Excellent. That's an even better solution you have. I'll put the script in sometime soon too.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo