Comments (10)
I have tried to see if I can isolate a commit where the issue appears by checking out and building historical commits. This seems to be a dead-end. I'll now try debugging and see what I can do here.
I suspect the issue may be with Ubuntu 19.04. Can anyone confirm latest build from master works fine on 18.x?
from system76-power.
It works fine in 18.x, yes. The latest build is actually what you get in Pop!_OS 18.04 and 18.10 stable. Our GitHub repo is monitored by a packaging CI which automatically packages the master branches of each repo with a debian directory to Pop!_OS Proposed, which soon gets swept up into stable and released into a new ISO. Code doesn't get to master if it hasn't already had a code review and been tested in the lab by QA, as our packaging CI also builds each branch into a new temporary repository.
from system76-power.
Ah okay, good to know 😺 . Have there been internal tests for 19.04? I'm curious to know if others are having the same issue. It certainly seems related to 19.x now, but I'm unsure quite where to start in debugging.
from system76-power.
Yes, see https://github.com/orgs/pop-os/projects/8
This is causing switchable graphics issues in 19.04.
from system76-power.
Thanks for the link! I'll see if I can help out here. The delay also means that shutdown/standby/reboot etc are delayed until the unbind is complete, so there may be other things affected?
from system76-power.
Issue might be in sysfs-class
around the file_write. Something seems to be making this take a long time to complete, unsure if sysfs-class
is the actual issue, or if something in 19.04 is causing the write to be delayed - but this is the area I'll be looking in for now.
Apr 16 17:24:58 pop-os system76-power[1025]: [INFO] Disabling graphics power
Apr 16 17:24:58 pop-os system76-power[1025]: [INFO] xhci_hcd: Unbinding 0000:01:00.2
Apr 16 17:24:58 pop-os system76-power[1025]: [INFO] unbinding took 1.317832ms
Apr 16 17:24:58 pop-os system76-power[1025]: [INFO] nvidia-gpu: Unbinding 0000:01:00.3
Apr 16 17:28:33 pop-os system76-power[1025]: [INFO] unbinding took 3.58m
Apr 16 17:28:33 pop-os system76-power[1025]: [INFO] snd_hda_intel: Unbinding 0000:01:00.1
Apr 16 17:28:33 pop-os system76-power[1025]: [INFO] unbinding took 191.073818ms
Apr 16 17:28:33 pop-os system76-power[1025]: [INFO] unbind function took 3.58m
from system76-power.
This would be a kernel issue, but we could perhaps send all I/O tasks to a background thread to prevent the daemon from stalling.
from system76-power.
Confirming it's a kernel issue. I tried:
- 4.18.0, no issue, unbinds quick
- 5.0.0, unbind takes 3 minutes
- 5.0.7, unbind takes 3 minutes
I haven't tried 5.1 RC kernels yet. Probably using a threaded model would be best in the long run, or even futures - but I can't help with this as I have limited time (and need to earn a living) sorry.
from system76-power.
I found that the i2c-nvidia-gpu module is the cause, it was recently added to Linux. I am blacklisting it by default on the oryp5, where this problem occurs.
from system76-power.
@jackpot51 excellent! Thank you for the information and fix!
from system76-power.
Related Issues (20)
- PC fan is running all the time without load after updating to Linux Kernel 6.1 HOT 1
- `power_dpm_state` on AMDGPU not updated on battery or balance mode
- Choppy external monitor performance (<20 FPS) when using Wayland and the nvidia GPU mode HOT 1
- Error when changing power profile (no_turbo pstate value) HOT 1
- Unexpected PCIE Downgrades of the NVIDIA Gpu HOT 2
- Boot parameters are reset when switching graphics mode HOT 2
- system76-power daemon panic because missing file HOT 1
- Allow desktop computers to have switchable graphics HOT 4
- Arch doesn't boot when changing back to Nvidia mode
- Boost mode isn't affected by power profiles changes
- Block graphics card switch when there is inssuficient disk space
- NVME U.2 drive temperature not considered for fan duty cycle HOT 2
- Add mux switching support for new models HOT 3
- AMD P-State EPP doesn't change based on the selected power profile HOT 3
- SCSI/SATA link time power management breaks AHCI hotplugging on some motherboards HOT 2
- Cannot query or set charge thresholds on kernel 6.6 HOT 4
- unable to switch between dedicated nvidia and integrated amd gpu
- Support ABM
- March 12th update kills performance of Thelio Major
- Please use GPG to sign tags HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from system76-power.