upgrade to version 5.6.36
(cherry picked from commit 6b9a5ac3bf5f697211939cc6e6749f87161a87e1)
This commit is contained in:
parent
9dca31ca9a
commit
3538bb30c3
344
0001-feat-add-A-help-files.patch
Normal file
344
0001-feat-add-A-help-files.patch
Normal file
@ -0,0 +1,344 @@
|
|||||||
|
From c9ddb8ed0bf7f34a8dac558314eaae850f0767ff Mon Sep 17 00:00:00 2001
|
||||||
|
From: leeffo <leeffo@yeah.net>
|
||||||
|
Date: Wed, 22 Mar 2023 09:21:40 +0800
|
||||||
|
Subject: [PATCH] feat: add A help files
|
||||||
|
|
||||||
|
---
|
||||||
|
.../device-manager/zh_CN/i_device-manager.md | 162 ++++++++++++++++++
|
||||||
|
.../device-manager/zh_HK/i_device-manager.md | 154 +++++++++++++++++
|
||||||
|
2 files changed, 316 insertions(+)
|
||||||
|
create mode 100644 deepin-devicemanager/assets/deepin-devicemanager/device-manager/zh_CN/i_device-manager.md
|
||||||
|
create mode 100644 deepin-devicemanager/assets/deepin-devicemanager/device-manager/zh_HK/i_device-manager.md
|
||||||
|
|
||||||
|
diff --git a/deepin-devicemanager/assets/deepin-devicemanager/device-manager/zh_CN/i_device-manager.md b/deepin-devicemanager/assets/deepin-devicemanager/device-manager/zh_CN/i_device-manager.md
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..55c0a75
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/deepin-devicemanager/assets/deepin-devicemanager/device-manager/zh_CN/i_device-manager.md
|
||||||
|
@@ -0,0 +1,162 @@
|
||||||
|
+# 设备管理器|deepin-devicemanager|
|
||||||
|
+
|
||||||
|
+## 概述
|
||||||
|
+
|
||||||
|
+设备管理器是查看和管理硬件设备的工具,可针对运行在操作系统的硬件设备,进行参数状态的查看、数据信息的导出等,还可以禁用或启动部分硬件驱动。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+## 使用入门
|
||||||
|
+
|
||||||
|
+您可以通过以下方式运行或关闭设备管理器,或者创建快捷方式。
|
||||||
|
+
|
||||||
|
+### 运行设备管理器
|
||||||
|
+
|
||||||
|
+1. 单击任务栏上的启动器图标 ,进入启动器界面。
|
||||||
|
+
|
||||||
|
+2. 上下滚动鼠标滚轮浏览或通过搜索,找到设备管理器图标  ,并单击运行。
|
||||||
|
+
|
||||||
|
+3. 右键单击 ,您可以:
|
||||||
|
+
|
||||||
|
+ - 单击 **发送到桌面**,在桌面创建快捷方式。
|
||||||
|
+
|
||||||
|
+ - 单击 **发送到任务栏**,将应用程序固定到任务栏。
|
||||||
|
+
|
||||||
|
+ - 单击 **开机自动启动**,将应用程序添加到开机启动项,在电脑开机时自动运行该应用程序。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 关闭设备管理器
|
||||||
|
+
|
||||||
|
+- 在设备管理器界面,单击  ,退出设备管理器。
|
||||||
|
+- 右键单击任务栏上的  ,选择 **关闭所有** 来退出设备管理器。
|
||||||
|
+- 在设备管理器界面单击  ,选择 **退出** 来退出设备管理器。
|
||||||
|
+
|
||||||
|
+## 操作介绍
|
||||||
|
+以下介绍的硬件设备信息仅供参考,如果您的电脑上没有插入鼠标、键盘等设备,设备管理器中则不会显示对应的硬件信息。
|
||||||
|
+
|
||||||
|
+### 概况
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击 **概况**。
|
||||||
|
+2. 查看操作系统内核信息及各硬件设备列表。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 处理器
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击 **处理器**。
|
||||||
|
+2. 查看处理器列表,以及所有处理器的详细信息如名称、制造商、架构及型号等信息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 主板
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击 **主板**。
|
||||||
|
+2. 查看主板的制造商、产品名称、BIOS信息、系统信息及机箱信息等。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 内存
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击 **内存**。
|
||||||
|
+2. 查看内存列表,以及所有内存的详细信息如名称、制造商、大小、类型及速度等信息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 显示适配器
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击 **显示适配器**。
|
||||||
|
+2. 查看显示适配器的名称、制造商、型号等信息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 音频适配器
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击 **音频适配器**。
|
||||||
|
+2. 查看音频适配器列表,以及所有音频适配器的详细信息如名称、制造商及型号等。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 存储设备
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击 **存储设备**。
|
||||||
|
+2. 查看存储设备列表,以及所有存储设备的详细信息如型号、制造商、介质类型等。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 网络适配器
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击 **网络适配器**。
|
||||||
|
+2. 查看网络适配器的名称、制造商、类型及驱动等信息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 鼠标
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击 **鼠标**。
|
||||||
|
+2. 查看鼠标的名称、制造商、总线信息、驱动及频率等信息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 键盘
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击 **键盘**。
|
||||||
|
+2. 查看键盘的名称、型号、制造商、总线信息及驱动等信息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 显示设备
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击 **显示设备**。
|
||||||
|
+2. 查看显示设备的名称、制造商、类型、接口类型及分辨率等信息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 打印机
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击 **打印机**。
|
||||||
|
+2. 查看连接的打印机列表,以及所有打印机的详细信息如名称、型号、制造商、设备URI等信息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 右键菜单
|
||||||
|
+
|
||||||
|
+在设备详细信息区域,单击右键,可以进行以下操作:
|
||||||
|
+
|
||||||
|
+**复制**:复制当前页面的所有信息。
|
||||||
|
+
|
||||||
|
+**禁用/启用**:可禁用或启用部分硬件驱动,可根据右键菜单选项判断硬件设备是否支持禁用功能。
|
||||||
|
+
|
||||||
|
+**刷新**:将重新加载操作系统当前所有设备的信息,快捷键为 **F5**。
|
||||||
|
+
|
||||||
|
+**导出**:将设备信息导出到指定的文件夹,支持导出 txt/docx/xls/html 格式。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+## 主菜单
|
||||||
|
+
|
||||||
|
+在主菜单中,您可以切换窗口主题,查看帮助手册等。
|
||||||
|
+
|
||||||
|
+### 主题
|
||||||
|
+
|
||||||
|
+窗口主题包含浅色主题、深色主题和系统主题。
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击。
|
||||||
|
+2. 单击 **主题**,选择一个主题颜色。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 帮助
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击 。
|
||||||
|
+2. 单击 **帮助**,查看帮助手册,进一步了解和使用设备管理器。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 关于
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击 。
|
||||||
|
+2. 单击 **关于**,查看设备管理器的版本和介绍。
|
||||||
|
+
|
||||||
|
+### 退出
|
||||||
|
+
|
||||||
|
+1. 在设备管理器界面,单击 。
|
||||||
|
+2. 单击 **退出**。
|
||||||
|
+
|
||||||
|
diff --git a/deepin-devicemanager/assets/deepin-devicemanager/device-manager/zh_HK/i_device-manager.md b/deepin-devicemanager/assets/deepin-devicemanager/device-manager/zh_HK/i_device-manager.md
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..1d12a25
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/deepin-devicemanager/assets/deepin-devicemanager/device-manager/zh_HK/i_device-manager.md
|
||||||
|
@@ -0,0 +1,154 @@
|
||||||
|
+# 設備管理器|deepin-devicemanager|
|
||||||
|
+
|
||||||
|
+## 概述
|
||||||
|
+
|
||||||
|
+設備管理器是查看和管理硬件設備的工具軟件,可針對運行在操作系統的硬件設備,進行參數狀態的查看、數據訊息的導出等,還可以禁用或啟動部分硬件驅動。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+## 使用入門
|
||||||
|
+
|
||||||
|
+您可以通過以下方式運行或關閉設備管理器,或者創建快捷方式。
|
||||||
|
+
|
||||||
|
+### 運行設備管理器
|
||||||
|
+
|
||||||
|
+1. 單擊任務欄上的啟動器圖標 ,進入啟動器界面。
|
||||||
|
+
|
||||||
|
+2. 上下滾動鼠標滾輪瀏覽或通過搜索,找到設備管理器圖標 ,單擊運行。
|
||||||
|
+
|
||||||
|
+3. 右鍵單擊 ,您可以:
|
||||||
|
+- 單擊 **傳送到桌面**,在桌面創建快捷方式。
|
||||||
|
+
|
||||||
|
+- 單擊 **傳送到任務欄**,將應用程序固定到快速工具列。
|
||||||
|
+
|
||||||
|
+- 單擊 **加至開機啟動**,將應用程序添加到開機啟動項,在電腦開機時自動運行該應用程序。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 關閉設備管理器
|
||||||
|
+
|
||||||
|
+- 在設備管理器界面,單擊 ,退出設備管理器。
|
||||||
|
+- 右鍵單擊任務欄上的 ,選擇 **關閉所有** 來退出設備管理器。
|
||||||
|
+- 在設備管理器界面單擊 ,選擇 **退出** 來退出設備管理器。
|
||||||
|
+
|
||||||
|
+## 操作介紹
|
||||||
|
+
|
||||||
|
+以下介紹的硬件設備信息僅供參考,如果您的電腦上沒有插入鼠標、鍵盤等設備,設備管理器中則不會顯示對應的硬件信息。
|
||||||
|
+
|
||||||
|
+### 概況
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 **概況**。
|
||||||
|
+2. 查看操作系統內核訊息及各硬件設備列表。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 處理器
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 **處理器**。
|
||||||
|
+2. 查看處理器列表,以及所有處理器的詳細訊息如名稱、製造商、架構及型號等訊息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 主板
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 **主板**。
|
||||||
|
+2. 查看主板的製造商、晶片組、BIOS訊息、系統訊息及機箱訊息等。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 內存
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 **內存**。
|
||||||
|
+2. 查看內存列表,以及所有內存的詳細訊息,如名稱、大小及類型等訊息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 顯示適配器
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 **顯示適配器**。
|
||||||
|
+2. 查看顯示適配器的名稱、製造商、型號及驅動等訊息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 音頻適配器
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 **音頻適配器**。
|
||||||
|
+2. 查看音頻適配器列表,以及所有音頻適配器的詳細訊息,如名稱、製造商、型號及驅動等訊息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 存儲設備
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 **存儲設備**。
|
||||||
|
+2. 查看存儲設備列表,以及所有存儲設備的詳細訊息,如型號、製造商、介質類型、大小及轉速等訊息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 網絡適配器
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 **網絡適配器**。
|
||||||
|
+2. 查看網絡適配器的名稱、製造商、類型及驅動等訊息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 鼠標
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 **鼠標**。
|
||||||
|
+2. 查看鼠標的名稱、製造商、總線訊息、驅動及頻率等訊息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 鍵盤
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 **鍵盤**。
|
||||||
|
+2. 查看鍵盤的名稱、製造商、型號及接口等訊息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 顯示設備
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 **顯示設備**。
|
||||||
|
+2. 查看顯示設備的名稱、製造商、類型、接口類型及解像度等訊息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 打印機
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 **打印機**。
|
||||||
|
+2. 查看打印機列表,以及所有打印機的詳細訊息,如名稱、型號、製造商、URI等訊息。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+### 右鍵菜單
|
||||||
|
+
|
||||||
|
+- **複製**:複製當前頁面的所有訊息。
|
||||||
|
+- **禁用/啟用**:可禁用或啟用部分硬件驅動,可根據右鍵菜單選項判斷硬件設備是否支持禁用功能。
|
||||||
|
+- **刷新**:將重新加載操作系統當前所有設備的訊息,快捷鍵為 **F5**。
|
||||||
|
+- **導出**:將設備信息導出到指定的文件夾,支持導出 txt/docx/xls/html 格式。
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+## 主菜單
|
||||||
|
+
|
||||||
|
+在主菜單中,您可以進行切換窗口主題,查看幫助手冊等操作。
|
||||||
|
+
|
||||||
|
+### 主題
|
||||||
|
+
|
||||||
|
+窗口主題包含淺色主題、深色主題和跟隨系統主題。
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 。
|
||||||
|
+2. 單擊 **主題**,選擇一個主題顏色。
|
||||||
|
+
|
||||||
|
+### 幫助
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 。
|
||||||
|
+2. 單擊 **幫助**,查看幫助手冊,進一步了解和使用設備管理器。
|
||||||
|
+
|
||||||
|
+### 關於
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 。
|
||||||
|
+2. 單擊 **關於**,查看設備管理器的版本和介紹。
|
||||||
|
+
|
||||||
|
+### 退出
|
||||||
|
+
|
||||||
|
+1. 在設備管理器界面,單擊 。
|
||||||
|
+2. 單擊 **退出**。
|
||||||
|
\ No newline at end of file
|
||||||
|
--
|
||||||
|
2.20.1
|
||||||
|
|
||||||
@ -1,104 +0,0 @@
|
|||||||
From 49bb174c8264545c61b3315ef8f2785da71a2c70 Mon Sep 17 00:00:00 2001
|
|
||||||
From: leeffo <leeffo@yeah.net>
|
|
||||||
Date: Thu, 9 Feb 2023 15:33:43 +0800
|
|
||||||
Subject: [PATCH] feat: rewrite loadDeviceInfo updateDeviceInfo
|
|
||||||
|
|
||||||
---
|
|
||||||
.../src/LoadInfo/ThreadPool.cpp | 58 ++++++++++++++++---
|
|
||||||
1 file changed, 50 insertions(+), 8 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/deepin-devicemanager-server/src/LoadInfo/ThreadPool.cpp b/deepin-devicemanager-server/src/LoadInfo/ThreadPool.cpp
|
|
||||||
index 911c4ee..6c358ce 100644
|
|
||||||
--- a/deepin-devicemanager-server/src/LoadInfo/ThreadPool.cpp
|
|
||||||
+++ b/deepin-devicemanager-server/src/LoadInfo/ThreadPool.cpp
|
|
||||||
@@ -6,6 +6,7 @@
|
|
||||||
#include <QProcess>
|
|
||||||
#include <QDir>
|
|
||||||
#include <QDebug>
|
|
||||||
+#include <QDateTime>
|
|
||||||
|
|
||||||
ThreadPool::ThreadPool(QObject *parent)
|
|
||||||
: QThreadPool(parent)
|
|
||||||
@@ -16,31 +17,72 @@ ThreadPool::ThreadPool(QObject *parent)
|
|
||||||
dir.mkdir(PATH);
|
|
||||||
}
|
|
||||||
|
|
||||||
+//void ThreadPool::loadDeviceInfo()
|
|
||||||
+//{
|
|
||||||
+// // 根据m_ListCmd生成所有设备信息
|
|
||||||
+// QObjectCleanupHandler *cleaner = new QObjectCleanupHandler;
|
|
||||||
+// cleaner->setParent(this);
|
|
||||||
+// QList<Cmd>::iterator it = m_ListCmd.begin();
|
|
||||||
+// for (; it != m_ListCmd.end(); ++it) {
|
|
||||||
+// ThreadPoolTask *task = new ThreadPoolTask((*it).cmd, (*it).file, (*it).canNotReplace, (*it).waitingTime);
|
|
||||||
+// cleaner->add(task);
|
|
||||||
+// start(task);
|
|
||||||
+// task->setAutoDelete(true);
|
|
||||||
+// }
|
|
||||||
+//}
|
|
||||||
+//
|
|
||||||
+//void ThreadPool::updateDeviceInfo()
|
|
||||||
+//{
|
|
||||||
+// // 根据m_ListCmd生成所有设备信息
|
|
||||||
+// QObjectCleanupHandler *cleaner = new QObjectCleanupHandler;
|
|
||||||
+// cleaner->setParent(this);
|
|
||||||
+// QList<Cmd>::iterator it = m_ListUpdate.begin();
|
|
||||||
+// for (; it != m_ListUpdate.end(); ++it) {
|
|
||||||
+// ThreadPoolTask *task = new ThreadPoolTask((*it).cmd, (*it).file, (*it).canNotReplace, (*it).waitingTime);
|
|
||||||
+// cleaner->add(task);
|
|
||||||
+// start(task);
|
|
||||||
+// task->setAutoDelete(true);
|
|
||||||
+// }
|
|
||||||
+//}
|
|
||||||
+
|
|
||||||
void ThreadPool::loadDeviceInfo()
|
|
||||||
{
|
|
||||||
// 根据m_ListCmd生成所有设备信息
|
|
||||||
- QObjectCleanupHandler *cleaner = new QObjectCleanupHandler;
|
|
||||||
- cleaner->setParent(this);
|
|
||||||
QList<Cmd>::iterator it = m_ListCmd.begin();
|
|
||||||
for (; it != m_ListCmd.end(); ++it) {
|
|
||||||
ThreadPoolTask *task = new ThreadPoolTask((*it).cmd, (*it).file, (*it).canNotReplace, (*it).waitingTime);
|
|
||||||
- cleaner->add(task);
|
|
||||||
- start(task);
|
|
||||||
task->setAutoDelete(true);
|
|
||||||
+ start(task);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ // 当所有设备执行完毕之后,开始执行生成其它设备的任务
|
|
||||||
+ // 这里是为了确保其它设备在最后一个生成
|
|
||||||
+ qint64 beginMSecond = QDateTime::currentMSecsSinceEpoch();
|
|
||||||
+ while (true) {
|
|
||||||
+ qint64 curMSecond = QDateTime::currentMSecsSinceEpoch();
|
|
||||||
+ if (activeThreadCount() == 0 || curMSecond - beginMSecond > 10000) {
|
|
||||||
+ break;
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void ThreadPool::updateDeviceInfo()
|
|
||||||
{
|
|
||||||
// 根据m_ListCmd生成所有设备信息
|
|
||||||
- QObjectCleanupHandler *cleaner = new QObjectCleanupHandler;
|
|
||||||
- cleaner->setParent(this);
|
|
||||||
QList<Cmd>::iterator it = m_ListUpdate.begin();
|
|
||||||
for (; it != m_ListUpdate.end(); ++it) {
|
|
||||||
ThreadPoolTask *task = new ThreadPoolTask((*it).cmd, (*it).file, (*it).canNotReplace, (*it).waitingTime);
|
|
||||||
- cleaner->add(task);
|
|
||||||
- start(task);
|
|
||||||
task->setAutoDelete(true);
|
|
||||||
+ start(task);
|
|
||||||
+ }
|
|
||||||
+ // 当所有设备执行完毕之后,开始执行生成其它设备的任务
|
|
||||||
+ // 这里是为了确保其它设备在最后一个生成
|
|
||||||
+ qint64 beginMSecond = QDateTime::currentMSecsSinceEpoch();
|
|
||||||
+ while (true) {
|
|
||||||
+ qint64 curMSecond = QDateTime::currentMSecsSinceEpoch();
|
|
||||||
+ if (activeThreadCount() == 0 || curMSecond - beginMSecond > 10000) {
|
|
||||||
+ break;
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
--
|
|
||||||
2.20.1
|
|
||||||
63
0002-fix-Ethernet-Controller-X710-disable.patch
Normal file
63
0002-fix-Ethernet-Controller-X710-disable.patch
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
From 0f2dfc4c0e377d0cf2d6723ac1d5bbd0ec391c13 Mon Sep 17 00:00:00 2001
|
||||||
|
From: shuaijie <shuaijie@uniontech.com>
|
||||||
|
Date: Thu, 13 Apr 2023 21:46:26 +0800
|
||||||
|
Subject: [PATCH] fix: Ethernet Controller X710 disable
|
||||||
|
|
||||||
|
Ethernet Controller X710 disable
|
||||||
|
|
||||||
|
Log: Ethernet Controller X710 disable
|
||||||
|
|
||||||
|
Bug: https://pms.uniontech.com/bug-view-188969.html
|
||||||
|
Change-Id: I93d8157652e23796d91d9ba293f887c988502b0f
|
||||||
|
---
|
||||||
|
deepin-devicemanager/src/GenerateDevice/CmdTool.cpp | 5 ++++-
|
||||||
|
.../src/GenerateDevice/DeviceGenerator.cpp | 9 ++++++++-
|
||||||
|
2 files changed, 12 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/deepin-devicemanager/src/GenerateDevice/CmdTool.cpp b/deepin-devicemanager/src/GenerateDevice/CmdTool.cpp
|
||||||
|
index 6a018adf..0f0f93b2 100644
|
||||||
|
--- a/deepin-devicemanager/src/GenerateDevice/CmdTool.cpp
|
||||||
|
+++ b/deepin-devicemanager/src/GenerateDevice/CmdTool.cpp
|
||||||
|
@@ -738,7 +738,10 @@ void CmdTool::getMapInfoFromLshw(const QString &info, QMap<QString, QString> &ma
|
||||||
|
mapInfo[attr[0].trimmed()] += attr[1].trimmed();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
- mapInfo.insert(words[0].trimmed(), words[1].trimmed());
|
||||||
|
+ if (info.startsWith("network") && true == words[0].contains("logical name") && true == words[1].contains("dev/fb")) {
|
||||||
|
+ continue;
|
||||||
|
+ } else
|
||||||
|
+ mapInfo.insert(words[0].trimmed(), words[1].trimmed());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
diff --git a/deepin-devicemanager/src/GenerateDevice/DeviceGenerator.cpp b/deepin-devicemanager/src/GenerateDevice/DeviceGenerator.cpp
|
||||||
|
index 219ca518..7f4b2d51 100644
|
||||||
|
--- a/deepin-devicemanager/src/GenerateDevice/DeviceGenerator.cpp
|
||||||
|
+++ b/deepin-devicemanager/src/GenerateDevice/DeviceGenerator.cpp
|
||||||
|
@@ -27,6 +27,7 @@
|
||||||
|
|
||||||
|
// Qt库文件
|
||||||
|
#include <QDebug>
|
||||||
|
+#include <QDir>
|
||||||
|
|
||||||
|
DeviceGenerator::DeviceGenerator(QObject *parent)
|
||||||
|
: QObject(parent)
|
||||||
|
@@ -173,8 +174,14 @@ void DeviceGenerator::generatorNetworkDevice()
|
||||||
|
for (; it != lstInfo.end(); ++it) {
|
||||||
|
if ((*it).size() < 2)
|
||||||
|
continue;
|
||||||
|
- if((*it).find("logical name") == (*it).end() || (*it).find("serial") == (*it).end())
|
||||||
|
+ if ((*it).find("logical name") == (*it).end() || (*it).find("serial") == (*it).end())
|
||||||
|
continue;
|
||||||
|
+ QString logicalname = (*it).value("logical name");
|
||||||
|
+ QString sysClassNet_path = "/sys/class/net/" + logicalname + "/device";
|
||||||
|
+ QDir dir(sysClassNet_path);
|
||||||
|
+ if (! dir.exists())
|
||||||
|
+ continue;
|
||||||
|
+
|
||||||
|
DeviceNetwork *device = new DeviceNetwork();
|
||||||
|
device->setInfoFromLshw(*it);
|
||||||
|
DeviceManager::instance()->addNetworkDevice(device);
|
||||||
|
--
|
||||||
|
2.20.1
|
||||||
|
|
||||||
Binary file not shown.
BIN
deepin-devicemanager-5.6.36.tar.gz
Normal file
BIN
deepin-devicemanager-5.6.36.tar.gz
Normal file
Binary file not shown.
@ -1,19 +1,17 @@
|
|||||||
%define specrelease 3%{?dist}
|
%define specrelease 1%{?dist}
|
||||||
%if 0%{?openeuler}
|
%if 0%{?openeuler}
|
||||||
%define specrelease 1
|
%define specrelease 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: deepin-devicemanager
|
Name: deepin-devicemanager
|
||||||
Version: 5.6.34
|
Version: 5.6.36
|
||||||
Release: %{specrelease}
|
Release: %{specrelease}
|
||||||
Summary: Device Manager is a handy tool for viewing hardware information and managing the devices
|
Summary: Device Manager is a handy tool for viewing hardware information and managing the devices
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://github.com/linuxdeepin/deepin-devicemanager
|
URL: https://github.com/linuxdeepin/deepin-devicemanager
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Patch0: 0001-feat-rewrite-loadDeviceInfo-updateDeviceInfo.patch
|
Patch0: 0001-feat-add-A-help-files.patch
|
||||||
#Patch9000: 9000-fix-show-256-core-cpuinfo-issue.patch
|
Patch1: 0002-fix-Ethernet-Controller-X710-disable.patch
|
||||||
#Patch9001: 9001-fix-can-not-distinguish-hdd-issue.patch
|
|
||||||
#Patch9002: 9002-fix-function-virtual.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: cmake3
|
BuildRequires: cmake3
|
||||||
@ -49,9 +47,7 @@ Requires: util-linux
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
#git apply %{PATCH9000}
|
%patch1 -p1
|
||||||
#git apply %{PATCH9001}
|
|
||||||
#git apply %{PATCH9002}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
|
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
|
||||||
@ -83,6 +79,9 @@ systemctl enable deepin-devicemanager-server.service
|
|||||||
/etc/dbus-1/system.d/com.deepin.devicemanager.conf
|
/etc/dbus-1/system.d/com.deepin.devicemanager.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 26 2023 leeffo <liweiganga@uniontech.com> - 5.6.36-1
|
||||||
|
- upgrade to version 5.6.36
|
||||||
|
|
||||||
* Fri Mar 31 2023 liweiganga <liweiganga@uniontech.com> - 5.6.34-1
|
* Fri Mar 31 2023 liweiganga <liweiganga@uniontech.com> - 5.6.34-1
|
||||||
- update: update to 5.6.34
|
- update: update to 5.6.34
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user