Instant powerdown tipForum: DSL Tips and Tricks Topic: Instant powerdown tip started by: eight7876565 Posted by eight7876565 on Aug. 24 2006,14:38
Running from the live cd, no swapfile, no drives mounted, I find it quite blissful to simply touch the power button on my computer-and, instantly, its off! No waiting around.........
Posted by kenboyles72 on Aug. 28 2006,03:08
Or, if you have a hdd install, you can do what I did. There's a bit more to it though, but fun. I created two icons for "Restart" and "Shutdown". With icon tool I created the two icons with the following commands:Shutdown- "exitcheck.sh shutdown" Restart- "exitcheck.sh reboot" I just chose some png file that was already listed. Then I made these two png files with transparent background. The pngs can be viewed here (link removed - no longer valid) , since I cant post png files here. Then I added these two to /home/dsl/.xtdesktop and modified the desktop icons to use those pngs. Now, all I have to do is just one click to either reboot or shutdown. If you want to do the same, you're more than welcome to use those pngs. ![]() Posted by fozner on Sep. 05 2006,06:20
I went a step further. In /etc/init.d are some scripts, namely knoppix-halt and knoppix-reboot. I was getting a segfault at shutdown during cardctl eject (old laptop is physically incapable of ejectting a card anyway) so I just commented that whole if...fi block out. While I was at it, I commented out most of the sleep statements and cut the value of usleep in mysleep() to 35000. Now it shuts down and reboots rather fast...
|