WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ibam in 4.x error  (Read 3153 times)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
ibam in 4.x error
« 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)                           = ?


Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: ibam in 4.x error
« Reply #1 on: August 29, 2011, 01:59:52 AM »
Is APM enabled in the 4.x kernel?

Which command line switch was used?
« Last Edit: August 29, 2011, 03:02:52 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: ibam in 4.x error
« Reply #2 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

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: ibam in 4.x error
« Reply #3 on: August 29, 2011, 05:54:06 AM »
I will take a look on the patch. Good to hear it is used!
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11046
Re: ibam in 4.x error
« Reply #4 on: August 29, 2011, 09:32:54 AM »
Yes, there is APM, but newer boxes do not have it.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: ibam in 4.x error
« Reply #5 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.

:( :(
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: ibam in 4.x error
« Reply #6 on: August 29, 2011, 01:44:07 PM »
updated univarsal (TC 0.75) extension sent
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: ibam in 4.x error
« Reply #7 on: August 29, 2011, 06:51:10 PM »
Thanks, I will upload them.