Giter VIP home page Giter VIP logo

Comments (3)

kbingham avatar kbingham commented on September 17, 2024

I'm pretty sure I've already seen that this fork has this idea implemented (well, the display side of things)

https://github.com/peterbay/uvc-gadget/blob/master/gadget-framebuffer.sh

from uvc-gadget.

hkfuertes avatar hkfuertes commented on September 17, 2024

oh! thank you!!
I managed to create the /dev/fb0 by changing values in config.txt, but I need the intermediate step... I guess that I need to startx on some display (I used xvfbor https://techoverflow.net/2019/02/23/how-to-run-x-server-using-xserver-xorg-video-dummy-driver-on-ubuntu/) so that X11/Xserver writes onto the same /dev/fb0 that uvc_gadget is reading from.... But I dont find the solution...

I'll keep digging. Also, Amazon should deliver me today some dummy hdmi plugs... maybe thats the issue....

from uvc-gadget.

hkfuertes avatar hkfuertes commented on September 17, 2024

So, progress... If I run this, with the option in raspi-config of login to terminal:

echo "dtoverlay=dwc2,dr_mode=otg" | sudo tee -a /boot/firmware/config.txt
echo " modules-load=dwc2,libcomposite" | sudo tee -a /boot/cmdline.txt
git clone https://github.com/peterbay/uvc-gadget
cd uvc-gadget && make
sudo cp ./uvc-gadget /usr/bin/
sudo cp ./gadget-framebuffer.sh /usr/bin/uvcgfb
sudo chmod +x /usr/bin/uvcgfb
sudo cp uvcgfb.service /etc/systemd/system/
sudo systemctl enable uvcgfb.service
sudo apt install xserver-xorg-video-dummy

# Start X on dummy display
sudo startx -- -config dummy-1920x1080.conf
# Manually for now!
sudo uvc-gadget -f /dev/fb0 -u /dev/video0

https://github.com/hkfuertes/pi_uvc_screen_share/blob/main/dummy-1920x1080.conf
https://github.com/hkfuertes/pi_uvc_screen_share/blob/main/uvcgfb.service

I get this:
image

But I only get a black screen If I set it to autologin to desktop...

hahahaha maybe I write to much, but also, maybe its helpfull to someone else... but again if someone know and wants to point me in the right direction, I'll be greatly greateful :)

from uvc-gadget.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.