LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-09-2016, 12:41 PM   #1
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 620

Rep: Reputation: 168Reputation: 168
dmesg warning about ACPI_PROCFS_POWER for kernel-generic-4.4.4


I noticed this in my dmesg. Dunno whether it is crucial, but maybe something to change in future configs?

Code:
bash-4.3# dmesg | grep "procfs"
[    7.541400] ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
[    7.580077] ACPI: Deprecated procfs I/F for battery is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared

bash-4.3# tail -n 1000 /var/log/syslog | grep "procfs"
Mar  8 15:26:07 knotsUL kernel: [    7.395114] ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
Mar  8 15:26:07 knotsUL kernel: [    7.417477] ACPI: Deprecated procfs I/F for battery is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
Mar  8 21:01:42 knotsUL kernel: [    7.874882] ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
Mar  8 21:01:42 knotsUL kernel: [    8.110683] ACPI: Deprecated procfs I/F for battery is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
Mar  9 09:45:28 knotsUL kernel: [    7.541400] ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
Mar  9 09:45:28 knotsUL kernel: [    7.580077] ACPI: Deprecated procfs I/F for battery is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared


bash-4.3# cat /boot/config-generic-4.4.4 | grep "PROCFS_POWER"
CONFIG_ACPI_PROCFS_POWER=y
I am running slackware64-current on a laptop with an 8 core cpu:
Code:
vendor_id	: GenuineIntel
cpu family	: 6
model		: 58
model name	: Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
stepping	: 9
microcode	: 0x15
cpu MHz		: 1200.031
cache size	: 6144 KB
 
Old 03-10-2016, 01:10 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 & 7
Posts: 3,294

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
For my kernel:
Code:
 grep ACPI_PROCFS_POWER /boot/config-`uname -r`
# CONFIG_ACPI_PROCFS_POWER is not set
 
Old 03-10-2016, 01:26 PM   #3
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 620

Original Poster
Rep: Reputation: 168Reputation: 168
Quote:
Originally Posted by smallpond View Post
For my kernel:
which is???

As mentioned in the thread title the =y setting is present in the config for the generic kernel shipped with slackware64-current....

Last edited by brobr; 03-10-2016 at 01:28 PM.
 
Old 03-10-2016, 02:36 PM   #4
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,879

Rep: Reputation: 6074Reputation: 6074Reputation: 6074Reputation: 6074Reputation: 6074Reputation: 6074Reputation: 6074Reputation: 6074Reputation: 6074Reputation: 6074Reputation: 6074
Quote:
Originally Posted by brobr View Post
I noticed this in my dmesg. Dunno whether it is crucial, but maybe something to change in future configs?

Code:
bash-4.3# dmesg | grep "procfs"
[    7.541400] ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
[    7.580077] ACPI: Deprecated procfs I/F for battery is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
Well, here's what the Kconfig has to say about this option:

Quote:
For backwards compatibility, this option allows
deprecated power /proc/acpi/ directories to exist, even when
they have been replaced by functions in /sys.
The deprecated directories (and their replacements) include:
/proc/acpi/battery/* (/sys/class/power_supply/*)
/proc/acpi/ac_adapter/* (sys/class/power_supply/*)
This option has no effect on /proc/acpi/ directories
and functions, which do not yet exist in /sys
This option, together with the proc directories, will be
deleted in the future.

Say N to delete power /proc/acpi/ directories that have moved to /sys/
Generally I tend to leave options like this enabled, figuring that backwards compatibility is probably good until such time as the kernel actually deletes the feature. Seems like the kernel is being a bit too noisy about it here, but otherwise it's a harmless (and possibly helpful) option.
 
3 members found this post helpful.
Old 03-10-2016, 04:48 PM   #5
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 620

Original Poster
Rep: Reputation: 168Reputation: 168
If I understand this correctly, info like this is becoming deprecated?
Quote:
bash-4.3# cat /proc/acpi/battery/BAT0/info
present: yes
design capacity: 5600 mAh
last full capacity: 3384 mAh
battery technology: rechargeable
design voltage: 11100 mV
design capacity warning: 560 mAh
design capacity low: 0 mAh
cycle count: 0
capacity granularity 1: 64 mAh
capacity granularity 2: 64 mAh
model number: BAT
serial number: 0001
battery type: LION
OEM info: NOTEBOOK
But I understand that !-)

And this appears more geared up for machine-digestion....
Quote:
bash-4.3# ls /sys/class/power_supply/BAT0/
alarm current_now present uevent
capacity cycle_count serial_number voltage_min_design
capacity_level device/ status voltage_now
charge_full manufacturer subsystem/
charge_full_design model_name technology
charge_now power/ type
bash-4.3# cat /sys/class/power_supply/BAT0/current_now
0
bash-4.3# cat /sys/class/power_supply/BAT0/charge_full
3384000
bash-4.3# cat /sys/class/power_supply/BAT0/present
1
bash-4.3# cat /sys/class/power_supply/BAT0/status
Full
bash-4.3# cat /sys/class/power_supply/BAT0/serial_number
0001
bash-4.3# cat /sys/class/power_supply/BAT0/technology
Li-ion
bash-4.3# cat /sys/class/power_supply/BAT0/type
Battery
bash-4.3# cat /sys/class/power_supply/BAT0/manufacturer
NOTEBOOK
bash-4.3# cat /sys/class/power_supply/BAT0/capacity_level
Full
Don't we love progress!-)

Thanks for the =y setting and the whole of slackware!
 
1 members found this post helpful.
Old 03-10-2016, 10:10 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,613

Rep: Reputation: 4362Reputation: 4362Reputation: 4362Reputation: 4362Reputation: 4362Reputation: 4362Reputation: 4362Reputation: 4362Reputation: 4362Reputation: 4362Reputation: 4362
I think the new change is intended to be exactly for machine-digestion. Most normal users don't need to browse through /proc/ or /sys/, but many programs rely on information in there. The new change makes it easier for other programs to gain needed information without needing to parse a single output with a multitude of information (this of all that sed/awk/sort/etc fun you may have had in the past with that).

That being said, until this option is completely removed from the kernel, it doesn't hurt anything to keep it enabled, so I'm also glad Pat has kept it in our kernels
 
Old 03-11-2016, 05:01 AM   #7
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,409
Blog Entries: 14

Rep: Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233
The option is not enabled when you do a make defconfig, but Linus doesn't like to break userspace so I can't see him yanking it out from under people completely. I guess making a little noise to encourage folks to disable it is their only approach for getting people to move on: short of giving them a nasty surprise one day!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] setting up initrd / generic kernel in Grub2...can't load generic Ubunoob001 Slackware 12 03-20-2015 07:32 AM
[SOLVED] Warning:/boot/System.map-2.6.32-37-generic has an incorrect kernelversion ubuntu10.04 jsaravana87 Linux - Server 4 06-11-2012 04:23 AM
How do I scan dmesg contonusly for warning or fatal messages Glenn D. Linux - Software 2 09-06-2010 01:15 AM
[SOLVED] Problem booting generic kernel and another problem with fluxbox - libpng warning Switch7 Slackware 17 11-14-2009 03:36 AM
PCI Warning on dmesg crud Slackware 1 06-07-2005 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration