Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: How to restore and start acpid at boot, ACPI laptop power management< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: July 28 2006,13:12 QUOTE

I've been playing with ACPI and the acpid daemon to get the suspend states and so on working.

In order to avoid using "apt-get install acpid" each time I startup, how do you backup/restore and run acpid at boot on a USB installtion?

I tried backup/restore of /etc/init.d/acpid and I put the line "/etc/init.d/acpid start" in bootlocal.sh but this doesn't seem to work.

Any ideas?
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: July 28 2006,15:24 QUOTE

Several ideas come to mind...

1, Since acpid is a single simple deb package, you could save this deb package (/var/cache/apt/archives/acpid_1.0.1-3_i386.deb)  just like other MyDSL extensions. And then in /opt/bootlocal.sh add the command dpkg -i /path_to_where_you_saved/acpid_1.0.1-3_i386.deb


2. Or you could do a dpkg -L acpid
Then noting which files you need to add to your .filetool.lst

3. Or you could ...
a)  dpkg -L acpid > acpid.lst
b) Then edit acpid.lst removing the lines with  the docs and man stuff to keep it small
c) tar -T acpid.lst --no-recursion -zcvf acpid.dsl
Now you have made a  simple (no menu, no icon) .dsl out of it. Save this with you other .dsl extensions.
Back to top
Profile PM WEB 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: July 29 2006,11:38 QUOTE

I tried option 3, made acpid.dsl and it works [beams with pride] - thanks.

Now onto cpufreqd (Intel Speedstep daemon) which is not a single, simple deb package...

BTW logically, given that DSL 3.0.1 loads the ACPI modules ac, battery, button, fan, processor and thermal at boot, shouldn't it include the acpid daemon and give the option to start it at boot? In the same vein, maybe the next release of DSL could attempt to detect the laptop model and load the appropriate ACPI module - i8k (Dell), asus, toshiba, etc.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: July 30 2006,17:50 QUOTE

Quote
Now onto cpufreqd (Intel Speedstep daemon) which is not a single, simple deb package...


If multiple deb files are involved then modify the procedure with steps a.1 .. a.n


a.1) dpkg -L another_deb > mynew.lst
...
a.n) dpkg -L another_deb_n >> mydsl.lst

b) Then edit mydsl.lst removing the lines with  the docs and man stuff to keep it small
c) tar -T mydsl.lst --no-recursion -zcvf mdsl.dsl
Now you have made a  simple (no menu, no icon) .dsl out of multiple installed deb packages.  Save this with you other .dsl extensions.

The only difference is the ">>" option to concatenate all the installed deb files into a single .lst file
Back to top
Profile PM WEB 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Sep. 07 2006,12:30 QUOTE

Apologies for the time gap but it took me a while to get round to this...

I tried the above procedure for gcc-2.95 (required to "make dep" after patching the 2.4.26 kernel sources).

By looking at a screen dump after "apt-get install gcc-2.95" when I had an Internet connection, I could see that the following files are required, which I downloaded from debian.org:

binutils_2.12.90.0.1-4_i386.deb
cpp-2.95_2.95.4-11woody1_i386.deb
gcc-2.95_2.95.4-11woody1_i386.deb
gcc_2.95.4-14_i386.deb

After rebooting, and without an Internet connection, I installed dsl-dpkg.dsl and tried "dpkg -L binutils_2.12.90.0.1-4_i386.deb > mynew.lst" but this gave an error that binutils was not installed.

Following this I tried "sudo dpkg -i binutils_2.12.90.0.1-4_i386.deb" which worked but "dpkg -L binutils_2.12.90.0.1-4_i386.deb > mynew.lst" Still gave the error message that binutils was not installed.

Thinking that maybe all of the debs would need to be installed first, I did "sudo dpkg -i cpp-2.95_2.95.4-11woody1_i386.deb" which worked but "sudo dpkg -i gcc-2.95_2.95.4-11woody1_i386.deb" gives an error that it depends on gcc and "sudo dpkg -i gcc_2.95.4-14_i386.deb" gives an error that it depends on gcc-2.95...

I'm a little stuck here - does anybody have any ideas?
Back to top
Profile PM 
6 replies since July 28 2006,13:12 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: How to restore and start acpid at boot

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code