GithubHelp home page GithubHelp logo

Comments (10)

flukejones avatar flukejones commented on June 19, 2024

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.

mmstick avatar mmstick commented on June 19, 2024

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.

flukejones avatar flukejones commented on June 19, 2024

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.

mmstick avatar mmstick commented on June 19, 2024

Yes, see https://github.com/orgs/pop-os/projects/8

This is causing switchable graphics issues in 19.04.

from system76-power.

flukejones avatar flukejones commented on June 19, 2024

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.

flukejones avatar flukejones commented on June 19, 2024

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.

mmstick avatar mmstick commented on June 19, 2024

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.

flukejones avatar flukejones commented on June 19, 2024

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.

jackpot51 avatar jackpot51 commented on June 19, 2024

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.

flukejones avatar flukejones commented on June 19, 2024

@jackpot51 excellent! Thank you for the information and fix!

from system76-power.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.