You are not logged in.

#1 2009-03-11 21:38:31

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

[SOLVED] xfce unclean shutdown.

Hi, all.

Just finished an install.

When I hit the halt or shutdown option, I get a message that mentions

HAL-powermanagement freedesktop reboot no

or something similar.

I'm guessing that something is not set-up correctly.  Does anyone know how I can address this?

Many thanks,

Chris.

Last edited by chris_debian (2009-03-18 12:08:26)


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#2 2009-03-11 21:49:17

shaded
Member
Registered: 2005-05-08
Posts: 2

Re: [SOLVED] xfce unclean shutdown.

To get my shutdown/restart working in XFCE & GNOME I had to start my desktop environment like this:

exec ck-launch-session startxfce4

in my .xinitrc.

I can't be sure since you didn't give the exact error but give it a try.

Offline

#3 2009-03-12 12:08:49

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: [SOLVED] xfce unclean shutdown.

I use the SLIM login manager and it just says

# 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

Does that help?

Thanks,

Chris.


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#4 2009-03-12 14:09:11

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: [SOLVED] xfce unclean shutdown.

You are quoting a section of the /etc/slim.conf file but the slim login manager looks to your /home/username/.xinitrc file to know what wm/de you want to launch.  As shaded suggested, try putting

exec ck-launch-session startxfce4

in your .xinitrc file.

Last edited by bgc1954 (2009-03-12 14:10:19)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#5 2009-03-12 16:49:34

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: [SOLVED] xfce unclean shutdown.

Appreciate that.

Is there anyway I can make it system wide instead of doing it on a per user basis?

Cheers,

Chris.


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#6 2009-03-12 17:26:58

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: [SOLVED] xfce unclean shutdown.

I believe you can point your /etc/slim.conf startup line to /etc/X11/xinit/xinitrc and put your startxfce4 command in there.  Can't say for sure as I'm at my laptop and I don't use a login manager on it.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#7 2009-03-13 17:28:49

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: [SOLVED] xfce unclean shutdown.

I think the answer lies in editing this file:

/usr/share/PolicyKit/policy/org.freedesktop.hal.power-management.policy

Chris.


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#8 2009-03-13 19:53:27

EVRAMP
Member
From: Czech Republic
Registered: 2008-10-03
Posts: 173
Website

Re: [SOLVED] xfce unclean shutdown.

chris_debian wrote:

I think the answer lies in editing this file:

/usr/share/PolicyKit/policy/org.freedesktop.hal.power-management.policy

Chris.

Be aware, that updating hal package will overwrite this file. If you want to keep edited config files, it is suggested to put them into /etc folder (/etc/hal/fdi/policy/ in case of this file).

But to your question -> system-wide setting of .xinitrc file is in /etc/skel/.xinitrc. In /etc/skel folder you will find all files, that new user on your system will have in their home directory (files from /etc/skel are copied to home directory after adding user). For existing users you will have to change files in their home dir.

Last edited by EVRAMP (2009-03-13 19:55:20)

Offline

#9 2009-03-13 20:54:53

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: [SOLVED] xfce unclean shutdown.

Thanks for your comments.  As I've never needed to worry about this subject before, do you know whether it is essential that I have these files to do with freedesktop policy?

Thanks,

Chris.


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#10 2009-03-17 16:25:01

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: [SOLVED] xfce unclean shutdown.

Do we know whether this should be filed as a bug?

Chris.


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#11 2009-03-17 17:01:40

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: [SOLVED] xfce unclean shutdown.

IMO this is not a bug, The same shutdown issues had been discussed and solutions are available.

Offline

#12 2009-03-17 17:31:35

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: [SOLVED] xfce unclean shutdown.

I understand what you are saying, but on a default installation of the package, if something has to be fixed, then surely it is broken. i wouldn't expect to modify my xfce set-up so that it opens graciously, so not sure why I'd have to so that it closes graciously.


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#13 2009-03-18 12:07:34

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: [SOLVED] xfce unclean shutdown.

bgc1954 wrote:

As shaded suggested, try putting

exec ck-launch-session startxfce4

in your .xinitrc file.

Just got back to my PC after a few days away.  I've tried this and it has fixed the problem.

Many thanks for everyone's help.

Cheers,

Chris.

Last edited by chris_debian (2009-03-18 12:08:01)


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

Board footer

Powered by FluxBB