Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MBetterc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mbetter
MBetterc
Commits
d0d28ab3
Commit
d0d28ab3
authored
Dec 20, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set dmps off
parent
1c223d1c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
7 deletions
+29
-7
player.py
mbetterclient/qt_player/player.py
+29
-7
No files found.
mbetterclient/qt_player/player.py
View file @
d0d28ab3
...
@@ -3370,7 +3370,7 @@ class QtVideoPlayer(QObject):
...
@@ -3370,7 +3370,7 @@ class QtVideoPlayer(QObject):
logger
.
error
(
f
"Failed to force window display: {e}"
)
logger
.
error
(
f
"Failed to force window display: {e}"
)
def
_configure_linux_system
(
self
):
def
_configure_linux_system
(
self
):
"""Configure Linux-specific system settings
- TEMPORARILY DISABLED FOR TESTING
"""
"""Configure Linux-specific system settings"""
import
platform
import
platform
import
os
import
os
...
@@ -3405,6 +3405,28 @@ class QtVideoPlayer(QObject):
...
@@ -3405,6 +3405,28 @@ class QtVideoPlayer(QObject):
if
not
os
.
environ
.
get
(
'DISPLAY'
):
if
not
os
.
environ
.
get
(
'DISPLAY'
):
logger
.
warning
(
"No DISPLAY environment variable - may be running headless"
)
logger
.
warning
(
"No DISPLAY environment variable - may be running headless"
)
os
.
environ
[
'QT_QPA_PLATFORM'
]
=
'offscreen'
os
.
environ
[
'QT_QPA_PLATFORM'
]
=
'offscreen'
else
:
# Disable screensaver and DPMS to keep display always on
try
:
import
subprocess
logger
.
info
(
"Disabling screensaver and DPMS to keep display always on"
)
# Disable screensaver
result_s
=
subprocess
.
run
([
'xset'
,
's'
,
'off'
],
capture_output
=
True
,
text
=
True
,
timeout
=
5
)
if
result_s
.
returncode
==
0
:
logger
.
info
(
"Screensaver disabled successfully"
)
else
:
logger
.
warning
(
f
"Failed to disable screensaver: {result_s.stderr}"
)
# Disable DPMS (Display Power Management Signaling)
result_dpms
=
subprocess
.
run
([
'xset'
,
'-dpms'
],
capture_output
=
True
,
text
=
True
,
timeout
=
5
)
if
result_dpms
.
returncode
==
0
:
logger
.
info
(
"DPMS disabled successfully"
)
else
:
logger
.
warning
(
f
"Failed to disable DPMS: {result_dpms.stderr}"
)
except
(
subprocess
.
TimeoutExpired
,
subprocess
.
SubprocessError
,
FileNotFoundError
)
as
e
:
logger
.
warning
(
f
"Could not disable screensaver/DPMS (xset not available or failed): {e}"
)
except
Exception
as
e
:
except
Exception
as
e
:
logger
.
warning
(
f
"Linux system configuration warning: {e}"
)
logger
.
warning
(
f
"Linux system configuration warning: {e}"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment