Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: Jason W on August 28, 2011, 10:20:22 PM

Title: ibam in 4.x error
Post by: Jason W on August 28, 2011, 10:20:22 PM
Ibam is not working with TC 4.x, seems to be some changes in where the kernel keeps relevant files, a snipped output of strace:

Code: [Select]
open("/proc/apm", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/proc/apm", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/proc/apm", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/proc/apm", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/proc/apm", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/proc/apm", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/proc/apm", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/proc/apm", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/proc/apm", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/proc/apm", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/proc/apm", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
mkdir("/home/tc/.ibam", 0755)           = -1 EEXIST (File exists)
open("/home/tc/.ibam/ibam.rc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
write(2, "No apm data available.", 22No apm data available.)  = 22
write(2, "\n", 1
)                       = 1
exit_group(0)                           = ?

Title: Re: ibam in 4.x error
Post by: bmarkus on August 29, 2011, 01:59:52 AM
Is APM enabled in the 4.x kernel?

Which command line switch was used?
Title: Re: ibam in 4.x error
Post by: Jason W on August 29, 2011, 05:04:32 AM
No flags were used, I always just used the command alone.

This patch that gentoo uses on it's package fixes the issue on my box:

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-laptop/ibam/files/ibam-0.5.2-acpi.patch?revision=1.1
Title: Re: ibam in 4.x error
Post by: bmarkus on August 29, 2011, 05:54:06 AM
I will take a look on the patch. Good to hear it is used!
Title: Re: ibam in 4.x error
Post by: curaga on August 29, 2011, 09:32:54 AM
Yes, there is APM, but newer boxes do not have it.
Title: Re: ibam in 4.x error
Post by: bmarkus on August 29, 2011, 12:56:00 PM
No flags were used, I always just used the command alone.

This patch that gentoo uses on it's package fixes the issue on my box:

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-laptop/ibam/files/ibam-0.5.2-acpi.patch?revision=1.1

Recompiled on TC4.0 apllying patch. It works fine. However binary is 470k after stripping resulting a 201k .tcz while TC 3.x build is only 29k.

:( :(
Title: Re: ibam in 4.x error
Post by: bmarkus on August 29, 2011, 01:44:07 PM
updated univarsal (TC 0.75) extension sent
Title: Re: ibam in 4.x error
Post by: Jason W on August 29, 2011, 06:51:10 PM
Thanks, I will upload them.