sysfs settings not applied at boot

Bug #955918 reported by Gonçalo Marrafa
50
This bug affects 11 people
Affects Status Importance Assigned to Milestone
sysfsutils (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I added some sysfs tweaks to /etc/sysfs.conf and those changes are not applied when the computer boots. If i start the service manually everything works ok.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: sysfsutils 2.1.0+repack-1
ProcVersionSignature: Ubuntu 3.0.0-17.30-generic-pae 3.0.22
Uname: Linux 3.0.0-17-generic-pae i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Thu Mar 15 11:35:59 2012
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
SourcePackage: sysfsutils
UpgradeStatus: Upgraded to oneiric on 2011-10-14 (153 days ago)
mtime.conffile..etc.sysfs.conf: 2012-03-09T17:24:51.116117

Revision history for this message
Gonçalo Marrafa (goncalo-marrafa) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sysfsutils (Ubuntu):
status: New → Confirmed
Revision history for this message
Chris Rowson (christopherrowson) wrote :

Same problem here. Set the following in my /etc/sysfs.conf file

devices/system/cpu/cpufreq/ondemand/up_threshold = 40

Works if I issue 'service sysfsutils start' - doesn't work at startup.

Running Ubuntu 12.10 - Gnome Classic.

Revision history for this message
bill williams (hilaryfarnsworth) wrote :

12.04 too.

Revision history for this message
Alana (alana012) wrote :

For the case with cpufreq on 12.04.3 using the 3.8 kernel LTS enablement stack, I've found that the /sys/devices/system/cpu/cpufreq/ondemand folder doesn't exist on boot. It seems to appear some time later. Maybe 30 - 60 s after boot. I have resorted to putting the below in /etc/rc.local and not use sysfsutils:

until [ -d "/sys/devices/system/cpu/cpufreq/ondemand" ]; do
    sleep 1
done

echo -n "25" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo -n "10" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor

Revision history for this message
rdratlos (rdratlos) wrote :

I can confirm that sysfs comes too late in Ubuntu 12.04.3. I need access to folder /sys/kernel/config to mount configfs. During boot Ubuntu prints an error notification that the configfs mount in /etc/fstab cannot be mounted due to missing destination directory. I have to manually skip the mount process by pressing "S".

After first login /sys is available, but this is to late.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.