SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello all; I have 2 systems I use most of the time; One is a pc, the other a laptop.
The PC is configured by myself, and works almost flawlessly. For this system I have a simple question:
The PC has 2 hard disks. Using LVM, I have both in the same volumegroup, but with a few logical volumes (1 for system, 1 for /home and one for swap) They're all big enough. (Size doesn't matter in this regard). The question I have is this: does having swap in logical volume prevent me from putting the machine to sleep or hibernate, or is it having /boot in there as well that prevents this? If it's neither: any suggestions why this machine can only power off and not sleep / suspend?
The other machine is a laptop. For this one I have 2 questions:
1: when I unplug the power adapter, the machine keeps running fine and as intended. However, when I plug the power back in, the screen goes to "least bright" and seems to go to powersafe. No matter what I do, these settings keep being put there. A bug in KDE?
2: When this machine goes in any form of sleep / hibernate / suspend, it does so nicely. It is back up and running in seconds, which is nice. But... sound is completely gone and I have to reboot to hear anything, which is not so nice. Any clues how this can be resolved?
Both systems run Slackware 13.1 x86_64; The PC with kernel 2.6.35 instead of the 2.6.33
Now I am on my pc, and performed the hibernate and sleep options; ran dmesg prior and after the suspend. Nothing at all is added there. Checked /var/log/syslog: no changes either, nor in /var/log/debug or /var/log/messages.
It seems as if the entire command either is not performed at all or is rejected...
Hmm... could it be I am not loading a kernel module :-o
Your problem at laptop might be pci/usb problem. I am not sure about that.
About your pc, try running this as root at console. pm-suspend. And it might be very well it is related to some driver on your system that breaks your suspand. (My usb keyord sometimes cause it some, time does not. NVdia AVG driver known to break it etc.).
hmm; nice one. pm-suspend works on the pc. nice one! Even sound works again.
so, it actually appears to be a rights issue; Going to check out more on that.
Thought of that; made my default user member of the group power. After a "su -" I tried to perform the same commands on the prompt (as the X session would only work after a log out / log in); The prompt commands would not work (gave the reply that I have to be root); This evening I will try and see if the group power is indeed the solution. Checked this on my laptop, and noticed the normal user is indeed member of the powergroup, and with this user I can do suspend and hibernate, so I guess that is indeed the solution.
For group change to get effective, You need to log off and log in by the way.
That's only natural;
If you do an "su - <user>" you load the user as a new login, hence the group membership is loaded. You can check this with the command "id"; you'll see that your group membership is taken into account. However, I only tried it this way to test this out on the command-line; I expect that the kde buttons do something somewhat different than that.
That's only natural; Any X would require to log in again, as the session itself is still run in the user/group configuration which was effective at the point of login. That's why I did that sidestep and ran the pm-suspend as user in a new login environment, which would, at that moment, only be available after a new X login or in a shell.
Anyway, the strange thing is that even after a reboot the suspend and hibernate options are only available to the root user in a shell; I didn't log in root in X yet, so I am not 100% sure if the buttons don't work there either; which is very possible and would mean the buttons themselves are broken and perform an unsupported command ;-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.