2
* Copyright (C) 2009 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24
class LowLevel.Kernel26 : FsoUsage.LowLevel, FsoFramework.AbstractObject
28
logger.info( "Registering kernel26 low level suspend/resume handling" );
30
var sysfs_root = config.stringValue( "cornucopia", "sysfs_root", "/sys" );
31
sys_power_state = Path.build_filename( sysfs_root, "power", "state" );
34
public override string repr()
41
FsoFramework.FileHandling.write( "mem\n", sys_power_state );
44
public string resume()
50
string sys_power_state;
53
* This function gets called on plugin initialization time.
54
* @return the name of your plugin here
55
* @note that it needs to be a name in the format <subsystem>.<plugin>
56
* else your module will be unloaded immediately.
58
public static string fso_factory_function( FsoFramework.Subsystem subsystem ) throws Error
60
debug( "lowlevel_kernel26 fso_factory_function" );
61
return "fsousaged.lowlevel_kernel26";
65
public static void fso_register_function( TypeModule module )
67
// do not remove this function