Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
postmarketos-tweaks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
postmarketos-tweaks
Commits
c99215a8
Unverified
Commit
c99215a8
authored
3 years ago
by
Martijn Braam
Browse files
Options
Downloads
Patches
Plain Diff
Don't try to open readonly sysfs nodes in tweakd
parent
476573fb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pmos_tweaks/settingstree.py
+1
-0
1 addition, 0 deletions
pmos_tweaks/settingstree.py
pmos_tweaks/tweakd.py
+1
-1
1 addition, 1 deletion
pmos_tweaks/tweakd.py
settings/pinephone.yml
+2
-1
2 additions, 1 deletion
settings/pinephone.yml
with
4 additions
and
2 deletions
pmos_tweaks/settingstree.py
+
1
−
0
View file @
c99215a8
...
...
@@ -88,6 +88,7 @@ class Setting:
self
.
key
=
definition
[
'
key
'
]
self
.
stype
=
definition
[
'
stype
'
]
self
.
multiplier
=
definition
[
'
multiplier
'
]
if
'
multiplier
'
in
definition
else
1
self
.
readonly
=
definition
[
'
readonly
'
]
if
'
readonly
'
in
definition
else
False
elif
self
.
backend
==
'
osksdl
'
:
self
.
needs_root
=
True
self
.
key
=
definition
[
'
key
'
]
...
...
This diff is collapsed.
Click to expand it.
pmos_tweaks/tweakd.py
+
1
−
1
View file @
c99215a8
...
...
@@ -21,7 +21,7 @@ def main(version, datadir=None):
for
section
in
settings
[
page
][
'
sections
'
]:
for
setting
in
settings
[
page
][
'
sections
'
][
section
][
'
settings
'
]:
s
=
settings
[
page
][
'
sections
'
][
section
][
'
settings
'
][
setting
]
if
s
.
backend
==
'
sysfs
'
:
if
s
.
backend
==
'
sysfs
'
and
not
s
.
readonly
:
whitelist_sysfs
.
append
(
s
.
key
)
# Read the stored settings and apply them
...
...
This diff is collapsed.
Click to expand it.
settings/pinephone.yml
+
2
−
1
View file @
c99215a8
...
...
@@ -26,4 +26,5 @@
type
:
info
stype
:
int
backend
:
sysfs
key
:
/sys/firmware/devicetree/base/memory/ram_freq
\ No newline at end of file
key
:
/sys/firmware/devicetree/base/memory/ram_freq
readonly
:
true
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment