Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Usage scenarios] Portable desktop environments and dynamically attaching HDMI monitors #3

Open
CRImier opened this issue Dec 20, 2017 · 1 comment

Comments

@CRImier
Copy link
Member

CRImier commented Dec 20, 2017

From my experience, one can't simply hotplug a HDMI monitor to a Raspberry Pi and have it work at full resolution without caveats. The requirements seem to be:

  1. You need to hardcode the resolution in /boot/config.txt, which gives seamless support of a certain resolution through the entire boot time
  2. Otherwise, you have to have a HDMI monitor connected at boot
  3. You can't switch the resolution for an X server that's currently running; you need to restart it so that the new resolution is applied
    3.1 I could do it with sysvinit, but couldn't figure out how to restart the X server with systemd

Usage scenarios that, ideally, would be supported:

  1. Being able to launch and stop X (the graphical environment) from ZPUI
  2. Launching ZeroPhone with no X and no HDMI monitor connected, then, after arbitrary period of time, connecting a HDMI monitor and starting X
    2.1 X should launch
    2.2 The monitor resolution should be automatically recognized and applied
  3. Connecting a HDMI monitor to a ZeroPhone, launching X, then disconnecting the monitor and connecting ZeroPhone to another monitor (with different resolution)
    3.1 The X server resolution should be changed, not requiring a restart of the X server (and thus not losing the launched GUI apps)
    3.1.1 The resolution change can be triggered manually, but it's best if it'd be done automatically

These usage scenarios were one of the main reasons that ZPUI has a Tvservice app, however, for some reason, the framebuffer changes do not work.

Questions:

  • What's the current state of things? Are the described usage scenarios possible with
  • If not, what's lacking in software/hardware for support of the usage scenarios described?

Useful links:

@CRImier
Copy link
Member Author

CRImier commented Dec 20, 2017

Meta TODO:

  • Split the general "desktop environment on Pi" stuff into another issue, leaving only problems related to hotplug and resolution
  • Test hotplug for virtual terminals (tty1 to tty6) - while virtual terminals have a smaller audience, people still use them for day-to-day tasks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant