Failing to set graphics mode changes the displayed mode
wash2 opened this issue · 0 comments
Distribution
NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os
Related Application and/or Package Version
system76-power:
Installed: 1.1.24~1674505745~22.04~c504ff6
Candidate: 1.1.24~1674505745~22.04~c504ff6
Version table:
*** 1.1.24~1674505745~22.04~c504ff6 1001
500 http://apt.pop-os.org/staging/master jammy/main amd64 Packages
1001 http://apt.pop-os.org/release jammy/main amd64 Packages
100 /var/lib/dpkg/status
Issue/Bug Description:
Testing with cosmic-epoch using a system-extension, setting graphics mode fails due to a read only file system. As expected, an error is returned, but afterward, checking the graphics mode, it will have "changed" despite failing. Examples:
me@pop-os:~$ system76-power graphics
nvidia
me@pop-os:~$ system76-power graphics integrated
setting graphics to integrated
daemon returned an error message: "failed to access Xserver config: Read-only file system (os error 30)"
me@pop-os:~$ system76-power graphics
compute
me@pop-os:~$ system76-power graphics nvidia
setting graphics to nvidia
daemon returned an error message: "failed to access Xserver config: Read-only file system (os error 30)"
me@pop-os:~$ system76-power graphics
nvidia
Steps to reproduce:
Install cosmic-epoch via system-extension.
Try changing the graphics mode.
Check the graphics mode after failure.
Expected behavior:
If setting graphics mode fails, an error should be returned and the mode shouldn't change.