Merge ~williamhsu/plainbox-provider-checkbox/+git/plainbox-provide-checkbox:bug/lp-1884235/exchanged-the-sequence-of-graphics-log-parsing into plainbox-provider-checkbox:master
Status: | Merged |
---|---|
Approved by: | Jonathan Cave |
Approved revision: | 5efd1c4d223080bd3020f2e97c25073d5fd3e8a0 |
Merged at revision: | 1c93355aa1fb8e03488bd6975b73fde6c0254ef2 |
Proposed branch: | ~williamhsu/plainbox-provider-checkbox/+git/plainbox-provide-checkbox:bug/lp-1884235/exchanged-the-sequence-of-graphics-log-parsing |
Merge into: | plainbox-provider-checkbox:master |
Diff against target: |
46 lines (+24/-3) 1 file modified
bin/graphics_driver.py (+24/-3) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Pierre Equoy | Approve | ||
jeremyszu (community) | Approve | ||
hugh chao (community) | Approve | ||
Jonathan Cave (community) | Approve | ||
Nara Huang | Pending | ||
Sylvain Pineau | Pending | ||
Review via email: mp+386796@code.launchpad.net |
Commit message
Exchanged the sequence of graphics log parsing
Description of the change
# Description
SWE team found the information of graphics driver is recorded on the user folder instead of root folder if Nvidia modeset=1. Therefore, I created the patch to check the sequence of graphics log parsing. Details can be found on lp:1884235. Thanks!
# Changes
1. Checking the Nvidia mode settings before log parsing.
- If the modeset=1 (/etc/modprobe.
2. Seeking the log file
- Sometimes, the name of xorg log isn't named "Xorg.0.log". E.g.
whsu@
-rw-r--r-- 1 root root 8.9K Jun 18 10:15 Xorg.1.log
-rw-r--r-- 1 root root 8.9K Jun 17 19:01 Xorg.1.log.old
Suggesting to seek the xorg log before log parsing
# Patch verification result:
## Scenario 1: Validation on the discrete graphics card (Nvidia driver without modeset=1) ##
u@u-
------------- VIDEO DRIVER INFORMATION -------------
Video Driver: nvidia
Driver Version: 440.64
------------- HYBRID GRAPHICS CHECK ----------------
Graphics Chipset: NVIDIA (10de:1c31)
Loaded DDX Drivers: nouveau, modesetting, fbdev, vesa
Hybrid Graphics: no
u@u-
N
## Scenario 2: Validation on the discrete graphics card (Nvidia driver with modeset=1) ##
u@u-
------------- VIDEO DRIVER INFORMATION -------------
Video Driver: nvidia
Driver Version: 440.64
------------- HYBRID GRAPHICS CHECK ----------------
Graphics Chipset: NVIDIA (10de:1e84)
Loaded DDX Drivers: nouveau, modesetting, fbdev, vesa
Hybrid Graphics: no
u@u-
Y
## Scenario 3: Validation on the UMA config ##
u@u-
------------- VIDEO DRIVER INFORMATION -------------
Video Driver: modesetting
Driver Version: 1.20.8
------------- HYBRID GRAPHICS CHECK ----------------
Graphics Chipset: Intel (8086:9be6)
Loaded DDX Drivers: modesetting, fbdev, vesa
Hybrid Graphics: no
A few comments inline.