Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403523 - sys-power/pm-utils-1.4.1-r2: power.d/xfs_buffer writes wrong/invalid value(s) in battery mode
Summary: sys-power/pm-utils-1.4.1-r2: power.d/xfs_buffer writes wrong/invalid value(s)...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-14 06:37 UTC by Matthias K.
Modified: 2012-02-14 18:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias K. 2012-02-14 06:37:00 UTC
<install path>/lib/pm-utils/power.d/xfs_buffer line 62: in xfs_battery() function uses the following line:
  write_values "$XFS_AGE_BUFFER" "$XFS_BUFD" "$XFS_SYNCD"
for battery mode.

This sets a very low value for xfssyncd_centisecs and fail with "invalid argument" when writing to xfsbufd_centisecs since it has a very low Max. Value and syncd value is in general much higher then 3000

It should (probably) be 
  write_values "$XFS_AGE_BUFFER" "$XFS_SYNCD" "$XFS_BUFD"


Reproducible: Always

Steps to Reproduce:
1. implies xfs kernel support, procfs and so on -> proc/sys/fs/xfs/*
2. disconnect ac
Actual Results:  
xfssyncd_centisecs is very low, xfsbufd_centisecs is unmodified

Expected Results:  
correct xfssyncd_centisecs and xfsbufd_centisecs values