LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-08-2015, 06:35 AM   #1
pzognar
Member
 
Registered: Jun 2015
Distribution: Debian Jessie 64
Posts: 163
Blog Entries: 9

Rep: Reputation: Disabled
Slackare 14.1 xfce: no sleep


So I finally stopped procrastinating and installed Slackware 14.1 64 bit. I'm using xfce as the Window manager.

Problem: it won't sleep. In the Log out dialog, "Restart" "Shutdown" "Suspend" and "Hibernate" are all disabled. Only "log out" is available. Also, closing the lid fails to force the computer to sleep.

I cannot figure this one out. That's a new one I've never had in any other distro.

Note: Googling has not helped.
Note: I was running Debian just a few days ago: this problem did not happen. Also in the past have run Mint and slack 11 (or 12? it was a while ago) and gentoo.

p.s. Unsure if this is related or not but at random moments, I get a notification (little pupop window in the upper right of the screen, not in the Notification area of the toolbar) in xfce that says "Power Manager not authorized""

Last edited by pzognar; 08-08-2015 at 06:50 AM.
 
Old 08-08-2015, 07:13 AM   #2
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Did you create a simple (e. g. non-root) user?
 
Old 08-08-2015, 07:30 AM   #3
pzognar
Member
 
Registered: Jun 2015
Distribution: Debian Jessie 64
Posts: 163

Original Poster
Blog Entries: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by kikinovak View Post
Did you create a simple (e. g. non-root) user?
Yes, because I have read that it is not a good idea to run xorg as root.

Last edited by pzognar; 08-08-2015 at 07:32 AM.
 
Old 08-08-2015, 07:44 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,112

Rep: Reputation: 4184Reputation: 4184Reputation: 4184Reputation: 4184Reputation: 4184Reputation: 4184Reputation: 4184Reputation: 4184Reputation: 4184Reputation: 4184Reputation: 4184
you most probably haven't added your user to the additional groups needed to use a full-functional desktop, see

http://docs.slackware.com/slackbook:...ers_and_groups

you can change it also later: run as root

Code:
for i in audio cdrom floppy plugdev video power netdev lp scanner; do gpasswd -a youruser $i; done
then logout from youruser and login again.

Last edited by ponce; 08-08-2015 at 07:46 AM.
 
Old 08-08-2015, 08:13 AM   #5
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by ponce View Post
you most probably haven't added your user to the additional groups needed to use a full-functional desktop, see

http://docs.slackware.com/slackbook:...ers_and_groups

you can change it also later: run as root

Code:
for i in audio cdrom floppy plugdev video power netdev lp scanner; do gpasswd -a youruser $i; done
then logout from youruser and login again.
Or simply:

Code:
# usermod -a -G lp,floppy,audio,video,cdrom,plugdev,power youruser
Cheers,

Niki
 
Old 08-08-2015, 04:50 PM   #6
pzognar
Member
 
Registered: Jun 2015
Distribution: Debian Jessie 64
Posts: 163

Original Poster
Blog Entries: 9

Rep: Reputation: Disabled
Thank you for the replies.

I logged in as root. Ran xorg. The suspend. etc. buttons were active. Unexpected. Tried suspend. The computer slept. Fascinating.

Added my user to the mentioned groups that he was not already a member of. Logged out and then logged in as my user. Xorg is unchanged: still no buttons and still no sleep when when I close the lid.

Rebooted. Tried again. Same as before.

The fact that it works for root gives me the feeling that I am overlooking something.
 
Old 08-08-2015, 05:04 PM   #7
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Just on a hunch. Add another user (name him testuser), add the user to all the groups (read what adduser tells you). Then login to Xfce with that user and then see how that goes.

Cheers,

Niki
 
Old 08-09-2015, 06:46 AM   #8
pzognar
Member
 
Registered: Jun 2015
Distribution: Debian Jessie 64
Posts: 163

Original Poster
Blog Entries: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by kikinovak View Post
Just on a hunch. Add another user (name him testuser), add the user to all the groups (read what adduser tells you). Then login to Xfce with that user and then see how that goes.

Cheers,

Niki
Ok. added a new users. Used the up arrow to get the extra groups added (which is what I had originally done with my "real" user originally). He can sleep! That is unexpected. I am more confused.
 
Old 08-10-2015, 07:41 AM   #9
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by pzognar View Post
Ok. added a new users. Used the up arrow to get the extra groups added (which is what I had originally done with my "real" user originally). He can sleep! That is unexpected. I am more confused.
Can you verify what groups your normal user is included in with the groups command?
 
Old 08-10-2015, 10:03 AM   #10
pzognar
Member
 
Registered: Jun 2015
Distribution: Debian Jessie 64
Posts: 163

Original Poster
Blog Entries: 9

Rep: Reputation: Disabled
I think I stumbled onto the cause, and the solution, to my problem. Corrupt or oddly-set configuration files. To make a long story short, I logged my user out, reset things by removing most "." files (as root) then rebooted then logged in. After basic setting up (xfce) panels and stuff again, I clicked on that menu and ... sleep (suspend) and reboot and stuff are back.

Have rebooted at least twice since then and nothing has broken, so it looks like the problem has been solved. A few more days of regular activities within my desktop will make sure.

p.s.:
Quote:
$ groups
users lp floppy audio video cdrom plugdev power netdev scanner

Last edited by pzognar; 08-10-2015 at 10:04 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable sleep mode under Xfce cccc Linux - Desktop 7 08-23-2022 08:18 AM
Slackare 10,2 Login Manager dpsource Linux - Software 1 12-29-2006 10:31 AM
Searching for Server (BOOTP/DHCP) <sleep> <sleep> .. .. Eileen Linux - Networking 12 10-21-2005 01:14 AM
slackare amd64 port mardanian Slackware 1 01-04-2005 06:24 AM
slackare install help fibbi Linux - Software 7 09-07-2003 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration