Skip to content

Make hotspot directly pluggable onto screen #68

Open

Description

@rgaudin

In GitLab by @Popolechien on Nov 1, 2019, 10:31

So we have a use case where everyone in the room has a tablet or smartphone but the teacher also wants to showcase on a large screen (projector or TV screen). Ideally, we could/should be able to simply plug the hotspot onto it and have visual display.

Activity

  1. added
    enhancement
    on Jan 20, 2020
  2. rgaudin commented on Jan 20, 2020

    @rgaudin
    MemberAuthor

    In GitLab by @kelson42 on Nov 1, 2019, 10:39

    This should be possible to do so by having a kind of kiosk mode starting a browser in fullscreen. The challenge is probably to be able to implement this feature without disadvantaging too much the other users (more storage and more memory used).

  3. stale commented on Mar 20, 2020

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

  4. stale commented on Jul 4, 2020

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

  5. kelson42 commented on Apr 20, 2021

    @kelson42
    Member

    If we implement this, we shoukd probably launch it only if something connected via HDMI.

  6. rgaudin commented on Apr 20, 2021

    @rgaudin
    MemberAuthor

    So is this feature request accepted?

  7. kelson42 commented on Apr 20, 2021

    @kelson42
    Member

    Not sure on my side

  8. Popolechien commented on Apr 20, 2021

    @Popolechien

    Well considering the amount of people who wrongfully do this (despite the necessary how-to, user manual, FAQ, etc.), I'd say that we'll soon reach the point where we either need to set up an automated message or deal with the issue. There's also been the request made in the context of training sessions (e.g. show on screen what everyone in the room should see on their device)

    Bottom line: not urgent, can wait 2.5, but I would want to see it eventually.

  9. rgaudin commented on Apr 20, 2021

    @rgaudin
    MemberAuthor

    I'm also in favor. Unless there's a huge downside (consumes too much resources all the time, takes too much space), it makes very little sense to prevent it.

  10. kelson42 commented on Apr 20, 2021

    @kelson42
    Member

    My concerns are moderate but:

    • Memory consumption, but probably problem solved if launched only via hdmi trigger
    • Master partition disk usage, it is already quite big
    • No idea of the complexity/robustness of the solution. But if only a few days of work, then probably OK.
  11. stale commented on Jun 20, 2021

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

  12. stale commented on Feb 1, 2022

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

  13. kelson42 commented on Aug 29, 2023

    @kelson42
    Member

    @rgaudin Should we move this ticket to base-image?

  14. rgaudin commented on Aug 30, 2023

    @rgaudin
    MemberAuthor

    No we already have #51
    It's been agreed that we won't support this in the forseeable future because we can't conditionally enable it and we don't want all the stack.
    People with an actual need can still install a desktop stack on top of an hotspot-created image.
    We could imagine documenting (or providing a script) to properly install/configure such a desktop on top of an image of ours, but that would not be at base-image anyway

  15. 3 remaining items

  16. stale commented on Dec 29, 2023

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

  17. benoit74 commented on Jan 26, 2024

    @benoit74
  18. stale commented on Mar 30, 2024

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

  19. benoit74 commented on Oct 24, 2024

    @benoit74

    I wanted to experiment with this, and I finally more or less achieved to make it work.

    Sample code for docker-compose yml (/etc/docker/compose.yml, config below is for demo image or any hotspot named wikipedia):

    services:
      browser:
        image: bh.cr/balenalabs/browser-aarch64:v2.9.0
        privileged: true # required for UDEV to find plugged in peripherals such as a USB mouse
        environment:
          SHOW_CURSOR: 1
          LAUNCH_URL: http://wikipedia.hotspot
    

    I also had to edit the /etc/hosts inside this container to add proper DNS records (DNS to the hotspot is not working from inside the container) ; I just added wikipedia.hotspot and kiwix.wikipedia.hotspot pointing to 192.168.2.1 for my tests, more entries are obviously needed, and this does not survive a hotspot restart.

    The image size is not negligible (I don't have precise numbers, dive is not working for some reason on my machine with this image ... but it is more than 600M).

    The whole stack is pretty slow on a Raspberry Pi 3 Model B, but still usable if you are a bit patient. Probably drains quite a lot of battery. I can't check how it runs on a Pi 5 ... because I don't have proper HDMI cable ... stay tuned!

  20. rgaudin commented on Oct 25, 2024

    @rgaudin
    MemberAuthor

    Great ; thank you for the tests!

    I also had to edit the /etc/hosts inside this container to add proper DNS records

    Indeed, the per-app subdomains are unknown to docker and thus not managed by it. We can add dns option for this if it is required for this one.

  21. benoit74 commented on Oct 25, 2024

    @benoit74

    Didn't knew about this dns option of Docker compose ... would have been way simpler indeed ^^

  22. benoit74 commented on Oct 27, 2024

    @benoit74

    Some more experiments:

    • adding dns to the container configuration does not help
    • setting network_mode: host to the container configuration solves the networking issue (after all, it is already priviledged, so sharing network with host is not that a big deal
    • for this to work on a Pi5, one has to set environment variable BALENA_DEVICE_TYPE: raspberrypi5 (see start.sh modification done at https://github.com/balena-io-experimental/browser/pull/166/files)

    I'm pleased to announce this works like a charm on a Pi5, very fast even with just an SD card. You just need a real power source otherwise your Pi will reboot / shutdown automatically when the "browser" container starts.

  23. kelson42 commented on Oct 27, 2024

    @kelson42
    Member

    We should make a PR IMO, and see how to achieve to display the browser fullscreen (which issue is that?) to make a kiosk.

  24. benoit74 commented on Oct 27, 2024

    @benoit74

    A PR where for what ?
    The image I used is already capable to run in kiosk mode. I prefer to have the address bar (there is no menu anyway) to have capability to have multiple tabs, tweak the address if needed, ... So question is more what do we want and where ? Maybe this should just be two distinct options in imager service. And this should probably be possible only on Pi5. I don't think that enabling this by default on lower end device would help a lot since it seems to consume a significant share of power.

  25. kelson42 commented on Oct 27, 2024

    @kelson42
    Member

    We have talked so far about technical challenges, but actually the requirements of a working solution have not been clearly written. Here they are from my PoV:

    • Once the HDMI screen plugged and the web services started, then the Kiwix Hotspot dashboard should be displayed (and all Kiwix Hotspot made available like via wifi)
    • If no HDMI device is visible, then the kiosk service should be stopped (it is important that no memory is used for this if not used)
    • This is a standart service of Kiwix Hotspot (not an optional one)
  26. sj80231 commented on Nov 6, 2024

    @sj80231
  27. rgaudin commented on Nov 7, 2024

    @rgaudin
    MemberAuthor

    @sj80231 this is not yet available. Use the subscribe button on the right pane of this ticket to be notified of updates. Once this ticket is closed, it means it is implemented.

  28. Popolechien commented on Nov 7, 2024

    @Popolechien

    @sj80231 The status is exactly what is here: we have an idea of how we get to what we want, and know what the final outcome should be. Next thing you should look for is for this issue to be closed, which will mean the feature has been pushed to the production branch. Right now no code to implement the feature has been written.

    I have one question though for you:

    The website states explicitely:

    Q: Can I plug my Raspberry to a screen?
    A: No, it’s not a desktop computer but a wi-fi hotspot. If you were to plug it to a screen you would probably see a command line screen (and no content).
    The only way at this stage to access your content is to connect to the wi-fi network created by the Raspberry.

    So what do you mean when you write "The instructions on the main website had caused some confusion "

  29. sj80231 commented on Nov 8, 2024

    @sj80231
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions