Commit Graph

  • 6270516240 lm-sensors should now be safe to use on Thinkpad laptops. Jean Delvare 2007-09-24 09:25:07 +00:00
  • b60f5a718e Update for version 3. Jean Delvare 2007-09-24 09:15:28 +00:00
  • 286c332071 The kernel directory is no more. Jean Delvare 2007-09-24 09:14:38 +00:00
  • 1092d1d731 Use strchr() and strrchr() instead of the deprecated index() and rindex(). Patch from Bernhard Fischer. Jean Delvare 2007-09-23 21:23:12 +00:00
  • 56e301c8b5 Document struct_feature. Jean Delvare 2007-09-23 18:00:20 +00:00
  • 55a29cc2ce Reserve some room in struct sensors_feature for future extension. Jean Delvare 2007-09-23 17:48:57 +00:00
  • d1b374cc38 Renumber feature and subfeature types to leave more room if we later need to add more feature or subfeature types. Jean Delvare 2007-09-23 17:42:27 +00:00
  • df027fb0d5 Drop all references to the MBM website, it's gone now. Jean Delvare 2007-09-23 16:37:51 +00:00
  • 7721b59f83 Drop all references to the MBM website, it's gone now. Jean Delvare 2007-09-23 16:35:47 +00:00
  • 55e467b151 Don't arbitrarily write errors to stderr. In production mode, simply ignore the errors. In debug mode, call sensors_fatal_error(). Jean Delvare 2007-09-23 14:34:42 +00:00
  • ab36c5b0f8 Delete unused SENSORS_ERR_ACCESS. Rename SENSORS_ERR_PROC to the more neutral SENSORS_ERR_KERNEL. Introduce SENSORS_ERR_NO_DEVS for finer-grained error reporting. Use SENSORS_ERR_KERNEL and SENSORS_ERR_NO_DEVS where appropriate. No error message for invalid error codes. Jean Delvare 2007-09-23 13:53:11 +00:00
  • 4b6f9ee727 Better error message if configuration file can't be loaded. Jean Delvare 2007-09-23 13:48:52 +00:00
  • 2fea711456 Alignment. Jean Delvare 2007-09-23 13:33:32 +00:00
  • 06a8d04b5d Preserve error values returned by sensors_read_sysfs_attr() and sensors_write_sysfs_attr(). Jean Delvare 2007-09-23 13:17:53 +00:00
  • 9ba88a7d1f Better prototype for get_type_scaling(). Jean Delvare 2007-09-23 12:49:47 +00:00
  • c390c9e29f Hide warnings about unused parameters. Jean Delvare 2007-09-23 12:47:27 +00:00
  • 5742812cfe Hide a warning in flex-generated file. Jean Delvare 2007-09-23 12:36:56 +00:00
  • 9698d82fd3 Rename sensors_get_label_size() to get_label_size() for consistency. Jean Delvare 2007-09-23 12:33:12 +00:00
  • e01466d993 New public library function: sensors_get_subfeature(). Applications can use it to retrieve a specific subfeature by type. While it is slighly less efficient than looping over sensors_get_all_subfeatures(), it often makes the application code much more elegant. Jean Delvare 2007-09-23 12:30:28 +00:00
  • c08a168342 Use sensors_lookup_chip() wherever possible, it makes the code more readable. Jean Delvare 2007-09-23 12:24:13 +00:00
  • e55b84392b Use sensors_lookup_chip() to speed up sensors_lookup_subfeature_name() as well. Jean Delvare 2007-09-23 12:23:38 +00:00
  • 36f5b0dc4d New internal library function: sensors_lookup_chip(). It looks up a chip in the detected chip list. It is more efficient to do it once and for all than to do it over and over again in sensors_lookup_feature_nr() and sensors_lookup_subfeature_nr() as was done before. Jean Delvare 2007-09-23 12:23:06 +00:00
  • 586cec7fa1 sensors_lookup_subfeature_nr() can now be made static. Jean Delvare 2007-09-23 12:20:48 +00:00
  • e7c345f4cf Pass a subfeature structure to sensors_read_sysfs_attr() and sensors_write_sysfs_attr(), rather than a subfeature number, so that we do not have to lookup the feature number again. Jean Delvare 2007-09-23 12:20:07 +00:00
  • ba6614624b There's no rationale for preventing against setting the same subfeature value several times. If the user asks for that, let's just do it. Otherwise we have a performance penalty for all other users. Jean Delvare 2007-09-23 12:19:29 +00:00
  • 67d3060317 We can plain skip the feature lookup and compute statement search for subfeatures with no compute mapping. Jean Delvare 2007-09-23 12:18:46 +00:00
  • da7b4e48da Introduce a separate type for main features. Make subfeatures map to the real main feature rather than the first subfeature. Jean Delvare 2007-09-23 12:16:50 +00:00
  • 65f1d1f1cd Rename subfeature types from *_FEATURE_* to *_SUBFEATURE_*, to better reflect what they represent. Jean Delvare 2007-09-23 12:12:19 +00:00
  • e13c11d353 Update the comments and symbols in the whole library code to refer to features and subfeatures as appropriate. Jean Delvare 2007-09-23 12:07:53 +00:00
  • 9fe2b3c714 sensors_get_all_features has a single caller now, so fold it thereinto. Jean Delvare 2007-09-23 12:06:51 +00:00
  • 96c914bfda Define a separate structure to represent main features. This allows for faster main features lookup. One side effect of this change is that subfeatures can no longer have labels nor be ignored. I do not think that this is a problem in practice, and actually this makes a lot of sense. Jean Delvare 2007-09-23 12:05:16 +00:00
  • bfe337fe76 Store current temperature, voltage and fan values together with the rest of the subfeatures. This makes the code more simple, and prepares for current values to be subfeatures like any others (i.e. they can be missing.) Jean Delvare 2007-09-23 12:02:59 +00:00
  • 79086fb7b8 Rename struct sensors_feature_data to sensors_subfeature. This is a first step towards a clean separation between main features and subfeatures. Jean Delvare 2007-09-23 12:02:22 +00:00
  • eba601a964 Split sensors_get_all_features() into two distinct functions, one to get the list of all main features, and one to get the list of all the subfeatures of a given main feature. This is a more logical interface for applications to use. The current implementation is admittedly less than optimal, because the storage structures weren't meant for it, but this issue can (and will) be addressed later. Jean Delvare 2007-09-23 12:00:59 +00:00
  • 08a686e3cc sensors_feature_data and sensors_chip_feature are now the exact same structure, so we can get rid of the former for simpler code. Jean Delvare 2007-09-23 11:59:51 +00:00
  • 60b50b6cb9 Fix compilation breakage with non-C99 compilers. Jean Delvare 2007-09-21 18:15:32 +00:00
  • 5bd020ad92 Scan chip features only once at initialization time, rather than on each update. The chip list and chip features do not change until sensors_cleanup() is called, so there's no point in doing the same work over and over again. Jean Delvare 2007-09-21 12:15:18 +00:00
  • 49649fcf05 Restore support for beeps. Jean Delvare 2007-09-20 21:24:12 +00:00
  • 9cf1330eb0 Add support for beep features. Jean Delvare 2007-09-20 21:23:19 +00:00
  • 36ded1b5fc Restore support for alarms. Jean Delvare 2007-09-20 21:22:42 +00:00
  • 071e4a8008 Rename a few variables to something that makes more sense. Jean Delvare 2007-09-20 16:22:13 +00:00
  • ed71926529 Add w83793 support to sensord. Jean Delvare 2007-09-20 11:04:48 +00:00
  • a46211007e Better error handling when a feature value can't be read. Jean Delvare 2007-09-19 16:53:16 +00:00
  • 5beebbb0bb Fix memory leaks in command line parsing. Jean Delvare 2007-09-19 15:21:06 +00:00
  • 4a5de7fb98 Fix a memory leak when daemonizing. Jean Delvare 2007-09-19 15:20:25 +00:00
  • afddd25552 Drop support for printing unknown chips: all chips are known now. Jean Delvare 2007-09-19 15:16:14 +00:00
  • 2837b67281 Delete unused formatting functions. Jean Delvare 2007-09-19 15:12:58 +00:00
  • 2e773670b8 Add generic chip support to sensord, much like sensors has. Alarm and beep mask support is still missing. Jean Delvare 2007-09-19 15:11:34 +00:00
  • d3b00b0a86 Fix memory leaks in command line parsing. Jean Delvare 2007-09-19 15:10:06 +00:00
  • 347b0d1965 Fix a memory leak when daemonizing. Jean Delvare 2007-09-19 14:25:19 +00:00
  • 9730c57395 Add some more conversion rules for the thmc50 and adm1022. Jean Delvare 2007-09-19 12:06:36 +00:00
  • 4618795d52 Add a sample configuration section for the thmc50 and adm1022. Jean Delvare 2007-09-19 12:05:31 +00:00
  • dbad6d7f8c Add a sample configuration section for the thmc50 and adm1022. The default labels aren't so nice. Jean Delvare 2007-09-19 12:00:23 +00:00
  • acb3f3928c Make the new ADM1022 feature names more consistent. Jean Delvare 2007-09-19 11:55:19 +00:00
  • b6f94cb717 Synchronize the sensord version with the lm-sensors version. We're using the same version number for sensord since October 2002! Jean Delvare 2007-09-19 11:49:21 +00:00
  • e75c3e60ab sensord: Fix f71805f fans. Cleanup pc87427 fans. Jean Delvare 2007-09-19 11:44:30 +00:00
  • 94b1dae3d1 Warning fixes. Jean Delvare 2007-09-19 11:32:48 +00:00
  • 0ec61f1bc7 Warning fixes. Jean Delvare 2007-09-18 20:53:42 +00:00
  • 73cdb48635 Fix compilation breakage. Jean Delvare 2007-09-18 20:46:06 +00:00
  • 7d049ef600 Drop all the chip-specific support from sensord. Jean Delvare 2007-09-18 20:37:36 +00:00
  • bf9d0e2de6 Drop DataType_mhz, libsensors doesn't support this kind of feature. Jean Delvare 2007-09-18 20:26:28 +00:00
  • 8c817feaca Stop including obsolete header files. Jean Delvare 2007-09-18 20:19:26 +00:00
  • fee42795a2 Synchronize the sensord version with the lm-sensors version. We're using the same version number for sensord since October 2002! Jean Delvare 2007-09-18 19:35:28 +00:00
  • 0464f51062 Fix fan fault handling. We were testing for fan fault before actually retrieving the fan features, so faults could not be detected. Swapping the instructions fixes it. Jean Delvare 2007-09-18 09:38:14 +00:00
  • 0c381bed8b Make it clear that this is a SVN version and not 2.10.4. Jean Delvare 2007-09-17 11:28:51 +00:00
  • 5cbb6046a4 Better thmc50/adm1022 support. Original patch by Krzysztof Helt. Jean Delvare 2007-09-17 11:10:07 +00:00
  • 203aea1f51 Hide error on missing dme1737 fan and pwm. Jean Delvare 2007-09-17 10:58:50 +00:00
  • fb362daf8d The sensors.conf file syntax currently allows for octal escape sequences, which nobody uses. This feature is not even mentioned in the sensors.conf man page. Kill it. Mark M. Hoffman 2007-09-16 15:47:16 +00:00
  • 91866b3ea1 Make sensors.conf entirely case-sensitive. Mark M. Hoffman 2007-09-16 15:34:52 +00:00
  • db283337af Add the following to svn:ignore properties: Mark M. Hoffman 2007-09-16 14:59:14 +00:00
  • e95e7694f5 Fix -W options so flex/yacc code compiles completely without warnings. Also, Use -Wundef everywhere except flex/yacc code, specifically. Mark M. Hoffman 2007-09-16 14:50:37 +00:00
  • ab0e8eb731 Complete the previous memory leak fix. Jean Delvare 2007-09-09 17:32:59 +00:00
  • 0ce944ad66 Do not attempt to read label files from procfs, they do not exist there. Jean Delvare 2007-09-09 15:47:08 +00:00
  • 3ff2df927b Fix sensors output when a temperature channel has a critical limit but no max limit (for example the coretemp driver.) Jean Delvare 2007-09-08 10:47:03 +00:00
  • 44b77f38e4 Fix memory leaks in the configuration file parser when a label, set, compute or ignore statement is found before the first chip statement. Jean Delvare 2007-09-06 12:22:59 +00:00
  • b5b5507599 Add sch311x support. Patch from Juerg Haefliger. Jean Delvare 2007-09-06 09:09:35 +00:00
  • 0b22fdb495 Delete redundant declarations. Jean Delvare 2007-09-06 09:04:34 +00:00
  • b0806d7631 The sensors.conf man page belongs to the user's manual, not the programmer's manual. Jean Delvare 2007-09-06 09:03:08 +00:00
  • 5b6a9ed338 sensors -s takes no further options. Jean Delvare 2007-09-06 09:02:12 +00:00
  • 684cd20070 Stop mentioning the alias trick for i2c-dev, it no longer works and it doesn't have anything to do with sensors anyway. Jean Delvare 2007-09-06 09:01:20 +00:00
  • 6e8ccc173e Typo fix. Don't tell users they can complain, they will find out by themselves I'm sure ;) Jean Delvare 2007-09-06 08:59:22 +00:00
  • 44c669a26d Don't use -Wundef for the library, flex/bison-generated code doesn't play well with it. Jean Delvare 2007-09-05 21:31:01 +00:00
  • 042532f7fb Delete grab_busses.sh, it's deprecated. Use sensors --bus-list instead. Jean Delvare 2007-09-05 21:22:39 +00:00
  • 8f352d518c New sensors option: --bus-list. This option lists i2c buses that are used by sensor chips on the running system, in a format suitable for sensors.conf. This is a replacement for the old, broken grab_busses.sh script. Benefits of having this directly in sensors: * It lists only the i2c buses that are relevant to sensors. * sensors is installed by default, while most people didn't have access to grab_busses.sh. Jean Delvare 2007-09-05 21:19:45 +00:00
  • 5e5a996d83 Delete redundant declarations. Jean Delvare 2007-09-05 20:19:35 +00:00
  • 551500530f Fix header comment. Jean Delvare 2007-09-05 20:12:52 +00:00
  • 5dec68540f Warning fix. Jean Delvare 2007-09-05 20:10:00 +00:00
  • ff8230310b Stop mentioning the alias trick for i2c-dev, it no longer works and it doesn't have anything to do with sensors anyway. Jean Delvare 2007-09-05 16:45:19 +00:00
  • 65b9d4dd92 Move sensors_feature_get_type() from access.c to sysfs.c, it's only called from this file. This lets the compiler do additional optimizations. Jean Delvare 2007-09-05 16:14:53 +00:00
  • c8de951071 Strip trailing whitespace. Jean Delvare 2007-09-05 16:09:38 +00:00
  • 8b30917c16 Don't print an error message when libsensors returns a feature we don't know. Just ignore that feature. Jean Delvare 2007-09-05 15:56:28 +00:00
  • 1d05faf18b More cleanups: drop legacy references, sections for drivers not yet ported to Linux 2.6, etc. Jean Delvare 2007-09-05 15:52:56 +00:00
  • d577b6eaae Convert the default configuration file to use the new smybol names. Jean Delvare 2007-09-05 15:00:40 +00:00
  • 39f93afc8a Print the conversion notice at the top of the converted file, not on stdout. Jean Delvare 2007-09-05 14:32:31 +00:00
  • f27710deb7 sensors-conf-convert: New, script to convert old configuration files to use the new symbol names. Jean Delvare 2007-09-05 14:28:19 +00:00
  • 61686376df Add support for temperature offset files, which are part of the standard sysfs interface. I don't think it makes much sense to display the offset values as part of the output of "sensors" (it would even probably confuse people) but having support for these in libsensors makes it possible to adjust the offsets in sensors.conf, which is convenient. Jean Delvare 2007-09-05 12:31:12 +00:00
  • 6b3803c386 Fix memory leaks in the configuration file parser when a label, set, compute or ignore statement is found before the first chip statement. Jean Delvare 2007-09-05 12:30:39 +00:00
  • 6c4ea89ab9 Renumber SENSORS_FEATURE_VID from 0x300 to 0x1000. If we ever need to add more "standard" feature types such as current or power, we want to give them numbers that immediately follow the fan, voltage and temperature features, so that the code is as simple as possible. Jean Delvare 2007-09-05 12:29:20 +00:00
  • 29bea1e843 Add support for the standard beep_enable attribute (#2248). Jean Delvare 2007-09-05 12:28:31 +00:00
  • 3c53f5fa85 Increase MAX_SENSORS_PER_TYPE from 16 to 20: the ADM1026 can have up to 17 voltage inputs, and bmcsensors used to support up to 20 voltage values. Jean Delvare 2007-09-05 08:31:25 +00:00