moby: test a lima GPU timeout bugfix
This commit is contained in:
@@ -70,12 +70,17 @@ in
|
|||||||
# the filtering/calibration is bad that it causes the screen to go fully dark at times.
|
# the filtering/calibration is bad that it causes the screen to go fully dark at times.
|
||||||
boot.blacklistedKernelModules = [ "stk3310" ];
|
boot.blacklistedKernelModules = [ "stk3310" ];
|
||||||
|
|
||||||
|
boot.kernelParams = [
|
||||||
# without this some GUI apps fail: `DRM_IOCTL_MODE_CREATE_DUMB failed: Cannot allocate memory`
|
# without this some GUI apps fail: `DRM_IOCTL_MODE_CREATE_DUMB failed: Cannot allocate memory`
|
||||||
# this is because they can't allocate enough video ram.
|
# this is because they can't allocate enough video ram.
|
||||||
# the default CMA seems to be 32M.
|
# the default CMA seems to be 32M.
|
||||||
# i was running fine with 256MB from 2022/07-ish through 2022/12-ish, but then the phone quit reliably coming back from sleep: maybe a memory leak?
|
# i was running fine with 256MB from 2022/07-ish through 2022/12-ish, but then the phone quit reliably coming back from sleep: maybe a memory leak?
|
||||||
# `cat /proc/meminfo` to see CmaTotal/CmaFree if interested in tuning this.
|
# `cat /proc/meminfo` to see CmaTotal/CmaFree if interested in tuning this.
|
||||||
boot.kernelParams = [ "cma=512M" ];
|
"cma=512M"
|
||||||
|
# 2023/10/20: potential fix for the lima (GPU) timeout bugs:
|
||||||
|
# - <https://gitlab.com/postmarketOS/pmaports/-/issues/805#note_890467824>
|
||||||
|
"lima.sched_timeout_ms=2000"
|
||||||
|
];
|
||||||
|
|
||||||
services.xserver.displayManager.job.preStart = ensureHWReady;
|
services.xserver.displayManager.job.preStart = ensureHWReady;
|
||||||
systemd.services.greetd.preStart = ensureHWReady;
|
systemd.services.greetd.preStart = ensureHWReady;
|
||||||
|
Reference in New Issue
Block a user