| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/bin/ |
Upload File : |
#! /bin/sh
# Copyright (C) 2006-2007 Richard Hughes <richard@hughsie.com>
#
# Licensed under the GNU General Public License Version 2
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#$1 = keyname
print_hal_key ()
{
udi="/org/freedesktop/Hal/devices/computer"
ret=`hal-get-property --udi $udi --key $1 2> /dev/null`
if [ $? -eq 0 ]; then
echo $ret
else
echo "missing"
fi
}
#$1 = capability
print_hal_capability ()
{
ret=`hal-find-by-capability --capability $1`
if [ -n "$ret" ]; then
echo "yes"
else
echo "no"
fi
}
echo -n "Distro version: "
cat /etc/*release | uniq
echo -n "Kernel version: "
uname -r
echo -n "g-p-m version: "
gnome-power-manager --version | cut -f2 -d" "
echo -n "HAL version: "
lshal -V | cut -f3 -d" "
echo -n "System manufacturer: "
print_hal_key "smbios.system.manufacturer"
echo -n "System version: "
print_hal_key "smbios.system.version"
echo -n "System product: "
print_hal_key "smbios.system.product"
echo -n "AC adapter present: "
print_hal_capability "ac_adapter"
echo -n "Battery present: "
print_hal_capability "battery"
echo -n "Laptop panel present: "
print_hal_capability "laptop_panel"
echo -n "CPU scaling present: "
print_hal_capability "cpufreq_control"
echo "Battery Information:"
lshal | grep "battery\."
OS=`uname -s`
echo "DeviceKit data:"
devkit-power --dump
echo "GNOME Power Manager Process Information:"
if [ "$OS" = "SunOS" ]; then
ptree -a `pgrep power`
else
ps aux --forest | grep gnome-power | grep -v grep
fi
echo "HAL Process Information:"
if [ "$OS" = "SunOS" ]; then
ptree -a `pgrep hald`
else
ps aux --forest | grep hald | grep -v grep
fi