feat(power)!: switch backend from lmt to tlp#559
feat(power)!: switch backend from lmt to tlp#559Decodetalkers wants to merge 1 commit intolinuxdeepin:masterfrom
Conversation
7469f0a to
414b5e4
Compare
414b5e4 to
cd04867
Compare
| "os/exec" | ||
| "regexp" | ||
| "strings" | ||
| ) |
system/power1/manager_powersave.go
Outdated
| return | ||
| } | ||
| var enable bool | ||
| // var tlpCfgChanged bool |
system/power1/manager_tlp.go
Outdated
| "os/exec" | ||
| "path/filepath" | ||
| "strings" | ||
| //"github.com/linuxdeepin/go-lib/dbusutil" |
system/power1/manager_tlp.go
Outdated
| if os.IsNotExist(err) { | ||
| return false, nil | ||
| } | ||
| logger.Warning(err) |
| } | ||
|
|
||
| func (m *Manager) setPowerSavingModeEnabled(enable bool) (changed bool) { | ||
| changed = m.setPropPowerSavingModeEnabled(enable) |
system/power1/manager_powersave.go
Outdated
| import ( | ||
| "errors" | ||
| "github.com/godbus/dbus/v5" | ||
| ConfigManager "github.com/linuxdeepin/go-dbus-factory/org.desktopspec.ConfigManager" |
| } | ||
|
|
||
| m.setPropPowerSavingModeEnabled(false) | ||
| m.setPowerSavingModeEnabled(false) |
There was a problem hiding this comment.
嗯,我看powersave那边也加锁了,那这边确实要加锁
6ee7982 to
7a259f6
Compare
7a259f6 to
559a4d7
Compare
559a4d7 to
d481b14
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Decodetalkers The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
那个锁在manager已经锁了一次了,所以如果再锁就会卡住 |
d481b14 to
846e5be
Compare
|
需要调研 |
|
TAG Bot New tag: 6.0.30 |
|
TAG Bot New tag: 6.0.31 |
846e5be to
adf72b6
Compare
|
TAG Bot New tag: 6.0.32 |
|
TAG Bot New tag: 6.0.33 |
|
TAG Bot New tag: 6.0.34 |
|
TAG Bot New tag: 6.0.35 |
Log: