Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
06-02-2003, 11:19 PM
|
#1
|
Member
Registered: Mar 2002
Location: Green Bay,Wisconsin US
Distribution: PCLinuxOS .9
Posts: 53
Rep:
|
Putting my computer to sleep
I have a question about how to put my computer on standby/sleep mode.
Before posting I searched this forum and two others as well as checking on Google. All the info I found seems to be geared to laptops, too difficult to understand, or is outdated. I also checked the man pages but it seems to only refer to how to sleep just one process at a time.
I'm getting to know quite a bit about my hardware so if I can give any more info I'll do my best.
Thank in advance for any and all help.
|
|
|
06-03-2003, 04:27 AM
|
#2
|
Member
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707
Rep:
|
In KDE I do this:
su
chmod u+s /usr/sbin/apmd
exit
kcontrol
Then I can adjust the sleep/standby settings in Power Control -> Laptop Battery -> Power Control
|
|
|
06-03-2003, 12:19 PM
|
#3
|
Member
Registered: Mar 2002
Location: Green Bay,Wisconsin US
Distribution: PCLinuxOS .9
Posts: 53
Original Poster
Rep:
|
Thanks for the advice, it's sounds very simple.
I actually have a desktop computer though, would your tip work for that too? I really hope so because this would be easiest method I've come across.
Thank you
|
|
|
06-03-2003, 04:52 PM
|
#4
|
Member
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707
Rep:
|
Quote:
Originally posted by computergirl
I actually have a desktop computer though, would your tip work for that too?
|
Um, my computer is on my desktop too.
You have to open a terminal and set "suid root" for the "/usr/sbin/apmd" program, as mentioned above. That allows you to use the gui from the KDE Control Center (kcontrol) to make your power settings as mentioned above.
|
|
|
06-03-2003, 11:32 PM
|
#5
|
Member
Registered: Mar 2002
Location: Green Bay,Wisconsin US
Distribution: PCLinuxOS .9
Posts: 53
Original Poster
Rep:
|
I did what you said I typed su to become root then typed in the command chmod u+s /usr/sbin/apmd and hit enter, nothing went wrong, I then typed exit to get out of super user mode and typed kcontrol to launch the kde control center but when I looked at the power control options it was still only giving me the option to adjust my monitor's power settings. Nothing else.
I'm sorry to be taking up your time, and I'm probably just missing something obvious, but if you could give me some more help I'd really appreciate it.
Thank you again.
|
|
|
06-04-2003, 01:01 AM
|
#6
|
Member
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707
Rep:
|
Maybe you can install a module for us that enables that feature? I don't know.
rpm -qf `which kcontrol`
kdebase-3.1-13
|
|
|
06-04-2003, 02:44 AM
|
#7
|
Member
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445
Rep:
|
KDE Control Centre->Power Control->Laptop Battery, Power Control Tab says to setuid /usr/bin/apm if you want to be able to choose 'suspend' or 'standby' in the dialog. (Using Mandrake 9.1, same as computergirl). Note the difference: apm, not apmd.
|
|
|
06-04-2003, 03:00 AM
|
#8
|
Member
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445
Rep:
|
OK, just tried it myself - works a charm. After changing /usr/bin/apm, come back to KDE Control Center, the option is immediately available (ie, no need to log out & back in).
For the newbie (like me), perhaps it's easier to open a File Manager in Super User Mode (K->Terminals->Konsole - Super User Mode) enter the root password; navigate to /usr/bin/apm, right-click on the file, select Properties, go to Permissions tab, and put a check in the Set UID box. Click OK.
|
|
|
06-04-2003, 12:46 PM
|
#9
|
Member
Registered: Mar 2002
Location: Green Bay,Wisconsin US
Distribution: PCLinuxOS .9
Posts: 53
Original Poster
Rep:
|
Thank you to both of you for trying to help but I stiil haven't been able to get the option to show up in the kde control panel. I'm almost wondering if I need to have something installed or enabled that I don't have currently.
|
|
|
06-04-2003, 01:28 PM
|
#10
|
Member
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707
Rep:
|
I just did a search on google for apmd and kcontrol. I found a package called "kdeutils" that seems to have what you need.:
klaptopdaemon: battery and power management, including KControl plugins
rpm -q kdeutils
kdeutils-3.1-4
You can probably get the rpm for kdeutils from your mandrake install cd's, or download it
|
|
|
06-04-2003, 09:45 PM
|
#11
|
Member
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445
Rep:
|
Is apmd running? Open Mandrake Control Center->System->DrakXServices and look at the apmd entry to see if it is running and whether it is loaded at boot. Make sure 'at boot' is checked and click on 'Start' if it is not running.
|
|
|
06-04-2003, 11:06 PM
|
#12
|
Member
Registered: Mar 2002
Location: Green Bay,Wisconsin US
Distribution: PCLinuxOS .9
Posts: 53
Original Poster
Rep:
|
I installed kdeutils and that worked to get me the option in the kde control panel but when I opened up the laptop battery module it said
"Your computer doesn't have the Linux APM (Advanced Power Management) or ACPI software installed, or doesn't have the APM kernel drivers installed - check out the Linux Laptop-HOWTO document for information on how to install APM."
So ofcourse I checked out the Linux Laptop How To and I took the chance and installed the apmd software listed. If nothing else at least I now have had the experience of installing something from source. When I installed it everything seemed to go alright but the laptop battery control module is still saying I don't have the right things installed.
Re: finding out if ampd is running, that was one of the first things I checked on. It seems it is checked to start at boot but was not running when I looked so I clicked on start to start it and nothing happened.
Thank you again though
|
|
|
06-04-2003, 11:59 PM
|
#13
|
Member
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707
Rep:
|
Quote:
Originally posted by computergirl
laptop battery control module is still saying I don't have the right things installed.
|
Your probably better off installing the apm stuff as an rpm rather than from source. That may be what the "laptop battery control module" is looking for.
Quote:
Originally posted by computergirl
finding out if ampd is running, that was one of the first things I checked on. It seems it is checked to start at boot but was not running when I looked so I clicked on start to start it and nothing happened.
|
On my Redhat system I could start that service by one of two ways:
/sbin/service apmd start
or
/etc/rc.d/init.d/apmd start
It's probably similar on your system.
Last edited by zmedico; 06-05-2003 at 12:15 AM.
|
|
|
06-05-2003, 01:02 AM
|
#14
|
Member
Registered: Mar 2002
Location: Green Bay,Wisconsin US
Distribution: PCLinuxOS .9
Posts: 53
Original Poster
Rep:
|
ok I got rid of the source apmd turns out it hadn't installed properly anyway and I tried the commands you gave me
I tried:
/sbin/service apmd start
and it said it couldn't find the apmd service
I then tried:
/etc/rc.d/init.d/apmd start
and nothing at all happened
I also did something I should have done MUCH sooner I checked to make sure I had apmd installed (If you've lost all patience with me at this point I understand ) and I not only have that installed but I also have acpi. So clearly something is wrong with the apmd service and I just can't figure out what it is.
|
|
|
06-05-2003, 01:08 AM
|
#15
|
Member
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707
Rep:
|
Maybe you've messed up your apmd installation. You can verify it using "rpm --verify apmd" and if it's bad you should install it again.
To find out where the script is that starts the service, you could do "rpm -ql apmd" It's probably somewhere under /etc
Last edited by zmedico; 06-05-2003 at 01:48 AM.
|
|
|
All times are GMT -5. The time now is 12:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|