用户工具

站点工具


jaysnote:chromium_not_fullscreen

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

jaysnote:chromium_not_fullscreen [2019/01/04 18:30] (当前版本)
jaylee 创建
行 1: 行 1:
 +<​markdown>​
 +
 +## chromium is‘t full screen
 +
 +![异常进程列表](http://​www.leconiot.com/​md_res/​jaysnote/​chromium_not_fullscreen/​images/​process.png)
 +
 +```bash
 +/​usr/​sbin/​lightdm
 +\_ /usr/bin/X :0 -seat seat0 -auth /​var/​run/​lightdm/​root/:​0 -nolisten tcp vt7 -novtswitch
 +\_ lightdm --session-child 13 16
 +    \_ /​usr/​bin/​lxsession -s LXDE -e LXDE
 +        \_ /​usr/​bin/​unclutter -idle 1 -root
 +        \_ /​usr/​bin/​ssh-agent /​usr/​bin/​dbus-launch --exit-with-session x-session-manager
 +        \_ openbox --config-file /​home/​pi/​.config/​openbox/​lxde-rc.xml
 +        \_ lxpolkit
 +        \_ lxpanel --profile LXDE-pi
 +        \_ pcmanfm --desktop --profile LXDE-pi
 +        \_ xscreensaver -no-splash
 +        ​
 +\_ /​usr/​lib/​chromium-browser/​chrome-sandbox /​usr/​lib/​chromium-browser/​chromium-browser --type=zygote --user-data-dir=/​tmp
 +|   \_ chromium-browser --type=zygote --user-data-dir=/​tmp ​                         ​
 +|       \_ chromium-browser --type=zygote --user-data-dir=/​tmp ​                         ​
 + ​| ​          \_ /​usr/​lib/​chromium-browser/​chromium-browser --type=r ​                         ​
 +\_ chromium-browser --type=gpu-process --channel=30466.0.23259935 --user-data-dir=/​tmp --supports-dual-gpus=false --gpu-driver-bu ​       ​
 +```
 +
 +
 +
 +```bash
 +./cat_fb.sh &&​sz fb0.bmp ​
 +```
 +
 +
 +
 +
 +
 +![白边](http://​www.leconiot.com/​md_res/​jaysnote/​chromium_not_fullscreen/​images/​exception.bmp)
 +
 +尝试直接将 chromium ​ F11 全屏,​无效。
 +
 +```bash
 +$xdotool key F11
 +```
 +
 +尝试设置chromium ​ 窗口大小。
 +
 +```bash
 +$xdotool search chromium-browser
 +$xdotool getwindowname 31457281
 +$xdotool windowsize ​ 31457281 480 800
 +```
 +
 +直接杀死chromium 窗口确定这里灰边为桌面背景。
 +
 +```bash
 +$xdotool windowkill ​ 29360131 ​
 +```
 +
 +![桌面背景](http://​www.leconiot.com/​md_res/​jaysnote/​chromium_not_fullscreen/​images/​desktop.bmp)
 +
 +直接启动chromium也确定未全屏。
 +
 +```bash
 +$chromium-browser --start-maximized &
 +```
 +
 +原来,chromium 有一个[kiosk-mode](https://​www.sylvaindurand.org/​launch-chromium-in-kiosk-mode/​)专门用以全屏模式,尝试任然无效,所以推测很有可能是桌面环境设置的问题。
 +
 +![](http://​www.leconiot.com/​md_res/​jaysnote/​chromium_not_fullscreen/​images/​chrome_not_fullcreen.bmp)
 +
 +
 +
 +
 +
 +对比了正常和异常的桌面环境配置`~/​.config`对比,找到了`/​home/​pi/​.config/​lxsession/​LXDE/​desktop.conf` 不一致,同时也验证了窗口管理器`openbox` 未启动。
 +
 +```bash
 +window_manager=openbox-lxde
 +windows_manager/​command=openbox
 +windows_manager/​session=LXDE
 +```
 +
 +![进程对比](http://​www.leconiot.com/​md_res/​jaysnote/​chromium_not_fullscreen/​images/​process_difference.png)
 +
 +
 +
 +`~/​.config/​lxsession/​LXDE/​desktop.conf` ​ 文件是来自于`/​etc/​xdg/​lxsession/​LXDE/​desktop.conf` 拷贝。通过`~/​.cache/​lxsession/​LXDE/​run.log` 日志可以确定。
 +
 +```bash
 + ​Message:​ utils.vala:​79:​ Config system location : /​etc/​xdg/​lxsession/​LXDE
 + ​Message:​ utils.vala:​85:​ System system path location : /​etc/​xdg/​lxsession/​LXDE/​desktop.conf
 + ​Message:​ utils.vala:​89:​ Final file used : /​etc/​xdg/​lxsession/​LXDE/​desktop.conf
 + ​Message:​ settings.vala:​527:​ Key file does not have key '​iGtk/​ColorScheme'​
 +
 + ​(lxsession:​6879):​ WARNING **: settings.vala:​889:​ Failed to create file '/​etc/​xdg/​lxsession/​LXDE/​desktop.conf.LQE0UZ':​ Permission denied
 +```
 +
 +</​markdown>​
 +
 +
  
jaysnote/chromium_not_fullscreen.txt · 最后更改: 2019/01/04 18:30 由 jaylee