From: Michael R. <re...@eu...> - 2004-05-29 15:51:03
|
Hi Andreas, I moved this to lcd4linux-users, because it may be of interest for users, too :-) >>>>with kernel 2.6, /proc/stat does not contain a disk_io line anymore. >>>>Looks like this info has moved to /proc/diskstat. >>>>I have to write another plugin for this. >> >>Done. COuld you please test this stuff? Have a look at >>lcd4linux.conf.sample, you have to remove the stuff for 2.4 and activate >>the new expressions for 2.6 > > I just changed the Disk-Widget like its in the sample config file > like the scheme: proc_stat::disk. This works with 2.4 but still won't with > 2.6. > The Disk-Bar and Disk Numeric Widgets are the ones that didnt work as i can > see. Did i miss something? There are no disk stats in /proc/stat with 2.6, so the proc_stat::disk won't find anything, and always return 0. With 2.6, you have to use the plugin 'diskstat'. Have a look at the lcd4linux.conf.sample, the diskstat entries are commented out, you have to deactivate the 'proc_stat::disk' lines and activate the 'diskstats' lines. bye, Michael -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |