Linux - HardwareThis 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.
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.
I'm using the poweroff command to shut down slackware but it stops the operating system and the IDE hdds without switching off the hardware. What should I do to make it to switch it off without pressing the power button ?
And one more question how can I set up the dpms in order to switch the monitor off in suspend(or any dpms) mode instead of simply showing blank black screen.
These features are supported on my hardware because Windows can do all of them.
Check to see if your using apm or acpi, then as root modprobe apm or acpi, whichever one your using and try shutting down.If that works put it in your /etc/modules (I think that's what slack uses, I'm not in my slack box right now) and it will start up when you start your machine.
If that doesn't work look in your kernel config file to see if it's enabled if not you'll have to recompile it in.
I found that I have apm installed. After typing apm the answer was no support for apm in the kernel. Then i used modprobe apm and after typing apm it answers AC-online so it seems to work. Now the poweroff command tries tries to switch down the power supply but instead it causes segmentation fault and hangs.What have i mistaken?
The kernel returns normal information displayed at poweroff and after "flushing hda, hdb" it prints error messages instead of "power down". The message tells about segmentation fault and gives the status of the CPU registers and tells that there is incorrect value in the ESP. I can guess it is a stack related problem but I can't post the messages because it is the last thing the kernel does before halting and the messages are too long for handwriting. Even if I do there is a great chance for mistakes.
I'm not so sure. How to determine this ? Maybe I should try with acpi but I don't have any acpi modules installed so what should I install ? Excuse me for asking stupid questions, but i'm still newbie.
To poweroff monitor... modprobe apm if you use apm or enable acpi then edit your XF86Config... under ... this is mine...
# Any number of graphics device sections may be present
Section "Device"
Identifier "VESA Framebuffer"
Driver "ati"
Option "DPMS" <------ Put that option in.... restart X and hopefully it should work...
#VideoRam 4096
# Insert Clocks lines here if appropriate
vendorname "Generic"
boardname "ati"
Yeah I've already done it and it works. It doesn't require apm or acpi - just after adding the option dpms it worked. The problem now is that poweroff always exits with segmentation fault error when i turn on apm.
Originally posted by iZvi Yeah I've already done it and it works. It doesn't require apm or acpi - just after adding the option dpms it worked. The problem now is that poweroff always exits with segmentation fault error when i turn on apm.
Upgrading to Kernel 2.6.x fixed all of this for me, didn't need to do anything for acpi or apm, it just worked.
With any kernel, including 2.6.7 the poweroff allways ends with segmentation fault and it can never shut down the computer. This should be related to the apm which is enabled in the kernel. If apm doesn't work can acpi do the job and how?
I'm waiting for an answer to this one too. It's silly for me to reboot into Windows just so i can turn off the computer when we get thunderstorms (which is every day around 4!)
Oh, duh, I am just so used to windows doing everything for me that has to be my excuse!
Shutdown, and then push the black button to turn off the power!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.