<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - tmpfiles fails to write to /sys/kernel/debug/vgaswitcheroo/switch on boot"
href="https://bugs.freedesktop.org/show_bug.cgi?id=55902">55902</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>tmpfiles fails to write to /sys/kernel/debug/vgaswitcheroo/switch on boot
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>Daniel.Oertwig@googlemail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr></table>
<p>
<div>
<pre>I have an /etc/tmpfiles.d/vgaswitcheroo.conf file with the following content:
w /sys/kernel/debug/vgaswitcheroo/switch - - - - OFF
This is intended as a replacement for the old
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
from rc.local
However, a cat /sys/kernel/debug/vgaswitcheroo/switch after boot reveals that
the "OFF" has not been written. (This results in both graphic cards being
powered, which is not much fun in terms of power consumption)
But when I issue
systemd-tmpfiles --create /etc/tmpfiles.d/vgaswitcheroo.conf
manually, everything works as expected.
I get absolutely no error / warning during boot (checked using journalctl) and
/sys/kernel/debug gets (according to journalctl) mounted before anything
corresponding to tmpfiles is executed.
Changing the contents of the file to
f /sys/kernel/debug/vgaswitcheroo/switch - - - - OFF
results in an error at boot saying "no such file or directory"
Additional information:
[daniel@camino ~]$ systemctl --version
systemd 194
arch
+PAM -LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ
[daniel@camino ~]$ uname -a
Linux camino 3.5.6-1-ARCH #1 SMP PREEMPT Sun Oct 7 19:30:49 CEST 2012 x86_64
GNU/Linux
dump of journalctl:
Oct 12 08:21:15 camino systemd[1]: Mounted Debug File System.
Oct 12 08:21:15 camino systemd[1]: Started Remount Root and Kernel File
Systems.
Oct 12 08:21:15 camino systemd[1]: Starting Local File Systems (Pre).
Oct 12 08:21:15 camino systemd[1]: Reached target Local File Systems (Pre).
Oct 12 08:21:15 camino systemd[1]: Mounting /tmp...
Oct 12 08:21:15 camino systemd-vconsole-setup[143]: Cannot open font file
latarcyrheb-sun16
Oct 12 08:21:15 camino systemd[1]: Starting Load Random Seed...
Oct 12 08:21:15 camino systemd[1]: Mounted /tmp.
Oct 12 08:21:15 camino systemd[1]: Starting Local File Systems.
Oct 12 08:21:15 camino systemd[1]: Reached target Local File Systems.
Oct 12 08:21:15 camino systemd-modules-load[141]: Inserted module
'acpi_cpufreq'
Oct 12 08:21:15 camino systemd[1]: Starting Recreate Volatile Files and
Directories...
Oct 12 08:21:15 camino systemd[1]: Starting Trigger Flushing of Journal to
Persistent Storage...
Oct 12 08:21:15 camino systemd[1]: Started Load Random Seed.
Oct 12 08:21:15 camino kernel: fuse init (API version 7.19)
Oct 12 08:21:15 camino systemd-modules-load[141]: Inserted module 'fuse'
Oct 12 08:21:15 camino systemd[1]: Started Trigger Flushing of Journal to
Persistent Storage.
Oct 12 08:21:15 camino systemd-modules-load[141]: Inserted module 'kvm'
Oct 12 08:21:15 camino systemd-modules-load[141]: Inserted module 'kvm_intel'
Oct 12 08:21:15 camino systemd-tmpfiles[166]: Failed to create file
/sys/kernel/debug/vgaswitcheroo/switch: No such file or directory
Oct 12 08:21:15 camino systemd[1]: Started Recreate Volatile Files and
Directories.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>