Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Svn-to-Git
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
王进波
Svn-to-Git
Commits
05f80a45
Commit
05f80a45
authored
Feb 23, 2019
by
王进波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
75fc2631
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
README.md
README.md
+1
-0
解决升级后部分GUI程序如VLC无法启动问题.md
doc/解决升级后部分GUI程序如VLC无法启动问题.md
+34
-0
No files found.
README.md
View file @
05f80a45
...
...
@@ -38,6 +38,7 @@
-
[
解決Linux內核升級导致vmmon模块加载失败的问题
](
./doc/解決Linux內核升級导致vmmon模块加载失败的问题.md
)
-
[
如何在ArchLinux上安装自签名SSL证书
](
./doc/如何在ArchLinux上安装自签名SSL证书.md
)
-
[
生成并系统范围内安装自签名证书
](
./doc/在Linux上应用自签名证书.md
)
-
[
解决升级后部分GUI程序如VLC无法启动问题
](
./doc/解决升级后部分GUI程序如VLC无法启动问题.md
)
-
...
[
Linux Shell 脚本
](
)
## Other
...
...
doc/解决升级后部分GUI程序如VLC无法启动问题.md
0 → 100644
View file @
05f80a45
# FIX 'X11 CONNECTION BROKE' ISSUE IN QT BASED GUI APPLICATIONS LIKE VLC
![
troublesome VLC
](
https://kowalcj0.github.io/img/2018/007/vlc.png
)
troublesome VLC
If you ever encountered error like this when starting vlc:
```
shell
$
vlc
VLC media player 3.0.0-rc5 Vetinari
(
revision 3.0.0-rc5-0-gf53236af09
)
[
0000560cfbe38410] main libvlc: Running vlc with the default interface. Use
'cvlc'
to use vlc without interface.
The X11 connection broke: Maximum allowed requested length exceeded
(
code 4
)
XIO: fatal IO error 22
(
Invalid argument
)
on X server
":0"
after 447 requests
(
447 known processed
)
with 0 events remaining.
QMutex: destroying locked mutex
```
Then you can fix it by setting the
`QT_AUTO_SCREEN_SCALE_FACTOR`
env variable to
`0`
, i.e.:
```
shell
QT_AUTO_SCREEN_SCALE_FACTOR
=
0 vlc your_video_file.mkv
```
You can also modify the
`.desktop`
file so that this variable is always set, when you start the application via e.g. apps menu: In
`/usr/share/applications/vlc.desktop`
replace:
```
shell
Exec
=
/usr/bin/vlc
--started-from-file
%U
```
with:
```
shell
Exec
=
env
QT_AUTO_SCREEN_SCALE_FACTOR
=
0 /usr/bin/vlc
--started-from-file
%U
```
\ No newline at end of file
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