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

GPI case 2 information and ideas #28

Closed
takov751 opened this issue Jun 27, 2022 · 1 comment
Closed

GPI case 2 information and ideas #28

takov751 opened this issue Jun 27, 2022 · 1 comment

Comments

@takov751
Copy link
Contributor

takov751 commented Jun 27, 2022

Gamepad seems like a no issue it's somekind of usb HID device by the look of it as I couldn't find other than "it's just works"

  1. I look trough and if dpi24.dto has no custom patch made by retroflag it's out dated. The latest file can be found

https://github.com/raspberrypi/firmware/blob/master/boot/overlays/dpi24.dtbo

LCD specific config.txt available in patch zip from their repo. That can be easily copied.
2. case has only a power switch and that can be implemented with simple

from gpiozero import Buttons, LED


powerPin = 26
powerenPin = 27

def shut() :
    os.system("sudo shutdown -h now")

#Turn on power led
led_power = LED(powerenPin)
led_power.on()
#init shutdown feature
btn_power = Button(powerPin)
btn_power.when_pressed = shut

  1. The real issue is to switch from lcd to hdmi. This should be done by rebooting, and the gpicase2 has a weird check for it
    The pin has to be enable as input and this method seems to be working only with this case. same issue with audio
HDMI_HPD=18
HDMI_HPD_VALUE=$(cat /sys/class/gpio/gpio$HDMI_HPD/value)

if "1" = $HDMI_HPD_VALUE ; then

  1. internal audio is simply adding /etc/modprobe.d/alsa-base.conf (maybe to cmdline.txt instead)
options snd_usb_audio index=0

However switching to hdmi audio from internal can be tricky

@github-actions
Copy link

Hello there 👋
Thanks for submitting your first issue to the Retro Home project 🐛 We'll try and take a look at your issue soon ⏲

In the meantime you might want to join the Wimpy's World Discord 🗣 where we have a large community of Linux 🐧 enthusiasts and passionate open source developers 🧑‍💻 and a support channel for this project.

You might also be interested in following Wimpy's World Twitch 📡 channel where Wimpy streams let's code videos, including this project, several times a week. A back catalog of past live streams and other Linux 🐧 and Raspberry Pi 🥧 related content is available on Wimpy's World YouTube 📺 channel.

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