Skip to contentSkip to conversation

/proc/acpi/ac_adapter/AC is missing after latest ACPI merge

DISCUSSION Ismail Dönmez 3 participants 5 messages Feb 12, 2007 – Feb 13, 2007 ACPI

lore
Share & tools
lore
#0 lore raw

Hi all,

After latest ACPI merge /proc/acpi/ac_adapter/AC has gone fishing :

[~]> ls -al /proc/acpi/ac_adapter/
dr-xr-xr-x 2 root root 0 Şub 12 20:44 ADP1

[~]> ls -al /proc/acpi/ac_adapter/ADP1
-r--r--r-- 1 root root 0 Şub 12 20:44 state

This at least breaks HAL which thinks AC is always plugged in, is this change intentional?

Regards,
ismail
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

reviewer
#1 lore raw
Quoted 4 lines · Ismail Dönmez

Hi all,

After latest ACPI merge /proc/acpi/ac_adapter/AC has gone fishing :

Quoted 8 lines

[~]> ls -al /proc/acpi/ac_adapter/
dr-xr-xr-x 2 root root 0 Şub 12 20:44 ADP1

[~]> ls -al /proc/acpi/ac_adapter/ADP1
-r--r--r-- 1 root root 0 Şub 12 20:44 state

This at least breaks HAL which thinks AC is always plugged in, is this change intentional?

no change intended here.

grep CONFIG_ACPI_AC .config

lsmod |grep ac

cheers,
-Len
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 11 lines · On Tuesday 13 February 2007 07:23:15 Len Brown wrote:
Quoted 10 lines · Ismail Dönmez

Hi all,

After latest ACPI merge /proc/acpi/ac_adapter/AC has gone fishing :

[~]> ls -al /proc/acpi/ac_adapter/
dr-xr-xr-x 2 root root 0 Şub 12 20:44 ADP1

[~]> ls -al /proc/acpi/ac_adapter/ADP1
-r--r--r-- 1 root root 0 Şub 12 20:44 state

Quoted 8 lines
Quoted 2 lines

This at least breaks HAL which thinks AC is always plugged in, is this change intentional?

no change intended here.

grep CONFIG_ACPI_AC .config

lsmod |grep ac

[~/GIT/linux-2.6]> grep CONFIG_ACPI_AC .config
CONFIG_ACPI_AC=y

[~/GIT/linux-2.6]> lsmod|grep ac
af_packet 19976 2
cpufreq_userspace 3732 0

But it looks like older kernels had only /proc/acpi/ac_adapter/ADP1 and it worked fine with HAL, maybe something in sysfs changed? Also for some reason hal-addon-acpi doesn't seem to start at all, which might be the problem.

Regards,
ismail
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to Len Brown
Quoted 8 lines · On Tuesday 13 February 2007 07:23:15 Len Brown wrote:
Quoted 7 lines · Ismail Dönmez

Hi all,

After latest ACPI merge /proc/acpi/ac_adapter/AC has gone fishing :

[~]> ls -al /proc/acpi/ac_adapter/
dr-xr-xr-x 2 root root 0 Şub 12 20:44 ADP1

Quoted 7 lines
Quoted 5 lines

[~]> ls -al /proc/acpi/ac_adapter/ADP1
-r--r--r-- 1 root root 0 Şub 12 20:44 state

This at least breaks HAL which thinks AC is always plugged in, is this change intentional?

no change intended here.

It was indeed a sysfs problem which commit
c2b6705b75d9c7aff98a4602a32230639e10891c fixed.

Regards,
ismail

-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
In reply to Ismail Dönmez
Quoted 4 lines · Ismail Dönmez

Hi all,

After latest ACPI merge /proc/acpi/ac_adapter/AC has gone fishing :

Quoted 8 lines

[~]> ls -al /proc/acpi/ac_adapter/
dr-xr-xr-x 2 root root 0 Şub 12 20:44 ADP1

[~]> ls -al /proc/acpi/ac_adapter/ADP1
-r--r--r-- 1 root root 0 Şub 12 20:44 state

This at least breaks HAL which thinks AC is always plugged in, is this change intentional?

Could you please clarify what is incorrect - ADP1 name ...? Why does HAL think so?

Thanks.
Vladimir.