You are not logged in.

#1 2012-02-19 10:26:07

snoopcatt
Member
From: Russia
Registered: 2012-02-19
Posts: 8

[2catalyst maint.] ati-powermode.sh

/etc/acpi/ati-powermode.sh uses deprecated /proc/acpi for detecting AC Adapter state, but default archlinux kernel compliled without /proc/acpi/.* support:

neko@gdetotut ~ $ uname -a
Linux gdetotut 3.2.6-2-ARCH #1 SMP PREEMPT Thu Feb 16 10:23:00 UTC 2012 i686 AMD Athlon(tm) II Dual-Core M320 AuthenticAMD GNU/Linux
neko@gdetotut ~ $ zcat /proc/config.gz |grep ACPI_PROCFS
# CONFIG_ACPI_PROCFS is not set
# CONFIG_ACPI_PROCFS_POWER is not set

please, change default detecting method in ati-powermode.sh - replace

grep -q off-line /proc/acpi/ac_adapter/*/state

to

acpi -a | grep -q off-line

on line 30.
thanks.

Offline

#2 2012-02-19 10:31:52

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [2catalyst maint.] ati-powermode.sh

You'd need the ACPI package for that.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2012-02-19 10:36:30

snoopcatt
Member
From: Russia
Registered: 2012-02-19
Posts: 8

Re: [2catalyst maint.] ati-powermode.sh

Yes, but you anywhere need acpi package for auto handling open/close lid and connect/disconnect AC adapter
And "old" method did'nt work without kernel recompilation:

gdetotut acpi # grep -q off-line /proc/acpi/ac_adapter/*/state
grep: /proc/acpi/ac_adapter/*/state: No such file or directory

Offline

Board footer

Powered by FluxBB