mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 03:26:17 +00:00
Update AppImage
This commit is contained in:
@@ -1522,8 +1522,14 @@ export default function Hardware() {
|
||||
>
|
||||
<div className="flex items-center justify-between gap-2 mb-1">
|
||||
<span className="text-sm font-medium line-clamp-2 break-words flex-1">{device.device}</span>
|
||||
<Badge className="bg-blue-500/10 text-blue-500 border-blue-500/20 px-2.5 py-0.5 shrink-0">
|
||||
Ethernet
|
||||
<Badge
|
||||
className={
|
||||
device.network_subtype === "Wireless"
|
||||
? "bg-purple-500/10 text-purple-500 border-purple-500/20 px-2.5 py-0.5 shrink-0"
|
||||
: "bg-blue-500/10 text-blue-500 border-blue-500/20 px-2.5 py-0.5 shrink-0"
|
||||
}
|
||||
>
|
||||
{device.network_subtype || "Ethernet"}
|
||||
</Badge>
|
||||
</div>
|
||||
<p className="text-xs text-muted-foreground truncate">{device.vendor}</p>
|
||||
|
||||
@@ -2742,12 +2742,6 @@ def get_detailed_gpu_info(gpu):
|
||||
gfx_pipe = grbm['Graphics Pipe']
|
||||
if 'value' in gfx_pipe:
|
||||
detailed_info['engine_render'] = f"{gfx_pipe['value']:.1f}%"
|
||||
|
||||
# Texture Pipe (similar to Video)
|
||||
if 'Texture Pipe' in grbm:
|
||||
tex_pipe = grbm['Texture Pipe']
|
||||
if 'value' in tex_pipe:
|
||||
detailed_info['engine_video'] = f"{tex_pipe['value']:.1f}%"
|
||||
|
||||
# Parse GRBM2 for additional engine info
|
||||
if 'GRBM2' in device:
|
||||
@@ -3309,13 +3303,6 @@ def get_hardware_info():
|
||||
except Exception as e:
|
||||
print(f"[v0] Error getting memory info: {e}")
|
||||
|
||||
# </CHANGE> Commented out get_disk_hardware_info call as function doesn't exist
|
||||
# storage_info = get_storage_info()
|
||||
# for device in storage_info.get('disks', []):
|
||||
# hw_info = get_disk_hardware_info(device['name'])
|
||||
# device.update(hw_info)
|
||||
# hardware_data['storage_devices'] = storage_info.get('disks', [])
|
||||
|
||||
# Storage Devices - simplified version without hardware info
|
||||
try:
|
||||
result = subprocess.run(['lsblk', '-J', '-o', 'NAME,SIZE,TYPE,MOUNTPOINT,MODEL'],
|
||||
@@ -3347,15 +3334,15 @@ def get_hardware_info():
|
||||
if line:
|
||||
parts = line.split(',')
|
||||
if len(parts) >= 9: # Adjusted to match the query fields
|
||||
gpu_name = parts[0].strip()
|
||||
mem_total = parts[1].strip()
|
||||
mem_used = parts[2].strip()
|
||||
temp = parts[3].strip() if parts[3].strip() != 'N/A' else None
|
||||
power = parts[4].strip() if parts[4].strip() != 'N/A' else None
|
||||
gpu_util = parts[5].strip() if parts[5].strip() != 'N/A' else None
|
||||
mem_util = parts[6].strip() if parts[6].strip() != 'N/A' else None
|
||||
graphics_clock = parts[7].strip() if parts[7].strip() != 'N/A' else None
|
||||
memory_clock = parts[8].strip() if parts[8].strip() != 'N/A' else None
|
||||
gpu_name = parts[0]
|
||||
mem_total = parts[1]
|
||||
mem_used = parts[2]
|
||||
temp = parts[3] if parts[3] != 'N/A' else None
|
||||
power = parts[4] if parts[4] != 'N/A' else None
|
||||
gpu_util = parts[5] if parts[5] != 'N/A' else None
|
||||
mem_util = parts[6] if parts[6] != 'N/A' else None
|
||||
graphics_clock = parts[7] if parts[7] != 'N/A' else None
|
||||
memory_clock = parts[8] if parts[8] != 'N/A' else None
|
||||
|
||||
# Try to find the corresponding PCI slot using nvidia-smi -L
|
||||
try:
|
||||
@@ -3453,6 +3440,7 @@ def get_hardware_info():
|
||||
# Categorize and add important devices
|
||||
device_type = 'Other'
|
||||
include_device = False
|
||||
network_subtype = None
|
||||
|
||||
# Graphics/Display devices
|
||||
if any(keyword in device_class for keyword in ['VGA', 'Display', '3D']):
|
||||
@@ -3466,6 +3454,11 @@ def get_hardware_info():
|
||||
elif 'Ethernet' in device_class or 'Network' in device_class:
|
||||
device_type = 'Network Controller'
|
||||
include_device = True
|
||||
device_lower = device_name.lower()
|
||||
if any(keyword in device_lower for keyword in ['wireless', 'wifi', 'wi-fi', '802.11', 'wlan']):
|
||||
network_subtype = 'Wireless'
|
||||
else:
|
||||
network_subtype = 'Ethernet'
|
||||
# USB controllers
|
||||
elif 'USB' in device_class:
|
||||
device_type = 'USB Controller'
|
||||
@@ -3490,6 +3483,8 @@ def get_hardware_info():
|
||||
'device': device_name,
|
||||
'class': device_class
|
||||
}
|
||||
if network_subtype:
|
||||
pci_device['network_subtype'] = network_subtype
|
||||
hardware_data['pci_devices'].append(pci_device)
|
||||
|
||||
current_device = {}
|
||||
|
||||
Reference in New Issue
Block a user