Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lemp9: Add intel_idle.max_cstate=4 kernel parameter to fix freezes #217

Merged
merged 2 commits into from
Sep 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
system76-driver (20.04.43~~alpha) focal; urgency=low

* Daily WIP for 20.04.43
* lemp9: Add intel_idle.max_cstate=4 kernel parameter to fix freezes

-- Jeremy Soller <jeremy@system76.com> Wed, 29 Sep 2021 08:53:34 -0600

system76-driver (20.04.42) focal; urgency=low

* Add oryp8
Expand Down
2 changes: 1 addition & 1 deletion system76driver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import logging


__version__ = '20.04.42'
__version__ = '20.04.43'

datadir = path.join(path.dirname(path.abspath(__file__)), 'data')
log = logging.getLogger(__name__)
Expand Down
16 changes: 13 additions & 3 deletions system76driver/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1558,20 +1558,30 @@ def perform(self):
class meer5_audio_hdajackretask(FileAction):
def describe(self):
return _('Fix pins for meer5 HDMI/DP audio output.')

def __init__(self):
self.modprobefile = '/etc/modprobe.d/system76-meer5-audio.conf'
self.patchfile = '/lib/firmware/system76-meer5-audio.fw'

def get_isneeded(self):
if not (os.path.exists(self.modprobefile) and os.path.exists(self.patchfile)):
return True
else:
return False

def perform(self):
modprobecontent = 'options snd-hda-intel patch=system76-meer5-audio.fw'
atomic_write(self.modprobefile, modprobecontent)
patchcontent = '[codec]\n0x8086280b 0x80860101 2\n\n'
patchcontent += '[pincfg]\n0x05 0x18560070\n0x06 0x18560070\n0x07 0x18560070\n'
atomic_write(self.patchfile, patchcontent)

class intel_idle_max_cstate_4(GrubAction):
"""
Add `intel_idle.max_cstate=4` to Linux command line.
"""

add = ('intel_idle.max_cstate=4',)

def describe(self):
return _('Fix for freezes on some CML-U processors')
4 changes: 3 additions & 1 deletion system76driver/products.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,9 @@
},
'lemp9': {
'name': 'Lemur Pro',
'drivers': [],
'drivers': [
actions.intel_idle_max_cstate_4
],
},
'lemp10': {
'name': 'Lemur Pro',
Expand Down